[issue3112] implement PEP 3134 exception reporting

2008-06-22 Thread Adam Olsen
Adam Olsen <[EMAIL PROTECTED]> added the comment: On Sun, Jun 22, 2008 at 2:56 PM, Antoine Pitrou <[EMAIL PROTECTED]> wrote: > Le dimanche 22 juin 2008 à 20:40 +, Adam Olsen a écrit : >> Passing in e.args is probably sufficient. > > I think it's very optimistic :-) Some exception objects can

[issue2813] No float formatting in PyString_FromFormat

2008-06-22 Thread Jean Brouwers
Changes by Jean Brouwers <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10705/stringobject_format_Lf.patch ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue2813] No float formatting in PyString_FromFormat

2008-06-22 Thread Jean Brouwers
Jean Brouwers <[EMAIL PROTECTED]> added the comment: The tests for PyString_FromFormat are in file Modules/_testcapimodule.c. Attached is yet another update of the patch, this one also includes 3 tests for the new %f format specification added to file Modules/_testcapimodule.c. Added file: ht

[issue2813] No float formatting in PyString_FromFormat

2008-06-22 Thread Jean Brouwers
Changes by Jean Brouwers <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10703/stringobject_format_Lf.patch ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue2813] No float formatting in PyString_FromFormat

2008-06-22 Thread Jean Brouwers
Jean Brouwers <[EMAIL PROTECTED]> added the comment: Another rev of the patch now including updates to 2 documentation files: Doc/c-api/exceptions.rst and Doc/c-api/string.rst. As before the patch is relative to the source of Python 2.6b1. Where should test cases for the new formats in the Py

[issue2885] Create the urllib package

2008-06-22 Thread Senthil
Senthil <[EMAIL PROTECTED]> added the comment: - Docs updated. - Still pending: 2to3 updates and Deprecation warnings. ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3142] urllib docs don't match the new modules

2008-06-22 Thread Senthil
Senthil <[EMAIL PROTECTED]> added the comment: Hi Georg, Updated all the required docs and Committed revision 64476. Let me know if any more changes required. Thanks, Senthil ___ Python tracker <[EMAIL PROTECTED]> _

[issue3173] external strftime for Python?

2008-06-22 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: So how does it work for non-English locales? -- nosy: +loewis ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3161] Missing import for sys in _abcoll

2008-06-22 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Applied in r64475 . Thanks for the patch. -- resolution: -> accepted status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3173] external strftime for Python?

2008-06-22 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Ummm... I think I only modified timemodule.c. datetimemodule.c probably needs a tweak as well. I need to get this off my desk though. ___ Python tracker <[EMAIL PROTECTED]>

[issue3173] external strftime for Python?

2008-06-22 Thread Skip Montanaro
New submission from Skip Montanaro <[EMAIL PROTECTED]>: Back in April we had a thread on xmlrpclib's problematic handling of dates before 1900: http://thread.gmane.org/gmane.comp.python.devel/93273/focus=93309 I'm still of the opinion that strftime() is the culprit and xmlrpclib is just an

[issue3165] cPickle recursion problem

2008-06-22 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: Applied this patch. Daniel, don't know about that "rule"... I didn't get any warning with gcc... Anyway, this fixes the issue of #2702. Thanks cuerty! -- resolution: -> accepted status: open -> closed ___

[issue2702] pickling of large recursive structures crashes cPickle

2008-06-22 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: Commited this patch to the test cases, and the patch from #3165 to fix the problem, thank you all! -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue3161] Missing import for sys in _abcoll

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

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

2008-06-22 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: I say docs. -- assignee: -> georg.brandl components: +Documentation -Extension Modules nosy: +benjamin.peterson, georg.brandl ___ Python tracker <[EMAIL PROTECTED]>

[issue1534607] IndexError: Add bad index to msg

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

[issue1534607] IndexError: Add bad index to msg

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

[issue1180470] BaseHTTPServer uses deprecated mimetools.Message

2008-06-22 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Let's save ourselves the trouble... -- nosy: +benjamin.peterson resolution: -> out of date status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> __

[issue3172] test macos skipped "unexpected" on linux2

2008-06-22 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: This was fixed on the trunk by r64408. -- nosy: +benjamin.peterson resolution: -> out of date status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> __

[issue3085] chapter 17.1.3.5 'Replacing os.popen*' in the Python library reference contains an error

2008-06-22 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-l

[issue2813] No float formatting in PyString_FromFormat

2008-06-22 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: Jean, you can increase *hugely* the possibility of this being accepted if you submit a comprehensive suite test for this. Thanks!! -- nosy: +facundobatista ___ Python tracker <[EMAIL PROTECTED]>

[issue2813] No float formatting in PyString_FromFormat

2008-06-22 Thread Jean Brouwers
Changes by Jean Brouwers <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10703/stringobject_format_Lf.patch ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue2813] No float formatting in PyString_FromFormat

2008-06-22 Thread Jean Brouwers
Changes by Jean Brouwers <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10702/stringobject_format_Lf.patch ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue2813] No float formatting in PyString_FromFormat

2008-06-22 Thread Jean Brouwers
Jean Brouwers <[EMAIL PROTECTED]> added the comment: Attached is another patch for file Objects/stringobject.c(relative to Python 2.6b1) which supports the double %f and long double %LF formats. However, %Lf is included only if symbol LDBL_DIG is defined in header file on the underlying pl

[issue3165] cPickle recursion problem

2008-06-22 Thread Daniel Darabos
Daniel Darabos <[EMAIL PROTECTED]> added the comment: Added lines have to come after the "static char..." declarations to comply with C. Unfortunately I am not experienced with building Python on Windows, so I could not really try the patch, sorry. (I can get a cPickle.pyd, but it does not repla

[issue3167] math test fails on Solaris 10

2008-06-22 Thread Jean Brouwers
Jean Brouwers <[EMAIL PROTECTED]> added the comment: Here is that in from 32- and 64-bit Python 2.6b1: > ./python (32-bit) Python 2.6b1 (r26b1:64398, Jun 20 2008, 09:20:49) [C] on sunos5 Type "help", "copyright", "credits" or "license" for more information. >>> import math >>> math.log(float('-i

[issue3172] test macos skipped "unexpected" on linux2

2008-06-22 Thread Jean Brouwers
New submission from Jean Brouwers <[EMAIL PROTECTED]>: Test test_macos is reported as an "unexpected skip" on linux2 by Python 2.6b1 make test. 35 tests skipped: ... test_macos test_macostools ... ... 2 skips unexpected on linux2: test_tcl test_macos $ uname -a Linux ... 2.6.9-

[issue1003935] xrange overflows

2008-06-22 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: This was fixed for Py3.0. No interest was shown in backporting. -- resolution: -> out of date status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue2702] pickling of large recursive structures crashes cPickle

2008-06-22 Thread Daniel Darabos
Daniel Darabos <[EMAIL PROTECTED]> added the comment: It works for me as a test case too: test_deep_recursive (__main__.cPickleDeepRecursive) ... ERROR == ERROR: test_deep_recursive (__main__.cPickleDeepRecursive) -

[issue775340] OSX 'freeze' bug

2008-06-22 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: Justin, Jack, how this evolved to the newer Python versions? Do you think it's worth it to keep it open? Thank you! -- nosy: +facundobatista ___ Python tracker <[EMAIL PROTECTED]>

[issue2702] pickling of large recursive structures crashes cPickle

2008-06-22 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: Daniel, it'd be great, because it does not crash in linux, so I can not test it... and I have a patch to apply (see issue 3165), so I wanted to test it that way. ___ Python tracker <[EMAIL PROTECTED]>

[issue2702] pickling of large recursive structures crashes cPickle

2008-06-22 Thread Daniel Darabos
Daniel Darabos <[EMAIL PROTECTED]> added the comment: I have just quickly pasted it into an interpreter. Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> class Node(object): ... pass

[issue2702] pickling of large recursive structures crashes cPickle

2008-06-22 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: Could you please tell me if this problem arises with this test? -- keywords: +patch nosy: +facundobatista Added file: http://bugs.python.org/file10701/test_cpickle.diff ___ Python tracker <[EMAIL

[issue1746088] long.__str__ is quadratic time

2008-06-22 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Still waiting for the patch. -- assignee: rhettinger -> ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3069] Let set.union and set.intersection accept multiple arguments

2008-06-22 Thread Raymond Hettinger
Changes by Raymond Hettinger <[EMAIL PROTECTED]>: -- status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-l

[issue3051] heapq change breaking compatibility

2008-06-22 Thread Raymond Hettinger
Changes by Raymond Hettinger <[EMAIL PROTECTED]>: -- status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-l

[issue701743] Reloading pseudo modules

2008-06-22 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: Walter, the import mechanisms changed by a big rework from Brett Cannon in the last months. Do you think still have a use case that should be fulfilled? Do you want to update your patch? Thank you! -- nosy: +facundobatista __

[issue678464] Docs don't define sequence-ness very well

2008-06-22 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: Skip, don't you think it's better to raise this kind of generic question in the python-dev list? This should probably lay down here for ever before a discussion raises to decide this. -- nosy: +facundobatista __

[issue1567948] poplib.py list interface

2008-06-22 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: Hasan, are you still interested in this or wants to drop this request? Passing almost two years without comments it's no good if you'll be the package maintainer. Thanks! -- nosy: +facundobatista ___

[issue3112] implement PEP 3134 exception reporting

2008-06-22 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Le dimanche 22 juin 2008 à 20:40 +, Adam Olsen a écrit : > > How do you duplicate an instance of an user-defined exception? Using > an > > equivalent of copy.deepcopy()? It will probably end up much more > > expensive than the above-mentio

[issue3112] implement PEP 3134 exception reporting

2008-06-22 Thread Adam Olsen
Adam Olsen <[EMAIL PROTECTED]> added the comment: On Sun, Jun 22, 2008 at 2:20 PM, Antoine Pitrou <[EMAIL PROTECTED]> wrote: > > Antoine Pitrou <[EMAIL PROTECTED]> added the comment: > > Le dimanche 22 juin 2008 à 19:57 +, Adam Olsen a écrit : >> That's still O(n). I'm not so easily convince

[issue3112] implement PEP 3134 exception reporting

2008-06-22 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Le dimanche 22 juin 2008 à 19:57 +, Adam Olsen a écrit : > That's still O(n). I'm not so easily convinced it's cheap enough. O(n) when n will almost never be greater than 5 (and very often equal to 1 or 2), and when the unit is the cost

[issue3112] implement PEP 3134 exception reporting

2008-06-22 Thread Adam Olsen
Adam Olsen <[EMAIL PROTECTED]> added the comment: On Sun, Jun 22, 2008 at 1:48 PM, Antoine Pitrou <[EMAIL PROTECTED]> wrote: > > Antoine Pitrou <[EMAIL PROTECTED]> added the comment: > > Le dimanche 22 juin 2008 à 19:23 +, Adam Olsen a écrit : >> For this behaviour, this is the most natural w

[issue3112] implement PEP 3134 exception reporting

2008-06-22 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Le dimanche 22 juin 2008 à 19:23 +, Adam Olsen a écrit : > For this behaviour, this is the most natural way to write it. > Conceptually, there shouldn't be a cycle I agree your example is not far-fetched. How about avoiding cycles for imp

[issue1523853] 2.4.2 file.read caches EOF state

2008-06-22 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: In Linux, it seems to be the behaviour of the underlying C function 'fread'. Do you think it's ok to add the following line in the read() documentation? """ As this function depends of the underlying C function :cfunc:`fread`, inheritates i

[issue3112] implement PEP 3134 exception reporting

2008-06-22 Thread Adam Olsen
Adam Olsen <[EMAIL PROTECTED]> added the comment: On Sun, Jun 22, 2008 at 1:04 PM, Antoine Pitrou <[EMAIL PROTECTED]> wrote: > > Antoine Pitrou <[EMAIL PROTECTED]> added the comment: > > Le dimanche 22 juin 2008 à 17:17 +, Adam Olsen a écrit : >> I meant only that trivial cycles should be det

[issue3112] implement PEP 3134 exception reporting

2008-06-22 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Le dimanche 22 juin 2008 à 17:17 +, Adam Olsen a écrit : > I meant only that trivial cycles should be detected. However, I > hadn't read your patch, so I didn't realize you already knew of a way > to create a non-trivial cycle. > > This

[issue3085] chapter 17.1.3.5 'Replacing os.popen*' in the Python library reference contains an error

2008-06-22 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: I don't maintain the 2.5 docs anymore, at least for such minor bugs. ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3146] Sphinx/LaTeX fails on Python 3.0b1 documentation

2008-06-22 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Thanks, should be fixed with Sphinx r64465. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> _

[issue3085] chapter 17.1.3.5 'Replacing os.popen*' in the Python library reference contains an error

2008-06-22 Thread Manuel Kaufmann
Manuel Kaufmann <[EMAIL PROTECTED]> added the comment: This bug was reported on Python 2.5 version and was applied on 2.6 branch. That's correct? ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3157] sqlite3 minor documentation issues

2008-06-22 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: I fixed the docstring in r64463 (2.5 branch, already fixed in trunk) and expanded the connect() docstring in r64464. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECT

[issue3085] chapter 17.1.3.5 'Replacing os.popen*' in the Python library reference contains an error

2008-06-22 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Fixed in r64461. Thanks! -- resolution: -> fixed ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3112] implement PEP 3134 exception reporting

2008-06-22 Thread Adam Olsen
Adam Olsen <[EMAIL PROTECTED]> added the comment: On Sun, Jun 22, 2008 at 8:07 AM, Antoine Pitrou <[EMAIL PROTECTED]> wrote: > You mean they should be detected when the exception is set? I was afraid > that it may make exception raising slower. Reporting is not performance > sensitive in comparis

[issue1974] email.MIMEText.MIMEText.as_string incorrectly folding long subject header

2008-06-22 Thread Chris Withers
Chris Withers <[EMAIL PROTECTED]> added the comment: Andi, I'm in total agreement with you :-) (so if this bug could get fixed, both issues could get closed) ___ Python tracker <[EMAIL PROTECTED]>

[issue3165] cPickle recursion problem

2008-06-22 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: What is this fixing? Could you please provide a test cases that fails without this patch? Thank you!! -- nosy: +facundobatista ___ Python tracker <[EMAIL PROTECTED]>

[issue3164] cPickle calls to save_string and save_unicode with unicode objects.

2008-06-22 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: Commited in 64455, thank you! -- nosy: +facundobatista resolution: -> accepted status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3112] implement PEP 3134 exception reporting

2008-06-22 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Le dimanche 22 juin 2008 à 07:04 +, Adam Olsen a écrit : > Adam Olsen <[EMAIL PROTECTED]> added the comment: > > * cause/context cycles should be avoided. Naive traceback printing > could become confused, and I can't think of any acciden

[issue2732] curses.textpad loses characters at the end of lines

2008-06-22 Thread A.M. Kuchling
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: This bug was fixed in 2.5 and 2.6, in rev. 60118 and 60119. Thanks for your bug report! -- assignee: -> akuchling nosy: +akuchling resolution: -> fixed status: open -> closed ___ Python tracker <

[issue2722] os.getcwd fails for long path names on linux

2008-06-22 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: Went for the malloc only patch. Just fixed a small detail (weird corner case if malloc returned NULL first time, res will be unassigned). The test could be better (no necessity of using a recursive function, it could be done with a while), b

[issue1974] email.MIMEText.MIMEText.as_string incorrectly folding long subject header

2008-06-22 Thread Andi Albrecht
Andi Albrecht <[EMAIL PROTECTED]> added the comment: For me this issue seems to be a duplicate of issue1645148. In my opinion the test case that checks if headers created by strings or Header instances are equal is incorrect. It shouldn't set the continuation whitespace explicitly when creating

[issue3167] math test fails on Solaris 10

2008-06-22 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Could you tell me what >>> import math >>> math.log(float('-inf')) gives instead of the expected ValueError? ___ Python tracker <[EMAIL PROTECTED]> _

[issue3168] cmath test fails on Solaris 10

2008-06-22 Thread Mark Dickinson
Changes by Mark Dickinson <[EMAIL PROTECTED]>: -- assignee: -> marketdickinson nosy: +marketdickinson ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue3167] math test fails on Solaris 10

2008-06-22 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: I'll take a look. -- assignee: -> marketdickinson nosy: +marketdickinson ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3112] implement PEP 3134 exception reporting

2008-06-22 Thread Adam Olsen
Adam Olsen <[EMAIL PROTECTED]> added the comment: * cause/context cycles should be avoided. Naive traceback printing could become confused, and I can't think of any accidental way to provoke it (besides the problem mentioned here.) * I suspect PyErr_Display handled string exceptions in 2.x, and