[issue10498] calendar.LocaleHTMLCalendar.formatyearpage() results in traceback with 'unsupported locale setting' on Windows

2010-11-23 Thread MunSic JEONG
MunSic JEONG added the comment: r38027 has following changes. -'utf-8':'UTF-8', +'utf_8':'UTF8', subversion log is: Correct mapping of Python codec name to C encoding name for UTF-8 (the C lib doesn't seem to like "UTF-8"). --

[issue10482] subprocess and deadlock avoidance

2010-11-23 Thread Glenn Linderman
Glenn Linderman added the comment: So I've experimented a bit, and it looks like simply exposing ._readerthread as an external API would handle the buffered case for stdout or stderr. For http.server CGI scripts, I think it is fine to buffer stderr, as it should not be a high-volume channel.

[issue10493] test_strptime failures under OpenIndiana

2010-11-23 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- assignee: loewis -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue10493] test_strptime failures under OpenIndiana

2010-11-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Martin, could you check it? Thanks!. Not in the foreseeable future, sorry. -- ___ Python tracker ___ __

[issue10037] multiprocessing.pool processes started by worker handler stops working

2010-11-23 Thread Ray.Allen
Ray.Allen added the comment: Could you give an example code which can reproduce this issue? -- nosy: +ysj.ray ___ Python tracker ___

[issue9852] test_ctypes fail with clang

2010-11-23 Thread Ismail Donmez
Ismail Donmez added the comment: Problem seems to be in _ctypes_test.c . If you compile _ctypes_test.c with gcc problems disappears. -- ___ Python tracker ___ __

[issue10498] calendar.LocaleHTMLCalendar.formatyearpage() results in traceback with 'unsupported locale setting' on Windows

2010-11-23 Thread MunSic JEONG
MunSic JEONG added the comment: On OSX, _locale.setlocale raise locale.Error with arg 'UTF8' but ok with 'UTF-8'. and setlocale tries to normalize localename with locale.normalize(). and locale.normalize() always change encoding to 'UTF8' (locale.py:646). So changes in locale.normalize could

[issue10484] http.server.is_cgi fails to handle CGI URLs containing PATH_INFO

2010-11-23 Thread Glenn Linderman
Glenn Linderman added the comment: Here is a replacement for the body of is_cgi that will work with the current _url_collapse_path_split function, but it seems to me that it is ineffecient to do multiple splits and joins of the path between the two functions. splitpath = server._u

[issue10486] http.server doesn't set all CGI environment variables

2010-11-23 Thread Glenn Linderman
Glenn Linderman added the comment: Took a little more time to do a little more analysis on this one. Compared a sample query via Apache on Linux vs http.server, then looked up the CGI RFC for more info: DOCUMENT_ROOT: ... GATEWAY_INTERFACE: CGI/1.1 HTTP_ACCEPT: text/html,application/xhtml+xm

[issue10493] test_strptime failures under OpenIndiana

2010-11-23 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I have spend the afternoon doing bisection on the buildslave. The problem was introduced in r73043: """ r73043 | martin.v.loewis | 2009-05-30 08:13:40 +0200 (Sat, 30 May 2009) | 2 lines

[issue10516] Add list.clear() and list.copy()

2010-11-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Guido approved these both in a thread earlier this year. The reasoning for copy() was the same as for clear(), some folks couldn't cope with: b = a[:] -- nosy: +rhettinger title: Add list.clear() -> Add list.clear() and list.copy() ___

[issue3061] time.strftime() always decodes result with UTF-8

2010-11-23 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

[issue10515] csv sniffer does not recognize quotes at the end of line

2010-11-23 Thread Andrew McNamara
Changes by Andrew McNamara : -- nosy: +andrewmcnamara ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue10517] test_concurrent_futures crashes with "Fatal Python error: Invalid thread state for this thread"

2010-11-23 Thread Łukasz Langa
Łukasz Langa added the comment: A colorful example: http://bpaste.net/show/11493/ (just in case if downloading and extracting logs is not feasible) Some clarification: as in a typical concurrent problem, subsequent calls freeze in different test cases, but the freeze itself is always reproduc

[issue10517] test_concurrent_futures crashes with "Fatal Python error: Invalid thread state for this thread"

2010-11-23 Thread Łukasz Langa
New submission from Łukasz Langa : py3k built from trunk on Centos 5.5 freezes during regrtest on test_concurrent_futures with "Fatal Python error: Invalid thread state for this thread". A set of hopefully useful diagnostic logs attached as patch. -- assignee: bquinlan components: Ext

[issue9404] IDLE won't launch on XP

2010-11-23 Thread demarcus
demarcus added the comment: Had this issue.. figured out what's causing it... definitively. I had an earlier version of python installed, and I created a pythonhome user variable: "c:\python24." I'm now using Python 2.5, and that old variable was: 1.) Keeping me from opening the IDLE 2.) Keep

[issue10516] Add list.clear()

2010-11-23 Thread Eric Smith
Eric Smith added the comment: Guido's email is archived at: http://mail.python.org/pipermail/python-ideas/2010-November/008732.html -- nosy: +eric.smith ___ Python tracker ___ _

[issue10516] Add list.clear()

2010-11-23 Thread Terry J. Reedy
New submission from Terry J. Reedy : Add list.clear() method with obvious semantics. Pro: 1. parallel to set/dict/defaultdict/deque.clear(), usable in generic mutable collection function; 2. makes it easier to switch between list and other collection class; 3. current alternatives are not as

[issue9915] speeding up sorting with a key

2010-11-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > My original patch was much more focused, but had a slightly larger > performance penalty for sorting random keys (see > http://bugs.python.org/msg122178). Do you think the performance > tradeoff there was still worthwhile? I am not objecting against the perf

[issue9915] speeding up sorting with a key

2010-11-23 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Antoine, My original patch was much more focused, but had a slightly larger performance penalty for sorting random keys (see http://bugs.python.org/msg122178). Do you think the performance tradeoff there was still worthwhile? Ihave uploaded my original pa

[issue9915] speeding up sorting with a key

2010-11-23 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Antoine Pitrou wrote: > Next time, please upload a single patch. Really. I haven't used Rietveld that much yet, and I'm still learning best-practices. I apologize for the painful experience. For anyone else planning to take a look at this, here it is as on

[issue9915] speeding up sorting with a key

2010-11-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > I ended up loading my incremental patches in, but it's easy enough to > > diff the base with the last patch. If for some reasons it doesn't > > work as conveniently as I expect, let me know and I will upload it to > > Rietveld again as one big patch. > > I

[issue1859] textwrap doesn't linebreak on "\n"

2010-11-23 Thread Tom Lynn
Tom Lynn added the comment: I've also been attempting to look into this and came up with an almost identical patch, which is promising: https://bitbucket.org/tlynn/issue1859/diff/textwrap.py?diff2=041c9deb90a2&diff1=f2c093077fbf I missed the wordsep_simple_re though. Testing it is the hard pa

[issue9915] speeding up sorting with a key

2010-11-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The Rietveld issue is here: > http://codereview.appspot.com/3269041 > > I ended up loading my incremental patches in, but it's easy enough to > diff the base with the last patch. If for some reasons it doesn't > work as conveniently as I expect, let me know

[issue1508475] transparent gzip compression in urllib

2010-11-23 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nvawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue1859] textwrap doesn't linebreak on "\n"

2010-11-23 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue1859] textwrap doesn't linebreak on "\n"

2010-11-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Doc patch applied to 3.2, 3.1, 2.7 in r86717, r86718, r86719 Jeremy Thurgood added to 3.2 Misc/ACKS in r86720. (I know, I should have added this first before committing.) I am leaving this open for a possible behavior patch. Mathew: look at the examples by Tom

[issue1745035] DoS smtpd vulnerability

2010-11-23 Thread Georg Brandl
Changes by Georg Brandl : -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue9189] Improve CFLAGS handling

2010-11-23 Thread Stefan Krah
Stefan Krah added the comment: Since I was the one who reopened this: The issues I found were fixed in r85358 and #9047 seems to be ok now. Setting to pending. -- resolution: -> fixed stage: -> committed/rejected status: open -> pending ___ Python

[issue1859] textwrap doesn't linebreak on "\n"

2010-11-23 Thread Matthew Barnett
Matthew Barnett added the comment: textwrap_2010-11-23.diff is my attempt to provide a fix, if it's wanted/needed. -- Added file: http://bugs.python.org/file19791/textwrap_2010-11-23.diff ___ Python tracker ___

[issue1745035] DoS smtpd vulnerability

2010-11-23 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: AFAICT patch looks ok to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue1859] textwrap doesn't linebreak on "\n"

2010-11-23 Thread Terry J. Reedy
Changes by Terry J. Reedy : Removed file: http://bugs.python.org/file19785/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue1676121] Problem linking to readline lib on x86(64) Solaris

2010-11-23 Thread Roumen Petrov
Roumen Petrov added the comment: Hmm why you dont use LDFLAGS ? It is well documented what to expect during configuration and build phase. -- nosy: +rpetrov ___ Python tracker ___

[issue1745035] DoS smtpd vulnerability

2010-11-23 Thread Savio Sena
Savio Sena added the comment: size_limits are not class attributes instead of instance attributes, as suggested by giampaolo.rodola. -- Added file: http://bugs.python.org/file19790/issue1745035-101123-saviosena.diff ___ Python tracker

[issue2001] Pydoc interactive browsing enhancement

2010-11-23 Thread Éric Araujo
Éric Araujo added the comment: I am reviewing this and making some edits to the patch. Will post this week. -- nosy: +giampaolo.rodola ___ Python tracker ___ ___

[issue10399] AST Optimization: inlining of function calls

2010-11-23 Thread Dave Malcolm
Dave Malcolm added the comment: py3k-ast-pyoptimize-2010-11-19-006.patch fixed up and committed to the branch as r86715; I'll work on that branch for the time being. -- ___ Python tracker

[issue10512] regrtest ResourceWarning - unclosed sockets and files

2010-11-23 Thread Nadeem Vawda
Nadeem Vawda added the comment: Attached is a patch that fixes the warnings in test_xmlrpc, along with some other file- and socket-related warnings in test_normalization, test_timeout and test_tk that only show up when regrtest is run with -uall. The warning in test_timeout could be fixed wit

[issue1745035] DoS smtpd vulnerability

2010-11-23 Thread Savio Sena
Savio Sena added the comment: Previous patch was incorrect. I'm attaching another one, I'm really sorry. @giampaolo, about making the limits class attributes, it's not a good idea IMHO. According to RFC1869 command sizes can change depending on which Service Extensions are supported. ---

[issue9742] Python 2.7: math module fails to build on Solaris 9

2010-11-23 Thread Mark Dickinson
Mark Dickinson added the comment: > I *do* get a math module... but it does *not* have a round function. Not a problem: the math module isn't supposed to have a round function. :-) The round function is used as part of the calculations that produce the gamma function. So if the gamma functi

[issue10399] AST Optimization: inlining of function calls

2010-11-23 Thread Dave Malcolm
Dave Malcolm added the comment: > If this a work in progress, you could create an SVN branch in the > sandbox (you can then use svnmerge to avoid diverging too much from > mainline) or an hg repo. Good idea; I've created branch "dmalcolm-ast-optimization-branch" (of py3k) on svn.python.org for

[issue1745035] DoS smtpd vulnerability

2010-11-23 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I think data_size_limit and command_size_limit should be class attributes instead of instance attributes. -- ___ Python tracker ___ _

[issue1745035] DoS smtpd vulnerability

2010-11-23 Thread Savio Sena
Savio Sena added the comment: Attaching a more concise patch, as requested by georg.brandl. -- Added file: http://bugs.python.org/file19787/issue1745035-101123-saviosena.diff ___ Python tracker _

[issue10515] csv sniffer does not recognize quotes at the end of line

2010-11-23 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. It would be helpful if you could supply a patch including a unit test for this against 3.2 and/or 2.7. Note only security issues are accepted for 2.6. -- nosy: +ned.deily stage: -> unit test needed versions: +Python 3.2 -Python 2.6

[issue9742] Python 2.7: math module fails to build on Solaris 9

2010-11-23 Thread Doug Shea
Doug Shea added the comment: It's actually not quite a solution, either. Working your changes into the build process, I *do* get a math module... but it does *not* have a round function. > python Python 2.7 (r27, Nov 23 2010, 11:54:39) [GCC 3.3.2] on sunos5 Type "help", "copyright", "credits"

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-11-23 Thread Matthew Barnett
Matthew Barnett added the comment: issue2636-20101123.zip is a new version of the regex module. Oops, sorry, the weird behaviour of msg11 was a bug. :-( -- Added file: http://bugs.python.org/file19786/issue2636-20101123.zip ___ Python tracker

[issue10515] csv sniffer does not recognize quotes at the end of line

2010-11-23 Thread Martin Budaj
New submission from Martin Budaj : The method Sniffer._guess_quote_and_delimiter() in the module csv.py contains a bug in a regexp which checks for quotes around the last item of the line (example: a,b,"c,d"\n). the pattern '(?P>[^\w\n"\'])(?P ?)(?P["\']).*?(?P=quote)(?:$|\n)' used in the rege

[issue10513] sqlite3.InterfaceError after commit

2010-11-23 Thread Ned Deily
Ned Deily added the comment: Also fails with 3.2 as in 2.7 and works in 3.1 as in 2.6. -- nosy: +ghaering, ned.deily stage: -> needs patch type: crash -> behavior versions: +Python 3.2 ___ Python tracker

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-11-23 Thread R. David Murray
R. David Murray added the comment: Please don't change the type, this issue is about the feature request of adding this regex engine to the stdlib. I'm sure Matthew will get back to you about your question. -- type: behavior -> feature request ___

[issue9807] deriving configuration information for different builds with the same prefix

2010-11-23 Thread Matthias Klose
Matthias Klose added the comment: looks good. checked with a plain and a debug build and installation. -- ___ Python tracker ___ ___ P

[issue10510] distutils.command.upload/register HTTP message headers: bad line termination

2010-11-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: I think, it is better that distutils.command.register and distutils.command.upload use CRLF as the line terminator for header values. It just helps in many cases, we can safely side by this case, but not relying LR or CR only may not be always possible.

[issue1859] textwrap doesn't linebreak on "\n"

2010-11-23 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: -phillip.m.feld...@gmail.com ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1859] textwrap doesn't linebreak on "\n"

2010-11-23 Thread Phillip M. Feldman
Phillip M. Feldman added the comment: I would like to unsubscribe from this thread, but haven't been able to figure out how to do it. Phillip On Mon, Nov 22, 2010 at 11:50 PM, Georg Brandl wrote: > > Georg Brandl added the comment: > > Yes, please do apply. You don't need to run a doc build

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-11-23 Thread Steve Moran
Steve Moran added the comment: Forgive me if this is just a stupid oversight. I'm a linguist and use UTF-8 for "special" characters for linguistics data. This often includes multi-byte Unicode character sequences that are composed as one grapheme. For example the í̵ (if it's displaying corre

[issue10510] distutils.command.upload/register HTTP message headers: bad line termination

2010-11-23 Thread Brian Jones
Brian Jones added the comment: In truth, I don't personally know if the other PyPI server implementations also have to work around this issue. Other comments on that are welcome. As for my own implementation, I've implemented a workaround to this, but I'm working around and reimplementing wh

[issue10087] HTML calendar is broken

2010-11-23 Thread Chris Lambacher
Chris Lambacher added the comment: I don't think we *need* to have the encoding in the HTML calendar, but I doubt we could remove it at this point, deprecate maybe, but since I don't use the module I don't have a sense for how often the need for encoding comes up. The one thing that the encod

[issue9742] Python 2.7: math module fails to build on Solaris 9

2010-11-23 Thread Jerzy Kozera
Jerzy Kozera added the comment: Running gcc -Wl,-R/usr/local/lib,-R/usr/lib -o python Python/pymath.o Modules/python.o libpython2.7.a -lresolv -lsocket -lnsl -lrt -ldl -lpthread -lm mv build/lib.solaris-2.8-sun4u-2.7/math_failed.so build/lib.solaris-2.8-sun4u-2.7/math.so seems to have m

[issue10466] locale.py resetlocale throws exception on Windows (getdefaultlocale returns value not usable in setlocale)

2010-11-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Marc-Andre Lemburg wrote: > > Marc-Andre Lemburg added the comment: > > R. David Murray wrote: >> >> R. David Murray added the comment: >> >> I had a report from a user on IRC during the bug weekend that they could not >> reproduce the failure on window

[issue7094] Add alternate float formatting styles to new-style formatting.

2010-11-23 Thread Eric Smith
Changes by Eric Smith : -- stage: unit test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue10466] locale.py resetlocale throws exception on Windows (getdefaultlocale returns value not usable in setlocale)

2010-11-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: R. David Murray wrote: > > R. David Murray added the comment: > > I had a report from a user on IRC during the bug weekend that they could not > reproduce the failure on windows. So it may be dependent on the windows > version. That doesn't answer you

[issue10435] Document unicode C-API in reST

2010-11-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Alexander Belopolsky wrote: > > Alexander Belopolsky added the comment: > > On Wed, Nov 17, 2010 at 5:20 PM, Marc-Andre Lemburg > wrote: > .. >> -/* Encodes a Unicode object and returns the result as Python string >> +/* Encodes a Unicode object and retu

[issue10514] configure does not create accurate Makefile

2010-11-23 Thread Keith Meyer
New submission from Keith Meyer : When running configure on AIX 5.3 using: OPT=-O2 LDFLAGS=-s ./configure --with-gcc="xlc_r -q64" --with-cxx-main="xlC_r -q64" --disable-ipv6 AR="ar -X64" The Makefile still contains g++ as the CXX compiler to be used. -- components: Build messages: 122

[issue10499] Modular interpolation in configparser

2010-11-23 Thread Alexander Solovyov
Changes by Alexander Solovyov : -- nosy: +asolovyov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue10513] sqlite3.InterfaceError after commit

2010-11-23 Thread Anders Blomdell
New submission from Anders Blomdell : With version 2.7 (and 2.7.1rc1), the following sequence (see attached test): c = cursor.execute(' select k from t where k == ?;', (1,)) conn.commit() r = c.fetchone() Traceback (most recent call last): File "/bugs/sqlite_bug.py", line 22, in

[issue10504] Trivial mingw compile fixes

2010-11-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: But a "strict bugfix" should fix something. Is there something that did not work before, and will work after this patch? IOW, how do you compile posixmodule.c with MinGW and does it produce a working module? Now, I *am* interested in a working MinGW bu

[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: What file specifically did you download? -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-23 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +loewis versions: -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10510] distutils.command.upload/register HTTP message headers: bad line termination

2010-11-23 Thread Éric Araujo
Éric Araujo added the comment: Thank you for the report. This is how I understand the part of the spec you quoted: Strictly valid HTTP uses CRLF, but servers and clients should be liberal in what they accept and deal with LF too. Senthil, do you agree with that? There are a small number of

[issue10512] regrtest ResourceWarning - unclosed socket

2010-11-23 Thread Nadeem Vawda
New submission from Nadeem Vawda : When running "make test" on Python3, test_socket reports a number of ResourceWarnings due to unclosed sockets. Attached is a patch that changes the relevant tests so that they close all the created sockets. test_multiprocessing and test_xmlrpc have a similar

[issue10483] http.server - what is executable on Windows

2010-11-23 Thread Glenn Linderman
Glenn Linderman added the comment: Martin, you are splitting hairs about the "reported problem". The original message does have a paragraph about the executable bits being wrong. But the bulk of the message is commenting about the difficulty of figuring out what to replace it with. So it l

[issue10504] Trivial mingw compile fixes

2010-11-23 Thread Johann Hanne
Johann Hanne added the comment: Well... ok. Although I already regard the patch as a strict bugfix (it fixes compilation of some C modules on MinGW), I'll go forward and create a patch for Python 3.2 which fixes compilation of all C modules on MinGW (all which are supposed to work on Win32 th

[issue10511] heapq docs clarification

2010-11-23 Thread Georg Brandl
Georg Brandl added the comment: Great! Applied in r86708. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue10511] heapq docs clarification

2010-11-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: That looks fine. Perhaps s/trees/binary trees -- assignee: rhettinger -> georg.brandl ___ Python tracker ___ __

[issue10504] Trivial mingw compile fixes

2010-11-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Why exactly are you skeptical? Because it doesn't fix everything in > one go? The other changes are also minimal (I'm not even sure if it > requires more source changes, maybe I have just to get my #defines > right). If you prefer to see a single patch which

[issue10511] heapq docs clarification

2010-11-23 Thread Georg Brandl
New submission from Georg Brandl : On the python-docs mailing list, a user suggested to rewrite the first paragraph of the heapq docs like this. Are you okay with this change, Raymond? Heaps are trees for which every parent node has a value less than or equal to any of its children. This imp

[issue10508] compiler warnings about formatting pid_t as an int

2010-11-23 Thread Georg Brandl
Georg Brandl added the comment: Well, I can't see a problem with it. Backported in r86706, r86707. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __