[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

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

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

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

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

[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

[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 accidental way

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

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

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

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

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

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

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

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

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

[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

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

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

[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 convinced it's

[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-mentioned O(n)

[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

[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

[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

[issue3051] heapq change breaking compatibility

2008-06-22 Thread Raymond Hettinger
Changes by Raymond Hettinger [EMAIL PROTECTED]: -- status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3051 ___ ___ Python-bugs-list

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

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

[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

[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 ... nodes =

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

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

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

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

[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('-inf')) -inf

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

[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 float.h on the

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

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

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

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

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

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

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

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

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

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

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

[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

[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

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

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

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

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

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

[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

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