osmarks @o@osmarks.net

os "I have to restart the instance every time I change this" marks microblog. I write and deeply resent software, am interested in machine learning, and play various sandbox games sometimes.

  • Notes
  • Followers 11
  • Following 31
  • Remote follow
osmarks's avatar
osmarks
@o@osmarks.net

Some people complain about Python having function scope rather than block scope, but this is easily fixable:

@block_scope
def somefunction():
    if True:
        x = 0
    print(x) # error
random-stuff/block_scope.py at master ยท osmarks/random-stuff GitHub
  • permalink
  • interact from your instance
  • 1 year, 2 months ago
Powered by microblog.pub 2.0.0+9c8693ea and the ActivityPub protocol. Admin.