[issue705836] struct.pack of floats in non-native endian order

2008-01-19 Thread Mark Dickinson
Mark Dickinson added the comment: Here's a patch that fixes the test that Collin mentioned to reflect what's actually been happening for the last nearly 5 years, and changes _PyFloat_Pack4 and _PyFloat_Pack8, as follows. When packing a float that's too large for the destination format (e.g.

[issue1183712] package_data chops off first char of default package

2008-01-19 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: Closing this as the required code change is committed (as part of #1720897). -- resolution: -> fixed status: open -> closed _ Tracker <[EMAIL PROTECTED]> __

[issue1621] Do not assume signed integer overflow behavior

2008-01-19 Thread Ismail Donmez
Ismail Donmez added the comment: Possibly last one before final patch, only Modules/_sre.c left to fix, I appreciate help on that. Please ignore tab problems, I think that can be fixed later on. Thanks. Added file: http://bugs.python.org/file9239/fix-overflows-try3.patch __

[issue1640] Enhancements for mathmodule

2008-01-19 Thread Mark Dickinson
Mark Dickinson added the comment: George: I'm certainly still interested in having asinh, acosh and atanh in math---I'm not sure about anyone else, but I consider these three functions to be basic ingredients in any math library. They even appear in most calculus texts. And the complex ver

[issue1659] Tests needing network flag?

2008-01-19 Thread Skip Montanaro
Skip Montanaro added the comment: > it currently mentions test_socket_ssl and test_timeout explicitly "it" being regrtest.py? This patch works for me. In what way is regrtest's reference to test_socket_ssl (for example) a problem? All I did for that test was tighten up the requirements to ru

[issue1640] Enhancements for mathmodule

2008-01-19 Thread George Castillo
George Castillo added the comment: Is there still interest in implementing the inverse hyperbolic trig functions for real numbers? I would be willing to explore this if there is. -- nosy: +gmcastil __ Tracker <[EMAIL PROTECTED]>

[issue705836] struct.pack of floats in non-native endian order

2008-01-19 Thread Mark Dickinson
Mark Dickinson added the comment: Aha: the C99 standard, section 6.3.1.5, says: When a double is demoted to float, a long double is demoted to double or float, or a value being represented in greater precision and range than required by its semantic type (see 6.3.1.8) is explicitly converted

[issue705836] struct.pack of floats in non-native endian order

2008-01-19 Thread Mark Dickinson
Mark Dickinson added the comment: It's a little odd: the relevant code is in floatobject.c, in _PyFloat_Pack4. The issue is what happens when a Python float (stored internally as a platform double) is packed as an IEEE-754 single-precision float. The current code doesn't behave consistent

[issue1621] Do not assume signed integer overflow behavior

2008-01-19 Thread Ismail Donmez
Ismail Donmez added the comment: With second patch now python builds without any overflow warnings, no new regressions. Please test and/or review. Only thing left is fixing Modules subdirectory. Thanks. Added file: http://bugs.python.org/file9238/fix-overflows-try2.patch _

[issue1627] Problem with httplib and Content-Length: -1

2008-01-19 Thread Steven Downum
Steven Downum added the comment: I have made a patch of the proposed fixed and ran the httplib test afterwards, to make sure it passed. -- nosy: +sdownum Added file: http://bugs.python.org/file9237/1626_patch.diff __ Tracker <[EMAIL PROTECTED]>

[issue1003] zipfile password fails validation

2008-01-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: Fixed in r60121 (2.6). zip file decryption "check" bytes were more complicated than the existing code supported. Algorithm updated. -- resolution: -> fixed status: open -> closed versions: +Python 2.6 -Python 2.5 __

[issue777884] minidom.py -- TypeError: object doesn't support slice assig

2008-01-19 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- assignee: fdrake -> akuchling Tracker <[EMAIL PROTECTED]> ___ Python-bugs-list mailing list Unsubscrib

[issue1048820] Only "Overwrite" mode possible with curses.textpad.Textbox

2008-01-19 Thread A.M. Kuchling
A.M. Kuchling added the comment: Applied to the trunk in rev. 60119. Thanks for your patch! Please remember to sign and send in a contributor form; the forms are available at http://www.python.org/psf/contrib/ -- resolution: -> accepted status: open -> closed versions: +Python 2.6 -Py

[issue1003] zipfile password fails validation

2008-01-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: this failure also occurs on simple zip files created using infozip's zip with -e to "encrypt" the contents. debugging... __ Tracker <[EMAIL PROTECTED]> __ _

[issue1401] urllib2 302 POST

2008-01-19 Thread Johann Tonsing
Changes by Johann Tonsing: -- nosy: +jtonsing __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue1826] operator.attrgetter() should accept dotted attribute paths

2008-01-19 Thread Georg Brandl
Georg Brandl added the comment: Attaching another patch that doesn't create a list of strings every time the attrgetter is called. Also includes docs. -- nosy: +georg.brandl Added file: http://bugs.python.org/file9236/attrgetter-2.diff __ Tracker <[EMAIL

[issue1060] zipfile cannot handle files larger than 2GB (inside archive)

2008-01-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: The issue here was that reading more data than will fit into an in memory string fails. While the zipfile module could detect this in some cases, it is not really worth such a runtime check. This is just a fact of python and of sane programming, if you're rea

[issue1189216] zipfile module and 2G boundary

2008-01-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: fixed in trunk r60116 (2.6). and release25-maint r60117 (2.5.2). -- resolution: -> accepted status: open -> closed _ Tracker <[EMAIL PROTECTED]> __

[issue1621] Do not assume signed integer overflow behavior

2008-01-19 Thread Ismail Donmez
Ismail Donmez added the comment: I created a git repo for my fixes over http://repo.or.cz/w/pytest.git?a=shortlog;h=overflow-fix . Now as tiran suggested I fix one file and make sure nothing regressed. But! Feel free to beat me to it and fix this. I am all new to this and progress might be and p

[issue487738] weaklist

2008-01-19 Thread Georg Brandl
Georg Brandl added the comment: Also we already have a WeakSet now since the abc module needs it. -- nosy: +georg.brandl Tracker <[EMAIL PROTECTED]> ___

[issue683910] zipfile should have a tarfile-like API

2008-01-19 Thread Georg Brandl
Georg Brandl added the comment: Said patch has now been applied. -- assignee: anthonybaxter -> nosy: +georg.brandl resolution: -> fixed status: open -> closed Tracker <[EMAIL PROTECTED]>

[issue1738] filecmp.dircmp does exact match only

2008-01-19 Thread Georg Brandl
Changes by Georg Brandl: Removed file: http://bugs.python.org/file9067/filecmp.py.patch __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing l

[issue1048820] Only "Overwrite" mode possible with curses.textpad.Textbox

2008-01-19 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- keywords: +patch title: Only "Overwrite" mode possible with curses.textpad.Textbox -> Only "Overwrite" mode possible with curses.textpad.Textbox _ Tracker <[EMAIL PROTECTED]> ___

[issue1689] Backport PEP 3141 to 2.6

2008-01-19 Thread Georg Brandl
Changes by Georg Brandl: -- resolution: -> accepted status: open -> pending __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list

[issue1659] Tests needing network flag?

2008-01-19 Thread Georg Brandl
Georg Brandl added the comment: This won't work without corresponding changes in regrtest.py; it currently mentions test_socket_ssl and test_timeout explicitly. -- nosy: +georg.brandl __ Tracker <[EMAIL PROTECTED]>

[issue1300] subprocess.list2cmdline doesn't do pipe symbols

2008-01-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: fixed in trunk r60115 (2.6). -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ _

[issue1659] Tests needing network flag?

2008-01-19 Thread Skip Montanaro
Skip Montanaro added the comment: This is an easy patch, but I'd like someone to at least verify it works before checking it in... nudge, nudge, wink, wink... -- keywords: +easy __ Tracker <[EMAIL PROTECTED]> __

[issue1751519] curses - new window methods: addchstr and addchnstr

2008-01-19 Thread A.M. Kuchling
A.M. Kuchling added the comment: I'm doubtful about passing strings of characters that contain characters + attrs. The usual convention used by the curses module is to allow strings containing attributeless characters to display, or integers that can include an attribute value. Perhaps these fu

[issue1300] subprocess.list2cmdline doesn't do pipe symbols

2008-01-19 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- assignee: -> gregory.p.smith keywords: +easy nosy: +gregory.p.smith __ Tracker <[EMAIL PROTECTED]> __ ___ Pytho

[issue1336] subprocess.Popen hangs when child writes to stderr

2008-01-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: r60113 in release25-maint, r60114 in release24-maint. -- status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ __

[issue1336] subprocess.Popen hangs when child writes to stderr

2008-01-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: r60111 undid part of r60104 that added an unnecessary else and indentation. svn diff -r60103:60111 of Lib/subprocess.py is a nice clean patch. __ Tracker <[EMAIL PROTECTED]> __

[issue1509] Documentation lacking for the sqlite3 module.

2008-01-19 Thread Jaroslav Pachola
Jaroslav Pachola added the comment: BTW, the first 2 patches (for Python 2.6) work also on version 3.0a2 for me. -- versions: +Python 3.0 __ Tracker <[EMAIL PROTECTED]> __

[issue1625] bz2.BZ2File doesn't support multiple streams

2008-01-19 Thread A.M. Kuchling
A.M. Kuchling added the comment: Like gzip, you can concatenate two bzip2 files: bzip2 -c /etc/passwd >/tmp/pass.bz2 bzip2 -c /etc/passwd >>/tmp/pass.bz2 bunzip2 will output both parts, generating two copies of the file. So nothing needs to be done on compression, but uncompression needs to l

[issue1509] Documentation lacking for the sqlite3 module.

2008-01-19 Thread Jaroslav Pachola
Jaroslav Pachola added the comment: Attaching a patch that adds fetchXXX() description to the documentation for Python 2.5. Added file: http://bugs.python.org/file9235/sqlite3_docs_25.diff __ Tracker <[EMAIL PROTECTED]>

[issue1336] subprocess.Popen hangs when child writes to stderr

2008-01-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: fixed in trunk r60104. i'm backporting it to 2.5 and 2.4. -- resolution: -> fixed versions: +Python 2.5, Python 2.6 __ Tracker <[EMAIL PROTECTED]> __

[issue1296] optparse's OptionGroup not described

2008-01-19 Thread A.M. Kuchling
A.M. Kuchling added the comment: Thanks for pointing this out. I've restored the text to the trunk in rev. 60106, and to the 2.5-maint branch in rev. 60107. -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]>

[issue1296] optparse's OptionGroup not described

2008-01-19 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- assignee: -> akuchling nosy: +akuchling __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsub

[issue1509] Documentation lacking for the sqlite3 module.

2008-01-19 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r60103. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ _

[issue1161031] Neverending warnings from asyncore

2008-01-19 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- assignee: akuchling -> josiahcarlson _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list

[issue1019808] wrong socket error returned

2008-01-19 Thread A.M. Kuchling
A.M. Kuchling added the comment: Applied to 2.6 trunk in rev. 60101 (at long last!). Thanks for your patch! -- keywords: +patch resolution: -> accepted status: open -> closed _ Tracker <[EMAIL PROTECTED]> __

[issue1746071] class mutex doesn't do anything atomically

2008-01-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Making the mutex module thread safe is a low hanging fruit for the bug day. But would it bring anything that the threading module doesn't have? -- nosy: +pitrou _ Tracker <[EMAIL PROTECTED]>

[issue1867] patch for pydoc to work in py3k

2008-01-19 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r60100. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ _

[issue1411695] XML.sax.saxutils.escape -- always escapes <

2008-01-19 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r60099. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed _ Tracker <[EMAIL PROTECTED]> _

[issue1719423] Python package support not properly documented

2008-01-19 Thread Georg Brandl
Georg Brandl added the comment: Any progress on this? _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue1700467] stack size of python_d.exe on VC6

2008-01-19 Thread Georg Brandl
Georg Brandl added the comment: No response, closing. -- nosy: +georg.brandl status: pending -> closed _ Tracker <[EMAIL PROTECTED]> _ __

[issue1687] plistlib.py restricts to Python int when writing

2008-01-19 Thread Georg Brandl
Georg Brandl added the comment: Backported in r60098. -- nosy: +georg.brandl resolution: remind -> fixed status: pending -> closed __ Tracker <[EMAIL PROTECTED]> __ ___

[issue683658] PyErr_Warn may cause import deadlock

2008-01-19 Thread Georg Brandl
Changes by Georg Brandl: -- status: pending -> closed Tracker <[EMAIL PROTECTED]> ___ Python-bugs-list mailing list Unsubscribe: h

[issue1124] Webchecker not parsing css "@import url"

2008-01-19 Thread Georg Brandl
Changes by Georg Brandl: -- status: pending -> open type: -> rfe versions: +Python 2.6, Python 3.0 __ Tracker <[EMAIL PROTECTED]> __ ___ Python

[issue1663329] subprocess/popen close_fds perform poor if SC_OPEN_MAX is hi

2008-01-19 Thread Georg Brandl
Georg Brandl added the comment: Reviewed and committed patch as r60097. Thanks for your work! -- assignee: gvanrossum -> georg.brandl nosy: +georg.brandl resolution: -> accepted status: open -> closed _ Tracker <[EMAIL PROTECTED]>

[issue1277] mailbox.Maildir: factory not used

2008-01-19 Thread A.M. Kuchling
A.M. Kuchling added the comment: I think the required patch is much simpler; only get_message() needs to be updated. I've committed this change to trunk as rev60095, and to release25-maint as rev. 60096. -- resolution: -> fixed status: open -> closed __

[issue1657] [patch] epoll and kqueue wrappers for the select module

2008-01-19 Thread Guido van Rossum
Guido van Rossum added the comment: Still haven't had the time (sorry!), but one comment: please don't specify timeouts in millisecond. We use seconds (floats if necessary) everywhere else in Python, regardless of the underlying data structure or resolution. __ Tr

[issue1146] TextWrap vs words 1-character shorter than the width

2008-01-19 Thread Georg Brandl
Georg Brandl added the comment: Thanks for the patches, committed in r60093! -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ _

[issue1509] Documentation lacking for the sqlite3 module.

2008-01-19 Thread Jaroslav Pachola
Jaroslav Pachola added the comment: Attaching a patch that fixes the docstrings for Python 2.5. Added file: http://bugs.python.org/file9234/sqlite3_docstrings_25.diff __ Tracker <[EMAIL PROTECTED]> __

[issue1298962] MSI installer does not pass values as SecureProperty from UI

2008-01-19 Thread Georg Brandl
Georg Brandl added the comment: There seems to be a related log at #1565468. -- nosy: +georg.brandl _ Tracker <[EMAIL PROTECTED]> _ _

[issue1679] tokenizer permits invalid hex integer

2008-01-19 Thread Georg Brandl
Changes by Georg Brandl: -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Un

[issue1679] tokenizer permits invalid hex integer

2008-01-19 Thread Georg Brandl
Georg Brandl added the comment: Committed patches 1, 2a and 3, and test suite updates, in r60092. This won't be backported to 2.5, and no doc changes are necessary. Thanks for your work! -- nosy: +georg.brandl __ Tracker <[EMAIL PROTECTED]>

[issue1509] Documentation lacking for the sqlite3 module.

2008-01-19 Thread Jaroslav Pachola
Jaroslav Pachola added the comment: Attaching a patch that fixes the docstrings for Python 2.6. Added file: http://bugs.python.org/file9233/sqlite3_docstrings_26.diff __ Tracker <[EMAIL PROTECTED]> __

[issue1509] Documentation lacking for the sqlite3 module.

2008-01-19 Thread Jaroslav Pachola
Jaroslav Pachola added the comment: Attaching a patch that adds fetchXXX() description to the documentation for Python 2.6. -- nosy: +jarpa versions: +Python 2.6 Added file: http://bugs.python.org/file9232/sqlite3_docs_26.diff __ Tracker <[EMAIL PROTECTED

[issue1779] int("- 1") is valud, but float("- 1") isn't. Which is right?

2008-01-19 Thread Facundo Batista
Facundo Batista added the comment: Fixed in r60090. Thanks Juanjo for your contribution! Please sign and send in a contributor form whenever you have time; the forms are at http://www.python.org/psf/contrib/ . -- resolution: -> fixed status: open -> closed ___

[issue1862] Error on "Save As" in IDLE (Vista 32-bit)

2008-01-19 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: IDLE creates the .idlerc folder if needed. It seems it should be marked as not hidden. Does anyone know how to do that? __ Tracker <[EMAIL PROTECTED]> __ ___

[issue1875] "if 0: return" not raising SyntaxError

2008-01-19 Thread Maciek Fijalkowski
Changes by Maciek Fijalkowski: -- nosy: +cfbolz, fijal __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue1875] "if 0: return" not raising SyntaxError

2008-01-19 Thread Armin Rigo
New submission from Armin Rigo: Can you guess why importing the attached x.py does nothing, without printing "hello" at all? The real issue shown in that example is that 'return' and 'yield' outside a function are ignored instead of giving a SyntaxError if they are optimized away by 'if 0:'.

[issue1411695] XML.sax.saxutils.escape -- always escapes <

2008-01-19 Thread Ryan Freckleton
Changes by Ryan Freckleton: -- components: +Documentation versions: +Python 2.6 _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list

[issue1411695] XML.sax.saxutils.escape -- always escapes <

2008-01-19 Thread Ryan Freckleton
Ryan Freckleton added the comment: I've included a unified diff that explicitly states the behavior of &, <, and > for escape/unescape in the documentation. It's based on msandler's patch. -- nosy: +ryan.freckleton Added file: http://bugs.python.org/file9230/sax_utils_rst.patch

[issue1679] tokenizer permits invalid hex integer

2008-01-19 Thread Malte Helmert
Malte Helmert added the comment: Added tests to test_grammar, test_builtin and test_tokenize. Added file: http://bugs.python.org/file9229/PATCH-TESTS.diff __ Tracker <[EMAIL PROTECTED]> __ ___

[issue1693149] patch to make 'trace.py --ignore-module' accept module name list.

2008-01-19 Thread Facundo Batista
Facundo Batista added the comment: Applied in r60087, with some change added in the help of the trace.py. Thank you! -- nosy: +facundobatista resolution: -> fixed status: open -> closed _ Tracker <[EMAIL PROTECTED]>

[issue1779] int("- 1") is valud, but float("- 1") isn't. Which is right?

2008-01-19 Thread Juan José Conti
Juan José Conti added the comment: The same patch as before plus tests. Added file: http://bugs.python.org/file9228/bug_fix_for_1779-plustests.diff __ Tracker <[EMAIL PROTECTED]> __ __

[issue1035] bytes buffer API needs to support read locking and/or PyBUF_LOCKDATA

2008-01-19 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- status: pending -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue1823] Possible to set invalid Content-Transfer-Encoding on email.mime.multipart.MIMEMultipart

2008-01-19 Thread Jonathan Share
Jonathan Share added the comment: Run out of time to look at this today. In order to write a nice test case for this issue I need the parser to notice this error in messages. I've filed issue1874 for the parser not reporting the invalid cte in the msg.defects _

[issue1874] email parser does not register a defect for invalid Content-Transfer-Encoding on multipart messages

2008-01-19 Thread Jonathan Share
Changes by Jonathan Share: Added file: http://bugs.python.org/file9227/issue1874.patch __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing li

[issue1874] email parser does not register a defect for invalid Content-Transfer-Encoding on multipart messages

2008-01-19 Thread Jonathan Share
New submission from Jonathan Share: Although the documentation of FeedParser states that "It will populate a message object's defects attribute with a list of any problems it found in a message." no defect is found in the test case I am about to upload. The message in the test case is broken b

[issue976880] mmap needs a rfind method

2008-01-19 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- keywords: +patch resolution: -> accepted status: open -> closed Tracker <[EMAIL PROTECTED]> ___ Python

[issue976880] mmap needs a rfind method

2008-01-19 Thread A.M. Kuchling
A.M. Kuchling added the comment: Committed to the 2.6 trunk in rev. 60086. Thanks for your contribution! Please sign and send in a contributor form whenever you have time; the forms are at http://www.python.org/psf/contrib/ . Tracker <[EMAIL PROTECTED]>

[issue1782] PyModule_AddIntConstant and PyModule_AddStringConstant can leak

2008-01-19 Thread Georg Brandl
Georg Brandl added the comment: Committed in r60084. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ _

[issue976880] mmap needs a rfind method

2008-01-19 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- assignee: -> akuchling Tracker <[EMAIL PROTECTED]> ___ Python-bugs-list mailing list Unsubscribe: ht

[issue1679] tokenizer permits invalid hex integer

2008-01-19 Thread Malte Helmert
Malte Helmert added the comment: This is a cleaner version of PATCH-2a.diff in the sense that the resulting code contains less duplication. The disadvantage is that it applies more structural changes to PyOS_strtoul, so may be harder to merge with other changes. Added file: http://bugs.python.or

[issue1868] threading.local doesn't free attrs when assigning thread exits

2008-01-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Here is a patch that removes the member localobject->dict. Now the dictionary is always retrieved from the thread state. Added file: http://bugs.python.org/file9225/threading_local.patch __ Tracker <[EMAIL PROTECTED]>

[issue1873] threading.Thread.join() description could be more explicit

2008-01-19 Thread Georg Brandl
Georg Brandl added the comment: Committed r60083. -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Python-b

[issue1679] tokenizer permits invalid hex integer

2008-01-19 Thread Malte Helmert
Malte Helmert added the comment: And here's a patch for case 2 (int) conversion. There is still a slight inconsistency in error reporting (base 0 vs. base 16) between int and long, but I'd see this as long's fault: >>> int("0x", 0) Traceback (most recent call last): File "", line 1, in ValueE

[issue1598083] Top-level exception handler writes to stdout unsafely

2008-01-19 Thread Lorenzo Stoakes
Lorenzo Stoakes added the comment: Ok, thankyou for your feedback, I will take another look at it. _ Tracker <[EMAIL PROTECTED]> _ ___ Python-

[issue976880] mmap needs a rfind method

2008-01-19 Thread John Lenton
John Lenton added the comment: New patch, with small change after being reviewed by amk. Still against revision 60082. Added file: http://bugs.python.org/file9223/mmap.rfind.patch Tracker <[EMAIL PROTECTED]> _

[issue1679] tokenizer permits invalid hex integer

2008-01-19 Thread Malte Helmert
Malte Helmert added the comment: And here's a patch that fixes case 3. Added file: http://bugs.python.org/file9222/PATCH-3.diff __ Tracker <[EMAIL PROTECTED]> __ __

[issue1679] tokenizer permits invalid hex integer

2008-01-19 Thread Malte Helmert
Malte Helmert added the comment: Here's a patch that fixes case 1: >>> 0x File "", line 1 0x ^ SyntaxError: invalid token >>> 0xL File "", line 1 0xL ^ SyntaxError: invalid token Added file: http://bugs.python.org/file9221/PATCH-1.diff __ T

[issue1679] tokenizer permits invalid hex integer

2008-01-19 Thread Malte Helmert
Malte Helmert added the comment: I can find three places where "0x" is accepted, but probably shouldn't: 1. Python's tokenizer: >>> 0x 0 >>> 0xL ValueError: invalid literal for long() with base 16: '0xL' => I think these should both be syntax errors. 2. int builtin: >>> int("0x", 0) == int("0x"

[issue1779] int("- 1") is valud, but float("- 1") isn't. Which is right?

2008-01-19 Thread Juan José Conti
Juan José Conti added the comment: This is my first patch. Bug fix on revision 60076. -- nosy: +jjconti Added file: http://bugs.python.org/file9220/bug_fix_for_1779.diff __ Tracker <[EMAIL PROTECTED]> _

[issue976880] mmap needs a rfind method

2008-01-19 Thread John Lenton
John Lenton added the comment: Attached patch adds two things: an 'end' argument to find, and an 'rfind' method. This includes minimal tests for rfind, but as I actually refactored find and rfind into a single method, tests covering find also cover most of rfind :). I added 'end' first because t

[issue1823] Possible to set invalid Content-Transfer-Encoding on email.mime.multipart.MIMEMultipart

2008-01-19 Thread Jonathan Share
Jonathan Share added the comment: I'm beginning to realise this is slightly bigger than I first thought ;-) Trying to make a nice test case for this issue, I thought it would be a good idea for the parser to register a defect for invalid content- transfer-encoding so I can test against that in

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

2008-01-19 Thread Christian Heimes
Changes by Christian Heimes: -- components: +Build priority: -> normal versions: +Python 2.6 __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-

[issue1598083] Top-level exception handler writes to stdout unsafely

2008-01-19 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: The attached patch doesn't fix the issue I described: * err_closed() will raise an exception indicated the file is closed. However, the file is not necessarily closed, so this exception is wrong. * Most or all PyFile_WriteString callers are still not c

[issue1873] threading.Thread.join() description could be more explicit

2008-01-19 Thread Christian Heimes
Changes by Christian Heimes: -- assignee: -> georg.brandl keywords: +easy nosy: +georg.brandl priority: -> low versions: +Python 2.6 -Python 2.5 __ Tracker <[EMAIL PROTECTED]> __ ___

[issue742598] SocketServer timeout, zombies

2008-01-19 Thread A.M. Kuchling
A.M. Kuchling added the comment: Committed to Python 2.6 in rev. 60080. Thanks for your contribution! Whenever you find time, it would be nice if you could sign and submit a Python contributor agreement; please see http://www.python.org/psf/contrib/ for the forms. -- resolution: -> a

[issue1873] threading.Thread.join() description could be more explicit

2008-01-19 Thread Roy Smith
New submission from Roy Smith: At http://docs.python.org/lib/thread-objects.html, under join(), it says: "As join() always returns None, you must call isAlive() to decide whether a timeout happened." This would be better if it were more explicit, i.e. "As join() always returns None, you must

[issue1823] Possible to set invalid Content-Transfer-Encoding on email.mime.multipart.MIMEMultipart

2008-01-19 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: You're right that this should probably be fixed in the subclass, but you also have to remember that the parser generally doesn't create subclass instances. It only creates instances of Message. As long as you can make it work properly with the parser and gener

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

2008-01-19 Thread Mike Beachy
Mike Beachy added the comment: Urgh. Re-reading this, I could barely understand what the hell I was saying. The problem: 64 bit compiles will dump core when readline is used if they don't properly identify the presence of readline and use the system headers. The solution: fix autoconf to proper

[issue1872] change the bool struct format code from 't' to '?'

2008-01-19 Thread Thomas Heller
Changes by Thomas Heller: -- components: +Documentation __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue1872] change the bool struct format code from 't' to '?'

2008-01-19 Thread Thomas Heller
New submission from Thomas Heller: Currently the struct module uses the format code 't' for the bool datatype (this was added in python 2.6, in revision 53508). This conflicts with the specification in PEP 3118, which proposes the '?' format character for the bool type, 't' is proposed in the pa

[issue1714] ConfigParser.py do not allow leading (and trailing) space in values.

2008-01-19 Thread Quentin Gallet-Gilles
Quentin Gallet-Gilles added the comment: Attached patch contain the added behavior, some unit tests to validate it and updated documentation. -- nosy: +quentin.gallet-gilles Added file: http://bugs.python.org/file9217/cfgparser_doublequotes.patch __ Track

[issue1675533] setup.py LDFLAGS regexp is wrong

2008-01-19 Thread Facundo Batista
Facundo Batista added the comment: Bloody fingers. I meant that *now" it works ok. _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailin

[issue1675533] setup.py LDFLAGS regexp is wrong

2008-01-19 Thread Facundo Batista
Facundo Batista added the comment: Yes, not it works ok! Thanks John for the testing example, and Carson for the report. -- nosy: +facundobatista resolution: -> out of date status: open -> closed _ Tracker <[EMAIL PROTECTED]>

[issue1868] threading.local doesn't free attrs when assigning thread exits

2008-01-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: On the opposite, simply evaluating local.__dict__ just before "deadlist = ...", frees the last value. Weird? I found that in threadmodule.c, the local object has a "self->dict" attribute, which contains the last used dictionary. The dictionaries switch

  1   2   >