Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Python 3 sucks

Name: Anonymous 2009-01-12 14:10

The third version of FIOC ( Python3000 for you cheese lovers ) is kind of lame, even lamer than classic FIOC. Minor changes suck and bigger ones weren't necessary.

Name: Anonymous 2010-04-21 6:12

>>66
I agree that you need mutually recursive functions, but I disagree that you need to be able to mix definitions and expressions. If you prohibit definitions (whether it be class or function) after a nondefinition then you can still make meaningful assumptions about scope. Otherwise you need to be aware of everything in the file declared at that level or higher to know if something is in scope.
>>> def foo():
...  def bar():
...   return x
...  # there could be an arbitrary amount of code in here
...  print "nearly done"
...  x = 9
...  return bar
...
>>> foo()()
nearly done
9
>>>


While it can be counterintuitive at times, the reasons behind this behavior are completely sound, and you likely rely on it much more often than you might think.
If you mean, "do I rely on mutually recursive definitions?" then yes, but I do not mix expressions and definitions.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List