[issue3932] HTMLParser cannot handle '' and non-ascii characters in attribute names

2009-07-30 Thread Zbigniew Chyla
Zbigniew Chyla zbigniew.ch...@koelner.pl added the comment: Since `HTMLParser.unescape` in 2.5 returns `str` for `str` input, 2.6 should remain compatible. Therefore I propose the attached patch (`HTMLParser-unescape-fix.diff`). With this patch applied the result will have the same type as the

[issue6343] TimedRotatingFileHandler permission denied rename failure on Windows

2009-07-30 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: No activity for a while, closing. -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6343 ___

[issue6314] logging.basicConfig(level='DEBUG', ... and setLevel(DEBUG) result in no logging

2009-07-30 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: No feedback, closing. -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6314 ___

[issue6136] Make logging configuration files easier to use

2009-07-30 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: No feedback, closing. -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6136 ___

[issue6136] Make logging configuration files easier to use

2009-07-30 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- assignee: - vsajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6136 ___ ___ Python-bugs-list

[issue3932] HTMLParser cannot handle '' and non-ascii characters in attribute names

2009-07-30 Thread Artur Frysiak
Changes by Artur Frysiak wi...@pld-linux.org: -- nosy: +wiget ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3932 ___ ___ Python-bugs-list mailing

[issue6598] calling email.utils.make_msgid frequently has a non-trivial probability of generating colliding ids

2009-07-30 Thread Gavin Panella
Changes by Gavin Panella ga...@gromper.net: -- nosy: +allenap ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6598 ___ ___ Python-bugs-list mailing

[issue6601] Fractions do not support other Fractions as numerators or denominators

2009-07-30 Thread Alexander Myodov
New submission from Alexander Myodov amyo...@gmail.com: Occurs in 2.6, doesn't occur in 3.1. Example: Python 2.6.2+ (release26-maint, Jun 23 2009, 07:08:39) [GCC 4.3.3] on linux2 Type help, copyright, credits or license for more information. from fractions import Fraction

[issue6596] urllib2 bug on CentOS

2009-07-30 Thread Anton
Anton rk3...@gmail.com added the comment: The same problem with gcc 4.3.2 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6596 ___ ___

[issue6601] Fractions do not support other Fractions as numerators or denominators

2009-07-30 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Support for this was already added in 2.7 in r71832 (see issue 5812). Since this was a new feature and not a bugfix I don't think it would be appropriate to backport this change to 2.6. -- nosy: +marketdickinson resolution: - out

[issue6601] Fractions do not support other Fractions as numerators or denominators

2009-07-30 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Hmm. I've just noticed that r71832 didn't properly update the docs. Fixed in r74265 (trunk), r74267 (py3k) and r74268 (release31-maint). -- ___ Python tracker rep...@bugs.python.org

[issue6595] Make Decimal constructor accept all unicode decimal digits in input.

2009-07-30 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks for the feedback; I've added 2.6, 2.7, 3.1 to the versions and will backport. [Eric] Since you're calling int() on the result, can't this code: self._int = str(int((intpart+fracpart).lstrip('0') or '0')) just be: self._int =

[issue6602] BaseHTTPServer log_message should log to sys.stdout

2009-07-30 Thread tomkm
New submission from tomkm t...@dialogue.net: I believe that the log_message method of BaseHTTPServer should log to sys.stdout not sys.stderr, whereas log_error should log to sys.stderr instead of just delegating to log_message. I found this inconsistency when using SimpleXMLRPCServer which logs

[issue4473] POP3 missing support for starttls

2009-07-30 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___ ___ Python-bugs-list mailing list

[issue4473] POP3 missing support for starttls

2009-07-30 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: How is going? Any hope for 2.7/3.2? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4473 ___ ___

[issue6330] trunk does not build with --enable-unicode=ucs4

2009-07-30 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Fixed in r74269 (trunk). Code copied to py3k, just so the code stays in sync, in r74271. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker

[issue4434] Embedding into a shared library fails

2009-07-30 Thread Michael Gorven
Michael Gorven mich...@gorven.za.net added the comment: Note that on Ubuntu Hardy at least, the libpython2.5.so symlink only exists in the python2.5-dev package. This means that in order for the library to work without the dev package installed, it should dlopen libpython2.5.so.1 instead.

[issue6603] Compilation error if configuref --with-computed-gotos

2009-07-30 Thread Artur Frysiak
New submission from Artur Frysiak wi...@pld-linux.org: Building Python 3.1 (or Python from mercural py3k branch) fail if configured --with-computed-gotos. Traceback (most recent call last): File ./setup.py, line 13, in module from distutils.core import Extension, setup File

[issue6603] Compilation error if configuref --with-computed-gotos

2009-07-30 Thread Artur Frysiak
Artur Frysiak wi...@pld-linux.org added the comment: Exact options used to configure: ./configure \ --enable-ipv6 \ --with-wide-unicode \ --enable-shared \ --with-computed-gotos \ --with-dbmliborder=gdbm:bdb \ --with-signal-module \ --with-tsc \ --with-threads \ --with-doc-strings \

[issue828336] Allow set swig include dirs in setup.py

2009-07-30 Thread Artur Frysiak
Artur Frysiak wi...@pld-linux.org added the comment: Yes. issue1046644 solves this. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue828336 ___

[issue6604] test_distutils subtest test_get_exe_bytes fails depending on execution order

2009-07-30 Thread jan matejek
New submission from jan matejek jmate...@suse.cz: test_bdist_wininst.py fails in non-windows environment, depending on the order of execution of tests in the test_distutils suite When this test is not run on windows, msvccompiler.py fails to load win32 registry modules and emits a warning-level

[issue6597] Deprecate iterable.next in Python 2.6.x when called with -3 option ?

2009-07-30 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: 2to3 already performs the change for calls to iter.next() as well the method definition, so a deprecation warning is redundant. Thanks for the thought, though. -- assignee: georg.brandl - components: -Documentation, Interpreter Core

[issue6042] Document and slightly simplify lnotab tracing

2009-07-30 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: The patch was merged to 3.x in r74132. -- assignee: jyasskin - nosy: +alexandre.vassalotti resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org

[issue4606] Passing 'None' if argtype is set to POINTER(...) doesn't always result in NULL

2009-07-30 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: Thanks for bringing my attention to this problem again, and for the review. Andrew McNabb schrieb: I looked at the attached patch, and it seems to me the only alternative approach would be to use PyLong_FromLong instead of PyInt_FromLong.

[issue4606] Passing 'None' if argtype is set to POINTER(...) doesn't always result in NULL

2009-07-30 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: Here's a corrected patch against svn trunk. -- Added file: http://bugs.python.org/file14608/patch-ctypes-none-arg-2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4606

[issue6600] MemoryError in AiX 64-bit build - PyMem_MALLOC failed

2009-07-30 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar sridh...@activestate.com: -- components: +Interpreter Core -Build, IO title: MemoryError in AiX 64-bit build - MemoryError in AiX 64-bit build - PyMem_MALLOC failed ___ Python tracker rep...@bugs.python.org

[issue6600] MemoryError in AiX 64-bit build - PyMem_MALLOC failed

2009-07-30 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: This is after preprocessor run (cc_r -E):- Original: newmode = (((__strlen(mode) + 3) 0 || (__strlen(mode) + 3) ((Py_ssize_t)(((size_t)-1)1))) ? 0 : malloc((__strlen(mode) + 3) ? (__strlen(mode) + 3) : 1)); Patched: newmode =

[issue6600] MemoryError in AiX 64-bit build - PyMem_MALLOC failed

2009-07-30 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Damn, now even the original code (without the patch) works. This is an unreliable issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6600

[issue6605] smtplib.SMTP.sendmail() rejected after quit(), connect() sequence, no HELO

2009-07-30 Thread Casey McGinty
New submission from Casey McGinty casey.mcgi...@gmail.com: The smtplib.SMTP.quit() method does not reset the 'helo_resp' and 'ehlo_resp' instance attributes. During the next smtplib.SMTP.sendmail(), the HELO/EHLO commands are not sent, and may cause the remote SMTP service to reject the message,

[issue6605] smtplib.SMTP.sendmail() rejected after quit(), connect() sequence, no HELO

2009-07-30 Thread Casey McGinty
Casey McGinty casey.mcgi...@gmail.com added the comment: Sorry, duplicate of #4142 -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6605 ___

[issue6606] csv.Sniffer.sniff on data with doublequotes doesn't set up the dialect properly

2009-07-30 Thread Joseph Tate
New submission from Joseph Tate jtate+pyt...@dragonstrider.com: Given the attached code, the Sniffer.sniff routine does not set the doublequote property. This results in errors during reader operations. If the doublequote property is set in the dialect, the data is read properly. The data was

[issue6606] csv.Sniffer.sniff on data with doublequotes doesn't set up the dialect properly

2009-07-30 Thread Joseph Tate
Joseph Tate jtate+pyt...@dragonstrider.com added the comment: Note that no exceptions are raised, the reader just returns improperly parsed records. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6606

[issue6596] urllib2 bug on CentOS

2009-07-30 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Can you rule out hardware problems? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6596 ___

[issue4606] Passing 'None' if argtype is set to POINTER(...) doesn't always result in NULL

2009-07-30 Thread Andrew McNabb
Andrew McNabb amcn...@mcnabbs.org added the comment: On Thu, Jul 30, 2009 at 07:14:56PM +, Thomas Heller wrote: Thanks for bringing my attention to this problem again, and for the review. I'm just glad to help. The problem is that the patch changes the behaviour of the

[issue6600] MemoryError in AiX 64-bit build - PyMem_MALLOC failed

2009-07-30 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Forget the last comment, the patch is still valid and without it python gives MemoryError. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6600

[issue6607] asctime causing python to crash

2009-07-30 Thread Amir Habibi
New submission from Amir Habibi a...@aryosys.com: I use: Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32 import time asctime((2009, 1, 1, 24, 0, 0, 0, 0, 0)) the 24 is a wrong parameter but it should'n't crash the engine. This may be the side effect of a

[issue6608] asctime causing python to crash

2009-07-30 Thread Amir Habibi
New submission from Amir Habibi a...@aryosys.com: I use: Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32 import time time.asctime((2009, 1, 1, 24, 0, 0, 0, 0, 0)) the 24 is a wrong parameter but it should'n't crash the engine. This may be the side effect

[issue6609] zipfile: WindowsError [267] The directory name is invalid

2009-07-30 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar sridh...@activestate.com: The following exception occured when I tried to extract http:// sourceforge.net/projects/slut/files/slut/slut-0.9.0/slut-0.9.0.zip/ download using the zipfile module on Windows XP.

[issue6609] zipfile: WindowsError [267] The directory name is invalid

2009-07-30 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Shortly following this exception, I tried to create the directory myself C:\... mkdir slut-0.9\aux The directory name is invalid. Curiously, I searched the internet for why a directory named 'aux' cannot be created anywhere on

[issue6610] Subprocess descriptor debacle

2009-07-30 Thread Christian Heimes
New submission from Christian Heimes li...@cheimes.de: The subprocess module may suffer from a minor design flaw that is described at http://unixwiz.net/techtips/remap-pipe-fds.html under the heading Descriptor Debacle. The problem can occur under rare conditions when a subprocess is created

[issue6609] zipfile: WindowsError [267] The directory name is invalid

2009-07-30 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Let's keep this open as these sort of errors should ideally by wrapped under ZipError, no? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6609

[issue6607] asctime causing python to crash

2009-07-30 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti alexan...@peadrop.com: -- resolution: - duplicate stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6607 ___

[issue6608] asctime causing python to crash

2009-07-30 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Confirmed. On Windows, the out-of-range value triggers a debugging assertion in the CRT library. -- components: +Extension Modules, Windows -None nosy: +alexandre.vassalotti priority: - normal stage: - needs patch versions:

[issue6579] No update about automatic numbering of fields in format strings (e.g. 'A {} with {} buttocks')

2009-07-30 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: In http://docs.python.org/3.1/library/string.html#format-string-syntax, the auto-numbering is mentioned, in the sentence that starts If the numerical arg_names in a format string are 0, 1, 2, ... in sequence, they can all be omitted. It's true

[issue6606] csv.Sniffer.sniff on data with doublequotes doesn't set up the dialect properly

2009-07-30 Thread Thomas W. Barr
Thomas W. Barr t...@rice.edu added the comment: The Sniffer.sniff routine doesn't set the doublequote property at all right now. I'm working on a patch to see if I can add this functionality. -- nosy: +twb type: behavior - feature request ___ Python

[issue6606] csv.Sniffer.sniff on data with doublequotes doesn't set up the dialect properly

2009-07-30 Thread Thomas W. Barr
Thomas W. Barr t...@rice.edu added the comment: Test for this issue. -- keywords: +patch Added file: http://bugs.python.org/file14610/test_csv.py.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6606

[issue6606] csv.Sniffer.sniff on data with doublequotes doesn't set up the dialect properly

2009-07-30 Thread Thomas W. Barr
Thomas W. Barr t...@rice.edu added the comment: Patch for the issue. Looks for extraneous quote inside the quotes by the delimiters. -- Added file: http://bugs.python.org/file14611/csv.py.diff ___ Python tracker rep...@bugs.python.org

[issue6606] csv.Sniffer.sniff on data with doublequotes doesn't set up the dialect properly

2009-07-30 Thread Thomas W. Barr
Thomas W. Barr t...@rice.edu added the comment: The documentation doesn't actually say what parameters are sniffed, so technically, that doesn't need to be changed. Should this be added? -- ___ Python tracker rep...@bugs.python.org

[issue6606] csv.Sniffer.sniff on data with doublequotes doesn't set up the dialect properly

2009-07-30 Thread Thomas W. Barr
Changes by Thomas W. Barr t...@rice.edu: Removed file: http://bugs.python.org/file14611/csv.py.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6606 ___

[issue6606] csv.Sniffer.sniff on data with doublequotes doesn't set up the dialect properly

2009-07-30 Thread Thomas W. Barr
Thomas W. Barr t...@rice.edu added the comment: Reformatted line in patch. -- Added file: http://bugs.python.org/file14612/csv.py.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6606 ___