[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

[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

[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

[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

[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

[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

[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 É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 ___

[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

[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.

[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 ___

[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

[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

[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

[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

[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:

[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

[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

[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

[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
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 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 _

[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

[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") #

[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 __

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

2012-10-28 Thread Michael Foord
Michael Foord added the comment: I always solve the logging problem with test-development-production configuratins and ensuring that running tests imports the logging setup. I've never wanted / needed to configure logging from the command line. -- _

[issue16344] Traceback Internationalization Proposal

2012-10-28 Thread Mariano Reingart
Mariano Reingart added the comment: "serious" developers? sorry but I think that is a unfortunate phrase that goes against the Python Diversity Statement What about young pupil? What about non-programmers (i.e. accountants)? In some places (like my country, public schools), English is not teac

[issue9769] PyUnicode_FromFormatV() doesn't handle non-ascii text correctly

2012-10-28 Thread Mariano Reingart
Mariano Reingart added the comment: (moved from issue #16343) Working in an internationalization proposal (issue #16344) I've stopped at this problem (#9769) where multi byte encodings (like utf-8) is not supported by PyUnicode_

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

2012-10-28 Thread Piotr Dobrogost
Piotr Dobrogost added the comment: @Vinay I don't see other use cases but maybe guys behind py.test, where there is such a feature could come up with other use cases. The solution with passing config dict in a new command line parameter seems to be enough as long as logging is concerned. Howeve

[issue8745] zipimport is a bit slow

2012-10-28 Thread Catalin Iacob
Changes by Catalin Iacob : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16341] In examples, "except:" should use new syntax

2012-10-28 Thread Ezio Melotti
Ezio Melotti added the comment: The patch LGTM, and there are only 21 changes. -- nosy: +ezio.melotti type: -> enhancement ___ Python tracker ___ ___

[issue16239] PEP8 arithmetic operator examples

2012-10-28 Thread Guido van Rossum
Guido van Rossum added the comment: That example doesn't feel strong enough to me to include in the style guide. I am fine with leaving that up to the individual contributor to decide. -- ___ Python tracker __

[issue16239] PEP8 arithmetic operator examples

2012-10-28 Thread Éric Araujo
Éric Araujo added the comment: One idiom is not covered by the examples: value = seq[something+1] IMO it feels weird to put spaces in an index/slice notation. -- nosy: +eric.araujo ___ Python tracker _

[issue16341] In examples, "except:" should use new syntax

2012-10-28 Thread Éric Araujo
Éric Araujo added the comment: I’m of two minds about this. On one hand this syntax avoids silent bugs and is compatible with 3.x, on the other hand if people use the 2.7 docs and use Python 2.4 or 2.5 the examples won’t work. Raymond, what’s your opinion? -- nosy: +eric.araujo, rhet

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

2012-10-28 Thread Éric Araujo
Éric Araujo added the comment: Thank you! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue9769] PyUnicode_FromFormatV() doesn't handle non-ascii text correctly

2012-10-28 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16343] PyUnicode_FromFormatV() doesn't support utf-8 text

2012-10-28 Thread Chris Jerdonek
Chris Jerdonek added the comment: Issue 9769 is still open. It looks like there was some disagreement in the comments between Alexander and Victor as to whether a new issue should be created (since Victor had a different idea when first opening the issue), but it looks like Victor deferred to

[issue16343] PyUnicode_FromFormatV() doesn't support utf-8 text

2012-10-28 Thread Mariano Reingart
Mariano Reingart added the comment: I thought #9769 was closed (in fact, that patch was already applied). Now, PyUnicode_FromFormatV() doesn't handle non-ascii text at all. Maybe I misread the part telling to open a new issue in the comments, sorry for that. --

[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: Is there any common use case other than logging? For example, logging could be covered by an additional command-line argument for unittest.main(), e.g. --logconfig /path/to/logging-config.json which would cause unittest.main() to load the JSON in the specified fi

[issue16351] Add a function to get GC statistics

2012-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Why dictionaries and not struct sequences? Because it's much simpler like that. > For avoid confusion with gc.DEBUG_STATS and to conform with callbacks > argument name, may be better to name this function as > gc.get_infos([generation])? Well, this is really

[issue16351] Add a function to get GC statistics

2012-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I.e. gc.get_info([generation]). Returns the info for specified generation or total if the parameter omitted. -- ___ Python tracker ___ _

[issue16351] Add a function to get GC statistics

2012-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I understand. GC callbacks receive a dict. For avoid confusion with gc.DEBUG_STATS and to conform with callbacks argument name, may be better to name this function as gc.get_infos([generation])? -- ___ Python

[issue16351] Add a function to get GC statistics

2012-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why dictionaries and not struct sequences? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ P

[issue16323] Wrong C API documentation for locale encoding

2012-10-28 Thread Berker Peksag
Berker Peksag added the comment: > Hum, this is not correct. There are three valid values: > - NULL: strict > - "strict": strict > - "surrogateescape": use PEP 383 Thanks for the correction, Victor. Here's the updated patch. -- Added file: http://bugs.python.org/file27770/issue16323_

[issue16350] zlib.Decompress.decompress() after EOF discards existing value of unused_data

2012-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually the current code contains a bug. If memory allocation for unused_data fails then unused_data will become NULL and using this properties can crash. The patch fixes this. -- ___ Python tracker

[issue16350] zlib.Decompress.decompress() after EOF discards existing value of unused_data

2012-10-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16350] zlib.Decompress.decompress() after EOF discards existing value of unused_data

2012-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch for your suggestion. -- keywords: +patch Added file: http://bugs.python.org/file27769/zlib_accum_unused_data.patch ___ Python tracker

[issue16351] Add a function to get GC statistics

2012-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: You mean negative implications? None :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue16351] Add a function to get GC statistics

2012-10-28 Thread Christian Heimes
Christian Heimes added the comment: What are the possible performance implications of the statistics? -- nosy: +christian.heimes ___ Python tracker ___ __

[issue5476] datetime: timedelta(minutes = i) silently fails with numpy.int32 input

2012-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: I created http://projects.scipy.org/numpy/ticket/2235 to track this. Closing this issue. -- status: open -> closed ___ Python tracker ___ _

[issue16351] Add a function to get GC statistics

2012-10-28 Thread Antoine Pitrou
New submission from Antoine Pitrou: This patch adds a function named gc.get_stats() which returns a list of dictionaries containing per-generation statistics: >>> import pprint, gc >>> pprint.pprint(gc.get_stats()) [{'collected': 0, 'collections': 12, 'uncollectable': 0}, {'collected': 0, 'col

[issue16350] zlib.Decompress.decompress() after EOF discards existing value of unused_data

2012-10-28 Thread Nadeem Vawda
Nadeem Vawda added the comment: Interesting idea, but I'm not sure it would be worth the effort. It would make the code and API more complicated, so it wouldn't really help users, and would be an added maintenance burden. -- ___ Python tracker

[issue16350] zlib.Decompress.decompress() after EOF discards existing value of unused_data

2012-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, accumulating the data will be backward-compatible. But what if add a special flag for zlib.decompress, which makes bz2 and lzma compatible decoder? I.e.: 1) unconsumed_tail is always empty (the unconsumed data accumulated in internal buffer, no need m

[issue5210] zlib does not indicate end of compressed stream properly

2012-10-28 Thread Nadeem Vawda
Nadeem Vawda added the comment: This bug (zlib not providing a way to detect end-of-stream) has already been fixed - see issue 12646. I've opened issue 16350 for the unused_data problem. -- resolution: -> out of date stage: test needed -> committed/rejected status: open -> closed super

[issue16350] zlib.Decompress.decompress() after EOF discards existing value of unused_data

2012-10-28 Thread Nadeem Vawda
New submission from Nadeem Vawda: >From issue 5210: amaury.forgeotdarc wrote: > Hm, I tried a modified version of your first test, and I found another > problem with the current zlib library; > starting with the input: > x = x1 + x2 + HAMLET_SCENE# both compressed and uncompressed data > > T

[issue16329] mimetypes does not support webm type

2012-10-28 Thread R. David Murray
R. David Murray added the comment: Interesting. So we have two choices: leave it to the platform mime types file to define because it is not even on track to be an official IANA standard, or include it with a comment that it is a de-facto standard. The question, I guess, is how fluid the defi

[issue16342] setup.py not compiling with NDEBUG in non-debug builds

2012-10-28 Thread Brett Cannon
Brett Cannon added the comment: Well that was extremely frustrating to find out. Turns out a copy of Lib/_sysconfigdata.py was lingering in my checkout and .hgignore was hiding that fact from me. Fixed .hgignore, deleted the wayward file, and everything is now fine. -- resolution: ->

[issue16342] setup.py not compiling with NDEBUG in non-debug builds

2012-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset a2b7a3e1ce66 by Brett Cannon in branch '3.3': Issue #16342: Lib/_sysconfigdata.py is no longer put into Lib, so http://hg.python.org/cpython/rev/a2b7a3e1ce66 -- nosy: +python-dev ___ Python tracker

[issue16342] setup.py not compiling with NDEBUG in non-debug builds

2012-10-28 Thread Brett Cannon
Brett Cannon added the comment: I managed to fix it, but I did such a large swath of fixes that I need a little time to narrow down what did it. Report back later. -- ___ Python tracker ___

[issue16342] setup.py not compiling with NDEBUG in non-debug builds

2012-10-28 Thread Brett Cannon
Brett Cannon added the comment: Just to double-check I didn't screw up, I ran ``make distclean; ./configure; make -j8`` and the problem persists. It is *only* files compiled through setup.py and not by the Makefile. I do not have OPT set, but I do have CFLAGS defined. But even if I explicitly

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

2012-10-28 Thread Andy Salnikov
Andy Salnikov added the comment: I never submitted any patch to Python, but unless somebody more experienced wants to contribute I can try. -- ___ Python tracker ___

[issue16316] Support xz compression in mimetypes module

2012-10-28 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue16316] Support xz compression in mimetypes module

2012-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset a3ba5fe9bfd3 by Nadeem Vawda in branch 'default': Issue #16316: mimetypes now recognizes the .xz and .txz (.tar.xz) extensions. http://hg.python.org/cpython/rev/a3ba5fe9bfd3 -- nosy: +python-dev ___ Pytho

[issue16309] "PYTHONPATH=" different from no PYTHONPATH at all

2012-10-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: I would to see some unittest if possible. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue16309] "PYTHONPATH=" different from no PYTHONPATH at all

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

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

2012-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset e59e274551e0 by Hynek Schlawack in branch 'default': #1492704: Ensure and document backward compatibility of the change http://hg.python.org/cpython/rev/e59e274551e0 -- ___ Python tracker

[issue14570] Document json "sort_keys" parameter properly

2012-10-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed, thanks again! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue14570] Document json "sort_keys" parameter properly

2012-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7784008e9ade by Andrew Svetlov in branch '2.7': Issue #14570: Document json sort_keys parameter properly. http://hg.python.org/cpython/rev/7784008e9ade -- ___ Python tracker

[issue9742] Python 2.7: math module fails to build on Solaris 9

2012-10-28 Thread Stefan Krah
Stefan Krah added the comment: Right, they distinguish between EOL and "Extended Support Phase": http://www.oracle.com/technetwork/server-storage/solaris10/overview/general-137378.html -- ___ Python tracker ___

[issue16348] Decimal.remainder_near documentation incorrect.

2012-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: Here's a doc patch. -- keywords: +patch Added file: http://bugs.python.org/file27766/issue16348.patch ___ Python tracker ___ ___

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

2012-10-28 Thread Thomas Kluyver
New submission from Thomas Kluyver: At least in CPython, format strings can be given as bytes, as an alternative to str. E.g. >>> struct.unpack(b'>hhl', b'\x00\x01\x00\x02\x00\x00\x00\x03') (1, 2, 3) Looking at the source code [1], this appears to be consciously accounted for. But it doesn't

[issue14570] Document json "sort_keys" parameter properly

2012-10-28 Thread Chris Rebert
Chris Rebert added the comment: Patch for 2.7. This assumes that changing the parameter notation is permissible. -- Added file: http://bugs.python.org/file27765/issue14570-2.7.diff ___ Python tracker __

[issue16340] Decoding error due to byte-compiling venv scripts at install time

2012-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset adefc83c1128 by Vinay Sajip in branch '3.3': Closes #16340: Handle exception while copying script to venv. http://hg.python.org/cpython/rev/adefc83c1128 New changeset fb969187ecc2 by Vinay Sajip in branch 'default': Closes #16340: Merged fix from 3.

[issue16310] zipfile: allow surrogates in filenames

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

[issue16308] Undocumented (?) behaviour change in argparse from 3.2.3 to 3.3.0

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

[issue16348] Decimal.remainder_near documentation incorrect.

2012-10-28 Thread Mark Dickinson
New submission from Mark Dickinson: The documentation for Decimal.remainder_near is incorrect. It states: "If both are equally close, the one chosen will have the same sign as self." That's incorrect: instead, the chosen remainder has the property that it makes the corresponding quotient eve

[issue9742] Python 2.7: math module fails to build on Solaris 9

2012-10-28 Thread Trent Nelson
Trent Nelson added the comment: Snakebite's got a Solaris 9 SPARC instance up and running. It's available via the s9 alias. Regarding EOL, this indicates October 2014 for 9: http://en.wikipedia.org/wiki/Solaris_(operating_system)#Version_history If it's as simple as suggested, I don't mind t

[issue16298] httplib.HTTPResponse.read could potentially leave the socket opened forever

2012-10-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Please publish patch for the issue. -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list m

[issue9742] Python 2.7: math module fails to build on Solaris 9

2012-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks, Stefan. Closing. -- resolution: -> out of date status: open -> closed ___ Python tracker ___ __

[issue14570] Document json "sort_keys" parameter properly

2012-10-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks, Chris! I have pushed the patch for 3.2-3.4 It cannot be applied to 2.7, please make separate patch for this version. -- nosy: +asvetlov ___ Python tracker _

[issue14570] Document json "sort_keys" parameter properly

2012-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 40aedc7da30f by Andrew Svetlov in branch '3.2': Issue #14570: Document json sort_keys parameter properly. http://hg.python.org/cpython/rev/40aedc7da30f New changeset 090484ccba7d by Andrew Svetlov in branch '3.3': Merge issue #14570: Document json s

[issue9742] Python 2.7: math module fails to build on Solaris 9

2012-10-28 Thread Trent Nelson
Changes by Trent Nelson : -- nosy: +trent ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue9742] Python 2.7: math module fails to build on Solaris 9

2012-10-28 Thread Stefan Krah
Stefan Krah added the comment: FWIW, Solaris 9 has EOL status: http://www.oracle.com/technetwork/server-storage/solaris10/overview/index-138972.html I suspect we might as well close this issue, since the motivation to work on it will be pretty low in general. -- __

[issue9742] Python 2.7: math module fails to build on Solaris 9

2012-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: Unassigning, since I don't plan to work on this any time soon. -- assignee: mark.dickinson -> ___ Python tracker ___ ___

[issue9530] integer undefined behaviors

2012-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: It looks as though all the issues found by John's tool have now been fixed, with the exception of the ctypes issue. There's a separate issue open for that, so I'm closing this issue as fixed. -- resolution: -> fixed status: open -> closed __

[issue16290] PyComplex_AsCComplex should allow __complex__ to return float.

2012-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: I've been convinced by the python-dev discussion that Antonio was right: it's complex_new that's in error rather than the cmath functions. Even so, it would be unsafe to change the behaviour in the maintenance releases. Attaching a new patch that disallows 'f

[issue16341] In examples, "except:" should use new syntax

2012-10-28 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue16290] PyComplex_AsCComplex should allow __complex__ to return float.

2012-10-28 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +antocuni ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16341] In examples, "except:" should use new syntax

2012-10-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: +1. Patch for 2.7 is attached. -- keywords: +patch nosy: +asvetlov Added file: http://bugs.python.org/file27763/issue16341.diff ___ Python tracker

[issue16347] configure.ac patch

2012-10-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue16347] configure.ac patch

2012-10-28 Thread Antonio Cavallo
New submission from Antonio Cavallo: I've noticed that linux distros have a set of patch to fix a hardcoded lib in their makefiles: eg. Makefile.pre.in: INCLUDEDIR=¬@includedir@ CONFINCLUDEDIR=¬$(exec_prefix)/include SCRIPTDIR=¬…$(prefix)/lib<== HARDCODED This is due to the fact

[issue2813] No float formatting in PyString_FromFormat

2012-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: Okay, I've failed to take this forward. Reclosing as out of date. -- resolution: -> out of date status: open -> closed ___ Python tracker ___ _

[issue16096] Get rid of dangerous integer overflow tricks

2012-10-28 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: mark.dickinson -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue8613] Decimal module flags undetermined when a signal is trapped.

2012-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: Unassigning. -- assignee: mark.dickinson -> ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue7098] g formatting for decimal types should always strip trailing zeros.

2012-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: Closing as invalid. -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Pyth

[issue14700] Integer overflow in classic string formatting

2012-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed in 2.7 and 3.2; extra tests ported to 3.3 and default. Reclosing. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue14700] Integer overflow in classic string formatting

2012-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 102df748572d by Mark Dickinson in branch '3.2': Issue #14700: Fix buggy overflow checks for large precision and width in new-style and old-style formatting. http://hg.python.org/cpython/rev/102df748572d New changeset 79ea0c84152a by Mark Dickinson

[issue16343] PyUnicode_FromFormatV() doesn't support utf-8 text

2012-10-28 Thread Chris Jerdonek
Chris Jerdonek added the comment: Shouldn't this patch be attached to the referenced issue 9769 instead of creating a new issue? Even the issue title is nearly the same: 9769: PyUnicode_FromFormatV() doesn't handle non-ascii text correctly 16343: PyUnicode_FromFormatV() doesn't support utf-8

[issue14700] Integer overflow in classic string formatting

2012-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 21fb1767e185 by Mark Dickinson in branch '2.7': Issue #14700: Fix buggy overflow checks for large precision and width in new-style and old-style formatting. http://hg.python.org/cpython/rev/21fb1767e185 -- _

[issue14616] subprocess docs should mention pipes.quote/shlex.quote

2012-10-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: I have applied all patches. Thanks, Chris. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> enhancement ___ Python tracker __

  1   2   >