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__ =

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 l...@qtrac.plus.com 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

[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

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à g.rod...@gmail.com 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

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 rdmur...@bitdance.com wrote: On Mon, 17 Jan 2011 08:33:42 +, Mark Summerfield l...@qtrac.plus.com 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

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 l...@qtrac.plus.com 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 --

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 python-check...@python.org 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

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 solip...@pitrou.net wrote: On Sun, 16 Jan 2011 21:38:43 +0100 brett.cannon python-check...@python.org wrote: + +Adding to a pre-existing module +--- + +If you have found that a function, method, or class is useful and

[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 stdin, line 1, in

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 solip...@pitrou.net wrote: On Sun, 16 Jan 2011 21:38:43 +0100 brett.cannon python-check...@python.org wrote: + +Adding to a pre-existing module +--- + +If you have found that a function, method, or class is

[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

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') e.__name__ Traceback

Re: [Python-Dev] Exception __name__ missing?

2011-01-17 Thread Benjamin Peterson
2011/1/17 Ron Adam r...@ronadam.com: 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:

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

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 br...@python.org 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

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 br...@python.org 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

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 rdmur...@bitdance.com wrote: On Mon, 17 Jan 2011 21:00:10 +0100, Antoine Pitrou solip...@pitrou.net wrote: On Sun, 16 Jan 2011 21:38:43 +0100 brett.cannon python-check...@python.org wrote: + +Adding to a pre-existing module

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

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 solip...@pitrou.net 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

Re: [Python-Dev] Exception __name__ missing?

2011-01-17 Thread Nick Coghlan
On Tue, Jan 18, 2011 at 7:09 AM, Scott Dial scott+python-...@scottdial.com 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

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 python-check...@python.org 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] 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

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 solip...@pitrou.net wrote: On Mon, 17 Jan 2011 23:37:07 +0100 brett.cannon python-check...@python.org wrote: + +To undo a patch, do:: + +    patch -R -p0 patch.diff + Or, simply and more reliably, use the corresponding VCS incantation

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 ncogh...@gmail.com wrote: On Tue, Jan 18, 2011 at 6:54 AM, Antoine Pitrou solip...@pitrou.net wrote: Well it *is* inconvenient in the case of maintainers.rst, which is often consulted casually for daily bug tracker work. Grepping

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 python-check...@python.org 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

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' e =

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 python-check...@python.org wrote: + +To undo a patch, do:: + +patch -R -p0 patch.diff + Antoine Or, simply and more reliably, use the

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 license for more information.