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__ =
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
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
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
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
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
--
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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.
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
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
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
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
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 =
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
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.
28 matches
Mail list logo