Re: [Python-3000] PEP 3108: Standard Library Reorganization

2007-01-04 Thread Talin
Anthony Baxter wrote: > Starting a new thread... > >> Several modules in the stdlib work on a specific file format. It >> is possible some of these formats are no longer used and thus the >> stdlib modules for them can go. Below is a list of some modules >> which rely on a file format that ma

Re: [Python-3000] PEP 3108: Standard Library Reorganization

2007-01-04 Thread Anthony Baxter
Starting a new thread... > Several modules in the stdlib work on a specific file format. It > is possible some of these formats are no longer used and thus the > stdlib modules for them can go. Below is a list of some modules > which rely on a file format that may be obsolete. > audioop >

Re: [Python-3000] self-contained exceptions

2007-01-04 Thread Phillip J. Eby
At 12:18 AM 1/5/2007 +0100, Malte Helmert wrote: >Phillip J. Eby wrote: > > Heck, you could even say the translation is: > > > > except ExcType: > > e = sys.exception # or whatever it's called in 3K > > try: > > # body > > finally: > >

Re: [Python-3000] self-contained exceptions

2007-01-04 Thread Mike Orr
On 1/4/07, tomer filiba <[EMAIL PROTECTED]> wrote: > [Guido] > > The use case I am guessing from your example (passing a > > traceback as a single string across an RPC boundary) isn't all that > > common and you ought to have only one place in your RPC package where > > you need to call it. > > *th

Re: [Python-3000] PEP 3108: Standard Library Reorganization

2007-01-04 Thread Brett Cannon
On 1/4/07, Barry Warsaw <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jan 4, 2007, at 3:06 AM, BJörn Lindqvist wrote: > On 1/3/07, Brett Cannon <[EMAIL PROTECTED]> wrote: PEP 8 specifies that modules "should have short, lowercase names, without underscor

Re: [Python-3000] self-contained exceptions

2007-01-04 Thread Brett Cannon
On 1/4/07, Neil Toronto <[EMAIL PROTECTED]> wrote: Guido van Rossum wrote: > On 1/4/07, Phillip J. Eby <[EMAIL PROTECTED]> wrote: > >> At 01:41 AM 1/4/2007 -0600, Ka-Ping Yee wrote: >> >>> How about this? >>> >>> except ExcType, e: >>> try: >>> # body >>> fina

Re: [Python-3000] self-contained exceptions

2007-01-04 Thread tomer filiba
[Guido] > The use case I am guessing from your example (passing a > traceback as a single string across an RPC boundary) isn't all that > common and you ought to have only one place in your RPC package where > you need to call it. *this* use-case isn't that useful, true. but many times, frameworks

Re: [Python-3000] self-contained exceptions

2007-01-04 Thread Neil Toronto
Guido van Rossum wrote: > On 1/4/07, Phillip J. Eby <[EMAIL PROTECTED]> wrote: > >> At 01:41 AM 1/4/2007 -0600, Ka-Ping Yee wrote: >> >>> How about this? >>> >>> except ExcType, e: >>> try: >>> # body >>> finally: >>> e = None >>> >> I

Re: [Python-3000] self-contained exceptions

2007-01-04 Thread Guido van Rossum
On 1/4/07, Phillip J. Eby <[EMAIL PROTECTED]> wrote: > At 01:41 AM 1/4/2007 -0600, Ka-Ping Yee wrote: > >How about this? > > > > except ExcType, e: > > try: > > # body > > finally: > > e = None > > It's a little bit more difficult to explain in the r

Re: [Python-3000] self-contained exceptions

2007-01-04 Thread Guido van Rossum
[Tomer] > > > as well as > > > traceback.format_exception (which i greatly dislike). [Guido] > > Why? Because it once insulted you? [Tomer] > because it's tedious, repetitive and unreadable. > > try: > foo > except: > import traceback > import sys > tbtext = "".join(traceback.form

Re: [Python-3000] self-contained exceptions

2007-01-04 Thread tomer filiba
[Guido] > > as well as > > traceback.format_exception (which i greatly dislike). > > Why? Because it once insulted you? because it's tedious, repetitive and unreadable. try: foo except: import traceback import sys tbtext = "".join(traceback.format_exception(*sys.exc_info())) r

Re: [Python-3000] self-contained exceptions

2007-01-04 Thread Phillip J. Eby
At 01:41 AM 1/4/2007 -0600, Ka-Ping Yee wrote: >How about this? > > except ExcType, e: > try: > # body > finally: > e = None It's a little bit more difficult to explain in the reference manual. I was figuring we'd say that the exception variable i

Re: [Python-3000] PEP 3108: Standard Library Reorganization

2007-01-04 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jan 4, 2007, at 3:06 AM, BJörn Lindqvist wrote: > On 1/3/07, Brett Cannon <[EMAIL PROTECTED]> wrote: PEP 8 specifies that modules "should have short, lowercase names, without underscores" [#pep-0008]_. >>> >>> Why does the restriction on

Re: [Python-3000] PEP 3108: Standard Library Reorganization

2007-01-04 Thread BJörn Lindqvist
On 1/3/07, Brett Cannon <[EMAIL PROTECTED]> wrote: > > > PEP 8 specifies that modules "should have short, lowercase names, > > > without underscores" [#pep-0008]_. > > > > Why does the restriction on underscores exist? Removing that > > restriction would make lowercase-only names easier to use > >