[issue10902] Doc type: "run_*" instead of "run*" on http://docs.python.org/library/pdb.html

2011-01-13 Thread Nick Coghlan
Nick Coghlan added the comment: Yep, go ahead. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue9844] calling nonexisting function under __INSURE__

2011-01-13 Thread Eli Bendersky
Eli Bendersky added the comment: Committed r87991 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue10902] Doc type: "run_*" instead of "run*" on http://docs.python.org/library/pdb.html

2011-01-13 Thread Eli Bendersky
Eli Bendersky added the comment: Here's a patch that fixes it to "run*". If it's OK I will commit it and port to py3k where the problem also exists -- keywords: +patch nosy: +ncoghlan Added file: http://bugs.python.org/file20401/issue10902.py27.1.patch

[issue9844] calling nonexisting function under __INSURE__

2011-01-13 Thread Nick Coghlan
Nick Coghlan added the comment: A quick Google search suggests that code is there to make Insure++ happy, so +1 for Eli's simple fix. Georg hasn't closed the py3k branch yet, so go ahead and commit it. (3.2c1 is due this Saturday, so it's worth keeping a close eye on python-committers for th

[issue8957] strptime(.., '%c') fails to parse output of strftime('%c', ..) in some locales

2011-01-13 Thread Eli Bendersky
Eli Bendersky added the comment: Alexander, I get the same error for the he_IL locale. Will look into this -- ___ Python tracker ___ _

[issue10902] Doc type: "run_*" instead of "run*" on http://docs.python.org/library/pdb.html

2011-01-13 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: +eli.bendersky stage: -> needs patch type: performance -> behavior ___ Python tracker ___ ___ Pyt

[issue6083] Reference counting bug in PyArg_ParseTuple and PyArg_ParseTupleAndKeywords

2011-01-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Attached patch passes the regrtest and makes test-functools.py raise an exception rather than crash. The proposed change will make functions like partial.__setstate__ require tuple argument even though currently it would accept any container. This is

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread Glenn Linderman
Glenn Linderman added the comment: Graham, Thanks for your comments. Fortunately, if the new charset parameter is not supplied, no mucking with stdout or stderr is done, which is the only reason I cannot argue strongly against the feature, which I would have implemented as a separate API...

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread Graham Dumpleton
Graham Dumpleton added the comment: FWIW, keep in mind that cgi.FieldStorage is also quite often used in WSGI scripts in arbitrary WSGI servers which have got nothing to do with CGI. Having cgi.FieldStorage muck around with stdout/stderr under WSGI, even where using a CGI/WSGI bridge, would p

[issue10902] Doc type: "run_*" instead of "run*" on http://docs.python.org/library/pdb.html

2011-01-13 Thread Jean Jordaan
New submission from Jean Jordaan : http://docs.python.org/library/pdb.html states "The run_* functions and set_trace() are aliases" but the functions in question are "run", "runeval" and "runcall": no underscores. -- assignee: docs@python components: Documentation messages: 126231 nosy

[issue7936] sys.argv contains only scriptname

2011-01-13 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker ___ ___ Python

[issue9844] calling nonexisting function under __INSURE__

2011-01-13 Thread Eli Bendersky
Eli Bendersky added the comment: Attaching a patch that removes the call of the non-existing function in py3k. I ran the test suite and make patchcheck. I don't remove the whole __INSURE__ since someone might still want it in (and I don't have the tool to play around with it). But the call sh

[issue7936] sys.argv contains only scriptname

2011-01-13 Thread Bill Hayes
Bill Hayes added the comment: I finally found a solution from a page on StackOverflow. I had to add the two characters %* to the end of the Data value for the Windows registry key: HKEY_CLASSES_ROOT\Applications\python.exe\shell\open\command So the Data value is now: "C:\Python26\python.ex

[issue7322] Socket timeout can cause file-like readline() method to lose data

2011-01-13 Thread Ross Lagerwall
Ross Lagerwall added the comment: Attached patch disallows further reads after a timeout. -- Added file: http://bugs.python.org/file20398/i7322.patch ___ Python tracker ___ _

[issue9844] calling nonexisting function under __INSURE__

2011-01-13 Thread Eli Bendersky
Eli Bendersky added the comment: This code is in Modules/main.c, function Py_Main. In 2.7, only _Py_ReleaseInternedStrings is called, and this function is defined in Objects/stringobject.c In 3k, the two functions are called as specified above. _Py_ReleaseInternedStrings doesn't exist in 3k

[issue6083] Reference counting bug in PyArg_ParseTuple and PyArg_ParseTupleAndKeywords

2011-01-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Let me summarize the issue: the PyArg_ParseTuple format code 'O' returns a borrowed reference. However, when the 'O' code appears inside parenthesis, there may not be an object to hold the reference to borrow from. This is what happens in the test-fun

[issue1647654] No obvious and correct way to get the time zone offset

2011-01-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Closing this in favor of #9527. See msg126064 for more details. -- stage: patch review -> committed/rejected ___ Python tracker ___ __

[issue7662] time.utcoffset()

2011-01-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Just to clarify: Anatoly changed the resolution, not status (and I agree that was not appropriate.) The status was set to "pending" and that would change to "open" automatically if a new comment is posted. As for the substance of Anatoly's objection -

[issue10278] add time.wallclock() method

2011-01-13 Thread Glenn Maynard
Glenn Maynard added the comment: I agree with Victor: Python should provide a function to supply monotonic time, which is what's really wanted for measuring time deltas. Far too many applications incorrectly use the system clock for this, and Python makes this worse by not providing any stan

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread Glenn Linderman
Glenn Linderman added the comment: Victor, thanks for your comments, and interest in this bug. Other than the existence of the charset parameter, and whether or not to include IOMix, I think all of the others could be fixed later, and do not hurt at present. So I will just comment on those

[issue6697] Check that _PyUnicode_AsString() result is not NULL

2011-01-13 Thread STINNER Victor
STINNER Victor added the comment: Le jeudi 13 janvier 2011 à 23:05 +, Alexander Belopolsky a écrit : > I take your comment as +1 for adding PyModule_GetNameObject(). I wrote a similar patch to add PyModule_GetNameObject() (I am working on another huge patch, to fix #3080). You have to docum

[issue7662] time.utcoffset()

2011-01-13 Thread anatoly techtonik
Changes by anatoly techtonik : -- nosy: -techtonik ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue7662] time.utcoffset()

2011-01-13 Thread anatoly techtonik
anatoly techtonik added the comment: I am tired. Do as you wish. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread STINNER Victor
STINNER Victor added the comment: I tested cgi_32.patch on Windows with Apache: - a test with a binary file works: I get a binary file instead of a text file - a test with a non-ASCII character (a\xe9b) works: the text is correctly decoded I used the test script from full_source_and_error.zi

[issue7662] time.utcoffset()

2011-01-13 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: -brett.cannon status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue7662] time.utcoffset()

2011-01-13 Thread Brett Cannon
Brett Cannon added the comment: You can discuss within the comments whether this issue should be re-opened or not, but do not take it upon yourself to change the status on your own once a core developer has already closed an issue as their decision supersedes that of a regular user.

[issue7662] time.utcoffset()

2011-01-13 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: -brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue7662] time.utcoffset()

2011-01-13 Thread anatoly techtonik
anatoly techtonik added the comment: This one is a different issue. Even though it can not be solved without by #9527, it is not superseded by it. So, better add to dependencies. -- resolution: rejected -> status: pending -> open ___ Python tracker

[issue2292] Missing *-unpacking generalizations

2011-01-13 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue6697] Check that _PyUnicode_AsString() result is not NULL

2011-01-13 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file19980/issue6697-lsprof.diff ___ Python tracker ___ ___ Python-bugs-l

[issue6697] Check that _PyUnicode_AsString() result is not NULL

2011-01-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am replacing issue6697-lsprof.diff with a (hopefully) more carefully written version that addresses the issues that Victor noted. Victor, I take your comment as +1 for adding PyModule_GetNameObject(). I started looking into adding unit tests that wo

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread Etienne Robillard
Etienne Robillard added the comment: +1 -- title: cgi module cannot handle POST with multipart/form-data in 3.x -> cgi module cannot handle POST with multipart/form-data in 3.x ___ Python tracker ___

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file20288/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread Éric Araujo
Éric Araujo added the comment: Can one person please 1) Sum up the discussion and its outcome briefly 2) Remove all patches and replace them with one diff with docs, tests and code (even if you have new files, you don’t have to put them in a zip, use svn add and they will show up in the svn

[issue10893] The docs mark staticmethod as a function

2011-01-13 Thread Georg Brandl
Georg Brandl added the comment: Fully agreed. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread Glenn Linderman
Glenn Linderman added the comment: The O_BINARY stuff was probably necessary because issue 10841 is not yet in the build Pierre was using? I agree it in not necessary with the fix for that issue, but neither does it hurt. It could be stripped out, if you think that is best, Antoine. But the

[issue10893] The docs mark staticmethod as a function

2011-01-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: That's just the way we do our markup. Sorry, but this is a total non-issue. You're trying to create finer distinctions than the markup needs to support. Besides, the distinction between types, objects, callables, functions, instances, descriptors and whatnot

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Comment ça, no up to date patch ? cgi_32.patch is up to date, the API > changes are documented, the unittests work, what else do you want ? The O_BINARY stuff looks obsolete to me. -- ___ Python tracker

[issue10893] The docs mark staticmethod as a function

2011-01-13 Thread Éric Araujo
Éric Araujo added the comment: I don’t have enough experience to make a judgment call here. Raymond or Georg, can you? -- nosy: +georg.brandl versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker

[issue10893] The docs mark staticmethod as a function

2011-01-13 Thread Ram Rachum
Ram Rachum added the comment: So if int is officially a class, why not start doing :class:`int` instead of :func:`int`? "they’re marked up as functions, so you should treat them as functions." Here, I've treated staticmethod as a function: >>> assert isinstance(staticmethod, types.Functi

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread Pierre Quentel
Pierre Quentel added the comment: Comment ça, no up to date patch ? cgi_32.patch is up to date, the API changes are documented, the unittests work, what else do you want ? -- ___ Python tracker ___

[issue7936] sys.argv contains only scriptname

2011-01-13 Thread Pierre Bourgault
Pierre Bourgault added the comment: I had the same problem with another version of python on Windows 7. We are using python 2.4.2 for production and it is installed in D:\Tools\Python. For experimentation purpose, I installed Python 2.7 in the usual location. It broke a few things and I unins

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, there are 10+ files attached, 20+ comments, no up-to-date patch. It's really too late for 3.2 IMO. -- nosy: +pitrou priority: release blocker -> normal stage: patch review -> needs patch versions: -Python 3.2 _

[issue10893] The docs mark staticmethod as a function

2011-01-13 Thread Éric Araujo
Éric Araujo added the comment: Okay, scratch the comment about int, it’s not been accurate for quite a number of years. Going back to staticmethod, my point still applies: Follow what the docs say. staticmethod is a type in CPython probably due to the way descriptors work; contextlib.closin

[issue9268] Document annotation option to pickletools.dis

2011-01-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed documentation changes in revision 87990. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

[issue10893] The docs mark staticmethod as a function

2011-01-13 Thread Ram Rachum
Ram Rachum added the comment: I'm really confused by your comment. "int being a function is really a CPython implementation detail" I don't understand this. I should be able to do isinstance(x, int) in all implementations of Python, no? So `int` must be a class across all Python implementati

[issue10893] The docs mark staticmethod as a function

2011-01-13 Thread Éric Araujo
Éric Araujo added the comment: staticmethod being a type or int being a function is really a CPython implementation detail. If the docs say something is a class, it behaves as a class, you can subclass it and everything, and the other VMs implement it as a class, why would you want to consid

[issue10893] The docs mark staticmethod as a function

2011-01-13 Thread Ram Rachum
Ram Rachum added the comment: But why? What's the reason for that? Why mislabel a type as a function? -- ___ Python tracker ___ ___ P

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread Andy Harrington
Changes by Andy Harrington : Added file: http://bugs.python.org/file20396/adder.cgi ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread Andy Harrington
Changes by Andy Harrington : Added file: http://bugs.python.org/file20395/localCGIServer.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread Andy Harrington
Changes by Andy Harrington : Added file: http://bugs.python.org/file20394/adderpost.html ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread Andy Harrington
Changes by Andy Harrington : Added file: http://bugs.python.org/file20393/adder.html ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread Andy Harrington
Changes by Andy Harrington : Removed file: http://bugs.python.org/file20392/localCGIServer.py ___ Python tracker ___ ___ Python-bugs-list maili

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread Andy Harrington
Andy Harrington added the comment: I found a similar issue. If you want more simple files demonstrating the issue, I have attached some. If I start my localCGIServer.py, then I can use adder.html fine (uses get), but with adderpost.html (uses post) the cgi action file, adder.cgi (that worke

[issue7322] Socket timeout can cause file-like readline() method to lose data

2011-01-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > That's my opinion too. So, instead, of doing the above surgery inside > > the IO stack, the SocketIO layer could detect the timeout and disallow > > further access. What do you think? > > So after a timeout occurs the file-object basically becomes worthless

[issue7322] Socket timeout can cause file-like readline() method to lose data

2011-01-13 Thread Ross Lagerwall
Ross Lagerwall added the comment: > That complicates things quite a bit, > especially given that it has to be grafted on at least two layers of the > IO stack (the raw IO layer, and the buffered IO layer). Also the TextIO layer I think. > That's my opinion too. So, instead, of doing the above

[issue5863] bz2.BZ2File should accept other file-like objects.

2011-01-13 Thread wrobell
wrobell added the comment: OK! :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mai

[issue5863] bz2.BZ2File should accept other file-like objects.

2011-01-13 Thread Éric Araujo
Éric Araujo added the comment: We’ve already agreed the feature is desirable; what’s missing is a patch, not user stories :) -- nosy: +niemeyer versions: +Python 3.3 -Python 3.2 ___ Python tracker

[issue5863] bz2.BZ2File should accept other file-like objects.

2011-01-13 Thread wrobell
wrobell added the comment: A use case wget -O http://planet.openstreetmap.org/planet-110112.osm.bz2 | tee planet.bz2 | osm2sql | psql osm planet-*osm.bz2 files are 14GB at the moment. it would be great to read them from stdin while downloading from a server and uploading to a database at

[issue10900] bz2 module fails to uncompress large files

2011-01-13 Thread wrobell
wrobell added the comment: Forgot the mention the real amount of lines! bzip2 -dc < planet-110105.osm.bz2 | wc -l 2783595867 -- ___ Python tracker ___ _

[issue7322] Socket timeout can cause file-like readline() method to lose data

2011-01-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > """Generally there is no guarantee that a buffered object works > "properly" when the raw IO object raises some exception > intermittently""" > > I disagree. EINTR is a classic case of this and is something that > buffering IO layers deal with all the time.

[issue1243654] Faster output if message already has a boundary

2011-01-13 Thread SilentGhost
SilentGhost added the comment: Issue #10901 was closed as a duplicate of this issue. -- nosy: +SilentGhost versions: +Python 3.1, Python 3.2 ___ Python tracker ___ ___

[issue7322] Socket timeout can cause file-like readline() method to lose data

2011-01-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: """Generally there is no guarantee that a buffered object works "properly" when the raw IO object raises some exception intermittently""" I disagree. EINTR is a classic case of this and is something that buffering IO layers deal with all the time. (readli

[issue10901] Python 3 MIME generator dies if not given boundary

2011-01-13 Thread SilentGhost
SilentGhost added the comment: It is a duplicate of #1243654. Closing. -- nosy: +SilentGhost resolution: -> duplicate status: open -> closed superseder: -> Faster output if message already has a boundary ___ Python tracker

[issue10900] bz2 module fails to uncompress large files

2011-01-13 Thread SilentGhost
Changes by SilentGhost : -- nosy: +niemeyer -gustavo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue10900] bz2 module fails to uncompress large files

2011-01-13 Thread SilentGhost
Changes by SilentGhost : -- nosy: +gustavo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue2650] re.escape should not escape underscore

2011-01-13 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- nosy: -akuchling ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10901] Python 3 MIME generator dies if not given boundary

2011-01-13 Thread Brandon Craig Rhodes
Brandon Craig Rhodes added the comment: Here is a patch that fixes the problem. The problem probably only occurs if the MIMEMultipart is actually given several MIME parts to use in its interior. -- keywords: +patch Added file: http://bugs.python.org/file20391/email-boundary.diff _

[issue10901] Python 3 MIME generator dies if not given boundary

2011-01-13 Thread Brandon Craig Rhodes
New submission from Brandon Craig Rhodes : If you try doing "msg.as_string()" to a MIMEMultipart message that has not been given a boundary, then it dies with this exception: Traceback (most recent call last): File "mime_gen_alt.py", line 40, in print(msg.as_string()) File "/home/brand

[issue10900] bz2 module fails to uncompress large files

2011-01-13 Thread wrobell
New submission from wrobell : There is problem to uncompress large files with bz2 module. For example, please download 13GB OpenStreetMap file using following torrent http://osm-torrent.torres.voyager.hr/files/planet-latest.osm.bz2.torrent Try to count lines in the compressed file with command

[issue2650] re.escape should not escape underscore

2011-01-13 Thread yeswanth
yeswanth added the comment: @James test results for py3k python -m timeit -s "$(printf "import re\ndef escape(s):\n return re.sub('([][.^$*+?{}\\|()])', '\\\1', s)")" 'escape("!@#$%^&*()!@#$%^&*()!@#$%^&*()!@#$%^&*()!@#$%^&*()!@#$%^&*()!@#$%^&*()!@#$%^&*()")' 10 loops, best of 3: 17.1

[issue2650] re.escape should not escape underscore

2011-01-13 Thread James Y Knight
James Y Knight added the comment: Right you are, it seems that python's regexp implementation is terribly slow when doing replacements with a substitution in them. (fixing the broken test, as you pointed out changed the timing to 97.6 usec vs the in-error-reported 18.3usec.) Oh well. I still

[issue10899] No function type annotations in the standard library

2011-01-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: Will do :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue2710] error: (10035, 'The socket operation could not complete without blocking')

2011-01-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: This can be reopened if the problem ever appears in a current issue. -- resolution: -> out of date status: open -> closed ___ Python tracker __

[issue2650] re.escape should not escape underscore

2011-01-13 Thread SilentGhost
SilentGhost added the comment: James, I think the setup statement should have been: "import re\ndef escape(s):\n return re.sub(r'([][.^$*+?{}\\|()])', r'\\\1', s)")" note the raw string literals. The timings that I got after applying file20388 (http://bugs.python.org/file20388/issue2650.dif

[issue8035] urllib.request.urlretrieve hangs waiting for connection close after a redirect

2011-01-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: issue10577 is a duplicate. See an URL allowing reproducing in msg122831. -- nosy: +pitrou priority: high -> normal stage: unit test needed -> needs patch title: urllib.request.urlretrieve hangs -> urllib.request.urlretrieve hangs waiting for connection

[issue10577] (Fancy) URL opener stuck when trying to open redirected url

2011-01-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, closing as duplicate. -- resolution: -> duplicate status: open -> closed superseder: -> urllib.request.urlretrieve hangs ___ Python tracker _

[issue10899] No function type annotations in the standard library

2011-01-13 Thread Guido van Rossum
Guido van Rossum added the comment: Yes, please add the lost info back to docstrings. -- ___ Python tracker ___ ___ Python-bugs-list

[issue2650] re.escape should not escape underscore

2011-01-13 Thread James Y Knight
James Y Knight added the comment: Show your speed test? Looks 2.5x faster to me. But I'm running this on python 2.6, so I guess it's possible that the re module's speed was decimated in Py3k. python -m timeit -s "$(printf "import re\ndef escape(s):\n return re.sub('([][.^$*+?{}\\|()])', '\\\

[issue10013] fix `./libpython2.6.so: undefined reference to `_PyParser_Grammar´` in parallel builds

2011-01-13 Thread SilentGhost
Changes by SilentGhost : -- resolution: accepted -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue2650] re.escape should not escape underscore

2011-01-13 Thread SilentGhost
SilentGhost added the comment: The naïve version of the code proposed was about 3 times slower than existing version. However, the test, I think, is valuable enough. So, I'm reinstating it. -- Added file: http://bugs.python.org/file20389/test_re.diff __

[issue2650] re.escape should not escape underscore

2011-01-13 Thread SilentGhost
Changes by SilentGhost : Removed file: http://bugs.python.org/file20388/issue2650.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread Pierre Quentel
Pierre Quentel added the comment: Ok, thanks. Here is a summary of the API changes : - the argument fp passed to FieldStorage is either an instance of (a subclass of) io.TextIOBase with a "buffer" attribute for the underlying binary layer (thus, it can't be a StringIO instance) ; or an object

[issue10013] fix `./libpython2.6.so: undefined reference to `_PyParser_Grammar´` in parallel builds

2011-01-13 Thread SilentGhost
Changes by SilentGhost : -- resolution: -> accepted status: open -> closed versions: +Python 3.1, Python 3.2 ___ Python tracker ___ _

[issue10013] fix `./libpython2.6.so: undefined reference to `_PyParser_Grammar´` in parallel builds

2011-01-13 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: This change was backported to 2.7 (r87701) and 3.1 (r87702). -- nosy: +Arfrever ___ Python tracker ___ ___

[issue10897] UNIX mmap unnecessarily dup() file descriptor

2011-01-13 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread R. David Murray
R. David Murray added the comment: It getting in to 3.2 would be a release manager call, so I've set it to release blocker so Georg can make the call. My opinion is that while I would *really* like to see this fixed in 3.2, the changes really should have a thorough *design* review as well as

[issue7322] Socket timeout can cause file-like readline() method to lose data

2011-01-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, I recently fixed the makefile() documentation: “The socket must be in blocking mode; it can have a timeout, but the file object’s internal buffer may end up in a inconsistent state if a timeout occurs.” (in http://docs.python.org/dev/library/socke

[issue7322] Socket timeout can cause file-like readline() method to lose data

2011-01-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is an interesting approach. The problem is that AFAICT the issue is not limited to readline. If you call e.g. read(1) and the socket times out after having returned the first 5000 bytes, then those 5000 bytes might get lost as well (depending on spec

[issue7322] Socket timeout can cause file-like readline() method to lose data

2011-01-13 Thread David Beazley
David Beazley added the comment: Have any other programming environments ever had a feature where a socket timeout returns an exception containing partial data?I'm not aware of one offhand and speaking as a systems programmer, something like this might be somewhat unexpected. My concern

[issue10899] No function type annotations in the standard library

2011-01-13 Thread Scott Dial
Scott Dial added the comment: Raymond Hettinger wrote: > I think those annotations should be replaced with comments. In your revisions, you didn't do anything but blow away the annotations despite what you said here, which is an unfortunate loss of information for implementers and users of th

[issue2650] re.escape should not escape underscore

2011-01-13 Thread SilentGhost
SilentGhost added the comment: Here is the patch, including adjustment to the test. -- Added file: http://bugs.python.org/file20388/issue2650.diff ___ Python tracker ___

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread Pierre Quentel
Pierre Quentel added the comment: Ok Eric, thanks for the tips I attach the diff for the 2 modified modules (cgi.py and test_cgi.py). For the other tests, they are not in the branch and there are many test files so I leave the zip file I removed outdated diffs -- Added file: http://

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread Pierre Quentel
Changes by Pierre Quentel : Removed file: http://bugs.python.org/file20244/cgi_diff.txt ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread Pierre Quentel
Changes by Pierre Quentel : Removed file: http://bugs.python.org/file20384/test_cgi_20111013.diff ___ Python tracker ___ ___ Python-bugs-list m

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread Pierre Quentel
Changes by Pierre Quentel : Removed file: http://bugs.python.org/file20383/cgi_20110113.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread Pierre Quentel
Changes by Pierre Quentel : Removed file: http://bugs.python.org/file20382/cgi_diff_20110112.txt ___ Python tracker ___ ___ Python-bugs-list ma

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread Pierre Quentel
Changes by Pierre Quentel : Removed file: http://bugs.python.org/file20356/cgi_diff_20110111.txt ___ Python tracker ___ ___ Python-bugs-list ma

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.x

2011-01-13 Thread Pierre Quentel
Changes by Pierre Quentel : Removed file: http://bugs.python.org/file20323/cgi_tests.zip ___ Python tracker ___ ___ Python-bugs-list mailing li

  1   2   >