[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

[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

[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,

[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

[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] http://bugs.python.org/issue3167

[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

[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) =

[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] http://bugs.python.org/issue3235 ___

[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

[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] http://bugs.python.org/issue1580 ___ ___ 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] http://bugs.python.org/issue600362 ___

[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] http://bugs.python.org/issue600362 ___

[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] http://bugs.python.org/issue600362 ___

[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

[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 information.

[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 [EMAIL

[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 recent call last):

[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,

[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,

[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

[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] http://bugs.python.org/issue3168 ___

[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 mailing

[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,

[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] http://bugs.python.org/issue3168

[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) File

[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] http://bugs.python.org/issue3237 ___ ___

[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

[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] http://bugs.python.org/issue2834

[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] http://bugs.python.org/issue2834

[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 object

[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

[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 NameError:

[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 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: 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 you

[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, you

[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] http://bugs.python.org/issue2683 ___

[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] http://bugs.python.org/issue3008 ___

[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 or

[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 to

[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 ___

[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

[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] http://bugs.python.org/issue1291446 ___ ___

[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 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] http://bugs.python.org/issue3240

[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] http://bugs.python.org/issue2325 ___

[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] http://bugs.python.org/issue2325 ___ ___

[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] http://bugs.python.org/issue3238 ___ ___ Python-bugs-list mailing list Unsubscribe:

[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] http://bugs.python.org/issue3237

[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] http://bugs.python.org/issue2325 ___

[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 builds

[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] http://bugs.python.org/issue3056 ___

[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] http://bugs.python.org/issue1622 ___ ___ Python-bugs-list

[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