[issue24220] ast.Call signature changed
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 moving discussion for ast documentation to Issue 16544. -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24220 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23699] Add a macro to ease writing rich comparisons
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 https://mail.python.org/pipermail/python-ideas/2015-March/032564.html , the macro actually *performs* the rich comparison. In the above case it just *converts* the result of long_compare(). Maybe the distinction does not matter in practice, but I'm not too happy with it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23699 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13866] {urllib, urllib.parse}.urlencode should not use quote_plus
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23699] Add a macro to ease writing rich comparisons
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 result. Python code is full of cmp-style results, but I think a big reason is that py2 required them, and (rightly) nobody wants to rewrite the algorithms. I believe the py3 way of passing in the operator is better API. I've seen (a - b) far too many times, which gives the right result in most but *not all* cases. (Think small floats where the difference is coerced to int for the Py_cmp_to_bool function. Or int overflow.) The correct ways to get a cmp-style result are (a b) - (a b) or (a b) ? -1 : (a b). Do we want to add a function that requires you to write, read, and understand that? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23699 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24227] IndentationError caused by async / await changes in parser
Changes by Yury Selivanov yseliva...@gmail.com: -- assignee: - yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24227 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24227] IndentationError caused by async / await changes in parser
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 rep...@bugs.python.org http://bugs.python.org/issue24227 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24091] Use after free in Element.extend (1)
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: Fixed various crashes in corner cases in C implementation of https://hg.python.org/cpython/rev/157c4afca186 New changeset a8b8d1b211fe by Serhiy Storchaka in branch 'default': Issue #24091: Fixed various crashes in corner cases in C implementation of https://hg.python.org/cpython/rev/a8b8d1b211fe -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24091 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py
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 return (x) bar.py; done $ python3.5 -m py_compile bar.py -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24226 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20035] Clean up Tcl library discovery in Tkinter on Windows
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16544] Add external link to ast docs
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 http://bugs.python.org/issue16544 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24227] IndentationError caused by async / await changes in parser
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 module File /tmp/cpython/Lib/plat-linux/IN.py, line 710 def IN6_IS_ADDR_UNSPECIFIED(a): return \ ^ IndentationError: too many levels of indentation I attach regenerated version of Lib/plat-linux/IN.py, which allows to reproduce this problem. (Regeneration was performed by Lib/plat-linux/regen.) I suspect that the problem is in changes in Parser/tokenizer.c. -- components: Interpreter Core files: IN.py messages: 243487 nosy: Arfrever, asvetlov, gvanrossum, haypo, ncoghlan, scoder, yselivanov priority: release blocker severity: normal status: open title: IndentationError caused by async / await changes in parser versions: Python 3.5 Added file: http://bugs.python.org/file39419/IN.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24227 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13866] {urllib, urllib.parse}.urlencode should not use quote_plus
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24102] Multiple type confusions in unicode error handlers
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: Fixed exception type checking in standard error handlers. https://hg.python.org/cpython/rev/68eaa9409818 New changeset 510819e5855e by Serhiy Storchaka in branch 'default': Issue #24102: Fixed exception type checking in standard error handlers. https://hg.python.org/cpython/rev/510819e5855e -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24102 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23699] Add a macro to ease writing rich comparisons
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 appropriate to use a static inline function Py_cmp_to_bool(). To put it differently, the macro mostly does not perform the actual rich comparison but just post-processes the result. I don't like the dual use of converting cmp() return values and performing actual comparisons on integers, so -1 on the concept. I don't follow you. The macro performs a similar task as that of e.g. Py_RETURN_TRUE/Py_RETURN_FALSE/etc. that is to reduce boilerplate code and in this particular case also to remove potential sources of bugs in both the Python interpreter itself and C extensions written for it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23699 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py
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) messages: 243472 nosy: doko priority: normal severity: normal status: open title: [3.5 Regression] unable to byte-compile the attached IN.py versions: Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24226 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24102] Multiple type confusions in unicode error handlers
Changes by Serhiy Storchaka storch...@gmail.com: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24102 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24102] Multiple type confusions in unicode error handlers
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 rep...@bugs.python.org http://bugs.python.org/issue24102 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16544] Add external link to ast docs
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16544 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24220] ast.Call signature changed
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 nudge to Thomas. I'll probably have a hard time working on that this week, but can try to push it forward to be up to date with 3.5. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24220 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23699] Add a macro to ease writing rich comparisons
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 mostly does not perform the actual rich comparison but just post-processes the result. I don't like the dual use of converting cmp() return values and performing actual comparisons on integers, so -1 on the concept. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23699 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19176] DeprecationWarning for doctype() method when subclassing _elementtree.XMLParser
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24220] ast.Call signature changed
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 external docs ? 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 at https://gist.github.com/berkerpeksag/0be9bb0ada548185d9ef (I have more complete patch, but couldn't find it now :)) If you have time to work on it, I can upload it to the tracker item and we can work together. -- components: -Devguide nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24220 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py
Changes by Matthias Klose d...@debian.org: -- components: +Interpreter Core -Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24226 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24221] Clean-up and optimization for heapq siftup() and siftdown()
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23488] Random objects twice as big as necessary on 64-bit builds
Serhiy Storchaka added the comment: Thanks Zachary for fixing this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23488 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10685] trace does not ignore --ignore-module
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/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10685 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10685 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24225] IDLE test filenames don't match script filenames.
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 test_*.py files, all 20 are inconsistent. Some of the test filenames don't even match the file, such as test_config_name.py which tests configSectionNameDialog.py. Since the original filenames aren't lowercase like the rest of the standard library, it would be better to rename them rather than renaming the test files: AutoComplete.py to autocomplete.py, ColorDelegator.py to colordelegator.py, etc. This is a find-and-replace change. Any shorter, better names for modules can also be made at this time. -- components: IDLE messages: 243464 nosy: Al.Sweigart priority: normal severity: normal status: open title: IDLE test filenames don't match script filenames. versions: Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24225 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20014] Makes array.array constructor accepts ascii-unicode typecode
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 http://bugs.python.org/issue20014 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19176] DeprecationWarning for doctype() method when subclassing _elementtree.XMLParser
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24230] tempfile.mkdtemp() doesn't work with bytes paths
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 around in hg, but I figured I'd file a bug anyway in case we can improve the situation. -- components: Library (Lib) messages: 243498 nosy: durin42 priority: normal severity: normal status: open title: tempfile.mkdtemp() doesn't work with bytes paths versions: Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24230 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24231] os.makedirs('/', exist_ok=True) fails on Darwin
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 rep...@bugs.python.org http://bugs.python.org/issue24231 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24230] tempfile.mkdtemp() doesn't work with bytes paths
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 rep...@bugs.python.org http://bugs.python.org/issue24230 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24230] tempfile.mkdtemp() doesn't work with bytes paths
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24230] tempfile.mkdtemp() doesn't work with bytes paths
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10685] trace does not ignore --ignore-module
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 posted, hg could not find trace.py to patch. Changing --- Lib/trace.pyFri Feb 24 15:58:24 2012 +++ Lib/trace.pyWed Oct 30 16:35:49 2013 to --- a/Lib/trace.py Fri Feb 24 15:58:24 2012 +++ b/Lib/trace.py Wed Oct 30 16:35:49 2013 fixed that problem, and 3/4 chunks apply to 3.4 (map has already been replaced). Running test/test_trace.py (with repository 3.4) gives the same errors as without the patch. The changes look sensible. However, a test is needed that fails without the patch and passes with it. Can you write one that could be added to the test file, or at least pieces of a test and a manual test procedure? -- stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10685 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24231] os.makedirs('/', exist_ok=True) fails on Darwin
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('/', exist_ok=True) to fail on Darwin but succeed on Linux. -- components: Library (Lib) messages: 243501 nosy: mew priority: normal severity: normal status: open title: os.makedirs('/', exist_ok=True) fails on Darwin type: behavior versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24231 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py
Arfrever Frehtes Taifersar Arahesis added the comment: This change works for me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24226 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24230] tempfile.mkdtemp() doesn't work with bytes paths
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24230] tempfile.mkdtemp() doesn't work with bytes paths
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 http://bugs.python.org/issue24230 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16544] Add external link to ast docs
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 want that, but I'm also happy to keep maintaining them as a separate resource. I can see advantages to both approaches. -- keywords: +patch Added file: http://bugs.python.org/file39420/link-gts.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16544 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24230] tempfile.mkdtemp() doesn't work with bytes paths
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 basically, we want to maintain our pedantry around paths being sequences of bytes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24230 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4709] Mingw-w64 and python on windows x64
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24195] Add `Executor.filter` to concurrent.futures
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24229] pathlib.Path should have a copy() method
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: jshholland priority: normal severity: normal status: open title: pathlib.Path should have a copy() method type: enhancement versions: Python 3.4, Python 3.5, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24229 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py
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 http://bugs.python.org/issue24226 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24228] Interpreter triggers segmentation fault at the starting
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24228] Interpreter triggers segmentation fault at the starting
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. Please find the following information about the crash and the conditions. Do you know restrictions with old kernel version and python ? On target : # uname -a Linux buildroot 2.6.30.10 #mvl-avb-0.8 Mon May 18 16:02:40 CEST 2015 armv5tejl GNU/Linux # python --version Python 3.4.2 # python Segmentation fault (core dumped) on host, I analyze core dump $ arm-none-linux-gnueabi-gdb -ex 'set sysroot .' -ex 'core-file ./core' usr/bin/python GNU gdb (CodeSourcery Sourcery G++ Lite 2007q3-51) 6.6.50.20070821-cvs Copyright (C) 2007 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as --host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi. For bug reporting instructions, please see: https://support.codesourcery.com/GNUToolchain/. .. Reading symbols from /home/xxx/projects/YYY/buildroot-2015.02/output/target/usr/lib/libpython3.4m.so.1.0...done. Loaded symbols for ./usr/lib/libpython3.4m.so.1.0 Reading symbols from /home/xxx/projects/YYY/buildroot-2015.02/output/target/lib/libpthread.so.0...done. Loaded symbols for ./lib/libpthread.so.0 Reading symbols from /home/xxx/projects/YYY/buildroot-2015.02/output/target/lib/libdl.so.2...done. Loaded symbols for ./lib/libdl.so.2 Reading symbols from /home/xxx/projects/YYY/buildroot-2015.02/output/target/lib/libutil.so.1...done. Loaded symbols for ./lib/libutil.so.1 Reading symbols from /home/xxx/projects/YYY/buildroot-2015.02/output/target/lib/libm.so.6...done. Loaded symbols for ./lib/libm.so.6 Reading symbols from /home/xxx/projects/YYY/buildroot-2015.02/output/target/lib/libc.so.6...done. Loaded symbols for ./lib/libc.so.6 Reading symbols from /home/xxx/projects/YYY/buildroot-2015.02/output/target/lib/libgcc_s.so.1...done. Loaded symbols for ./lib/libgcc_s.so.1 Reading symbols from /home/xxx/projects/YYY/buildroot-2015.02/output/target/lib/ld-linux.so.3...done. Loaded symbols for ./lib/ld-linux.so.3 Core was generated by `python'. Program terminated with signal 11, Segmentation fault. #0 insertdict (mp=0x4041e058, key=0x4041f020, hash=1075606564, value=0x4041d540) at Objects/dictobject.c:824 824 Py_DECREF(old_value); /* which **CAN** re-enter (see issue #22653) */ (gdb) bt #0 insertdict (mp=0x4041e058, key=0x4041f020, hash=1075606564, value=0x4041d540) at Objects/dictobject.c:824 #1 0x400a3be0 in add_subclass (base=value optimized out, type=0x401c7424) at Objects/typeobject.c:4789 #2 0x400abb18 in PyType_Ready (type=0x401c7424) at Objects/typeobject.c:4745 #3 0x40094534 in _Py_ReadyTypes () at Objects/object.c:1546 #4 0x40116aec in _Py_InitializeEx_Private (install_sigs=1, install_importlib=1) at Python/pythonrun.c:382 #5 0x401263a8 in Py_Main (argc=1076832428, argv=0x11008) at Modules/main.c:654 #6 0x88f4 in main (argc=1, argv=0x402fb844) at ./Modules/python.c:69 (gdb) info locals old_value = (PyObject *) 0x1 value_addr = (PyObject **) 0x400a3be0 ep = (PyDictKeyEntry *) 0x11390 (gdb) list 819 MAINTAIN_TRACKING(mp, key, value); 820 old_value = *value_addr; 821 if (old_value != NULL) { 822 assert(ep-me_key != NULL ep-me_key != dummy); 823 *value_addr = value; 824 Py_DECREF(old_value); /* which **CAN** re-enter (see issue #22653) */ 825 } 826 else { 827 if (ep-me_key == NULL) { 828 Py_INCREF(key); ./arm-none-linux-gnueabi-gcc --version arm-none-linux-gnueabi-gcc (CodeSourcery Sourcery G++ Lite 2007q3-51) 4.2.1 Copyright (C) 2007 Free Software Foundation, Inc. Thank your for your help -- components: Interpreter Core messages: 243490 nosy: mdootb priority: normal severity: normal status: open title: Interpreter triggers segmentation fault at the starting type: crash versions: Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24228 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24226] [3.5 Regression] unable to byte-compile the attached IN.py
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 tracker rep...@bugs.python.org http://bugs.python.org/issue24226 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16991] Add OrderedDict written in C
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24229] pathlib.Path should have a copy() method
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24229] pathlib.Path should have a copy() method
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 rep...@bugs.python.org http://bugs.python.org/issue24229 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23377] HTTPResponse may drop buffer holding next response
Antoine Pitrou added the comment: Is this pending a review? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23377 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24229] pathlib.Path should have a copy() method
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12319] [http.client] HTTPConnection.putrequest not support chunked Transfer-Encodings to send data
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24231] os.makedirs('/', exist_ok=True) fails on Darwin
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 versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24231 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4709] Mingw-w64 and python on windows x64
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. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4709 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22107] tempfile module misinterprets access denied error on Windows
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 http://bugs.python.org/issue22107 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24205] signature.bind error messages are sub-optimal
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24205 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24205] signature.bind error messages are sub-optimal
Changes by Yury Selivanov yseliva...@gmail.com: -- assignee: - yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24205 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24229] pathlib.Path should have a copy() method
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 fragmentation? How handle sparse files? Can be optimized copyiong on file systems with compression? What to do with NT streams? What to do with extended attributes? What to do with directories, links and other special files? I think that pathlib is not good place for this function (as well as for handling ZIP files or playing multimedia). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24229 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24228] Interpreter triggers segmentation fault at the starting
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 http://bugs.python.org/issue24228 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15027] Faster UTF-32 encoding
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24222] Idle 2.7 -c, -r compile with print as function.
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: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24222 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24222] Idle 2.7 -c, -r compile with print as function.
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24222 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24231] os.makedirs('/', exist_ok=True) fails on Darwin
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15027] Faster UTF-32 encoding
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)). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15027 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24231] os.makedirs('/', exist_ok=True) fails on Darwin
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 mkdir(2) so one could argue it's an implementation bug. It is a somewhat unusual case, though, as I doubt you would ever run into a situation where you really needed to create '/' from a process :=) Still ... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24231 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18576] Document test.support.script_helper
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24222] Idle 2.7 -c, -r compile with print as function.
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24222 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15376] Refactor the test_runpy walk_package support code into a common location
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24233] Link to getfqdn rather than see above
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 http://bugs.python.org/issue24233 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24234] Should we define complex.__complex__ and bytes.__bytes__?
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 up in the context of PEP 484: https://github.com/ambv/typehinting/issues/68#issuecomment-88130156 ) -- messages: 243538 nosy: gvanrossum priority: normal severity: normal status: open title: Should we define complex.__complex__ and bytes.__bytes__? versions: Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24234 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22893] Idle: __future__ does not work in startup code.
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 .5 instead of 0. --- Implementation of -s in PyShell.py if o == '-s': startup = True # line 1504 if startup: # line 1586 filename = ... if filename ... ... execfile(filename) execfile (line 650) is the same method used to run -c and -r code. After compiling code, it calls runcode (779). That normally sends the code to the user process, but may run code in the debugger or in the idle process. When the future import is run, it is just an import and not also a 'from __future__' statement. Editor files are compiled in ScriptBinding.ScriptBinding.checksyntax. This is why not affected by __future__ import in PyShell (#24222). Run_module_event calls (interp.)runcode, as above. I believe Shell input is run by .runsource, which is called by .runit, which is called when appropriate by the enter callback. .runsource in turn calls the base class method code.InteractiveInterpreter.runsource, which uses 'self.compile', which is an instance of codeop.CommandCompiler. codeop.CommandCompiler indirectly uses 'self.compiler', which is an instance of codeop.Compiler. The latter is what actually calls the builtin function compile, with self.flags (futures imported), it updates self.flags from the flags in the code returned by compile. So I believe the solution is for the ExtendedInterpreter instance to get a reference to the Compiler instance, after InteractiveInterpreter is initialized, and call that, with symbol='exec' instead of 'single', instead of calling compile directly. A reason not to use the same pipeline as for statements enter interactively is that there is extra code to account for the possibility of compiling correct partial statements. while True:\n is not an error at a prompt, since more may follow, but is as a complete code string. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22893 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4709] Mingw-w64 and python on windows x64
Changes by Ralf Schmitt python-b...@systemexit.de: -- nosy: -schmir ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4709 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4709] Mingw-w64 and python on windows x64
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 mingw support covers both of those areas. To give some background, I was involved in adding mingw support for the MSVC 2010 builds of Python, which involved working with the mingw project on getting -lmsvcr100 support added. That was a battle, and I fully expect universal CRT support to be even harder[1]. I do *not* expect to get involved in that, but as I said, I do want it (along with a single mingw distribution blessed by the Python mingw user community) as a prerequisite for a higher level of core support. That's (IMO) a *very* high bar, and I don't expect it to be easy for the mingw-using community to achieve it. But if they do, then the amount of effort involves deserves some recognition, and for my part I am offering some of my time improving core Python support on that basis. [1] For example, AIUI, with the universal CRT, even the header definitions change - e.g., FILE* is not based on an _iob symbol - so you have to know the target CRT at *compile* time, not just at link time. That's an additional level of complexity not present in previous CRT releases. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4709 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24232] Speling fixes
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 Skyttä. https://hg.python.org/cpython/rev/fc2eed9fc2d0 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24232 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24232] Speling fixes
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 http://bugs.python.org/issue24232 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19737] Documentation of globals() and locals() should be improved
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5233] IDLE: exec IDLESTARTUP/PYTHONSTARTUP on restart
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 side-effect of running an editor file. There is a separate proposal to specify an individual file's startup condition (sys.args + STARTUP file). For Shell restart, a possible reason might be to get rid of the effect of a STARTUP file. Since ^F6 is rarely used (I think), asking whether to include the STARTUP might not be too intrusive. I think default behaviors should follow Python, though we can add more. On the other hand, Python has startup options not currently available with Idle. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5233 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24235] ABCs don't fail metaclass instantiation
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 (most recent call last): File stdin, line 1, in module TypeError: Can't instantiate abstract class B with abstract methods foo class C(A, type): pass ... class c(metaclass=C): pass ... C('', (), {}) class '__main__.' -- components: Library (Lib) messages: 243540 nosy: Devin Jeanpierre priority: normal severity: normal status: open title: ABCs don't fail metaclass instantiation versions: Python 2.7, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24235 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4709] Mingw-w64 and python on windows x64
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. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4709 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4709] Mingw-w64 and python on windows x64
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 mingw users have the best chance they've ever had of making progress on this. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4709 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4709] Mingw-w64 and python on windows x64
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 is updated accordingly. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4709 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24232] Speling fixes
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: enhancement Added file: http://bugs.python.org/file39423/spelling.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24232 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24233] Link to getfqdn rather than see above
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 severity: normal status: open title: Link to getfqdn rather than see above type: enhancement Added file: http://bugs.python.org/file39424/getfqdnlink.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24233 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24233] Link to getfqdn rather than see above
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 proper link to socket.getfqdn() documentation. https://hg.python.org/cpython/rev/0d6902537062 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24233 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24205] signature.bind error messages are sub-optimal
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 problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24205 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1602] windows console doesn't print or input Unicode
Changes by Aki Sasaki a...@escapewindow.com: -- nosy: +escapewindow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24205] signature.bind error messages are sub-optimal
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 rep...@bugs.python.org http://bugs.python.org/issue24205 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24117] Wrong range checking in GB18030 decoder.
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22970] asyncio: Cancelling wait() after notification leaves Condition in an inconsistent state
Changes by Yury Selivanov yseliva...@gmail.com: -- priority: normal - deferred blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22970 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24205] signature.bind error messages are sub-optimal
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20691] inspect.signature: Consider exposing 'follow_wrapper_chains' option in public API
Yury Selivanov added the comment: Nick, what do you think of this one? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20691 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10354] tempfile.template is broken
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 http://bugs.python.org/issue10354 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24230] tempfile.mkdtemp() doesn't work with bytes paths
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 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24230] tempfile.mkdtemp() doesn't work with bytes paths
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. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24230 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com