Re: [Python-Dev] Exception __name__ missing?

2011-01-17 Thread Georg Brandl
Am 18.01.2011 03:41, schrieb Ron Adam: > > > On 01/17/2011 02:27 PM, Georg Brandl wrote: >> Am 17.01.2011 21:22, schrieb Ron Adam: >>> >>> Is this on purpose? >>> >>> >>> Python 3.2rc1 (py3k:88040, Jan 15 2011, 18:11:39) >>> [GCC 4.4.5] on linux2 >>> Type "help", "copyright", "credits" or "licens

Re: [Python-Dev] devguide: Cover how to (un-)apply a patch.

2011-01-17 Thread Georg Brandl
Am 18.01.2011 01:19, schrieb s...@pobox.com: > > Antoine> On Mon, 17 Jan 2011 23:37:07 +0100 > Antoine> brett.cannon wrote: > >> + > >> +To undo a patch, do:: > >> + > >> +patch -R -p0 < patch.diff > >> + > > Antoine> Or, simply and more reliably, use the corr

Re: [Python-Dev] Exception __name__ missing?

2011-01-17 Thread Ron Adam
On 01/17/2011 02:27 PM, Georg Brandl wrote: Am 17.01.2011 21:22, schrieb Ron Adam: Is this on purpose? Python 3.2rc1 (py3k:88040, Jan 15 2011, 18:11:39) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> Exception.__name__ 'Exception' >>>

Re: [Python-Dev] devguide: Cover how to (un-)apply a patch.

2011-01-17 Thread skip
Antoine> On Mon, 17 Jan 2011 23:37:07 +0100 Antoine> brett.cannon wrote: >> + >> +To undo a patch, do:: >> + >> +patch -R -p0 < patch.diff >> + Antoine> Or, simply and more reliably, use the corresponding VCS Antoine> incantation ("svn revert -R ." or "hg

Re: [Python-Dev] Moving stuff out of Misc and over to the devguide

2011-01-17 Thread Brett Cannon
On Mon, Jan 17, 2011 at 14:41, Nick Coghlan wrote: > On Tue, Jan 18, 2011 at 6:54 AM, Antoine Pitrou wrote: >> >> Well it *is* inconvenient in the case of maintainers.rst, which is >> often consulted casually for daily bug tracker work. Grepping >> Misc/maintainers.rst is much easier than first h

Re: [Python-Dev] devguide: Cover how to (un-)apply a patch.

2011-01-17 Thread Brett Cannon
Done On Mon, Jan 17, 2011 at 15:14, Antoine Pitrou wrote: > On Mon, 17 Jan 2011 23:37:07 +0100 > brett.cannon wrote: >> + >> +To undo a patch, do:: >> + >> +    patch -R -p0 < patch.diff >> + > > Or, simply and more reliably, use the corresponding VCS incantation > ("svn revert -R ." or "hg reve

Re: [Python-Dev] Moving stuff out of Misc and over to the devguide

2011-01-17 Thread Barry Warsaw
On Jan 17, 2011, at 12:53 PM, Guido van Rossum wrote: >Wow, that Purify file is really old... Unless anyone can confirm it >still works, maybe just toss it? Barry? Wow indeed. The email address in there hasn't worked in, what? a decade? :) Toss it! -Barry signature.asc Description: PGP signa

Re: [Python-Dev] devguide: Cover how to (un-)apply a patch.

2011-01-17 Thread Antoine Pitrou
On Mon, 17 Jan 2011 23:37:07 +0100 brett.cannon wrote: > + > +To undo a patch, do:: > + > +patch -R -p0 < patch.diff > + Or, simply and more reliably, use the corresponding VCS incantation ("svn revert -R ." or "hg revert -a"). Regards Antoine.

Re: [Python-Dev] Exception __name__ missing?

2011-01-17 Thread Nick Coghlan
On Tue, Jan 18, 2011 at 7:09 AM, Scott Dial wrote: > I worked around the issue by referencing the __class__ (as the other > replier mentioned). But, I didn't receive any responses then, so I think > not a lot of attention was put into these type of attributes on exceptions. That's not a workaroun

Re: [Python-Dev] Moving stuff out of Misc and over to the devguide

2011-01-17 Thread Nick Coghlan
On Tue, Jan 18, 2011 at 6:54 AM, Antoine Pitrou wrote: > > Well it *is* inconvenient in the case of maintainers.rst, which is > often consulted casually for daily bug tracker work. Grepping > Misc/maintainers.rst is much easier than first having to find again > where your checkout of the devguide

Re: [Python-Dev] Exception __name__ missing?

2011-01-17 Thread Scott Dial
On 1/17/2011 3:22 PM, Ron Adam wrote: > Is this on purpose? This reminds me of something I ran into a few years ago wrt. the attribute on exceptions. Namely, that instances of built-in exceptions do not have a __module__ attribute, but instance of user exceptions do -- a change which appeared in P

Re: [Python-Dev] devguide: Add a doc outlining how to add something to the stdlib.

2011-01-17 Thread Brett Cannon
On Mon, Jan 17, 2011 at 12:32, R. David Murray wrote: > On Mon, 17 Jan 2011 21:00:10 +0100, Antoine Pitrou > wrote: >> On Sun, 16 Jan 2011 21:38:43 +0100 >> brett.cannon wrote: >> > + >> > +Adding to a pre-existing module >> > +--- >> > + >> > +If you have found that

Re: [Python-Dev] Moving stuff out of Misc and over to the devguide

2011-01-17 Thread Antoine Pitrou
On Mon, 17 Jan 2011 12:32:20 -0800 Brett Cannon wrote: > There is a bunch of stuff in Misc that probably belongs in the > devguide (under Resources) instead of in svn. Here are the files I > think can be moved (in order of how strongly I think they should be > moved): > > PURIFY.README > README.c

Re: [Python-Dev] Moving stuff out of Misc and over to the devguide

2011-01-17 Thread Guido van Rossum
On Mon, Jan 17, 2011 at 12:32 PM, Brett Cannon wrote: > There is a bunch of stuff in Misc that probably belongs in the > devguide (under Resources) instead of in svn. Here are the files I > think can be moved (in order of how strongly I think they should be > moved): > > PURIFY.README > README.cov

Re: [Python-Dev] Moving stuff out of Misc and over to the devguide

2011-01-17 Thread Georg Brandl
Am 17.01.2011 21:32, schrieb Brett Cannon: > There is a bunch of stuff in Misc that probably belongs in the > devguide (under Resources) instead of in svn. Here are the files I > think can be moved (in order of how strongly I think they should be > moved): > > PURIFY.README > README.coverty > READ

Re: [Python-Dev] Exception __name__ missing?

2011-01-17 Thread Benjamin Peterson
2011/1/17 Ron Adam : > > Is this on purpose? Of course: instances don't have names. -- Regards, Benjamin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/

Re: [Python-Dev] Exception __name__ missing?

2011-01-17 Thread Georg Brandl
Am 17.01.2011 21:22, schrieb Ron Adam: > > Is this on purpose? > > > Python 3.2rc1 (py3k:88040, Jan 15 2011, 18:11:39) > [GCC 4.4.5] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> Exception.__name__ > 'Exception' > >>> e = Exception('has no name') > >

[Python-Dev] Moving stuff out of Misc and over to the devguide

2011-01-17 Thread Brett Cannon
There is a bunch of stuff in Misc that probably belongs in the devguide (under Resources) instead of in svn. Here are the files I think can be moved (in order of how strongly I think they should be moved): PURIFY.README README.coverty README.klocwork README.valgrind Porting developers.txt maintain

Re: [Python-Dev] devguide: Add a doc outlining how to add something to the stdlib.

2011-01-17 Thread R. David Murray
On Mon, 17 Jan 2011 21:00:10 +0100, Antoine Pitrou wrote: > On Sun, 16 Jan 2011 21:38:43 +0100 > brett.cannon wrote: > > + > > +Adding to a pre-existing module > > +--- > > + > > +If you have found that a function, method, or class is useful and you > > believe > > +i

[Python-Dev] Exception __name__ missing?

2011-01-17 Thread Ron Adam
Is this on purpose? Python 3.2rc1 (py3k:88040, Jan 15 2011, 18:11:39) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> Exception.__name__ 'Exception' >>> e = Exception('has no name') >>> e.__name__ Traceback (most recent call last): File "", lin

Re: [Python-Dev] devguide: Add a doc outlining how to add something to the stdlib.

2011-01-17 Thread Brett Cannon
On Mon, Jan 17, 2011 at 12:00, Antoine Pitrou wrote: > On Sun, 16 Jan 2011 21:38:43 +0100 > brett.cannon wrote: >> + >> +Adding to a pre-existing module >> +--- >> + >> +If you have found that a function, method, or class is useful and you >> believe >> +it would be u

Re: [Python-Dev] devguide: Add a doc outlining how to add something to the stdlib.

2011-01-17 Thread Antoine Pitrou
On Sun, 16 Jan 2011 21:38:43 +0100 brett.cannon wrote: > + > +Adding to a pre-existing module > +--- > + > +If you have found that a function, method, or class is useful and you believe > +it would be useful to the general Python community, there are some steps to > go

Re: [Python-Dev] [python-committers] [RELEASED] Python 3.2 rc 1

2011-01-17 Thread R. David Murray
On Mon, 17 Jan 2011 08:33:42 +, Mark Summerfield wrote: > from ..Graphics import Xpm > SVG = 1 > > I can do the relative import with Python 3.0 and 3.1 but not with > 3.2rc1: What about 3.1.3? I wonder if it is related to this issue: http://bugs.python.org/issue7902 -- R. David Murra

Re: [Python-Dev] [python-committers] [RELEASED] Python 3.2 rc 1

2011-01-17 Thread Mark Summerfield
On Mon, 17 Jan 2011 09:23:39 -0500 "R. David Murray" wrote: > On Mon, 17 Jan 2011 08:33:42 +, Mark Summerfield > wrote: > > from ..Graphics import Xpm > > SVG = 1 > > > > I can do the relative import with Python 3.0 and 3.1 but not with > > 3.2rc1: > > What about 3.1.3? I wonder if it is r

Re: [Python-Dev] os.ioprio_get() and os.ioprio_set()

2011-01-17 Thread Antoine Pitrou
On Mon, 17 Jan 2011 14:53:19 +0100 Giampaolo Rodolà wrote: > I've recently implemented this functionality in psutil: > http://code.google.com/p/psutil/issues/detail?id=147 > If desired, I can contribute a patch for the os module, altough being > such functions Linux-only, I'm not sure os module is

[Python-Dev] os.ioprio_get() and os.ioprio_set()

2011-01-17 Thread Giampaolo Rodolà
I've recently implemented this functionality in psutil: http://code.google.com/p/psutil/issues/detail?id=147 If desired, I can contribute a patch for the os module, altough being such functions Linux-only, I'm not sure os module is the right place for them to land. Also, I've been thinking about th

Re: [Python-Dev] [python-committers] [RELEASED] Python 3.2 rc 1

2011-01-17 Thread Senthil Kumaran
On Mon, Jan 17, 2011 at 2:03 PM, Mark Summerfield wrote: > Hi Georg, > > I can't be sure it is a bug, but there is a definite difference of > behavior between 3.0/3.1 and 3.2rc1. > > I can do the relative import with Python 3.0 and 3.1 but not with > 3.2rc1: Are you sure that the package that you

Re: [Python-Dev] [python-committers] [RELEASED] Python 3.2 rc 1

2011-01-17 Thread Mark Summerfield
Hi Georg, I can't be sure it is a bug, but there is a definite difference of behavior between 3.0/3.1 and 3.2rc1. Given this directory layout: $ ls -R Graphics/ Graphics/: __init__.py Vector Xpm.py Graphics/Vector: __init__.py Svg.py And these files: $ cat Graphics/__init__.py __all__ = [