[issue3786] _curses, _curses_panel & _multiprocessing can't be build in 2.6b3 w/ SunStudio 12

2008-09-07 Thread Michael Schmarck
Michael Schmarck <[EMAIL PROTECTED]> added the comment: I filed that as a bug against Python 2.6, because in 2.5.2, the curses modules could be built just fine. ___ Python tracker <[EMAIL PROTECTED]> _

[issue3803] Comparison operators - New rules undocumented in Python 3.0

2008-09-07 Thread Matt Giuca
New submission from Matt Giuca <[EMAIL PROTECTED]>: I've noticed that in Python 3.0, the <, >, <= and >= operators now raise a TypeError when comparing objects of different types, rather than ordering them "consistently but arbitrarily". The documentation doesn't yet reflect this behaviour. The

[issue3784] Incorrect compiler options used for cc of Sun Studio 12

2008-09-07 Thread Michael Schmarck
Michael Schmarck <[EMAIL PROTECTED]> added the comment: Attaching a log of the complete build process of Python 2.5.2. Added file: http://bugs.python.org/file11420/build-Python-2.5.2.log ___ Python tracker <[EMAIL PROTECTED]>

[issue3784] Incorrect compiler options used for cc of Sun Studio 12

2008-09-07 Thread Michael Schmarck
Michael Schmarck <[EMAIL PROTECTED]> added the comment: It's a warning. Added file: http://bugs.python.org/file11419/config.log ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3492] Zlib compress/decompress functions returning bytearray

2008-09-07 Thread Anand B Pillai
Anand B Pillai <[EMAIL PROTECTED]> added the comment: Hi Gregory, Let me know if I can help out some way in testing the #3797 patches on various platforms. Regards, --Anand ___ Python tracker <[EMAIL PROTECTED]>

[issue3802] smtpd.py __getaddr insufficient handling

2008-09-07 Thread Marcus CM
New submission from Marcus CM <[EMAIL PROTECTED]>: The __getaddr does not handle certain valid MAIL FROM well : For eg, <[EMAIL PROTECTED]> SIZE= AUTH=<> would result in a mismatch of bracket handling. Suggested fix is :- def __getaddr(self, keyword, arg): address = None

[issue3526] Customized malloc implementation on SunOS and AIX

2008-09-07 Thread Tim Peters
Tim Peters <[EMAIL PROTECTED]> added the comment: I have to admit that if Python /didn't/ know better than platform libc implementers in some cases, there would be no point to having obmalloc at all :-( What you (Martin) suggest is reasonable enough. ___ Pyth

[issue3526] Customized malloc implementation on SunOS and AIX

2008-09-07 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: > OTOH, if for some compelling reason it's believed Python knows better > than platform vendors, then obmalloc should be uglied-up on all paths to > make the enlightened choice. I'm proposing that obmalloc is changed to know better than syst

[issue3756] re.escape() does not work with bytes()

2008-09-07 Thread Andrew McNamara
Andrew McNamara <[EMAIL PROTECTED]> added the comment: I meant "I can certainly imagine use cases..." In case it's not clear, I think the implementation in the patch is "good enough" (unless someone can suggest any obvious optimisations). If someone can prove that re.escape() performance is ca

[issue3756] re.escape() does not work with bytes()

2008-09-07 Thread Andrew McNamara
Andrew McNamara <[EMAIL PROTECTED]> added the comment: I don't think it's possible to say whether it's preformance critical - I can certainly image use cases such as parser generators where its speed could be noticed. I tried building a version using regular expressions, but I couldn't do any

[issue3526] Customized malloc implementation on SunOS and AIX

2008-09-07 Thread Tim Peters
Tim Peters <[EMAIL PROTECTED]> added the comment: > Anything in obmalloc that is not arena space should continue to come > from malloc, I believe. Sorry, but I don't understand why arena space should be different. If a platform's libc implementers think mmap should be used to obtain 256KB chunk

[issue3799] Byte/string inconsistencies between different dbm modules

2008-09-07 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: I'm not sure. I've never done anything with the io module. Simply eliminating the bytes checks and letting it try to write the string yields: File "/Users/skip/local/lib/python3.0/dbm/dumb.py", line 170, in __setitem__ self._addkey(k

[issue3801] cgi.parse_qsl does not return list

2008-09-07 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: Dumb error, it was even only in 2.6, 3.0 was ok. Thanks for noticing it, I fixed it and added tests for both versions. Thank you again!! -- nosy: +facundobatista resolution: -> fixed status: open -> closed ___

[issue3801] cgi.parse_qsl does not return list

2008-09-07 Thread Kevin M. Turner
New submission from Kevin M. Turner <[EMAIL PROTECTED]>: This is a regression from 2.5 that causes our test suite to fail in 2.6. Looks like a cut-and-paste bug. Patch attached. -- components: Library (Lib) files: cgi_parse_qsl.diff keywords: patch messages: 72755 nosy: acapnotic sever

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-07 Thread Brett Cannon
Changes by Brett Cannon <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11382/catch_warnings_atts.diff ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-07 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: The new patch ditches the WarningsRecorder class and just returns a list that is directly mutated. I also removed all uses of test.test_support.catch_warning() and moved them over. Docs have been thoroughly updated to give example usage. And las

[issue3791] bsddb not completely removed

2008-09-07 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: The patch looks fine to me, please apply. -- assignee: -> amaury.forgeotdarc keywords: -needs review nosy: +loewis resolution: -> accepted ___ Python tracker <[EMAIL PROTECTED]>

[issue3786] _curses, _curses_panel & _multiprocessing can't be build in 2.6b3 w/ SunStudio 12

2008-09-07 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Why do you think this is a bug in Python? It sounds like a bug in the operating system to me. (actually, it's two bugs - please use separate bug reports in the future: one is that Solaris doesn't implement wchgat, and the other one that it d

[issue3784] Incorrect compiler options used for cc of Sun Studio 12

2008-09-07 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Also, can you please attach your config.log? -- nosy: +loewis ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-07 Thread Brett Cannon
Changes by Brett Cannon <[EMAIL PROTECTED]>: -- assignee: -> brett.cannon ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-li

[issue3526] Customized malloc implementation on SunOS and AIX

2008-09-07 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: > I will try to do that patch in coming weeks (obmalloc mostly allocates > some 256KB arenas so it should nearly always use mmap). Exactly so. If you can, please also consider supporting Windows, in the same way. Anything in obmalloc that i

[issue3760] PEP 3121 --- PyType_Copy is missing

2008-09-07 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: The intention is that different interpreters have distinct, separate instances of the type objects. This is desirable in case of class variables, and standard for Python-defined types. Clearly, 3.0 won't provide that separation for many of th

[issue1204] readline configuration for shared libs w/o curses dependencies

2008-09-07 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: merged to py3k r66297 + r66298 backported to release25-maint r66299 + r66300. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue1204] readline configuration for shared libs w/o curses dependencies

2008-09-07 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: fixed in trunk r66295/r66296. merging and backporting now... -- versions: +Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> __

[issue1204] readline configuration for shared libs w/o curses dependencies

2008-09-07 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: eek. not quite fixed then :) i'll retest and take care of it. -- resolution: accepted -> status: closed -> open ___ Python tracker <[EMAIL PROTECTED]> __

[issue3799] Byte/string inconsistencies between different dbm modules

2008-09-07 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: How hard would it be to fix dbm.dumb to accept strings as well? ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue1204] readline configuration for shared libs w/o curses dependencies

2008-09-07 Thread Roumen Petrov
Roumen Petrov <[EMAIL PROTECTED]> added the comment: I realize too late that in my patch line "if test $py_cv_lib_readline = !yes; then" is not correct. :( It has to be "if test $py_cv_lib_readline = no; then", i.e. s/!yes/no/'. ___ Python tracker <[EMAIL PROT

[issue3799] Byte/string inconsistencies between different dbm modules

2008-09-07 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Extra data point. I tried f["1"] = "a" and f[b"1"] = "a" with dbm.{gnu,ndbm,dumb,sqlite}. All worked with bytes. A except dbm.dumb worked with strings. (dbm.sqlite is my little proof-of-concept module currently in the sandbox.) __

[issue3690] sys.getsizeof wrong for Py3k bool objects

2008-09-07 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: I'm not sure this is a bug. sys.getsizeof doesn't take padding in the malloc implementation into account, either, so a long object that accounts to 22 bytes (such as the number 1) uses at least 24 bytes, also. In any case, I also think this d

[issue3680] Cycles with some iterator are leaking.

2008-09-07 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: > This is my first excursion into cyclic garbage collector > implementations, so please review carefully. If you don't implement a tp_clear function, you should leave a comment why not. I think it's ok, since the underlying containers will g

[issue3799] Byte/string inconsistencies between different dbm modules

2008-09-07 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Making this into a release blocker just so someone will look at it. Needs to be decided & fixed by rc2 at the very latest. -- nosy: +gvanrossum priority: high -> release blocker ___ Python tracke

[issue3417] make the fix_dict fixer smarter

2008-09-07 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel <[EMAIL PROTECTED]> added the comment: (I've just realized it's not working properly for fix_dict; I'm fixing it and will drop a note here when it is) ___ Python tracker <[EMAIL PROTECTED]> _

[issue3777] long(4.2) now returns an int

2008-09-07 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Jeffery, you made this change in r59671. Can you comment? -- nosy: +benjamin.peterson, jyasskin ___ Python tracker <[EMAIL PROTECTED]>

[issue3764] asyncore differences between 2.x and 3.x

2008-09-07 Thread Giampaolo Rodola'
Giampaolo Rodola' <[EMAIL PROTECTED]> added the comment: Sorry, my fault. ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing

[issue3746] Sphinx producing duplicate id attributes, HTML fails validation.

2008-09-07 Thread Graham Higgins
Graham Higgins <[EMAIL PROTECTED]> added the comment: Now confirmed. To reproduce, run sphinx-quickstart with project name "Test", accepting all defaults. Execute "make html", examine .build/html/index.html to find: Added file: http://bugs.python.org/file11415/index.html __

[issue3800] Fix for formatter.py

2008-09-07 Thread skomoroh
New submission from skomoroh <[EMAIL PROTECTED]>: Code: import formatter w = formatter.DumbWriter() f = formatter.AbstractFormatter(w) f.push_margin('dd') f.pop_margin() Result: Traceback (most recent call last): File "formatter_test.py", line 7, in f.push_margin('dd') File "/usr/local/