[issue6701] Make custom xmlrpc extension easier

2010-03-24 Thread Gabriel Genellina
Gabriel Genellina 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 hint is lost (see _add_m

[issue6701] Make custom xmlrpc extension easier

2010-03-24 Thread Gabriel Genellina
Gabriel Genellina 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 hint is lost (see _add_m

[issue1553375] Add traceback.print_full_exception()

2010-03-24 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue1222585] C++ compilation support for distutils

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

[issue1222585] C++ compilation support for distutils

2010-03-24 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Also you would have to pass --with-cxx-main= option to configure. -- ___ Python tracker ___

[issue8218] typo currect

2010-03-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: David, can you provide these changes as a unified diff against the subversion trunk? -- nosy: +loewis ___ Python tracker ___ _

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

2010-03-24 Thread Ville Skyttä
New submission from Ville Skyttä : 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 doesn't specify wh

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

2010-03-24 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

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

2010-03-24 Thread Eric Smith
Changes by Eric Smith : -- nosy: +vinay.sajip priority: -> normal versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ ___

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

2010-03-24 Thread Vinay Sajip
Changes by Vinay Sajip : -- assignee: georg.brandl -> vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2010-03-24 Thread Zubin Mithra
Zubin Mithra added the comment: are you suggesting that a warning stating that '--identity has`nt been used' has to be generated? -- nosy: +zubin71 ___ Python tracker ___

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

2010-03-24 Thread Jesús Cea Avión
Jesús Cea Avión 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 _

[issue8213] Python 3 ignored PYTHONUNBUFFERED and -u

2010-03-24 Thread Antoine Pitrou
Antoine Pitrou 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 those streams

[issue8188] Unified hash for numeric types.

2010-03-24 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[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 : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

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

2010-03-24 Thread Vinay Sajip
Vinay Sajip added the comment: Update showing strings and corresponding symbolic integers checked into trunk (r79373). -- resolution: -> fixed status: open -> closed ___ Python tracker ___

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

2010-03-24 Thread Eric Smith
Eric Smith 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 __

[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 : 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:Ubuntu 9.10 Release:

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

2010-03-24 Thread Robert Kern
New submission from Robert Kern : 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 . `-- package |--

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

2010-03-24 Thread Vinay Sajip
Vinay Sajip added the comment: > From: Eric Smith > 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). -- ___ Python tracker

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

2010-03-24 Thread Eric Smith
Eric Smith added the comment: > Vinay Sajip added the comment: > Whoops, now fixed (I think). Looks good. Thanks! -- ___ Python tracker ___

[issue8218] typo currect

2010-03-24 Thread David W. Lambert
David W. Lambert 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 added the comment: > > David, can you provide the

[issue8222] enabling SSL_ERROR_WANT_READ on SSL sockets

2010-03-24 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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 manually in recv() a

[issue8222] enabling SSL_MODE_AUTO_RETRY on SSL sockets

2010-03-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- title: enabling SSL_ERROR_WANT_READ on SSL sockets -> enabling SSL_MODE_AUTO_RETRY on SSL sockets ___ Python tracker ___ __

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

2010-03-24 Thread Antoine Pitrou
Antoine Pitrou 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 -> committed/re

[issue8213] Python 3 ignored PYTHONUNBUFFERED and -u

2010-03-24 Thread Noam Yorav-Raphael
Noam Yorav-Raphael 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 second. I now see tha

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

2010-03-24 Thread STINNER Victor
New submission from STINNER Victor : 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 messages: 101643 nosy: georg.b

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

2010-03-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

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

2010-03-24 Thread Florent Xicluna
Florent Xicluna added the comment: Duplicate of #7696. -- nosy: +flox resolution: -> duplicate status: open -> closed type: -> behavior ___ Python tracker ___ _

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

2010-03-24 Thread Florent Xicluna
Changes by Florent Xicluna : -- superseder: -> Improve Memoryview/Buffer documentation ___ Python tracker ___ ___ Python-bugs-list mai

[issue7696] Improve Memoryview/Buffer documentation

2010-03-24 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +haypo priority: -> normal stage: -> needs patch type: -> behavior ___ Python tracker ___ ___

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

2010-03-24 Thread Brett Cannon
Brett Cannon 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 time). -- n

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

2010-03-24 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

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

2010-03-24 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : 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 call last): [...] Fi

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

2010-03-24 Thread Sridhar Ratnakumar
Sridhar Ratnakumar 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 ___

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

2010-03-24 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +brian.curtin priority: -> normal stage: -> test needed ___ Python tracker ___ ___ Python-bugs-lis

[issue8222] enabling SSL_MODE_AUTO_RETRY on SSL sockets

2010-03-24 Thread Giampaolo Rodola'
Giampaolo Rodola' 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 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 ___ ___

[issue8213] Python 3 ignored PYTHONUNBUFFERED and -u

2010-03-24 Thread STINNER Victor
STINNER Victor added the comment: Use : ... print(i, end=' ') ... sys.stdout.flush() ... time.sleep(1) -- ___ Python tracker ___

[issue8222] enabling SSL_MODE_AUTO_RETRY on SSL sockets

2010-03-24 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Mmm you're right. Sorry. I'm clearly too tired. =) -- ___ Python tracker ___ ___ Python-bugs-list

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

2010-03-24 Thread R. David Murray
R. David Murray 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 if the file is foo.b

[issue7753] newgil backport

2010-03-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

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

2010-03-24 Thread Benjamin Peterson
Benjamin Peterson 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 __

[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 : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-03-24 Thread Antoine Pitrou
Antoine Pitrou 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 (test.test_ftpl

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-03-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: test needed -> needs patch versions: +Python 2.6, Python 3.1 ___ Python tracker ___ ___ Python-bu

[issue1553375] Add traceback.print_full_exception()

2010-03-24 Thread news1234
Changes by news1234 : -- nosy: +news1234 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue8225] Wrong link in xml.etree documentation

2010-03-24 Thread Mangus Wahberg
New submission from Mangus Wahberg : 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 link is: http://doc

[issue8225] Wrong link in xml.etree documentation

2010-03-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue8203] IDLE about dialog credits raises UnicodeDecodeError

2010-03-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

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

2010-03-24 Thread STINNER Victor
New submission from STINNER Victor : 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: too bad :-) Each loop alloc

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

2010-03-24 Thread STINNER Victor
STINNER Victor 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: http://bugs.python.org/file16635/setfilesystemencoding.patch

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

2010-03-24 Thread Ned Deily
Ned Deily added the comment: (duplicate of Issue8076) -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue8227] Fix C API documentation: Argument parsing

2010-03-24 Thread STINNER Victor
New submission from STINNER Victor : 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 components: Documentatio

[issue8211] configure: ignore AC_PROG_CC hardcoded CFLAGS

2010-03-24 Thread STINNER Victor
STINNER Victor 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 patch: r79392 (trunk). I'

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-03-24 Thread Florent Xicluna
Florent Xicluna 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 is "shutdown()", the patc

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

2010-03-24 Thread STINNER Victor
STINNER Victor added the comment: Commited: r79393 (py3k), r79394 (3.1). -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

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

2010-03-24 Thread STINNER Victor
STINNER Victor 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 _

[issue8211] configure: ignore AC_PROG_CC hardcoded CFLAGS

2010-03-24 Thread STINNER Victor
STINNER Victor 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 CFLAGS", and not "fix co

[issue8203] IDLE about dialog credits raises UnicodeDecodeError

2010-03-24 Thread STINNER Victor
STINNER Victor 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 tracker

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

2010-03-24 Thread STINNER Victor
STINNER Victor added the comment: This issue might be documentation is subprocess documentation. -- nosy: +haypo ___ Python tracker ___ __

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

2010-03-24 Thread STINNER Victor
STINNER Victor added the comment: Oops. I wanted to write: "This issue might be documented in subprocess documentation" :-/ -- ___ Python tracker ___ ___

[issue8214] Add exception logging function to syslog module

2010-03-24 Thread STINNER Victor
STINNER Victor 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 ___ Python tracker

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

2010-03-24 Thread R. David Murray
R. David Murray 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 tracker

[issue6543] traceback presented in wrong encoding

2010-03-24 Thread STINNER Victor
STINNER Victor 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 undecodable filenames (useful on

[issue8225] Wrong link in xml.etree documentation

2010-03-24 Thread Brian Curtin
Brian Curtin 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. -- assignee: georg.b

[issue8225] Wrong link in xml.etree documentation

2010-03-24 Thread Brian Curtin
Changes by Brian Curtin : -- type: performance -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue8228] pprint, single/multiple items per line parameter

2010-03-24 Thread Dmitry Chichkov
New submission from Dmitry Chichkov : I've run into a case where pprint isn't really pretty. import pprint pprint.PrettyPrinter().pprint([1]*100) Prints a lengthy column of '1'; Not pretty at all. Look: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1