Article of interest: Python pros/cons for the enterprise
Hrvoje Niksic
hniksic at xemacs.org
Sat Feb 23 20:10:18 EST 2008
More information about the Python-list mailing list
Sat Feb 23 20:10:18 EST 2008
- Previous message (by thread): Article of interest: Python pros/cons for the enterprise
- Next message (by thread): Article of interest: Python pros/cons for the enterprise
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Terry Reedy" <tjreedy at udel.edu> writes: > "Jeff Schwab" <jeff at schwabcenter.com> wrote in message > news:f76dnYohFaXb0V3anZ2dnUVZ_u-unZ2d at comcast.com... > [snip discussion of 'with' statements] > > | Yes, this seems to be the Python way: For each popular feature of some > | other language, create a less flexible Python feature that achieves the > | same effect in the most common cases (e.g. lambda to imitate function > | literals, or recursive assignment to allow x = y = z). > > This is a rather acute observation. Another example is generators versus > full coroutines (or continuations). Another example that comes to mind is "with" statement versus a macro system that allowed one to define custom statements based on try...finally. contextlib.contextmanager implements an even more specific subset of this functionality.
- Previous message (by thread): Article of interest: Python pros/cons for the enterprise
- Next message (by thread): Article of interest: Python pros/cons for the enterprise
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list