[issue3167] math test fails on Solaris 10

2008-06-29 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Okay---so committing this would be premature at this point. It looks like the test_math errors are the same problem that Jean found. Skip, does LDFLAGS=-xlibmieee ./configure ... do anything to alleviate the test_math errors? The cmath pro

[issue3233] Timestamp stored in ZIP file not correct ?

2008-06-29 Thread Stefan Sonnenberg-Carstens
New submission from Stefan Sonnenberg-Carstens <[EMAIL PROTECTED]>: Given the attached source, I can produce these results: [EMAIL PROTECTED] ~]$ python ziptest.py Start 10:05:54 ZIP stored mtime: (2008, 6, 29, 10, 5, 54) Original mtime: (2008, 6, 29, 10, 5, 54) Duration 0.00291705131531 Stop 1

[issue3233] Timestamp stored in ZIP file not correct ?

2008-06-29 Thread Stefan Sonnenberg-Carstens
Stefan Sonnenberg-Carstens <[EMAIL PROTECTED]> added the comment: [EMAIL PROTECTED] ~]$ python -V Python 2.5.1 [EMAIL PROTECTED] ~]$ uname -a Linux localhost.localdomain 2.6.25.6-55.fc9.i686 #1 SMP Tue Jun 10 16:27:49 EDT 2008 i686 i686 i386 GNU/Linux ___ Pyth

[issue3233] Timestamp stored in ZIP file not correct ?

2008-06-29 Thread Stefan Sonnenberg-Carstens
Stefan Sonnenberg-Carstens <[EMAIL PROTECTED]> added the comment: I changed the script a bit, so that the txt file is not getting recreated every time. It gives: [EMAIL PROTECTED] ~]$ python ziptest.py Start 10:15:05 ZIP stored mtime: (2008, 6, 29, 10, 15, 4) Original mtime: (2008, 6, 29, 10, 1

[issue2235] __eq__ / __hash__ check doesn't take inheritance into account

2008-06-29 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Well, I think I figured out why the __hash__ changes were backported from Py3k: without them, the existence of object.__hash__ makes the Hashable ABC completely useless (every newstyle class meets it). I see two options here. Option 1 is to rev

[issue3167] math test fails on Solaris 10

2008-06-29 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: > LDFLAGS=-xlibmieee ./configure ... I guess that should probably be: LDFLAGS="-Xlinker -xlibmieee" ./configure ___ Python tracker <[EMAIL PROTECTED]> __

[issue3233] Timestamp stored in ZIP file not correct ?

2008-06-29 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: That's a limitation of the zip file format. It uses DOS time stamps, which only support 5 bits for representing seconds. As a consequence, within a minute, ZIP can only store even seconds. If the number of seconds in the minute is odd on the

[issue3167] math test fails on Solaris 10

2008-06-29 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Skip: one more question. What does cmath.exp(710.0 + 1.5j) give instead of the expected OverflowError? Incidentally, the Solaris buildbot seems happy enough at the moment. I wonder what the difference between Skip's machine and the buil

[issue3147] tests for sys.getsizeof fail on win64

2008-06-29 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: Fixed in r64533. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue3234] subprocess.py strips last character when raising an AttributeError

2008-06-29 Thread Martin Mokrejs
New submission from Martin Mokrejs <[EMAIL PROTECTED]>: I try to get working pipe emulation using Popen. I try to pass StringIO object to p1.stdin of the first process and I got the following: File "/usr/lib/python2.5/subprocess.py", line 587, in __init__ errread, errwrite) = self._get_han

[issue3235] Improve subprocess module usage

2008-06-29 Thread Martin Mokrejs
New submission from Martin Mokrejs <[EMAIL PROTECTED]>: Although I do appreciate that you try to improve python it is not clear to me from http://docs.python.org/lib/module-subprocess.html: 1. Why the old functions have been deprecated 2. I can pipe together two processes. But how can I use pipe

[issue3235] Improve subprocess module usage

2008-06-29 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: Please link to http://www.python.org/dev/peps/pep-0324/ from the docs webpage at least. ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3154] "Quick search" box renders too long on FireFox 3

2008-06-29 Thread Martina Oefelein
Martina Oefelein <[EMAIL PROTECTED]> added the comment: I can reproduce it with Safari if I enlarge the font size (Cmd +), and it looks like this will happen with *any* browser. Main cause is that the with of the sidebar is set in pixels, while the size of the Quick search box (and the sideb

[issue1580] Use shorter float repr when possible

2008-06-29 Thread Mark Dickinson
Changes by Mark Dickinson <[EMAIL PROTECTED]>: -- nosy: +marketdickinson ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list

[issue600362] relocate cgi.parse_qs() into urlparse

2008-06-29 Thread Senthil
Changes by Senthil <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10496/issue600362.diff ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue600362] relocate cgi.parse_qs() into urlparse

2008-06-29 Thread Senthil
Changes by Senthil <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10771/issue600362-py26.diff ___ Python tracker <[EMAIL PROTECTED]> ___

[issue600362] relocate cgi.parse_qs() into urlparse

2008-06-29 Thread Senthil
Changes by Senthil <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10772/issue600362-py3k.diff ___ Python tracker <[EMAIL PROTECTED]> ___

[issue600362] relocate cgi.parse_qs() into urlparse

2008-06-29 Thread Senthil
Senthil <[EMAIL PROTECTED]> added the comment: - Updated patches for Python 2.6 and Python 3.0 - Moved the tests. - Updated docs. Somebody please review this so that it can checked in. ___ Python tracker <[EMAIL PROTECTED]>

[issue3236] ints contructed from strings don't use the smallint constants

2008-06-29 Thread Antoine Pitrou
New submission from Antoine Pitrou <[EMAIL PROTECTED]>: The following says it all: >>> 1+1 is 2 True >>> int('2') is 2 False >>> int(b'2') is 2 False -- components: Interpreter Core messages: 68947 nosy: pitrou severity: normal status: open title: ints contructed from strings don't use

[issue2235] __eq__ / __hash__ check doesn't take inheritance into account

2008-06-29 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Attached patch allows classes to explicitly block inheritance of object.__hash__ by setting the tp_hash slot to Py_None or the __hash__ attribute to None. This is similar to the approach used in Py3k, but allows __hash__ to be inherited by defa

[issue2235] __eq__ / __hash__ check doesn't take inheritance into account

2008-06-29 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Unassigning for the moment - I'll take a look at adding the Py3k warning back in at some point, but the main thing I would like now is a sanity check from Guido or Barry (or anyone else happy to dig into the guts of typeobject.c) that the basic

[issue3236] ints contructed from strings don't use the smallint constants

2008-06-29 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: I suspect this is because of the transition from PyInt to PyLong: Python 2.6b1+ (trunk:64580M, Jun 28 2008, 18:04:04) [GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin Type "help", "copyright", "credits" or "license" for more informa

[issue3234] subprocess.py strips last character when raising an AttributeError

2008-06-29 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: No, the class you are creating with cStringIO.cStringIO is actually called cStringIO.cStringI. -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker <[EMA

[issue3167] math test fails on Solaris 10

2008-06-29 Thread Jean Brouwers
Jean Brouwers <[EMAIL PROTECTED]> added the comment: For comparison, 64-bit -xO5 Python build: Python 2.6b1 (r26b1:64398, Jun 28 2008, 12:50:06) [C] on sunos5 Type "help", "copyright", "credits" or "license" for more information. >>> import cmath >>> cmath.exp(710.0 + 1.5j) Traceback (most recen

[issue3167] math test fails on Solaris 10

2008-06-29 Thread Jean Brouwers
Jean Brouwers <[EMAIL PROTECTED]> added the comment: What about this case? Should cmath not produce the same result as math: >>> math.log(float('-inf')) Traceback (most recent call last): File "", line 1, in ValueError: math domain error >>> cmath.log(float('-inf')) (inf+3.1415926535897931j)

[issue3167] math test fails on Solaris 10

2008-06-29 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: > What about this case? Should cmath not produce the same result as math: No; this is correct, I think. Note that the cmath.log result has nonzero imaginary part, so can't be represented as a float. Similarly, math.sqrt(-1) is an error, wh

[issue3168] cmath test fails on Solaris 10

2008-06-29 Thread Jean Brouwers
Jean Brouwers <[EMAIL PROTECTED]> added the comment: I have not yet been able to duplicate the problem in a smaller test case, but I did stumble into a fix. Changing the following statement in the cmath_log function from if (PyTuple_GET_SIZE(args) == 2) x = c_quot(x, c

[issue3235] Improve subprocess module usage

2008-06-29 Thread David
David <[EMAIL PROTECTED]> added the comment: See if Doug Hellman's module of the week helps any http://blog.doughellmann.com/2007/07/pymotw-subprocess.html I plan on asking him if we can include some of his examples in the Python 3000 docs. Subprocess is new enough and gets enough questions on

[issue3168] cmath test fails on Solaris 10

2008-06-29 Thread Jean Brouwers
Jean Brouwers <[EMAIL PROTECTED]> added the comment: Attached is a test case which does demonstrate the problem. See the top of that file. I will post this at the SUN C Forum. Added file: http://bugs.python.org/file10774/SunC-64bit-xO5-bug.c ___ Python tra

[issue3168] cmath test fails on Solaris 10

2008-06-29 Thread Jean Brouwers
Changes by Jean Brouwers <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10762/c_quot.c ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3168] cmath test fails on Solaris 10

2008-06-29 Thread Jean Brouwers
Changes by Jean Brouwers <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10774/SunC-64bit-xO5-bug.c ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3168] cmath test fails on Solaris 10

2008-06-29 Thread Jean Brouwers
Jean Brouwers <[EMAIL PROTECTED]> added the comment: File but showing -xO0 thru -xO5 results. Added file: http://bugs.python.org/file10775/SunC-64bit-xO5-bug.c ___ Python tracker <[EMAIL PROTECTED]> _

[issue3235] Improve subprocess module usage

2008-06-29 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: 1. The documentation never gives a rationale for deprecating things. To find out why they are deprecated, you'll typically have to research what checkins to a code base have been made that added the deprecation, and perhaps also ask on mailin

[issue3236] ints contructed from strings don't use the smallint constants

2008-06-29 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: For the old int type, implementing this was trivial, as the conversion converted into a C long, then called PyInt_FromLong. For long, it's much more tricky, as no C type can be used to store the intermediate result. So instead, PyLong_FromSt

[issue3168] cmath test fails on Solaris 10

2008-06-29 Thread Jean Brouwers
Jean Brouwers <[EMAIL PROTECTED]> added the comment: Without changing the cmath_log code, another workaround is to compile Python with optimization level -xO2 or less for 64-bit using Sun C. ___ Python tracker <[EMAIL PROTECTED]>

[issue3237] idlelib3.0 still using xrange

2008-06-29 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: As reported in the py3 list File "/root/Py3kb1/lib/python3.0/tkinter/__init__.py", line 1409, in __call__ return self.func(*args) File "/root/Py3kb1/lib/python3.0/idlelib/MultiCall.py", line 165, in handler r = l[i](event)

[issue3237] idlelib3.0 still using xrange

2008-06-29 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- assignee: -> kbk nosy: +kbk ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-

[issue3168] cmath test fails on Solaris 10

2008-06-29 Thread Jean Brouwers
Jean Brouwers <[EMAIL PROTECTED]> added the comment: There is another, perhaps related issue on Solaris. The compiler warns that function finite is implicitly defined. Commenting out this line in pyconfig.h as /* #define HAVE_FINITE 1 */ make that warning go away. If there is no function

[issue3238] backport python 3.0 language functionality to python 2.6 by adding 7 opcodes to ceval.c

2008-06-29 Thread kai zhu
New submission from kai zhu <[EMAIL PROTECTED]>: this patch touches only Python/ceval.c. 1. the only existing thing it modifies is PyEval_EvalFrameEx (adds 7 extra cases for the new 3.0 opcodes, doesn't mess w/ any of the existing ones, or anything else as a matter of fact) 2. that, plus it def

[issue2480] eliminate recursion in pickling

2008-06-29 Thread Aaron Gallagher
Aaron Gallagher <[EMAIL PROTECTED]> added the comment: I've provided an alternate implementation of this that works with very minimal modification to pickle.py. See issue 3119 for the patch. -- nosy: +habnabit ___ Python tracker <[EMAIL PROTECTED]> <

[issue2834] re.IGNORECASE not Unicode-ready

2008-06-29 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: This new patch also introduces re.ASCII as discussed on the mailing-list. Added file: http://bugs.python.org/file10777/reunicode2.patch ___ Python tracker <[EMAIL PROTECTED]>

[issue2834] re.IGNORECASE not Unicode-ready

2008-06-29 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Improved patch which also detects incompatibilities for "(?u)". Added file: http://bugs.python.org/file10778/reunicode3.patch ___ Python tracker <[EMAIL PROTECTED]> _

[issue3236] ints contructed from strings don't use the smallint constants

2008-06-29 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Le dimanche 29 juin 2008 à 17:43 +, Martin v. Löwis a écrit : > For long, it's much more tricky, as no C type can be used to store the > intermediate result. So instead, PyLong_FromString already allocates a > sufficiently-sized long objec

[issue3239] curses/textpad.py incorrectly and redundantly imports ascii

2008-06-29 Thread Georgij Kondratjev
New submission from Georgij Kondratjev <[EMAIL PROTECTED]>: Line 'import curses, ascii' should be replaced with 'import curses' -- components: Library (Lib) messages: 68969 nosy: orivej severity: normal status: open title: curses/textpad.py incorrectly and redundantly imports ascii versi

[issue2775] Implement PEP 3108

2008-06-29 Thread Georgij Kondratjev
Georgij Kondratjev <[EMAIL PROTECTED]> added the comment: Not creating new bug entry because everybody can quickly fix it. In urllib/request.py some instances of URLError are raised with "raise urllib.error.URLError" and this works, buth there are lines with "raise URLError" which produces "Name

[issue3238] backport python 3.0 language functionality to python 2.6 by adding 7 opcodes to ceval.c

2008-06-29 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: The first beta release for 2.6 has been made, so no new features can be accepted here. Deferring this to 2.7. -- nosy: +loewis versions: +Python 2.7 -Python 2.6 ___ Python tracker <[EMAIL PROTECTE

[issue3236] ints contructed from strings don't use the smallint constants

2008-06-29 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: > The bug entry is just for pointing out a missed optimization > opportunity. The first mentioned solution would already be an > improvement, although of course it would even be better to skip the > intermediary allocation altogether. Can yo

[issue3236] ints contructed from strings don't use the smallint constants

2008-06-29 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Le dimanche 29 juin 2008 à 21:52 +, Martin v. Löwis a écrit : > Can you propose an implementation strategy that doesn't create the > object, yet still avoids duplication of large chunks of code? If by "duplicating large chunks of code", y

[issue2683] subprocess.Popen.communicate takes bytes, not str

2008-06-29 Thread Rafael Zanella
Rafael Zanella <[EMAIL PROTECTED]> added the comment: On subprocess.py the new method communicate() doesn't encode the string: """ _communicate(self, input): ... if isinstance(input, str): input = input.encode() ... """ I've attached a patch that adds the str.encode() call on communicate(

[issue2683] subprocess.Popen.communicate takes bytes, not str

2008-06-29 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Hmm. I think it's better to make people explicity encode their string. ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue3008] Let bin/oct/hex show floats

2008-06-29 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Here's some Python code to translate floats to hex strings and back, in case it's useful. Added file: http://bugs.python.org/file10780/hex_float.py ___ Python tracker <[EMAIL PROTECTED]>

[issue3008] Let bin/oct/hex show floats

2008-06-29 Thread Mark Dickinson
Changes by Mark Dickinson <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10729/hex_float.py ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue3240] IDLE environment corrupts string.letters

2008-06-29 Thread Roger Upole
New submission from Roger Upole <[EMAIL PROTECTED]>: The problem seems to stem from this line in IOBinding.py: locale.setlocale(locale.LC_CTYPE, "") >From the command prompt: Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits

[issue2054] add ftp-tls support to ftplib - RFC 4217

2008-06-29 Thread Bill Janssen
Bill Janssen <[EMAIL PROTECTED]> added the comment: The 2.6/3.0 changes are now up-to-date. We could reconsider this problem. My guess is that we still don't quite know what to do. I think the issue is that we need a way to "unwrap" the SSL-secured TCP stream, after it's been used. So we need

[issue1223] httplib does not handle ssl end of file properly

2008-06-29 Thread Bill Janssen
Bill Janssen <[EMAIL PROTECTED]> added the comment: I believe this is now fixed in the SVN. There's a new parameter on SSLSocket, suppress_ragged_eofs, which allows it to be enabled selectively, but default to True. -- resolution: -> accepted ___ Py

[issue3167] math test fails on Solaris 10

2008-06-29 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: I tried to configure with '-Xlinker -xlibmieee' added to LDFLAGS. Failed miserably. In fact, configure complained that my compiler couldn't create executables, told me to look at config.log for details then logged me out from the machine!

[issue3239] curses/textpad.py incorrectly and redundantly imports ascii

2008-06-29 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: The ascii module is used all around the file... if you don't import it, how would you use that functionality? -- nosy: +facundobatista resolution: -> invalid status: open -> closed ___ Python tra

[issue1291446] SSLObject breaks read semantics

2008-06-29 Thread Bill Janssen
Changes by Bill Janssen <[EMAIL PROTECTED]>: -- assignee: -> janssen nosy: +janssen ___ Python tracker <[EMAIL PROTECTED]> ___ ___ P

[issue2702] pickling of large recursive structures crashes cPickle

2008-06-29 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: Great, Amaury, I applied your second patch... it make all tests pass ok, :) Commited in 64595. Thank you all!! -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTE

[issue1608818] Sloppy error checking in listdir() for Posix

2008-06-29 Thread Rafael Zanella
Rafael Zanella <[EMAIL PROTECTED]> added the comment: Related/Similar: #3115 -- nosy: +zanella ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3240] IDLE environment corrupts string.letters

2008-06-29 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Why do you think string.letters gets corrupted? AFAICT, it's still correct. -- nosy: +loewis ___ Python tracker <[EMAIL PROTECTED]> _

[issue2325] isinstance(anything, MetaclassThatDefinesInstancecheck) raises instead of returning False

2008-06-29 Thread Rafael Zanella
Rafael Zanella <[EMAIL PROTECTED]> added the comment: So..., could this issue be closed ? -- nosy: +zanella ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue2913] idlelib/EditorWindow.py uses xrange()

2008-06-29 Thread Rafael Zanella
Rafael Zanella <[EMAIL PROTECTED]> added the comment: xrange has been deprecated on py_3k, so it's a valid one liner. -- keywords: +patch nosy: +zanella Added file: http://bugs.python.org/file10781/EditorWindow_-x-range.patch ___ Python tracker <[EMAI

[issue2325] isinstance(anything, MetaclassThatDefinesInstancecheck) raises instead of returning False

2008-06-29 Thread Matias Gonzalez
Matias Gonzalez <[EMAIL PROTECTED]> added the comment: Yes, it should be. I don't have permissions to. ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3238] backport python 3.0 language functionality to python 2.6 by adding 7 opcodes to ceval.c

2008-06-29 Thread kai zhu
kai zhu <[EMAIL PROTECTED]> added the comment: ok ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue3237] idlelib3.0 still using xrange

2008-06-29 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- resolution: -> duplicate status: open -> closed superseder: -> idlelib/EditorWindow.py uses xrange() ___ Python tracker <[EMAIL PROTECTED]> _

[issue2325] isinstance(anything, MetaclassThatDefinesInstancecheck) raises instead of returning False

2008-06-29 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- resolution: -> invalid status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3236] ints contructed from strings don't use the smallint constants

2008-06-29 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: This is now fixed in r64596. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue2325] isinstance(anything, MetaclassThatDefinesInstancecheck) raises instead of returning False

2008-06-29 Thread Jeffrey Yasskin
Jeffrey Yasskin <[EMAIL PROTECTED]> added the comment: I don't think so. It wouldn't be a bug if I wrote: >>> class Meta(type): ... def __instancecheck__(self, other): ... return True >>> isinstance(3, Meta) ... False but it is a bug that the isinstance call raises an exception. If recent

[issue3056] Simplify the Integral ABC

2008-06-29 Thread Jeffrey Yasskin
Jeffrey Yasskin <[EMAIL PROTECTED]> added the comment: Yeah, I'll take a look. Feel free to bug me if I haven't gotten to it in a couple more days. ___ Python tracker <[EMAIL PROTECTED]> __

[issue1622] zipfile hangs on certain zip files

2008-06-29 Thread Martin v. Löwis
Changes by Martin v. Löwis <[EMAIL PROTECTED]>: -- priority: normal -> high ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-l

[issue3241] warnings module prints garbage

2008-06-29 Thread Ralf Schmitt
New submission from Ralf Schmitt <[EMAIL PROTECTED]>: The warnings module prints garbage when the __file__ points to a binary. This happens e.g. when freezing applications with bbfreeze/py2exe. It's easy to reproduce even without freezing: ~/ python

[issue3242] Segfault in PyFile_SoftSpace/PyEval_EvalFrameEx with sys.stdout reassigned

2008-06-29 Thread Brodie Rao
New submission from Brodie Rao <[EMAIL PROTECTED]>: Running the attached script - which reassigns sys.stdout to an object that proxies sys.stdout, and eventually reassigns it back to the original object - using Apple's distribution of Python 2.5.1 on an x86 machine, I get the following crash:

[issue3242] Segfault in PyFile_SoftSpace/PyEval_EvalFrameEx with sys.stdout reassigned

2008-06-29 Thread Brodie Rao
Brodie Rao <[EMAIL PROTECTED]> added the comment: Actually, this seems to be a hardware issue, despite the consistency between runs and the duplication on another machine. I think you can ignore/close this bug. Sorry for the noise. ___ Python tracker <[EMAIL

[issue3241] warnings module prints garbage

2008-06-29 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: I just noticed that this also happens with 2.5. I first thought it was a regression, since I've never seen frozen programs print such garbage, it's apparently caused by bbfreeze choosing a dubious __file__ and by 2.6 having much more warnings st

[issue3239] curses/textpad.py incorrectly and redundantly imports ascii

2008-06-29 Thread Georgij Kondratjev
Georgij Kondratjev <[EMAIL PROTECTED]> added the comment: Sorry, I didn't not distinguish between curses module ascii and built-in function ascii. "import curses.ascii as ascii" works. Is this a good fix? ___ Python tracker <[EMAIL PROTECTED]>

[issue3239] curses/textpad.py incorrectly and redundantly imports ascii

2008-06-29 Thread Georgij Kondratjev
Georgij Kondratjev <[EMAIL PROTECTED]> added the comment: Or is it possible/better to use relative import? ___ Python tracker <[EMAIL PROTECTED]> ___ ___