[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2010-03-26 Thread Eric Devolder
Eric Devolder eric.devol...@gmail.com added the comment: This seems to be fixed now under 3.1.2, and works properly for me. Great stuff, thank you. Eric P.S. Last time I mistakenly tagged the bug to be Python 3.2 as well, correcting this now. -- versions: -Python 3.2

[issue8238] Proxy handling

2010-03-26 Thread Ciprian Trofin
New submission from Ciprian Trofin ciprian.tro...@ktd.ro: After I installed Python 2.6.5, I noticed a drop in performance of web connections via proxy. This script: - import time import urllib2 timeMark = time.time() opener =

[issue8238] Proxy handling

2010-03-26 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: How are setting up and using your proxy? It would also help you discuss your approach at python-h...@python.org and if you see any specific issues, raise it in the bug report. -- nosy: +orsenthil

[issue6716] Windows install error when choosing to compile .py files

2010-03-26 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: r78994 (exclude 2to3 tests from compileall) should be backported to trunk and the 2.6 branch, but I don't see them (yet). -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-26 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman dirk...@ochtman.nl: -- nosy: +djc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7946 ___ ___ Python-bugs-list mailing

[issue8238] Proxy handling

2010-03-26 Thread Ciprian Trofin
Ciprian Trofin ciprian.tro...@ktd.ro added the comment: I attached a screenshot. The proxy is on the corporate network. I'm not setting it up, I'm only using it. Internet Explorer needs that setting in order to connect. Firefox needs this proxy set as manual proxy configuration. I looked

[issue8239] Windows 2.6.5 Installer Advanced Option Generates Error Message During Compile Step

2010-03-26 Thread Peter
New submission from Peter ps1...@users.sourceforge.net: If the installer is run in Windows XP/SP3 without selecting the Advanced compiling option, it works fine. If the installer is run in Windows XP/SP3 and the Advanced compiling option is selected, the following error message is generated

[issue8194] Incompatible API change in xmlrpclib.Transport.parse_response() of Python 2.7 and 3.2

2010-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: In Python 2.6/3.1, xmlrpclib.Transport.parse_response() accepts a file like object. But Python 2.7/3.2 requires a HTTPResponse object because parse_response() calls response.getheader() method. The patch moves the call to

[issue8239] Windows 2.6.5 Installer Advanced Option Generates Error Message During Compile Step

2010-03-26 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: This is fixed as of r79248. -- nosy: +brian.curtin priority: - normal resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8239

[issue8236] ./configure: ImportError: No module named asdl

2010-03-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I can't reproduce this on 2.6 maint on Linux 32 bit (Gentoo). Did you try doing a make distclean before redoing the configure/make? -- nosy: +benjamin.peterson, r.david.murray priority: - high

[issue8237] multiprocessing.Queue() blocks program

2010-03-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Crash is for interpreter segfaults, changing to type 'behavior'. Setting stage to 'test needed' because if this is a valid bug the test will need to be turned into a unit test. -- nosy: +jnoller, r.david.murray priority: -

[issue8193] test_zlib fails with zlib 1.2.4

2010-03-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: According to http://www.zlib.net/ChangeLog.txt, since zlib 1.2.3.5:: - Use zlib header window size if windowBits is 0 in inflateInit2() The failing test should be changed, for example:: self.assertRaises(ValueError,

[issue8237] multiprocessing.Queue() blocks program

2010-03-26 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: multiprocessing.Queue.Put() acts the same as Queue.put() - if the queue is full, the put call hangs until the queue is no longer full. The process will not exit, as the Queue is full, and it's waiting in put. This works as designed, unless I'm

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2010-03-26 Thread Cyril
Cyril c...@excellency.fr added the comment: The following test case exhibits the bug, but I'm not sure it will fail every time as it depends on 2 things: - your connection speed (I guess) - I used the following trick to have 2 identical strings with a different id (memory address): data =

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2010-03-26 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- components: +Extension Modules -Library (Lib) nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8240 ___

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2010-03-26 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- priority: - normal stage: - test needed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8240 ___

[issue6543] traceback presented in wrong encoding

2010-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: surrogateescape characters are not printable stderr uses backslashescape error handler, and so non-decodable characters will be displayed as \xHH. ... see also #8092 :-) -- ___ Python

[issue8237] multiprocessing.Queue() blocks program

2010-03-26 Thread Erdem U. Altinyurt
Erdem U. Altinyurt spamjunkea...@gmail.com added the comment: Firstly I think as you but this is not correct. Added Q.full() to know if Queue is full or not to the testQ code.. def testQ(): for i in range(1): mp.Process( None, QueueWorker, None, (i,Q,lock) ).start() while

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-26 Thread Konrad Delong
Changes by Konrad Delong kon...@gmail.com: -- nosy: +konryd ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7946 ___ ___ Python-bugs-list mailing

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-26 Thread Alexandre Conrad
Changes by Alexandre Conrad alexandre.con...@gmail.com: -- nosy: +aconrad ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7946 ___ ___

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2010-03-26 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8240 ___ ___

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2010-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: If I understood correctly, the patch only concerns non blocking socket if SSL_write() returns 0? If SSL_write() returns a non zero value, can you use: ssl_socket.send(data[count:])? About the string identifier trick, you should

[issue8222] enabling SSL_MODE_AUTO_RETRY on SSL sockets

2010-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also issue #8240 about SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER (ssl.SSLSocket.write may fail on non-blocking sockets). -- nosy: +haypo ___ Python tracker rep...@bugs.python.org

[issue8222] enabling SSL_MODE_AUTO_RETRY on SSL sockets

2010-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: letting the C OpenSSL runtime do it for us is certainly more efficient +1 if it's more efficient ;-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8222

[issue8222] enabling SSL_MODE_AUTO_RETRY on SSL sockets

2010-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Would it be possible to add an option to disable SSL_MODE_AUTO_RETRY for a specific socket? Existing applications may rely on / prefer the current behaviour. -- ___ Python tracker

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2010-03-26 Thread Cyril
Cyril c...@excellency.fr added the comment: You're right about the assert, I've just uploaded a new patch. In non-blocking mode, ssl_socket.send(data) will return either 0 (which means nothing was sent, you'll have to try again), or len(data) when everything was sent. It can't return anything

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2010-03-26 Thread Cyril
Cyril c...@excellency.fr added the comment: I forgot to talk about the conditions in which I stumbled upon that bug. I use a cStringIO.StringIO as a send buffer. When the socket is ready to send data, I call ssl_socket.send(send_buffer.getvalue()). Unfortunately, two consecutive calls to

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-26 Thread Guilherme Salgado
Changes by Guilherme Salgado gsalg...@gmail.com: -- nosy: +salgado ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7946 ___ ___ Python-bugs-list

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2010-03-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: test needed is in reference to your assertion that you weren't sure your test would fail reliably. A test that fails some times and passes some times is...suboptimal when dealing with a buildbot testing infrastructure :) --

[issue8222] enabling SSL_MODE_AUTO_RETRY on SSL sockets

2010-03-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Would it be possible to add an option to disable SSL_MODE_AUTO_RETRY for a specific socket? Existing applications may rely on / prefer the current behaviour. I don't think so, since recv() used to emulate that behaviour anyway. --

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2010-03-26 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +janssen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8240 ___ ___ Python-bugs-list mailing

[issue6716] Windows install error when choosing to compile .py files

2010-03-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Gabriel: can you explain why that should be backported? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6716 ___

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2010-03-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Since this error seems to be aimed at warning about potential programming errors, I'm not sure it should be silenced. The obvious fix should be to pass the same argument every time (until the data finally gets written). -- nosy: +pitrou

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2010-03-26 Thread Cyril
Cyril c...@excellency.fr added the comment: r.david.murray: ah, sure :) However, I'm not sure a test case is absolutely required for this issue for two reasons: - the fix is trivial: it's a one-liner that enables a SSL mode that explicitely authorizes SSL_write to be called a second time

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2010-03-26 Thread Cyril
Cyril c...@excellency.fr added the comment: pitrou: that's debatable, since the Python programmer has no control over memory pointers. As I said, I have a cStringIO buffer, and two consecutive calls to buffer.getvalue() yield different objects. What can I do about it? I think it's a rather

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2010-03-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: pitrou: that's debatable, since the Python programmer has no control over memory pointers. No, but he has control over whether he always uses the same object, or generates a new argument everytime. As I said, I have a cStringIO buffer, and

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2010-03-26 Thread Cyril
Cyril c...@excellency.fr added the comment: Switching to a documentation issue is fine to me. Indeed I can just cache the result of StringIO.getvalue(), although it feels a bit crude. I won't be able to create a documentation patch since English is not my primary language. While you're at it,

[issue8222] enabling SSL_MODE_AUTO_RETRY on SSL sockets

2010-03-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Fixed in r79448 (trunk), r79449 (py3k), r79451 (2.6), r79453 (3.1). -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I also switched to gettimeofday() so it should work now on all Posix with high resolution timer But on a busy system, won't measuring wall clock time rather than CPU time give bogus results? --

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-26 Thread Nir Aides
Nir Aides n...@winpdb.org added the comment: But on a busy system, won't measuring wall clock time rather than CPU time give bogus results? This was the motivation for using clock_gettime(). I tried the wall clock version under load (including on single core system) and it seems to behave.

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-26 Thread Larry Hastings
Changes by Larry Hastings la...@hastings.org: -- nosy: +larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7946 ___ ___ Python-bugs-list mailing

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-26 Thread Augie Fackler
Changes by Augie Fackler li...@durin42.com: -- nosy: +durin42 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7946 ___ ___ Python-bugs-list mailing

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2010-03-26 Thread Peter Kleiweg
Changes by Peter Kleiweg pklei...@xs4all.nl: -- nosy: +pebbe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ ___ Python-bugs-list mailing

[issue1220212] os.kill on windows

2010-03-26 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: It would be really useful to be able to send signal.SIGINT to processes on Windows using os.kill(...). The patch as described sounds like it would have a different signature to the standard implementation of os.kill(...) which takes a

[issue1220212] os.kill on windows

2010-03-26 Thread Michael Foord
Changes by Michael Foord mich...@voidspace.org.uk: -- versions: +Python 2.7, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1220212 ___

[issue1220212] os.kill on windows

2010-03-26 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: I'm wrong. First IronPython tries: NativeSignal.GenerateConsoleCtrlEvent(PythonSignal.CTRL_C_EVENT, ...) But with the comment: //The following calls to GenerateConsoleCtrlEvent will fail under //most circumstances. We'll try them any

[issue6716] Windows install error when choosing to compile .py files

2010-03-26 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Sorry for being so terse and not filling in the gaps! In the end, I changed my mind on this bug - it's not an installer issue. The 2.6.5 MSI installer, when asked to compile .pyc files, exits with an error as reported here:

[issue1220212] os.kill on windows

2010-03-26 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Aaaand the IronPython implementation of NativeSignal.GenerateConsoleCtrlEvent(PythonSignal.CTRL_C_EVENT, ...) delegates to Kernel32.GenerateConsoleCtrlEvent. -- ___ Python tracker

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2010-03-26 Thread João Paulo Farias
João Paulo Farias jpaulofar...@gmail.com added the comment: I dont see the resolution for this problem yet... What should I do to not have it happen? -- nosy: +jpfarias ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4749

[issue8241] py2_test_grammar.py contains invalid syntax for 2.6

2010-03-26 Thread Gabriel Genellina
New submission from Gabriel Genellina gagsl-...@yahoo.com.ar: Lib\lib2to3\tests\data\py2_test_grammar.py, in test_with_statement, requires a variant of the with statement (multiple targets) that is not available in Python 2.6. Compiling py2_test_grammar.py raises a SyntaxError. This makes

[issue8241] py2_test_grammar.py contains invalid syntax for 2.6

2010-03-26 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: - benjamin.peterson nosy: +benjamin.peterson priority: - normal stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8241

[issue8234] Spelling and text in howto/webservers

2010-03-26 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Closed as duplicate of #8218. -- nosy: +ezio.melotti resolution: - duplicate stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8218] typo currect

2010-03-26 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: See also #8234 that has a patch with some rephrasing too. -- nosy: +ubershmekel stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8218

[issue8241] py2_test_grammar.py contains invalid syntax for 2.6

2010-03-26 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: The correct thing to do is actually to ignore py2_test_grammar.py when compiling the pyc files. -- assignee: benjamin.peterson - loewis nosy: +loewis ___ Python tracker rep...@bugs.python.org

[issue8242] Support surrogates in import ; install Python in a non-ASCII directory

2010-03-26 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: If the fullpath to the python3 binary contains a non-ASCII character and the file system encoding is ASCII, Python fails with: --- Could not find platform independent libraries prefix Could not find platform dependent libraries

[issue8242] Support surrogates in import ; install Python in a non-ASCII directory

2010-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: If I understood correctly, my patch is also required to import a module having a non-ASCII full path if the file system encoding is ASCII. -- ___ Python tracker rep...@bugs.python.org

[issue8086] ssl.get_server_certificate new line missing

2010-03-26 Thread Kyle VanderBeek
Changes by Kyle VanderBeek ky...@kylev.com: -- keywords: +patch Added file: http://bugs.python.org/file16672/python-ssl-PEM_FOOTER.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8086

[issue8086] ssl.get_server_certificate new line missing

2010-03-26 Thread Kyle VanderBeek
Kyle VanderBeek ky...@kylev.com added the comment: Forgot to note that my patch is against 2.7 current trunk. -- nosy: +kylev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8086 ___

[issue8242] Support surrogates in import ; install Python in a non-ASCII directory

2010-03-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Initialize Py_FileSystemDefaultEncoding earlier in Py_InitializeEx(), because its value is required to encode unicode using surrogates to bytes Oh, it doesn't work: get_codeset() returns NULL, because the codec register is empty

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2010-03-26 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: @jpfarias: could you be more specific? Which error(s) do you have? in which scenario? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4749

[issue8243] curses writing to window's bottom right position raises: `_curses.error: addstr() returned ERR'

2010-03-26 Thread Daniel Vim
Changes by Daniel Vim 333...@gmail.com: -- files: curses_bug.py nosy: theosp severity: normal status: open title: curses writing to window's bottom right position raises: `_curses.error: addstr() returned ERR' type: behavior versions: Python 2.6 Added file:

[issue4621] zipfile returns string but expects binary

2010-03-26 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: I just discovered that attempting to open zip member test\file fails where attempting to open test/file works. Granted the zip contains / not \ characters, but using the os.path stuff (on windows) to manipulate the names before