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

2009-07-30 Thread Zbigniew Chyla
Zbigniew Chyla 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 input. -- keywords

[issue6343] TimedRotatingFileHandler permission denied rename failure on Windows

2009-07-30 Thread Vinay Sajip
Vinay Sajip added the comment: No activity for a while, closing. -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-l

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

2009-07-30 Thread Vinay Sajip
Vinay Sajip added the comment: No feedback, closing. -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6136] Make logging configuration files easier to use

2009-07-30 Thread Vinay Sajip
Vinay Sajip added the comment: No feedback, closing. -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6136] Make logging configuration files easier to use

2009-07-30 Thread Vinay Sajip
Changes by Vinay Sajip : -- assignee: -> vsajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

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

2009-07-30 Thread Artur Frysiak
Changes by Artur Frysiak : -- nosy: +wiget ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[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 : -- nosy: +allenap ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

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

2009-07-30 Thread Alexander Myodov
New submission from Alexander Myodov : 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 >>> Fraction(Fraction(3,5),

[issue6596] urllib2 bug on CentOS

2009-07-30 Thread Anton
Anton added the comment: The same problem with gcc 4.3.2 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

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

2009-07-30 Thread Mark Dickinson
Mark Dickinson 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 of date status: op

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

2009-07-30 Thread Mark Dickinson
Mark Dickinson 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 __

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

2009-07-30 Thread Mark Dickinson
Mark Dickinson 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 = str(int(intpart+frac

[issue6602] BaseHTTPServer log_message should log to sys.stdout

2009-07-30 Thread tomkm
New submission from tomkm : 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 both successful (

[issue4473] POP3 missing support for starttls

2009-07-30 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue4473] POP3 missing support for starttls

2009-07-30 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: How is going? Any hope for 2.7/3.2? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

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

2009-07-30 Thread Eric Smith
Eric Smith 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 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. -- nosy: +mgorven

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

2009-07-30 Thread Artur Frysiak
New submission from Artur Frysiak : 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 from distutils.core import Extension, setup File "/home/users/wiget/mirror/python/cpy

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

2009-07-30 Thread Artur Frysiak
Artur Frysiak 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 \ --with-fpectl \ --wi

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

2009-07-30 Thread Artur Frysiak
Artur Frysiak added the comment: Yes. issue1046644 solves this. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-lis

[issue6604] test_distutils subtest test_get_exe_bytes fails depending on execution order

2009-07-30 Thread jan matejek
New submission from jan matejek : 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 message to the l

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

2009-07-30 Thread Brett Cannon
Brett Cannon 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 nosy: +brett.cann

[issue6042] Document and slightly simplify lnotab tracing

2009-07-30 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: The patch was merged to 3.x in r74132. -- assignee: jyasskin -> nosy: +alexandre.vassalotti resolution: -> accepted status: open -> closed ___ Python tracker __

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

2009-07-30 Thread Thomas Heller
Thomas Heller 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. Using PyLong_F

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

2009-07-30 Thread Thomas Heller
Thomas Heller 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 ___ _

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

2009-07-30 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : -- components: +Interpreter Core -Build, IO title: MemoryError in AiX 64-bit build -> MemoryError in AiX 64-bit build - PyMem_MALLOC failed ___ Python tracker ___

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

2009-07-30 Thread Sridhar Ratnakumar
Sridhar Ratnakumar 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 = (((3 + __strlen(mode))

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

2009-07-30 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Damn, now even the original code (without the patch) works. This is an unreliable issue. -- ___ Python tracker ___

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

2009-07-30 Thread Casey McGinty
New submission from Casey McGinty : 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, due to improper protoco

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

2009-07-30 Thread Casey McGinty
Casey McGinty added the comment: Sorry, duplicate of #4142 -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing l

[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 : 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 created using oocalc, forcing

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

2009-07-30 Thread Joseph Tate
Joseph Tate added the comment: Note that no exceptions are raised, the reader just returns improperly parsed records. -- ___ Python tracker ___ __

[issue6596] urllib2 bug on CentOS

2009-07-30 Thread Martin v . Löwis
Martin v. Löwis added the comment: Can you rule out hardware problems? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

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

2009-07-30 Thread Andrew McNabb
Andrew McNabb 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 > 'POINTER(...).from_param' metho

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

2009-07-30 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Forget the last comment, the patch is still valid and without it python gives MemoryError. -- ___ Python tracker ___ __

[issue6607] asctime causing python to crash

2009-07-30 Thread Amir Habibi
New submission from Amir Habibi : 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 more serious pro

[issue6608] asctime causing python to crash

2009-07-30 Thread Amir Habibi
New submission from Amir Habibi : 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 of a more seriou

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

2009-07-30 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : 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. C:\\HOME\\as\\pypm-infinitude\\scratch\\b\\slut-0.9.0.zip.work is 1) curr

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

2009-07-30 Thread Sridhar Ratnakumar
Sridhar Ratnakumar 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 the Windows filesystem.

[issue6610] Subprocess descriptor debacle

2009-07-30 Thread Christian Heimes
New submission from Christian Heimes : 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 from a Python daem

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

2009-07-30 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Let's keep this open as these sort of errors should ideally by wrapped under ZipError, no? -- ___ Python tracker ___ __

[issue6607] asctime causing python to crash

2009-07-30 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue6608] asctime causing python to crash

2009-07-30 Thread Alexandre Vassalotti
Alexandre Vassalotti 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: +Python 2.7, Python

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

2009-07-30 Thread Eric Smith
Eric Smith 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 that the field_name

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

[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 added the comment: Test for this issue. -- keywords: +patch Added file: http://bugs.python.org/file14610/test_csv.py.diff ___ Python tracker ___ __

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

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

[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 : Removed file: http://bugs.python.org/file14611/csv.py.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[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 added the comment: Reformatted line in patch. -- Added file: http://bugs.python.org/file14612/csv.py.diff ___ Python tracker ___ __

[issue6596] urllib2 bug on CentOS

2009-07-30 Thread Senthil
Senthil added the comment: I would also suggest run the following command: $python /usr/local/lib/python2.6/test/regrtest.py -v test_urllib2 test_urllib test_socket > output-of-tests.txt And attach output-of-tests.txt. It might help in getting to the root cause of the issue. -- nosy: