[Python-ideas] breaking out of module execution
M.-A. Lemburg
mal at egenix.com
Wed Apr 25 16:00:58 CEST 2012
More information about the Python-ideas mailing list
Wed Apr 25 16:00:58 CEST 2012
- Previous message: [Python-ideas] breaking out of module execution
- Next message: [Python-ideas] breaking out of module execution
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Ronald Oussoren wrote: > > Also, why use the proposed module-scope return instead of an if-statement with nested definitions, this works just fine: > > : def foo(): pass > : > : if sys.platform == 'linux': > : > : def linux_bar(): pass Because this only works reasonably if you have a few lines of code to indent. As soon as you have hundreds of lines, this becomes both unreadable and difficult to edit. The above is how the thread was started, BTW :-) -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Apr 25 2012) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2012-04-28: PythonCamp 2012, Cologne, Germany 3 days to go 2012-04-25: Released eGenix mx Base 3.2.4 http://egenix.com/go27 ::: Try our new mxODBC.Connect Python Database Interface for free ! :::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/
- Previous message: [Python-ideas] breaking out of module execution
- Next message: [Python-ideas] breaking out of module execution
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-ideas mailing list