[issue16344] Traceback Internationalization Proposal

2012-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think the PEP should be proposed on python-dev or python-ideas. Also, it's probably better if the PEP is encoded in utf-8, not latin-1. -- nosy: +pitrou ___ Python tracker __

[issue16349] Document whether it's safe to use bytes for struct format string

2012-10-28 Thread Martin Panter
Martin Panter added the comment: Also it would be nice to clarify if struct.Struct.format is meant to be a byte string. Reading the documentation and examples I expected a character string. It was an issue for me when embedding one structure within another: HSF_VOL_DESC = Struct("< B 5s B") #

[issue16327] subprocess.Popen leaks file descriptors on os.fork() failure

2012-10-28 Thread Mark Gius
Mark Gius added the comment: Doesn't exhibit when execve fails, because by the time execve has been reached we've closed the pipes that we're supposed to close on the parent process, and the pipes that are meant to remain open on the parent process get caught by existing cleanup code. It's un

[issue16352] Error call

2012-10-28 Thread James Lu
New submission from James Lu: >>>x="y" >>>y=x >>>x=y >>>print x x >>>print y x It should raise a RuntimeError -- components: None messages: 174086 nosy: James.Lu priority: normal severity: normal status: open title: Error call type: performance versions: Python 2.6 _

[issue16352] Error call

2012-10-28 Thread James Lu
Changes by James Lu : -- versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue16352] Error call

2012-10-28 Thread R. David Murray
R. David Murray added the comment: It should print 'y'. And it does for me. If you have questions about this, you might want to try the python-tutors list. -- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected status: open -> closed type: performance -> _

[issue16352] Error call

2012-10-28 Thread James Lu
James Lu added the comment: srry -- resolution: invalid -> rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue15948] Unchecked return value of I/O functions

2012-10-28 Thread Berker Peksag
Berker Peksag added the comment: There is a typo in the command: s/fwite/fwrite/. ./Objects/object.c:fwrite(PyBytes_AS_STRING(s), 1, ./Objects/object.c:fwrite(PyBytes_AS_STRING(t), 1, ./PC/bdist_wininst/install.c:fwrite(arc_data, exe_size, 1, fp); ./Py

[issue13403] Option for XMLPRC Server to support HTTPS

2012-10-28 Thread Jeff McNeil
Jeff McNeil added the comment: I've hacked this support in myself a few times with a simple socket wrap call in SimpleXMLRPCServer's __init__. I'd be happy to put a quick patch together if that's a viable approach. Is there any desire to support client authentication or advanced features like

[issue16352] Error call

2012-10-28 Thread R. David Murray
Changes by R. David Murray : -- resolution: rejected -> invalid ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16312] New command line option supported by unittest.main() for running initialization code before tests

2012-10-28 Thread Vinay Sajip
Vinay Sajip added the comment: @Michael: When unit testing one's own projects, I agree with you. But I think Piotr's use case is when you download some new library from PyPI or clone it from GitHub/BitBucket/etc., and you want to run tests on that code without changing any of it, as you're jus

[issue16344] Traceback Internationalization Proposal

2012-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am sympathetic with non-English speakers wanting a native-language translation. But I think the interpreter should *always* emit the standard message and that any translation should be an addition, not a replacement. This would maintain discoverablity and he

[issue16353] add function to os module for getting path to default shell

2012-10-28 Thread Chris Jerdonek
New submission from Chris Jerdonek: This issue is to add a function to the os module for getting the path to the default shell (e.g. os.getdefaultshell()). In issue 16255, it was reported that on Android, the path to the default shell is "/system/bin/sh" rather than "/bin/sh" which it is on ot

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2012-10-28 Thread Chris Jerdonek
Chris Jerdonek added the comment: I created issue 16353 for adding a function to the os module for getting the path to the default shell. The current issue 16255 could be addressed in 3.4 by calling such a function from the subprocess module. For earlier versions (since enhancements are not

[issue16290] PyComplex_AsCComplex should allow __complex__ to return float.

2012-10-28 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Mark, for the sake of keeping a reference in this bug entry, could you possibly post the URL of the archived python-dev thread? Thanks. -- ___ Python tracker ___

[issue16351] Add a function to get GC statistics

2012-10-28 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.

[issue16326] distutils build_ext fails to set library_dirs in 2.7.2 on Linux

2012-10-28 Thread Éric Araujo
Éric Araujo added the comment: Great! http://docs.python.org/devguide contains all the info needed to get the code and make a patch. If you apply your suggestion to the code and it fixes your build, I will commit it. A small unit test to check the new behavior of build_ext and avoid regress

[issue16333] Trailing whitespace in json dump when using indent

2012-10-28 Thread Éric Araujo
Éric Araujo added the comment: I think the patch adds tests to a mixin class used to test the Python and the C code, so if it passes then no fix is needed in C. -- nosy: +eric.araujo ___ Python tracker ___

[issue16327] subprocess.Popen leaks file descriptors on os.fork() failure

2012-10-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: Stubbing _execute_child out for a test is easiest. No need to craft ways to cause an actual fork failure. -- ___ Python tracker ___ __

[issue16333] Trailing whitespace in json dump when using indent

2012-10-28 Thread Ezio Melotti
Ezio Melotti added the comment: It does, and the C accelerator doesn't seem to be used for this. The patch looks good to me, however: 1) it now strips spaces even when explicitly specified in the separator (this might be ok though -- I don't see why someone would need them); 2) I'm not sure if t

[issue16333] Trailing whitespace in json dump when using indent

2012-10-28 Thread Zach Mathew
Zach Mathew added the comment: To Ezio's first point ... yes, I was wondering if trailing whitespace should be left alone in the case of an explicitly defined separator. However, this behavior seems a little odd to me as I don't see a use case for it (happy to change the patch if there are dif

[issue9674] make install DESTDIR=/home/blah fails when the prefix specified is /

2012-10-28 Thread George Peristerakis
George Peristerakis added the comment: Here's a patch to the problem. I refactored the code to work the same way on posix, nt, os2 environments. Plus a unit test for the posix environment that the bug was initially for. -- nosy: +George.Peristerakis Added file: http://bugs.python.org/f

[issue13403] Option for XMLPRC Server to support HTTPS

2012-10-28 Thread Jeff McNeil
Jeff McNeil added the comment: Attached... worked in the way I've done it in the past and updated documents. -- keywords: +patch Added file: http://bugs.python.org/file27773/ssl_xmlrpc_server.patch ___ Python tracker

[issue1492704] distinct error type if shutil.copyfile() fails because of src and dst are the same file

2012-10-28 Thread Hynek Schlawack
Hynek Schlawack added the comment: You're welcome. :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue16353] add function to os module for getting path to default shell

2012-10-28 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

<    1   2