[issue24220] ast.Call signature changed

2015-05-18 Thread Carol Willing
Carol Willing added the comment: Thanks Berker for pointing out the WIP patch for issue 16544. Issue 16544 seems a better place than this issue for addressing the ast documentation. There does not seem to be any additional action items left on this issue so I recommend closing this issue and

[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py

2015-05-18 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- assignee: - yselivanov nosy: +Arfrever priority: normal - release blocker type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24226

[issue23699] Add a macro to ease writing rich comparisons

2015-05-18 Thread Stefan Krah
Stefan Krah added the comment: I mean it's clearer to have: result = long_compare(self, other); return Py_cmp_to_bool(result, op); than: result = long_compare(self, other); Py_RETURN_RICHCOMPARE(result, 0, op); This is because in other places, like the proposed use case in

[issue13866] {urllib, urllib.parse}.urlencode should not use quote_plus

2015-05-18 Thread Berker Peksag
Berker Peksag added the comment: Just a suggestion: urlencode already has 5 parameters. We can make quote_via a keyword-only parameter. -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13866

[issue23699] Add a macro to ease writing rich comparisons

2015-05-18 Thread Petr Viktorin
Petr Viktorin added the comment: Conceptually there's a distinction between the two cases, but you can implement one in terms of the other, so I don't think it's worth adding two functions/macros here. So let's pick the better API. Py_cmp_to_bool is better if you already have a cmp-style

[issue24227] IndentationError caused by async / await changes in parser

2015-05-18 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- assignee: - yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24227 ___ ___

[issue24227] IndentationError caused by async / await changes in parser

2015-05-18 Thread Zachary Ware
Zachary Ware added the comment: Duplicate of #24226. -- nosy: +zach.ware resolution: - duplicate stage: - resolved status: open - closed superseder: - [3.5 Regression] unable to byte-compile the attached IN.py ___ Python tracker

[issue24091] Use after free in Element.extend (1)

2015-05-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 34523e53a342 by Serhiy Storchaka in branch '2.7': Issue #24091: Fixed various crashes in corner cases in cElementTree. https://hg.python.org/cpython/rev/34523e53a342 New changeset 157c4afca186 by Serhiy Storchaka in branch '3.4': Issue #24091:

[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py

2015-05-18 Thread Matthias Klose
Changes by Matthias Klose d...@debian.org: Added file: http://bugs.python.org/file39418/IN.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24226 ___ ___

[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py

2015-05-18 Thread Matthias Klose
Matthias Klose added the comment: looks like a parser issue: $ for i in $(seq 200); do echo def f$i(x): return (x) foo.py; done $ python3.5 -m py_compile foo.py Sorry: IndentationError: too many levels of indentation (foo.py, line 100) $ for i in $(seq 200); do echo def f$i(x):bar.py; echo

[issue20035] Clean up Tcl library discovery in Tkinter on Windows

2015-05-18 Thread Steve Dower
Steve Dower added the comment: Use !='true' rather than =='', but otherwise it's good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20035 ___

[issue16544] Add external link to ast docs

2015-05-18 Thread Carol Willing
Carol Willing added the comment: Matthias, I've added you to the nosy list for this ast doc enhancements issue. Reference: msg243484 on Issue 24220. -- nosy: +mbussonn, willingc versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org

[issue24227] IndentationError caused by async / await changes in parser

2015-05-18 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis: Revision eeeb666a5365 causes IndentationError: too many levels of indentation sometimes, e.g. in regenerated IN.py module (e.g. Lib/plat-linux/IN.py). $ ./python -c 'import IN' Traceback (most recent call last): File string, line 1, in

[issue13866] {urllib, urllib.parse}.urlencode should not use quote_plus

2015-05-18 Thread R. David Murray
R. David Murray added the comment: I don't see any particular motivation to make it keyword only. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13866 ___

[issue24102] Multiple type confusions in unicode error handlers

2015-05-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 547bc11e3357 by Serhiy Storchaka in branch '2.7': Issue #24102: Fixed exception type checking in standard error handlers. https://hg.python.org/cpython/rev/547bc11e3357 New changeset 68eaa9409818 by Serhiy Storchaka in branch '3.4': Issue #24102:

[issue23699] Add a macro to ease writing rich comparisons

2015-05-18 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 18.05.2015 15:46, Stefan Krah wrote: Stefan Krah added the comment: The problem with this macro is that most of the time it takes the standard cmp return value {-1,0,1} and converts that into a bool. For this use case, it might be more

[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py

2015-05-18 Thread Matthias Klose
New submission from Matthias Klose: seen while byte-compiling the attached IN.py on x86_64-linux-gnu. $ python3.5 -m py_compile IN.py Sorry: IndentationError: too many levels of indentation (IN.py, line 806) the very same IN.py is accepted by 3.4. -- components: Library (Lib)

[issue24102] Multiple type confusions in unicode error handlers

2015-05-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24102 ___ ___

[issue24102] Multiple type confusions in unicode error handlers

2015-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Greg Ewing suggested to use PyObject_TypeCheck (http://permalink.gmane.org/gmane.comp.python.devel/153216). -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker

[issue16544] Add external link to ast docs

2015-05-18 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16544 ___ ___

[issue24220] ast.Call signature changed

2015-05-18 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: There is an open issue for that: issue 16544. I've talked to Thomas about merging greentreesnakes to the AST documentation last year and already have a WIP patch Ah, Thanks for the link, I see if I can rotate my chair 120deg clockwise and give a

[issue23699] Add a macro to ease writing rich comparisons

2015-05-18 Thread Stefan Krah
Stefan Krah added the comment: The problem with this macro is that most of the time it takes the standard cmp return value {-1,0,1} and converts that into a bool. For this use case, it might be more appropriate to use a static inline function Py_cmp_to_bool(). To put it differently, the macro

[issue19176] DeprecationWarning for doctype() method when subclassing _elementtree.XMLParser

2015-05-18 Thread Eli Bendersky
Eli Bendersky added the comment: I'm not sure. This is why I'm proposing asking on python-dev -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19176 ___

[issue24220] ast.Call signature changed

2015-05-18 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report, Matthias. I can talk to Thomas Kluyver tomorrow about merging green tree snake into the devguide, devguide isn't the correct place for such documentation. or maybe into ast docs. Would that be useful/more acceptable than linking to

[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py

2015-05-18 Thread Matthias Klose
Matthias Klose added the comment: this seems to be caused by the PEP 492 merge in r95969. -- nosy: +yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24226 ___

[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py

2015-05-18 Thread Matthias Klose
Changes by Matthias Klose d...@debian.org: -- components: +Interpreter Core -Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24226 ___

[issue24221] Clean-up and optimization for heapq siftup() and siftdown()

2015-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Perhaps the code will look simpler if introduce the macro _PyList_SWAP_ITEMS(list, i, j). -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24221

[issue23488] Random objects twice as big as necessary on 64-bit builds

2015-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Zachary for fixing this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23488 ___ ___

[issue10685] trace does not ignore --ignore-module

2015-05-18 Thread Tom Hines
Tom Hines added the comment: Done. On Sun, May 17, 2015 at 8:42 PM, Terry J. Reedy rep...@bugs.python.org wrote: Terry J. Reedy added the comment: Tom, please sign the PSF Contributor Agreement https://www.python.org/psf/contrib/ https://www.python.org/psf/contrib/contrib-form/

[issue24225] IDLE test filenames don't match script filenames.

2015-05-18 Thread Al Sweigart
New submission from Al Sweigart: From the idlelib/idle_test/README.txt file: The idle_test subdirectory should contain a test_xyz.py for each, where 'xyz' is lowercased even if xyz.py is not. However, this means the test file names are inconsistent with the scripts they test. Of the 20

[issue20014] Makes array.array constructor accepts ascii-unicode typecode

2015-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Committed simplified version. Thank you Vajrasky for your patch. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org

[issue19176] DeprecationWarning for doctype() method when subclassing _elementtree.XMLParser

2015-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Then what to do with the discrepancy between Python and C implementations (msg238783)? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19176 ___

[issue24230] tempfile.mkdtemp() doesn't work with bytes paths

2015-05-18 Thread Augie Fackler
New submission from Augie Fackler: Many things in the OS module work with bytestrings for paths in Python 3, but tempfile isn't so happy. It'd be very useful to be able to have the same bytes-in-bytes-out behavior in tempfile as for the os.path.* methods. This is something we're working

[issue24231] os.makedirs('/', exist_ok=True) fails on Darwin

2015-05-18 Thread R. David Murray
R. David Murray added the comment: This should (in theory at least) be something we test in our test suite, so I'm surprised by this result. If you run the test suite do you get any failures? -- nosy: +r.david.murray ___ Python tracker

[issue24230] tempfile.mkdtemp() doesn't work with bytes paths

2015-05-18 Thread Matt Mackall
Matt Mackall added the comment: Another way of putting it is: os.listdir(bytes) - [bytes,...] os.listdir(unicode) - [unicode,...] is the usual pattern, and tempfile isn't following it. -- nosy: +Matt.Mackall ___ Python tracker

[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py

2015-05-18 Thread Yury Selivanov
Yury Selivanov added the comment: Thanks! Closing the issue. -- resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24226 ___

[issue24230] tempfile.mkdtemp() doesn't work with bytes paths

2015-05-18 Thread R. David Murray
R. David Murray added the comment: I understand now. The problem is that this would be a backward incompatible change. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24230 ___

[issue24230] tempfile.mkdtemp() doesn't work with bytes paths

2015-05-18 Thread R. David Murray
R. David Murray added the comment: Would you care to supply a patch? The beta deadline is this coming weekend. -- stage: - needs patch type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24230

[issue10685] trace does not ignore --ignore-module

2015-05-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: (When replying by email to an email, please remove any quotation, except possibly for a specific line or two. The message already appears about yours on the tracker.) Good. It will take about a week for the * to appear after your name. As the diff is

[issue24231] os.makedirs('/', exist_ok=True) fails on Darwin

2015-05-18 Thread Matthew Wedgwood
New submission from Matthew Wedgwood: On Darwin, os.mkdir('/') raises IsADirectory. On Linux, the same call raises FileExistsError. The implementation for os.makedirs() in Python 3.2+ checks only for the latter when evaluating the exists_ok parameter. This causes os.makedirs('/',

[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py

2015-05-18 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: This change works for me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24226 ___ ___

[issue24230] tempfile.mkdtemp() doesn't work with bytes paths

2015-05-18 Thread R. David Murray
R. David Murray added the comment: I'm sorry, hit send before I finished thinking. You are saying bytes input are rejected, so yes this could be fixed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24230

[issue24230] tempfile.mkdtemp() doesn't work with bytes paths

2015-05-18 Thread R. David Murray
R. David Murray added the comment: Can you explain what you are looking for in more detail? It isn't obvious to me what bytes in bytes out means in the context of the tempfile API. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org

[issue16544] Add external link to ast docs

2015-05-18 Thread Thomas Kluyver
Thomas Kluyver added the comment: Here's a simple patch that links to Green Tree Snakes from the ast module docs, using the 'sidebar' directive (that's what the logging module uses to link to tutorials, which seemed analogous). I'm still happy to contribute these docs to CPython if people

[issue24230] tempfile.mkdtemp() doesn't work with bytes paths

2015-05-18 Thread Augie Fackler
Augie Fackler added the comment: Today we're doing something like this: tmpdir = tempfile.mkdtemp('', 'hgtests.', d and d.decode('utf-8')).encode('utf-8') but would rather have tmpdir = tempfile.mkdtemp(b'', b'hgtests.', d) # and now tmpdir is a bytestring containing the path to the tmpdir

[issue4709] Mingw-w64 and python on windows x64

2015-05-18 Thread Ismail Donmez
Ismail Donmez added the comment: Still a problem with mingw-w64 gcc 5.1 and Python 3.4.3, time to fix this? -- nosy: +cartman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4709 ___

[issue24195] Add `Executor.filter` to concurrent.futures

2015-05-18 Thread Ethan Furman
Ethan Furman added the comment: I'd rather see an `Executor.filter()` myself, but it's Brian Quinlan's call. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24195 ___

[issue24229] pathlib.Path should have a copy() method

2015-05-18 Thread Josh Holland
New submission from Josh Holland: Path objects already have rename() and replace() methods; it would be useful for them also to have a copy() method to simplify that operation. I'll look into putting a patch together this evening. -- components: Library (Lib) messages: 243494 nosy:

[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py

2015-05-18 Thread Yury Selivanov
Yury Selivanov added the comment: Arfrever, Matthias, Thanks for reporting this issue. It should now be fixed. Please verify that it works for your usecase. -- nosy: +gvanrossum, ncoghlan ___ Python tracker rep...@bugs.python.org

[issue24228] Interpreter triggers segmentation fault at the starting

2015-05-18 Thread doz
doz added the comment: I already try to apply patches from http://bugs.python.org/issue22653 . It don't solve problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24228 ___

[issue24228] Interpreter triggers segmentation fault at the starting

2015-05-18 Thread doz
New submission from doz: Hello, Python 3.4.2 triggers a segmentation fault at the starting on my ARM9 platform. Crash occurs also with 3.3. The version 2.7 don't crash and seems to work correctly System is built with buildroot-2015.02 and gcc 4.2.1. Fault is always reproducible.

[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py

2015-05-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset fb5fcae0cf1f by Yury Selivanov in branch 'default': Issue 24226: Fix parsing of many sequential one-line 'def' statements. https://hg.python.org/cpython/rev/fb5fcae0cf1f -- nosy: +python-dev ___ Python

[issue16991] Add OrderedDict written in C

2015-05-18 Thread Eric Snow
Eric Snow added the comment: Thanks for taking a look, Yury. I'll follow up on the ref leak soon. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16991 ___

[issue24229] pathlib.Path should have a copy() method

2015-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Path objects are immutable, so the copy method is not needed. -- nosy: +pitrou, serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24229 ___

[issue24229] pathlib.Path should have a copy() method

2015-05-18 Thread Paul Moore
Paul Moore added the comment: I presume the copy method is intended as a file copy, not for copying the object. But calling the method copy() is likely to be confusing, precisely as happened here :-) -- nosy: +paul.moore ___ Python tracker

[issue23377] HTTPResponse may drop buffer holding next response

2015-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Is this pending a review? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23377 ___ ___ Python-bugs-list

[issue24229] pathlib.Path should have a copy() method

2015-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: If copy() has a mandatory argument, it can't really be mixed up with an object-cloning method. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24229 ___

[issue12319] [http.client] HTTPConnection.putrequest not support chunked Transfer-Encodings to send data

2015-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: What's the status on this one? It looks like some review comments need addressing. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12319 ___

[issue24231] os.makedirs('/', exist_ok=True) fails on Darwin

2015-05-18 Thread Ned Deily
Ned Deily added the comment: This appears to be a BSD-ism: I get the same result on FreeBSD 10 as with OS X 10.10. For whatever reason, mkdir('/') returns IsADirectoryError while mkdir('/other/existing/directory') returns FileExistsError. -- nosy: +ned.deily stage: - needs patch

[issue4709] Mingw-w64 and python on windows x64

2015-05-18 Thread Ralf Schmitt
Ralf Schmitt added the comment: Well, the time to fix this would have been six years ago. The python core developers have shown a disinterest to fix problems with gcc on windows for a rather long time. I wouldn't expect this issue to be fixed. --

[issue22107] tempfile module misinterprets access denied error on Windows

2015-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added os.path.isdir(). Could anybody please run tests on Windows? -- Added file: http://bugs.python.org/file39421/tempfile_bad_tempdir_3.patch ___ Python tracker rep...@bugs.python.org

[issue24205] signature.bind error messages are sub-optimal

2015-05-18 Thread Yury Selivanov
Yury Selivanov added the comment: Hi David, Please see the attached patch. It doesn't make Signature.bind() exceptions look exactly like system messages, but it's now much closer. -- keywords: +patch Added file: http://bugs.python.org/file39422/sig_exc.patch

[issue24205] signature.bind error messages are sub-optimal

2015-05-18 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- assignee: - yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24205 ___ ___

[issue24229] pathlib.Path should have a copy() method

2015-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: File renaming is simple and usually atomic operation. File copying is complex operation. What memory buffer should be used for copying? What to do with growing files or reading with errors? Should file space be preallocated before copyiong to decrease

[issue24228] Interpreter triggers segmentation fault at the starting

2015-05-18 Thread Ned Deily
Ned Deily added the comment: Try building python with debug on: ./configure --with-pydebug [...] Also, 3.4.2 has been replaced by 3.4.3 which includes the fixes from Issue22653. -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org

[issue15027] Faster UTF-32 encoding

2015-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Arfrever. That was copy-pasted old typo. Fixed in 3d5bf6174c4b and bc6ed8360312. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15027 ___

[issue24222] Idle 2.7 -c, -r compile with print as function.

2015-05-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: I added from __future__ import print_function to 2.7 PyShell when I backported the bugfix of #22420. The use of print rather than write is part of the fix as print is more fault tolerant. -- resolution: - fixed stage: needs patch - resolved status:

[issue24222] Idle 2.7 -c, -r compile with print as function.

2015-05-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset cebd51686565 by Terry Jan Reedy in branch '2.7': Issue #24222: Fix regression introduced with idlelib/PyShell.py future print https://hg.python.org/cpython/rev/cebd51686565 -- nosy: +python-dev ___

[issue24231] os.makedirs('/', exist_ok=True) fails on Darwin

2015-05-18 Thread R. David Murray
R. David Murray added the comment: Ah! That's why our tests don't catch it. Is it limited to '/', or is it any (mounted) mount point? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24231

[issue15027] Faster UTF-32 encoding

2015-05-18 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: In Objects/stringlib/codecs.h in 2 comments U+DC800 should be changed into U+D800 (from definition of Py_UNICODE_IS_SURROGATE) or U+DC80 (from result of b\x80.decode(errors=surrogateescape)). --

[issue24231] os.makedirs('/', exist_ok=True) fails on Darwin

2015-05-18 Thread Ned Deily
Ned Deily added the comment: It doesn't seem to be true for other mount points; the ones I tried raise FileExistsError. I suppose one could dig into the OS sources. I see that none of the FreeBSD or OS X mkdir man pages nor the POSIX 2013 spec document EISDIR as an expected error from

[issue18576] Document test.support.script_helper

2015-05-18 Thread Christie
Christie added the comment: I'm going to take a look at bringing these docs up to date and including the changes from issue24033. -- nosy: +bobcatfish ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18576

[issue24222] Idle 2.7 -c, -r compile with print as function.

2015-05-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: This trivial patch fixes a regression I introduced in 2.7.9. It would be nice if you could pull it into the .10 release. (I would not ask if it were not a recent regression.) -- nosy: +benjamin.peterson ___

[issue15376] Refactor the test_runpy walk_package support code into a common location

2015-05-18 Thread Christie
Christie added the comment: @BreamoreBoy, it looks like the next step would be to revisit issue15403 and go through the steps outlined by @ncoghlan. -- nosy: +bobcatfish ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15376

[issue24233] Link to getfqdn rather than see above

2015-05-18 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Ville. -- nosy: +berker.peksag resolution: - fixed stage: - resolved status: open - closed versions: +Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org

[issue24234] Should we define complex.__complex__ and bytes.__bytes__?

2015-05-18 Thread Guido van Rossum
New submission from Guido van Rossum: The special methods __complex__ and __bytes__ are not present on the corresponding builtin types. Compare this to __int__ and __float__, which do exist on int and float, respectively. Should we add the eponymous methods to complex and bytes? (This came

[issue22893] Idle: __future__ does not work in startup code.

2015-05-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Easy test case using -c: \python_d.exe -m idlelib.idle -c from __future__ import division; print(1/2) 0.5 1/2 0 division _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 8192) Replace -m idlelib.idle with -i to get interactive interpreter and 1/2 is

[issue4709] Mingw-w64 and python on windows x64

2015-05-18 Thread Ralf Schmitt
Changes by Ralf Schmitt python-b...@systemexit.de: -- nosy: -schmir ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4709 ___ ___ Python-bugs-list

[issue4709] Mingw-w64 and python on windows x64

2015-05-18 Thread Paul Moore
Paul Moore added the comment: Not at all. Mingw support is important for the scientific community, as I understand it, and I'm willing to help there if I can. That won't be at the cost of other areas I can contribute to, but I consider packaging as much my area of expertise as Windows - and

[issue24232] Speling fixes

2015-05-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset fd7ef3972215 by Berker Peksag in branch '3.4': Issue #24232: Fix typos. Patch by Ville Skyttä. https://hg.python.org/cpython/rev/fd7ef3972215 New changeset fc2eed9fc2d0 by Berker Peksag in branch 'default': Issue #24232: Fix typos. Patch by Ville

[issue24232] Speling fixes

2015-05-18 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Ville. -- nosy: +berker.peksag resolution: - fixed stage: - resolved status: open - closed versions: +Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org

[issue19737] Documentation of globals() and locals() should be improved

2015-05-18 Thread Martin Panter
Martin Panter added the comment: Terry’s “dictionary implementing the namespace” version would work for me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19737 ___

[issue5233] IDLE: exec IDLESTARTUP/PYTHONSTARTUP on restart

2015-05-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Related issue #22893 is about __future__ statements in startup code having effect on future interactive input in the same way as it does with Python itself. I think a pure Shell start/restart (cntl-F6) should be handled separately from a restart that is a

[issue24235] ABCs don't fail metaclass instantiation

2015-05-18 Thread Devin Jeanpierre
New submission from Devin Jeanpierre: If a subclass has abstract methods, it fails to instantiate... unless it's a metaclass, and then it succeeds. import abc class A(metaclass=abc.ABCMeta): ... @abc.abstractmethod ... def foo(self): pass ... class B(A): pass ... B() Traceback

[issue4709] Mingw-w64 and python on windows x64

2015-05-18 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: For what it's worth I dropped support for mingw32 in psutil for exact the same reasons. As such I cannot imagine how hard could it be to add and maintain support for mingw in a much larger project as Python. --

[issue4709] Mingw-w64 and python on windows x64

2015-05-18 Thread R. David Murray
R. David Murray added the comment: Please note that Paul is pretty new to the core team, and is a crossover with the packaging folks (which is mainly where the mingw issues lie). What this means to the mingw community is that with Paul on the core team and willing to work on the support, the

[issue4709] Mingw-w64 and python on windows x64

2015-05-18 Thread Mark Lawrence
Mark Lawrence added the comment: Does this mean scarce Windows resources being diverted off to what I consider a side show? Unless it's categorically stated that mingw is officially supported in which case fine, provided the experts index and everything else associated with official support

[issue24232] Speling fixes

2015-05-18 Thread Ville Skyttä
New submission from Ville Skyttä: Various doc spelling fixes in the attached patch. -- assignee: docs@python components: Documentation files: spelling.patch keywords: patch messages: 243536 nosy: docs@python, scop priority: normal severity: normal status: open title: Speling fixes type:

[issue24233] Link to getfqdn rather than see above

2015-05-18 Thread Ville Skyttä
New submission from Ville Skyttä: Would be nice to link to getfqdn() instead of saying see above for it in socket.gethostname() docs. -- assignee: docs@python components: Documentation files: getfqdnlink.patch keywords: patch messages: 243537 nosy: docs@python, scop priority: normal

[issue24233] Link to getfqdn rather than see above

2015-05-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset f6e7953b5431 by Berker Peksag in branch '3.4': Issue #24233: Add a proper link to socket.getfqdn() documentation. https://hg.python.org/cpython/rev/f6e7953b5431 New changeset 0d6902537062 by Berker Peksag in branch 'default': Issue #24233: Add a

[issue24205] signature.bind error messages are sub-optimal

2015-05-18 Thread Martin Panter
Martin Panter added the comment: I think the patch is okay. Just beware that next(iter(kwargs)) can return different names if there is more than one unexpected argument, so the error message could vary. But it looks like the test cases are only when there is exactly one extra argument, so no

[issue1602] windows console doesn't print or input Unicode

2015-05-18 Thread Aki Sasaki
Changes by Aki Sasaki a...@escapewindow.com: -- nosy: +escapewindow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___ ___ Python-bugs-list

[issue24205] signature.bind error messages are sub-optimal

2015-05-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3cc368d334c5 by Yury Selivanov in branch 'default': Issue 24205: Improve inspect.Signature.bind() error messages. https://hg.python.org/cpython/rev/3cc368d334c5 -- nosy: +python-dev ___ Python tracker

[issue24117] Wrong range checking in GB18030 decoder.

2015-05-18 Thread Ma Lin
Ma Lin added the comment: This is not a de-facto standard, it should be fixed. I already posted this infomation on a Taiwan Python community, let's wait their inspection. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24117

[issue22970] asyncio: Cancelling wait() after notification leaves Condition in an inconsistent state

2015-05-18 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- priority: normal - deferred blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22970 ___ ___

[issue24205] signature.bind error messages are sub-optimal

2015-05-18 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24205 ___

[issue20691] inspect.signature: Consider exposing 'follow_wrapper_chains' option in public API

2015-05-18 Thread Yury Selivanov
Yury Selivanov added the comment: Nick, what do you think of this one? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20691 ___ ___

[issue10354] tempfile.template is broken

2015-05-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: backwards compatibility with what? i'd like to just remove tempfile.template in 3.5 as part of addressing issue24230. -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org

[issue24230] tempfile.mkdtemp() doesn't work with bytes paths

2015-05-18 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- assignee: - gregory.p.smith nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24230 ___

[issue24230] tempfile.mkdtemp() doesn't work with bytes paths

2015-05-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: it seems a little messy to code this up the way Lib/tempfile.py is written but i'll take a stab at it tonight. Probably via parallel implementations of the methods internally rather than conditional logic throughout given how they work. --

  1   2   >