[issue6663] re.findall does not always return a list of strings

2009-08-06 Thread Phillip M. Feldman
New submission from Phillip M. Feldman : As per the Python documentation, the following regular expression should produce a list containing the strings '6.7', 7.33', and '9': re.findall('(-?\d+[.]\d+)|(-?\d+[.]?)|(-?[.]\d+)', 'asdf6.77.33ff9') Instead, it generates a list of tuples. Either

[issue6662] HTMLParser.HTMLParser doesn't handle malformed charrefs

2009-08-06 Thread Dave Day
New submission from Dave Day : When HTMLParser.HTMLParser encounters a malformed charref (for example &#bad;) it no longer parsers the following HTML correctly. For example: &#bad; Recognises the starttag "p" but considers the rest to be data. To reproduce: class MyParser(HTMLParser.HTMLPars

[issue3438] PyCF_DONT_IMPLY_DEDENT can be used to activate the with statement

2009-08-06 Thread Guilherme Polo
Guilherme Polo added the comment: This isn't going to happen, closing. -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ _

[issue3600] Include Tcl/Tk 8.5.4 in the windows binary for the upcoming beta3

2009-08-06 Thread Guilherme Polo
Changes by Guilherme Polo : -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue6660] Desire python.org documentation link to user contribution wiki (per function)

2009-08-06 Thread Georg Brandl
Georg Brandl added the comment: There will be comments for each function/class etc., as well as a feature to suggest a change for the proper text of a section. -- ___ Python tracker

[issue6660] Desire python.org documentation link to user contribution wiki (per function)

2009-08-06 Thread kee nethery
kee nethery added the comment: Georg, So there will be a link next to each numbered section in the documentation that links to a user editable wiki page about that section? That will be highly useful. Glad to hear it. I know I'd like to contribute the gotchas I was confused by and the samp

[issue6629] seek doesn't properly handle file buffer, leads to silent data corruption

2009-08-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed the patch + tests in r74336 (trunk), r74338 (py3k) and r74339 (3.1). Thanks for the report, and don't hesitate to do more stress testing of the IO lib! -- resolution: -> fixed status: open -> closed versions: +Python 2.7 ___

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

2009-08-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm afraid you'll have to investigate a bit by yourself, or wait for a core developer to get the same problem :-/ -- ___ Python tracker ___

[issue6661] Transient test_multiprocessing failure

2009-08-06 Thread Jesse Noller
Jesse Noller added the comment: I know, just makes me :( -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue6661] Transient test_multiprocessing failure

2009-08-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: I know, I was posting it for completeness, and it case someone else witnesses it. -- ___ Python tracker ___

[issue6661] Transient test_multiprocessing failure

2009-08-06 Thread Jesse Noller
Jesse Noller added the comment: ugh. that's not useful. Dunno how I'm going to track down seemingly random and unreproducible issues. -- ___ Python tracker ___ _

[issue6661] Transient test_multiprocessing failure

2009-08-06 Thread Antoine Pitrou
New submission from Antoine Pitrou : I just got the following test_multiprocessing error (cannot reproduce, though): test test_multiprocessing failed -- Traceback (most recent call last): File "/home/antoine/cpython/seek-6629/Lib/test/test_multiprocessing.py", line 232, in test_active_children

[issue6646] test_pickle fails on AIX -- 6.9999999999999994e-308 != 6.9999999999999984e-308

2009-08-06 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks. So pickle protocol 0 is where it's failing; protocols 1 and 2 are okay. It looks as though there's a problem with double <-> string (i.e., binary <-> decimal) conversion here. This probably also means that there are more serious problems on AIX, e

[issue2637] urllib.quote() escapes characters unnecessarily and contrary to docs

2009-08-06 Thread Rodrigo Steinmuller Wanderley
Rodrigo Steinmuller Wanderley added the comment: > Unreserved characters can be escaped without changing the semantics > of the URI, but this should not be done unless the URI is being used > in a context that does not allow the unescaped character to appear. How can we identify "a context that

[issue6646] test_pickle fails on AIX -- 6.9999999999999994e-308 != 6.9999999999999984e-308

2009-08-06 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: It is a powerpc 64-bit AIX machine: >>> os.uname() ('AIX', 'asaixv5152', '1', '5', '000C763E4C00') >>> platform.uname() ('AIX', 'asaixv5152', '1', '5', '000C763E4C00', 'powerpc') The commands you have requested: >>> from sys import float_info >>> float_in

[issue6594] json C serializer performance tied to structure depth on some systems

2009-08-06 Thread Shawn
Shawn added the comment: First, I want to apologise for not providing more detail initially. Notably, one thing you may want to be aware of is that I'm using python 2.4.4 with the latest version of simplejson. So my timings and assumptions here are based on the fact that simplejson was adopted

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

2009-08-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Is it ok if the message id is predictable? Besides, _gen_next_number() can more efficiently be written as: _gen_next_number = itertools.cycle(xrange(N)) -- nosy: +pitrou ___ Python tracker

[issue6594] json C serializer performance tied to structure depth on some systems

2009-08-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: As Raymond said, and besides, when you talk about "penalty", please explain what the baseline is. Otherwise it's a bit hard to follow. (and I stress again that SPARC is a nich platform, even Niagara :-); moreover, Niagara is throughput-oriented rather than late

[issue6659] buffer c-api: memoryview object documentation

2009-08-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, the terminology in these docs is not very precise and helpful. There are two things here: - the buffer /struct/ a.k.a Py_buffer, which can only be used from C code and using the dedicated "new buffer API" - the memoryview, which is a Python object (a PyObj

[issue6660] Desire python.org documentation link to user contribution wiki (per function)

2009-08-06 Thread Georg Brandl
Georg Brandl added the comment: This is already in planning; Sphinx will grow a webapp system that also allows suggestions for changes. -- resolution: -> later status: open -> closed ___ Python tracker ___

[issue6648] codecs documentation does not mention surrogateescape

2009-08-06 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r74334. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue6660] Desire python.org documentation link to user contribution wiki (per function)

2009-08-06 Thread kee nethery
New submission from kee nethery : Proposal: For each permalink headline in the official documentation, link to a wiki page specific to that headline. Allow users to easily view and contribute comments and examples around that specific documentation headline. For example: http://docs.python.org

[issue6657] Copy documentation section

2009-08-06 Thread Georg Brandl
Georg Brandl added the comment: I'm not sure which "enumerated part" you mean. Can you propose a patch? -- ___ Python tracker ___ ___

[issue6659] buffer c-api: memoryview object documentation

2009-08-06 Thread Georg Brandl
Georg Brandl added the comment: Benjamin is listed as the section author. -- assignee: georg.brandl -> benjamin.peterson nosy: +benjamin.peterson ___ Python tracker ___ _

[issue6658] typo in buffer api docs

2009-08-06 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r74333, will be merged to the other branches eventually. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue2333] Backport set and dict comprehensions

2009-08-06 Thread Mark Dickinson
Mark Dickinson added the comment: Ah, that works. Thanks! (I'll pay more attention to the tracker Dependencies field in future.) -- ___ Python tracker ___

[issue2333] Backport set and dict comprehensions

2009-08-06 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: You need to apply the set literal patch I posted in issue2335 first. -- ___ Python tracker ___ ___

[issue2333] Backport set and dict comprehensions

2009-08-06 Thread Mark Dickinson
Mark Dickinson added the comment: Alexandre, I can't get this to apply cleanly to my svn trunk checkout (r74328) (see attached log). Am I doing something stupid? -- nosy: +marketdickinson Added file: http://bugs.python.org/file14670/patch_failure.log _

[issue6622] [RFC] wrong variable used in Lib/poplib.py

2009-08-06 Thread Mark Dickinson
Mark Dickinson added the comment: Patch committed, r74330 (py3k) and r74331 (release31-maint). Thanks, Giampaolo and Vincent! -- resolution: -> fixed status: open -> closed ___ Python tracker _

[issue6622] [RFC] wrong variable used in Lib/poplib.py

2009-08-06 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: @Mark I can't test your patch right now as I don't have a Python 3.x installed here but it looks good to me. -- ___ Python tracker ___ __

[issue6622] [RFC] wrong variable used in Lib/poplib.py

2009-08-06 Thread Mark Dickinson
Mark Dickinson added the comment: Adding Giampaolo Rodola to the nosy list, since he worked on the test code recently. Giampaolo, any comments? -- nosy: +giampaolo.rodola ___ Python tracker __

[issue6622] [RFC] wrong variable used in Lib/poplib.py

2009-08-06 Thread Mark Dickinson
Mark Dickinson added the comment: > Could someone ensure the attached unittest does the job, I blindly > copied from above... Unfortunately it doesn't, because the apop method needs a timestamp in the welcome message in order to work. I've adapted it to make this work---see attached patch 'i

[issue6632] Include more fullwidth chars in the decimal codec

2009-08-06 Thread Mark Dickinson
Mark Dickinson added the comment: [Mark Dickinson] > Python's current support for localization in int and float seems > largely accidental, as far as I can tell. [MAL] > Not at all. [...] Apologies; 'accidental' was a poor choice of word here. > however, I did not look > at things like decim

[issue6582] test_telnetlib doesn't test Telnet.write

2009-08-06 Thread Rodrigo Steinmuller Wanderley
Rodrigo Steinmuller Wanderley added the comment: Did only minor modifications to TelnetSocketSendall class. Please review the following patch. -- keywords: +patch nosy: +rwanderley Added file: http://bugs.python.org/file14668/write_test.patch ___ Py

[issue6632] Include more fullwidth chars in the decimal codec

2009-08-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Mark Dickinson wrote: > Python's current support for localization in int and float seems largely > accidental, as far as I can tell. Not at all. The support for non-ASCII numeric characters in int() and float() is by design - however, I did not look at thi

[issue1628205] socket.readline() interface doesn't handle EINTR properly

2009-08-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: nice test case rhettg. This is a correctness issue to prevent data loss on EINTR. I've attached a patch that builds on rhettg's but allows the EINTR signal to propagate upwards as desired by loweis and jorend for both read() and readline() calls.

[issue1537721] csv module: add header row to DictWriter

2009-08-06 Thread djc
Changes by djc : -- nosy: +djc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman

[issue6632] Include more fullwidth chars in the decimal codec

2009-08-06 Thread Mark Dickinson
Mark Dickinson added the comment: Python's current support for localization in int and float seems largely accidental, as far as I can tell. But I appreciate the argument that despite the current inconsistencies, we shouldn't add extra support without a standard to base it on. I'm not sure h

[issue6659] buffer c-api: memoryview object documentation

2009-08-06 Thread Alexey Shamrin
New submission from Alexey Shamrin : "A memoryview object is an extended buffer object that could replace the buffer object (but doesn’t have to as that could be kept as a simple 1-d memoryview object)." Well, buffer object was dropped Python 3, wasn't it? http://docs.python.org/dev/py3k/c-api/

[issue6658] typo in buffer api docs

2009-08-06 Thread Alexey Shamrin
Alexey Shamrin added the comment: Well, there's another typo in buffer documentation (PyBuffer_Release): "This shouldd be called..." Only in 2.x series: http://docs.python.org/c-api/buffer.html#PyBuffer_Release http://docs.python.org/dev/c-api/buffer.html#PyBuffer_Release -- ___

[issue6658] typo in buffer api docs

2009-08-06 Thread Alexey Shamrin
New submission from Alexey Shamrin : Typo in PyObject_GetBuffer docs: "...handle all the complexibity..." Links: http://docs.python.org/c-api/buffer.html#buffer-related-functions http://docs.python.org/dev/c-api/buffer.html#buffer-related-functions http://docs.python.org/3.1/c-api/buffer.html#b

[issue6657] Copy documentation section

2009-08-06 Thread Sheepherd
New submission from Sheepherd : The enumerated part in about the exact usage of the conversion specifier in "String Formatting Operations" http://docs.python.org/library/stdtypes.html#string-formatting should be copied to http://docs.python.org/library/string.html#formatspec to make the usage of

[issue6656] locale.format_string fails on escaped percentage

2009-08-06 Thread Christoph Burgmer
Christoph Burgmer added the comment: This patch removes '%%' entities from the regex results and only replaces other matches with '%s' which later then get replaced by localized versions so that escaped percentage entities don't show up in localized parsing anymore. Removing case '%%' from the

[issue6656] locale.format_string fails on escaped percentage

2009-08-06 Thread Christoph Burgmer
New submission from Christoph Burgmer : locale.format_string doesn't return same result as a normal "string" % format directive, but raises a TypeError. See attached test case for Python 2.6. >>> locale.format_string('%f%%', 1.0) Traceback (most recent call last): File "", line 1, in File "

[issue6646] test_pickle fails on AIX -- 6.9999999999999994e-308 != 6.9999999999999984e-308

2009-08-06 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the report! What's the underlying hardware on your machine? Here's a Python 2.6 interpreter session on my machine (OS X 10.5/Intel). Would it be possible for you to execute the same commands on your machine and tell me what you get? Python 2.6.2

[issue6646] test_pickle fails on AIX -- 6.9999999999999994e-308 != 6.9999999999999984e-308

2009-08-06 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> marketdickinson nosy: +marketdickinson ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6280] calendar.timegm() belongs in time module, next to time.gmtime()

2009-08-06 Thread Simon Cross
Changes by Simon Cross : -- nosy: +hodgestar ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue6280] calendar.timegm() belongs in time module, next to time.gmtime()

2009-08-06 Thread Francesco Del Degan
Francesco Del Degan added the comment: Hi, i started to produce a patch for timemodule.c. Working into it, i found that we have almost 3 way to do that: 1. Use timegm(3) function where HAVE_TIMEGM is defined (i have a working patch for it) 2. Implement a more portable timegm function with tz