[issue14535] three code examples in docs are not syntax highlighted

2012-04-13 Thread Georg Brandl
Georg Brandl added the comment: Ezio: That's a "bug" in Sphinx; even when the language is selected explicitly as "python", it will try to parse the code. It is fixed in a later Sphinx version. -- nosy: +georg.brandl ___ Python tracker

[issue1590864] Function-level import in os triggering an threaded import deadlock

2012-04-13 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue6380] Deadlock during the "import" in the fork()'ed child process if fork() happened while import_lock was held

2012-04-13 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue14393] Incorporate Guide to Magic Methods?

2012-04-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue14575] IDLE crashes after file open in OS X

2012-04-13 Thread Hugh Gibbons
New submission from Hugh Gibbons : IDLE crashes shortly after I open a any file with IDLE, using the file browser. If I open a file from the File->Recent Files list, it does not crash. OS X version 10.6.8. -- components: IDLE messages: 158249 nosy: hgibbons priority: normal severity:

[issue14304] Implement utf-8-bmp codec

2012-04-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue14339] Optimizing bin, oct and hex

2012-04-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue14408] Support ./python -m unittest in the stdlib tests

2012-04-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue14507] Segfault with starmap and izip combo

2012-04-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue12428] functools test coverage

2012-04-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue14554] test module: correction

2012-04-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> commit review type: -> enhancement ___ Python tracker ___ ___ Python-bugs

[issue14535] three code examples in docs are not syntax highlighted

2012-04-13 Thread Ezio Melotti
Ezio Melotti added the comment: I tried the attached patch but it didn't work for me. Using "python3" instead of "python" seemed to fix the problem. I also updated another "python" to use "python3". Thanks for the report and the patch! -- assignee: docs@python -> ezio.melotti nosy:

[issue14535] three code examples in docs are not syntax highlighted

2012-04-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 635966f6d3de by Ezio Melotti in branch '3.2': #14535: fix code highlight in multiprocessing examples. Patch by Tshepang Lekhonkhobe. http://hg.python.org/cpython/rev/635966f6d3de New changeset 957e2c71beef by Ezio Melotti in branch 'default': #14

[issue14562] urllib2 maybe blocks too long with small chunks

2012-04-13 Thread Anrs Hu
Anrs Hu added the comment: Okay, there's a test case of web.py: Server codes are following: import web class index(object): def GET(self): yield 'hello\n' yield 'world\n' time.sleep(60) client is Python interpreter >>> resp = urllib.urlopen(URL) >>> resp.readline()

[issue14477] Rietveld test issue

2012-04-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue14399] zipfile and creat/update comment

2012-04-13 Thread R. David Murray
R. David Murray added the comment: I must have been seeing what I expected to see. The test that failed was the non-empty test. News item fixed, thanks for the correction. -- ___ Python tracker

[issue14399] zipfile and creat/update comment

2012-04-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset b3b7f9dd7ce4 by R David Murray in branch '3.2': #14399: corrected news item http://hg.python.org/cpython/rev/b3b7f9dd7ce4 New changeset 225126c9d4b5 by R David Murray in branch '2.7': #14399: corrected news item http://hg.python.org/cpython/rev/225

[issue6380] Deadlock during the "import" in the fork()'ed child process if fork() happened while import_lock was held

2012-04-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: btw, a potentially related (or duplicate?) issue was already fixed - http://bugs.python.org/issue1590864 -- ___ Python tracker ___ __

[issue6380] Deadlock during the "import" in the fork()'ed child process if fork() happened while import_lock was held

2012-04-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: What is the status of this in 2.7? Brett - what about in 3.3 after you get importlib in? -- versions: +Python 3.3 -Python 3.1 ___ Python tracker

[issue14573] json iterencode can not handle general iterators

2012-04-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, rhettinger stage: -> test needed type: -> behavior versions: +Python 3.3 -Python 2.6, Python 3.1 ___ Python tracker ___ __

[issue14428] Implementation of the PEP 418

2012-04-13 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file25209/pep418-8.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue14428] Implementation of the PEP 418

2012-04-13 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file25201/pep418-7.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue14428] Implementation of the PEP 418

2012-04-13 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file25126/pep418-6.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue14428] Implementation of the PEP 418

2012-04-13 Thread STINNER Victor
STINNER Victor added the comment: Patch version 9: fixes for Windows (fix compilation and fix to code checking if GetTickCount64 is present). -- Added file: http://bugs.python.org/file25210/pep418-9.patch ___ Python tracker

[issue14574] SocketServer doesn't handle client disconnects properly

2012-04-13 Thread Vlad
New submission from Vlad : When dealing with a new connection, SocketServer.BaseRequestHandler.__init__ first calls the request handler (self.handle below) and then calls cleanup code which closes the connection (self.finish below). class BaseRequestHandler: def __init__(self, request, cli

[issue14573] json iterencode can not handle general iterators

2012-04-13 Thread Aaron Staley
New submission from Aaron Staley : The json library's encoder includes a function called 'iterencode'. iterencode allows for encoding to be streamed; as tokens are produced they are yielded. This allows for the encoded object to be streamed to a file, over a socket, etc. without being placed

[issue14572] 2.7.3: sqlite module does not build on centos 5

2012-04-13 Thread Joakim Sernbrant
New submission from Joakim Sernbrant : Python-2.7.3/Modules/_sqlite/connection.c: In function ‘_pysqlite_set_result’: Python-2.7.3/Modules/_sqlite/connection.c:552: error: ‘sqlite3_int64’ undeclared (first use in this function) The centos 5 version of sqlite3 (sqlite-devel-3.3.6-5) does not exp

[issue14555] clock_gettime/settime/getres: Add more clock identifiers

2012-04-13 Thread STINNER Victor
STINNER Victor added the comment: > Any particular reason not to add those? I didn't find yet documentation of: CLOCK_BOOTTIME_ALARM, CLOCK_REALTIME_ALARM For CLOCK_UPTIME_PRECISE, CLOCK_MONOTONIC_PRECISE, CLOCK_REALTIME_PRECISE: I don't know if there are useful. Are they different than the c

[issue1762561] unable to serialize Infinity or NaN on ARM using marshal

2012-04-13 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue11218] pattern=None when following documentation for load_tests and unittest.main()

2012-04-13 Thread Martin von Gagern
Martin von Gagern added the comment: Michael wrote: "[…] the real pattern being passed in". I wonder, what would be "the real pattern"? In the code I originally pasted, the load_tests function would be invoked by loadTestsFromModule (for module __main__). There is nothing file-based about this

[issue11218] pattern=None when following documentation for load_tests and unittest.main()

2012-04-13 Thread Michael Foord
Michael Foord added the comment: Also the patch to allow the pattern to be None (and revert to the default pattern in this case) looks good. -- ___ Python tracker ___ _

[issue11218] pattern=None when following documentation for load_tests and unittest.main()

2012-04-13 Thread Michael Foord
Michael Foord added the comment: So the logic of the "pattern" argument to "load_tests" is that it should not be None when test discovery is loading the __init__.py module of a test package. However, because most patterns will actually *prevent* __init__.py from being loaded by test discovery

[issue14428] Implementation of the PEP 418

2012-04-13 Thread STINNER Victor
STINNER Victor added the comment: Patch version 8: time.process_time() uses times() if available. Rename also "function" key of time.get_clock_info() with "implementation". -- Added file: http://bugs.python.org/file25209/pep418-8.patch ___ Python tr

[issue11218] pattern=None when following documentation for load_tests and unittest.main()

2012-04-13 Thread Martin von Gagern
Martin von Gagern added the comment: I'm attaching a patch to better explain what I'm suggesting. As you can see, this patch doesn't change the signature of discover, nor does it change the semantics for any code that doesn't pass pattern, or that passes some pattern other than None. The onl

[issue14571] float argument required, not NoneType

2012-04-13 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: It's a problem in tryton, which incorrectly passes a None value instead of a float. The issue was actually fixed 10 hours ago (!) in tryton: http://hg.tryton.org/tryton/rev/58a615b60cbd Please update to the last version! -- nosy: +amaury.forgeo

[issue14571] float argument required, not NoneType

2012-04-13 Thread Jonathan Finlay
Jonathan Finlay added the comment: This is the patch for the issue -- resolution: -> fixed Added file: http://bugs.python.org/file25207/locale.patch ___ Python tracker ___

[issue14571] float argument required, not NoneType

2012-04-13 Thread Jonathan Finlay
New submission from Jonathan Finlay : File "/home/jonathan/Desarrollo/Tryton/2.3/tryton/tryton/gui/main.py", line 1194, in _sig_remove_book res = page.sig_close() File "/home/jonathan/Desarrollo/Tryton/2.3/tryton/tryton/gui/window/form.py", line 492, in sig_close dialog.destroy()

[issue9303] Migrate sqlite3 module to _v2 API to enhance performance

2012-04-13 Thread Jim Jewett
Jim Jewett added the comment: I can't speak for GSoC or Gerhard, but it strikes me as a reasonable first step. An alternatives woube be writing it with fallbacks (so older sqlite can still be used, though less efficiently). It would also be nice to clean up at least one call with compatibil

[issue14555] clock_gettime/settime/getres: Add more clock identifiers

2012-04-13 Thread Jim Jewett
Jim Jewett added the comment: Any particular reason not to add those? -- nosy: +Jim.Jewett ___ Python tracker ___ ___ Python-bugs-lis

[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes

2012-04-13 Thread Alex Leach
Alex Leach added the comment: Patch included for Modules/_ctyles/libffi/src/x86/ffi64.c. I've added some include guards around anything necessary to compile with the Intel compiler. This patch is needed to compile the _ctypes module with icc on current Python releases (just successfully compil

[issue14562] urllib2 maybe blocks too long with small chunks

2012-04-13 Thread Jim Jewett
Changes by Jim Jewett : -- title: urllib2 maybe blocks too long -> urllib2 maybe blocks too long with small chunks ___ Python tracker ___ ___

[issue14562] urllib2 maybe blocks too long

2012-04-13 Thread Jim Jewett
Jim Jewett added the comment: It would be helpful to have a testcase, so that it will stay fixed. -- nosy: +Jim.Jewett ___ Python tracker ___ ___

[issue14428] Implementation of the PEP 418

2012-04-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > > perf_counter_process_time.patch: replace "time.clock if windows else > time.time" with time.perf_counter, and getrusage/clock with time.process_time. > > pybench and timeit now use time.per

[issue13405] Add DTrace probes

2012-04-13 Thread anatoly techtonik
Changes by anatoly techtonik : -- nosy: -techtonik ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue1222585] C++ compilation support for distutils

2012-04-13 Thread Éric Araujo
Éric Araujo added the comment: I should be able to port the patch and add tests for detect_language, but I know very little about C++ and may not be able to write a full test that really compiles and checks a C++ program. We’re having a sprint on the 21, I’ll see if I can work with another p

[issue14534] Add method to mark unittest.TestCases as "do not run".

2012-04-13 Thread Éric Araujo
Éric Araujo added the comment: FWIW I use the mixin approach too and find it simple and clean. I don’t have a problem with a method in the mixin class calling methods from TestCase. -- nosy: +eric.araujo ___ Python tracker

[issue14529] distutils's build_msi command ignores the data_files argument

2012-04-13 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue14530] distutils's build_wininst command fails to correctly interpret the data_files argument

2012-04-13 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue14535] three code examples in docs are not syntax highlighted

2012-04-13 Thread Éric Araujo
Éric Araujo added the comment: LGTM -- nosy: +eric.araujo stage: -> commit review ___ Python tracker ___ ___ Python-bugs-list mailin

[issue14538] HTMLParser: parsing error

2012-04-13 Thread Éric Araujo
Éric Araujo added the comment: Sure, the docs should explain better that html.parser tries its best to parse stuff, is not a validating parser, and is actively developed, contrary to the popular belief that standard library modules never get improved. I’m less sure about links, there is more

[issue11218] pattern=None when following documentation for load_tests and unittest.main()

2012-04-13 Thread Rik Poggi
Rik Poggi added the comment: I wasn't trying to make any argument, just thinking that such particular signature was intentional. Also notice that there might be code that doesn't pass the pattern argument, and fall back on the default value. So a signature change will break their code. I thi

[issue14547] Python symlink to script behaves unexpectedly

2012-04-13 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14554] test module: correction

2012-04-13 Thread Éric Araujo
Éric Araujo added the comment: LGTM -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue14567] http.server query string handling incorrect and inefficient

2012-04-13 Thread Éric Araujo
Changes by Éric Araujo : -- title: http/server.py query string handling incorrect, inefficient -> http.server query string handling incorrect and inefficient versions: -Python 2.6, Python 3.1 ___ Python tracker _

[issue14567] http/server.py query string handling incorrect, inefficient

2012-04-13 Thread Éric Araujo
Éric Araujo added the comment: > /path/parts/cgi-script/path/info/parts#anchor?query-string This should be: /path/parts/cgi-script/path/info/parts?query-string#anchor -- nosy: +eric.araujo ___ Python tracker

[issue14535] three code examples in docs are not syntax highlighted

2012-04-13 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: This is probably because Sphinx can't detect that those are Python sources, so my patch forces it to recognize it as such. -- keywords: +patch Added file: http://bugs.python.org/file25204/highlight-code.diff _

[issue14538] HTMLParser: parsing error

2012-04-13 Thread Jim Jewett
Jim Jewett added the comment: It sounds like this is a case where the docs should mention an external library; perhaps something like changing the intro of http://docs.python.org/dev/library/html.parser.html from: """ 19.2. html.parser — Simple HTML and XHTML parser Source code: Lib/html/pars

[issue14542] reverse() doesn't reverse sort correctly

2012-04-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Bill, when you reply by email, please snip the signature and quoted message. They are just noise. (Exception: quote a line or two if you are specifically responding to such.) Signatures are inappropriate, and the message you are responding to is already prese

[issue14535] three code examples in docs are not syntax highlighted

2012-04-13 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue14544] Limit "global" keyword name conflicts in language spec to those enforced by CPython

2012-04-13 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue14525] ia64-hp-hpux11.31 won't compile Python-2.6.8rc2 without -D_TERMIOS_INCLUDED

2012-04-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: patch should be for 2.7 or 3.2/3 as 2.6 only gets security fixes. -- nosy: +terry.reedy stage: -> needs patch versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker

[issue14519] In re's examples the example with scanf() contains wrong analog for %x, %X specifiers

2012-04-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: I checked Standard C by Plauger & Brodie and as I read it, it agrees with py.user and his C compiler. For stdlib strtol() and strtoul(), the 0x/0X prefixes are accepted but optional for explicit base 16. If base is given as 0, they are accepted and set the ba

[issue14499] Extension module builds fail with Xcode 4.3 on OS X 10.7 due to SDK move

2012-04-13 Thread s7v7nislands
s7v7nislands added the comment: maybe you can use xcode-select to set the correct path xcode-select -print-path /Applications/Xcode.app/Contents/Developer Usage: xcode-select -print-path or: xcode-select -switch -switch Sets the path for the current Xcode for detail, you can ma

[issue14569] pystate.c #ifdef ordering problem

2012-04-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 508ae5d27c2c by Benjamin Peterson in branch '2.7': take linkage def outside of WITH_THREAD conditional (closes #14569) http://hg.python.org/cpython/rev/508ae5d27c2c -- ___ Python tracker

[issue14569] pystate.c #ifdef ordering problem

2012-04-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5cc359804d61 by Benjamin Peterson in branch '3.2': take linkage def outside of WITH_THREAD conditional (closes #14569) http://hg.python.org/cpython/rev/5cc359804d61 -- nosy: +python-dev resolution: -> fixed stage: needs patch -> committed/

[issue14399] zipfile and creat/update comment

2012-04-13 Thread R. David Murray
R. David Murray added the comment: Ah. I based that on the fact that the third test passed without the change. I thought you were adding that test of changing the comment just as a double check. I should have asked instead of assuming. -- ___ Py

[issue13405] Add DTrace probes

2012-04-13 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Removed file: http://bugs.python.org/file25193/1e4d2c51b2d9.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue13405] Add DTrace probes

2012-04-13 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Added file: http://bugs.python.org/file25203/4a072278b866.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue14157] time.strptime without a year fails on Feb 29

2012-04-13 Thread Hynek Schlawack
Hynek Schlawack added the comment: The point isn’t that time.strptime validates dates but that it uses datetime internally: julian = datetime_date(year, month, day).toordinal() - \ datetime_date(year, 1, 1).toordinal() + 1 Is it worth to reimplement this functionality?

[issue11750] Mutualize win32 functions

2012-04-13 Thread sbt
sbt added the comment: I think there are some issues with the treatment of the DWORD type. (DWORD is a typedef for unsigned long.) _subprocess always treats them as signed, whereas _multiprocessing treats them (correctly) as unsigned. _windows does a mixture: functions from _subprocess par

[issue14569] pystate.c #ifdef ordering problem

2012-04-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't think you need anyone's permission to commit such a fix :) -- nosy: +pitrou ___ Python tracker ___

[issue9123] insecure os.urandom on VMS

2012-04-13 Thread STINNER Victor
STINNER Victor added the comment: -if (RAND_pseudo_bytes((unsigned char*) +if (RAND_bytes((unsigned char*) This is not a good idea: RAND_bytes() is blocking, whereas os.urandom() doesn't block on other platforms. os.urandom() is similar to /dev/urandom (non blocking), whereas

[issue9123] insecure os.urandom on VMS

2012-04-13 Thread STINNER Victor
STINNER Victor added the comment: > This issue is a security vulnerability. I disagree, it's just an issue of a comment in the C code. The Python documentation doesn't guarantee that os.urandom() is cryptographic. Use ssl.RAND_bytes(), added to Python 3.3, if you need cryptographic random nu

[issue9123] insecure os.urandom on VMS

2012-04-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo stage: -> patch review versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list m

[issue14567] http/server.py query string handling incorrect, inefficient

2012-04-13 Thread Glenn Linderman
Glenn Linderman added the comment: I finally understand the purpose of the checks in translate path... Basically, translate path is concatenating the URL path to the current directory (because that is considered the root for Web service by this server). But along the way, it does normalization

[issue1762561] unable to serialize Infinity or NaN on ARM using marshal

2012-04-13 Thread Dirkjan Ochtman
Dirkjan Ochtman added the comment: Could we reconsider ARM support at this time? Seems like ARM support has been surging over the past few years, and it's becoming more supported by Linux distributions. Seems like a pity to leave a patch like this out here. -- nosy: +djc

[issue1222585] C++ compilation support for distutils

2012-04-13 Thread Dirkjan Ochtman
Dirkjan Ochtman added the comment: Ping, again. I'm sorry, I didn't write any of these patches and would not be a great fit for writing tests. -- ___ Python tracker ___ _

[issue14567] http/server.py query string handling incorrect, inefficient

2012-04-13 Thread Glenn Linderman
Glenn Linderman added the comment: A bit of experimentation indicates that for regular file access, there probably is no security problem, but bad paths will look in weird places, and if they find a file of the right name, will return it. It would be much better to diagnose such paths. There