[issue8213] Python 3 ignored PYTHONUNBUFFERED and -u

2010-03-24 Thread Noam Yorav-Raphael
Noam Yorav-Raphael noamr...@gmail.com added the comment: I typed man python3 on ubuntu 9.10 and nothing was explained about that - I now checked and found out that it displayed the python2 man page. I don't know where to find the Python 3 man page. I don't quite see the point in having the

[issue7782] new test for test_iter.py

2010-03-24 Thread showell
showell showel...@yahoo.com added the comment: My proposed test is final. Please either accept or reject it as is. I assume it runs pretty quickly, so I am not sure what the cost fear is. The benefit of accepting the test is that it would potentially catch bugs on changes to the

[issue6701] Make custom xmlrpc extension easier

2010-03-24 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Just a few comments on the code itself: if type_ in self.__dispatch.keys(): should be: if type_ in self.__dispatch: Previously, error reporting of recursive data stated the type of the offending value; with this patch, this

[issue6701] Make custom xmlrpc extension easier

2010-03-24 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Just a few comments on the code itself: if type_ in self.__dispatch.keys(): should be: if type_ in self.__dispatch: Previously, error reporting of recursive data stated the type of the offending value; with this patch, this

[issue1553375] Add traceback.print_full_exception()

2010-03-24 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1553375 ___ ___

[issue1222585] C++ compilation support for distutils

2010-03-24 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: Python can be compiled using C++ compiler. See http://docs.python.org/extending/extending.html#writing-extensions-in-c -- ___ Python tracker rep...@bugs.python.org

[issue1222585] C++ compilation support for distutils

2010-03-24 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: Also you would have to pass --with-cxx-main=compiler option to configure. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1222585

[issue8218] typo currect

2010-03-24 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: David, can you provide these changes as a unified diff against the subversion trunk? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8218

[issue8219] Facility and priority values/constants not documented for SysLogHandler

2010-03-24 Thread Ville Skyttä
New submission from Ville Skyttä ville.sky...@iki.fi: http://docs.python.org/dev/py3k/library/logging.html#logging.handlers.SysLogHandler What to use as the value for facility for SysLogHandler's constructor is not documented. There's a reference to LOG_USER, but it's kind of vague because it

[issue8219] Facility and priority values/constants not documented for SysLogHandler

2010-03-24 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8219 ___ ___ Python-bugs-list mailing

[issue8219] Facility and priority values/constants not documented for SysLogHandler

2010-03-24 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- nosy: +vinay.sajip priority: - normal versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8219

[issue8219] Facility and priority values/constants not documented for SysLogHandler

2010-03-24 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- assignee: georg.brandl - vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8219 ___ ___

[issue7677] distutils, better error message for setup.py upload -sign without identity.

2010-03-24 Thread Zubin Mithra
Zubin Mithra zubin.mit...@gmail.com added the comment: are you suggesting that a warning stating that '--identity has`nt been used' has to be generated? -- nosy: +zubin71 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7677

[issue4142] smtplib doesn't clear helo/ehlo flags on quit

2010-03-24 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Support for smtpd too? (a stdlib addition in 2.7/3.2) -- nosy: +jcea versions: +Python 3.1, Python 3.2 -Python 2.4, Python 2.5, Python 3.0 ___ Python tracker rep...@bugs.python.org

[issue8213] Python 3 ignored PYTHONUNBUFFERED and -u

2010-03-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I don't quite see the point in having the streams buffered in one level and unbuffered in another, but I guess there's a reason. The reason is simply that it wasn't implemented. Unbuffered I/O isn't useful very often. Anyway, how can I make

[issue8188] Unified hash for numeric types.

2010-03-24 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8188 ___ ___ Python-bugs-list

[issue6749] Support for encrypted zipfiles when interpreting zipfile as script

2010-03-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6749 ___ ___ Python-bugs-list mailing list

[issue8219] Facility and priority values/constants not documented for SysLogHandler

2010-03-24 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Update showing strings and corresponding symbolic integers checked into trunk (r79373). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8219] Facility and priority values/constants not documented for SysLogHandler

2010-03-24 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: It still doesn't say that the LOG_ constants are defined on SysLogHandler. Or is the intention that the user just use the strings? -- ___ Python tracker rep...@bugs.python.org

[issue8220] site.py's Quitter pollutes builtins with exit and quit for non-interactive use

2010-03-24 Thread Ralph Corderoy
New submission from Ralph Corderoy ralph-pythonb...@inputplus.co.uk: A friend wrote exit(0) in a script without an import of sys. I pointed out the error and he said But it works. He was right. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:

[issue8221] 2to3 mishandles StringIO inside a package with an io.py module

2010-03-24 Thread Robert Kern
New submission from Robert Kern robert.k...@gmail.com: When a module inside a package imports StringIO from cStringIO, it should change that to from io import StringIO. However, if there is a module inside the package named io.py, 2to3 changes it to from .io import StringIO. [bug23]$ tree .

[issue8219] Facility and priority values/constants not documented for SysLogHandler

2010-03-24 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: From: Eric Smith rep...@bugs.python.org It still doesn't say that the LOG_ constants are defined on SysLogHandler. Or is the intention that the user just use the strings? Whoops, now fixed (I think). --

[issue8219] Facility and priority values/constants not documented for SysLogHandler

2010-03-24 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Whoops, now fixed (I think). Looks good. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8219

[issue8218] typo currect

2010-03-24 Thread David W. Lambert
David W. Lambert b49p23t...@stny.rr.com added the comment: I apologize for the noise. Yes, I'll read the article carefully and provide changes as a unified diff against the subversion trunk. On Wed, 2010-03-24 at 08:20 +, Martin v. Löwis wrote: Martin v. Löwis mar...@v.loewis.de added the

[issue8222] enabling SSL_ERROR_WANT_READ on SSL sockets

2010-03-24 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: In light of the recv() and recv_into() implementation change (issue3890), I think we should enable SSL_MODE_AUTO_RETRY for SSL sockets. It prevents blocking read() calls from getting SSL_ERROR_WANT_READ at all. (previously, we would loop

[issue8222] enabling SSL_MODE_AUTO_RETRY on SSL sockets

2010-03-24 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- title: enabling SSL_ERROR_WANT_READ on SSL sockets - enabling SSL_MODE_AUTO_RETRY on SSL sockets ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8222

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2010-03-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, I've opened a separate issue (issue8222) for the SSL_MODE_AUTO_RETRY suggestion. This very issue has been fixed in r79226 (trunk), r79287 (py3k), r79290 (3.1) and r79291 (2.6). -- resolution: accepted - fixed stage: commit review -

[issue8213] Python 3 ignored PYTHONUNBUFFERED and -u

2010-03-24 Thread Noam Yorav-Raphael
Noam Yorav-Raphael noamr...@gmail.com added the comment: I can call flush() after the user code was executed, but a code like this: for i in range(10): ... print(i, end=' ') ... time.sleep(1) will show the numbers only after 10 seconds, while I would like a number printed every

[issue8223] memoryview is not documented in the Python library doc

2010-03-24 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: memoryview() is not documented in the Python Library documentation, only in the C API (buffer chapiter) :-/ http://docs.python.org/c-api/buffer.html See also #8215. -- assignee: georg.brandl components: Documentation

[issue8223] memoryview is not documented in the Python library doc

2010-03-24 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Duplicate of #7696. -- nosy: +flox resolution: - duplicate status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8223

[issue8223] memoryview is not documented in the Python library doc

2010-03-24 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- superseder: - Improve Memoryview/Buffer documentation ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8223 ___

[issue7696] Improve Memoryview/Buffer documentation

2010-03-24 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +haypo priority: - normal stage: - needs patch type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7696 ___

[issue8220] site.py's Quitter pollutes builtins with exit and quit for non-interactive use

2010-03-24 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: While technically site.py could probably detect it is running in an interactive session, changing this behaviour now would be backwards-incompatible and break pre-existing code that relies on this behaviour (which has been around for a long

[issue7784] patch for making list/insert at the top of the list avoid memmoves

2010-03-24 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- resolution: - rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7784 ___

[issue8224] subprocess.Popen raises WindowsError if there is a dot in program name

2010-03-24 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar sridh...@activestate.com: Assume you have two executables in currect directory: baz.exe foo.bar.exe Now subprocess.Popen(['baz']) will run successfully. But subprocess.Popen(['foo.bar']) will throw the following exception: Traceback (most recent

[issue8224] subprocess.Popen raises WindowsError if there is a dot in program name

2010-03-24 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Note that typing foo.bar in the Windows command line works, only subprocess is not able to find the executable. -- ___ Python tracker rep...@bugs.python.org

[issue8224] subprocess.Popen raises WindowsError if there is a dot in program name

2010-03-24 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- nosy: +brian.curtin priority: - normal stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8224 ___

[issue8222] enabling SSL_MODE_AUTO_RETRY on SSL sockets

2010-03-24 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: By reading the doc it is not clear if we should activate this option only when dealing with blocking sockets. What's the behavior with non blocking ones? Does it result in a no-op or does it hang the applcation? --

[issue8222] enabling SSL_MODE_AUTO_RETRY on SSL sockets

2010-03-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: To me it looks clearly like a no-op (Never bother the application with retries *if the transport is blocking*). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8222

[issue8213] Python 3 ignored PYTHONUNBUFFERED and -u

2010-03-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Use : ... print(i, end=' ') ... sys.stdout.flush() ... time.sleep(1) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8213

[issue8222] enabling SSL_MODE_AUTO_RETRY on SSL sockets

2010-03-24 Thread Giampaolo Rodola'
Giampaolo Rodola' billiej...@users.sourceforge.net added the comment: Mmm you're right. Sorry. I'm clearly too tired. =) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8222 ___

[issue8224] subprocess.Popen raises WindowsError if there is a dot in program name

2010-03-24 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Note that it works with shell=True. Which is what you would expect if it works in the shell. Without shell=True, the program name is being passed to CreateProcess directly. Popen(foo) results in the same cannot find file error for me

[issue7753] newgil backport

2010-03-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7753 ___ ___ Python-bugs-list mailing list

[issue8221] 2to3 mishandles StringIO inside a package with an io.py module

2010-03-24 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: This should be fixed in the latest versions of 2to3. -- nosy: +benjamin.peterson resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org

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

2010-03-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7946 ___ ___ Python-bugs-list mailing list

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-03-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Giampaolo, I tried committing your patch but the buildbot still fails, with the following errors: test_auth_issued_twice (test.test_ftplib.TestTLS_FTPClass) ... ok test_auth_ssl (test.test_ftplib.TestTLS_FTPClass) ... ok test_control_connection

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-03-24 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: test needed - needs patch versions: +Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8108 ___

[issue1553375] Add traceback.print_full_exception()

2010-03-24 Thread news1234
Changes by news1234 news1...@free.fr: -- nosy: +news1234 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1553375 ___ ___ Python-bugs-list mailing

[issue8225] Wrong link in xml.etree documentation

2010-03-24 Thread Mangus Wahberg
New submission from Mangus Wahberg end...@gmail.com: When using the interactive python help and entering xml.etree the help page contains a link faulty link to the online documentation. The link in the help page is: MODULE DOCS http://docs.python.org/library/xml.etree But the correct

[issue8225] Wrong link in xml.etree documentation

2010-03-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8225 ___

[issue8203] IDLE about dialog credits raises UnicodeDecodeError

2010-03-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8203 ___

[issue8226] sys.setfilesystemencoding(xxx); open(a) = stack overflow

2010-03-24 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: sys.setfilesystemencoding() doesn't check if the argument is a valid encoding name. If the filesystem encoding is invalid, open(a) goes into an unlimited loop. The default recursion limit is 1000, but the example crash at 930:

[issue8226] sys.setfilesystemencoding(xxx); open(a) = stack overflow

2010-03-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Attached patch raises a LookupError is the specified encoding is invalid. It uses _PyCodec_Lookup() function: is it allowed in bltinmodule.c? -- keywords: +patch Added file:

[issue8226] sys.setfilesystemencoding(xxx); open(a) = stack overflow

2010-03-24 Thread Ned Deily
Ned Deily n...@acm.org added the comment: (duplicate of Issue8076) -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8226 ___ ___

[issue8227] Fix C API documentation: Argument parsing

2010-03-24 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: Patch fixing Doc/c-api/arg.rst: * 'z', 'z#', 'z*' does also accept Unicode * unify types name: replace string or Unicode objet by string or Unicode (it's shorter ;-)) See also #8215 and #2322. -- assignee: georg.brandl

[issue8211] configure: ignore AC_PROG_CC hardcoded CFLAGS

2010-03-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: MaL It unconditionally overrides CFLAGS - even if it is not MaL set and defined by AC_PROG_CC as -g -O2. That would need MaL to be corrected. MaL MaL Other than that it does help a little work around the mess :-) I commited my

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-03-24 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: This patch solves the problem with 0.9.8m on my Debian workstation. Actually there's 4 kind of errors on shutdown(): - SSL_ERROR_WANT_READ - SSL_ERROR_WANT_WRITE - socket.error: errno.PIPE (32) - socket.error: 0 Since the command

[issue8226] sys.setfilesystemencoding(xxx); open(a) = stack overflow

2010-03-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Commited: r79393 (py3k), r79394 (3.1). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8226

[issue8076] sys.setfilesystemencoding('foo') causes segmentation fault

2010-03-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Duplicate of #8226 (ok, it should be the opposite, but #8226 had a patch ;-)). -- nosy: +haypo resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8211] configure: ignore AC_PROG_CC hardcoded CFLAGS

2010-03-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I commited my patch: r79392 (trunk). I'm waiting for the buildbots before porting to other branches :-) The buildbots look happy = r79401 (py3k), blocked in 2.6 and 3.1 The issue title was configure: ignore AC_PROG_CC hardcoded

[issue8203] IDLE about dialog credits raises UnicodeDecodeError

2010-03-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Can you try this patch? The encoding argument was just ignored... -- keywords: +patch nosy: +haypo Added file: http://bugs.python.org/file16638/idlelib_textView_encoding.patch ___ Python

[issue8224] subprocess.Popen raises WindowsError if there is a dot in program name

2010-03-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This issue might be documentation is subprocess documentation. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8224

[issue8224] subprocess.Popen raises WindowsError if there is a dot in program name

2010-03-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oops. I wanted to write: This issue might be documented in subprocess documentation :-/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8224

[issue8214] Add exception logging function to syslog module

2010-03-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: syslog_exception() should be declared outside logexceptions(), so it's possible to call it directly. Example: try: ... except Exception: syslog_exception(*sys.exc_info()) -- nosy: +haypo

[issue8224] subprocess.Popen raises WindowsError if there is a dot in program name

2010-03-24 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: In order to do that someone will need to confirm that this affects all versions of windows, and whether or not it is a bug in windows or the expected behavior of CreateProcess. -- ___ Python

[issue6543] traceback presented in wrong encoding

2010-03-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: in compile.c, the c_filename member has utf8 encoding The problem is maybe that c_filename should be an unicode object created using the file system default encoding and the surrogateescape error handler, to be able to store

[issue8225] Wrong link in xml.etree documentation

2010-03-24 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: I believe the problem is with pydoc. In the case of xml.etree, I don't think it should be displaying anything for MODULE DOCS. help(xml.etree.ElementTree) does display the proper link. The attached patch and test fixes the problem. --

[issue8225] Wrong link in xml.etree documentation

2010-03-24 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- type: performance - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8225 ___ ___