[issue27126] Apple-supplied libsqlite3 on OS X is not fork safe; can cause crashes

2016-08-19 Thread Chris Jerdonek
Chris Jerdonek added the comment: FWIW, I just came across an issue in Django's test suite that I believe is caused by the issue reported here. Some of Django's unit tests were hanging for me when run in "parallel" mode (which uses multiprocessing). Here is the ticket I filed there:

[issue27128] Add _PyObject_FastCall()

2016-08-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 73b00fb1dc9d by Victor Stinner in branch 'default': Cleanup call_method() and call_maybe() https://hg.python.org/cpython/rev/73b00fb1dc9d New changeset 8e085070ab28 by Victor Stinner in branch 'default': call_method() and call_maybe() now use fast

[issue27802] Add __eq__ and __ne__ to collections.abc.Sequence.

2016-08-19 Thread Guido van Rossum
Changes by Guido van Rossum : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___

[issue26689] Add `has_flag` method to `distutils.CCompiler`

2016-08-19 Thread Ned Deily
Ned Deily added the comment: Sylvain, have you brought this feature request up on the Distutils mailing list? The PyPA there is responsible for packaging features. One big issue with adding new features to Distutils is the backwards-compatibility tradeoff: many third-party package authors

[issue27792] bool % int has inconsistent return type.

2016-08-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: This can only happen because of a hole in the tests. test_bool.BoolTest.test_math appears to test every binary int op, including bitwise, *except* %. After self.assertIsNot(False/1, False) add self.assertEqual(False%1, 0)

[issue27800] Regular expressions with multiple repeat codes

2016-08-19 Thread Matthew Barnett
Matthew Barnett added the comment: "*" and the other quantifiers ("+", "?" and "{...}") operate on the preceding _item_, not the entire preceding expression. For example, "ab*" means "a" followed by zero or more repeats of "b". You're not allowed to use multiple quantifiers together. The

[issue27800] Regular expressions with multiple repeat codes

2016-08-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: This appears to be a doc issue to clarify that * cannot directly follow a repetition code. I believe there have been other (non)bug reports like this before. -- nosy: +terry.reedy ___ Python tracker

[issue12713] argparse: allow abbreviation of sub commands by users

2016-08-19 Thread Zachary Ware
Zachary Ware added the comment: There's a bug in this patch, first reported at https://github.com/python/benchmarks/issues/1 Attached patch causes test_parse_args_abbreviation to show the failure: test.test_argparse.ArgumentParserError: ('SystemExit', '', "usage: PROG [-h] [--foo] bar

[issue27128] Add _PyObject_FastCall()

2016-08-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3ab32f7add6e by Victor Stinner in branch 'default': Issue #27128: _pickle uses fast call https://hg.python.org/cpython/rev/3ab32f7add6e -- ___ Python tracker

[issue26988] Add AutoNumberedEnum to stdlib

2016-08-19 Thread David Hagen
David Hagen added the comment: One solution similar to one proposed by Vedran works with the current Enum: class Color(Enum): red = object() green = object() blue= object() I tested this in PyCharm and it is perfectly happy with the autocomplete and everything. The

[issue27803] ctypes automatic byref failing on custom classes attributes

2016-08-19 Thread Erwan Le Pape
New submission from Erwan Le Pape: When using a custom class to store a ctype value, passing that class as a function argument explicitly declared to be a pointer type fails to pass the _as_parameter_ class attribute as a pointer and instead raises a TypeError. For example: >>> from ctypes

[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-19 Thread Francis MB
Francis MB added the comment: Documentation cosmetic: # * Prefer ECDHE over DHE for better performance # * Prefer any AES-GCM over any AES-CBC for better performance and security +# * Prefer any AES-GCM over any AES-CBC for better performance and security The patch seems to be adding

[issue27558] SystemError with bare `raise` in threading or multiprocessing

2016-08-19 Thread SilentGhost
Changes by SilentGhost : -- stage: patch review -> resolved ___ Python tracker ___ ___

[issue27797] ASCII file with UNIX line conventions and enough lines throws SyntaxError when ASCII-compatible codec is declared

2016-08-19 Thread Martijn Pieters
New submission from Martijn Pieters: To reproduce, create an ASCII file with > io.DEFAULT_BUFFER_SIZE bytes (can be blank lines) and *UNIX line endings*, with the first two lines reading: #!/usr/bin/env python # -*- coding: cp1252 -*- Try to run this as a script on Windows:

[issue27662] Check against PY_SSIZE_T_MAX instead of PY_SIZE_MAX in List_New

2016-08-19 Thread Mark Dickinson
Mark Dickinson added the comment: Also, if you're switching to `PyMem_Calloc`, I'd suggest dropping the assertion at the end, since that's now really an assertion for logic that appears in `PyMem_Calloc` rather than in this function. -- ___ Python

[issue12946] PyModule_GetDict() claims it can never fail, but it can

2016-08-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset bd2a4c138b76 by Berker Peksag in branch '3.5': Issue #12946: Document that PyModule_GetDict can fail in some cases https://hg.python.org/cpython/rev/bd2a4c138b76 New changeset c2e74b88947d by Berker Peksag in branch 'default': Issue #12946: Merge

[issue12946] PyModule_GetDict() claims it can never fail, but it can

2016-08-19 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report, Stefan! -- ___ Python tracker ___ ___

[issue26050] Add new StreamReader.readuntil() method

2016-08-19 Thread Martin Panter
Martin Panter added the comment: In revision 83450939b106, Yury added some documentation for readuntil(). I am not familiar with this StreamReader class, but maybe Mark or someone else can check if the remaining changes in his patch are still useful. I can suggest some spelling and wording

[issue27157] Unhelpful error message when one calls a subclass of type with a custom metaclass

2016-08-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset c3498187f998 by Berker Peksag in branch 'default': Issue #27157: Make only type() itself accept the one-argument form https://hg.python.org/cpython/rev/c3498187f998 -- nosy: +python-dev ___ Python

[issue27662] Check against PY_SSIZE_T_MAX instead of PY_SIZE_MAX in List_New

2016-08-19 Thread Mark Dickinson
Mark Dickinson added the comment: LGTM. Thanks! I'll apply this later today, unless someone beats me to it. -- ___ Python tracker ___

[issue26988] Add AutoNumberedEnum to stdlib

2016-08-19 Thread Kenneth Reitz
Kenneth Reitz added the comment: This addition to Python, specifically the bare assignment-free `red` syntax would be a huge mistake for the language. It looks like a syntax error to me, and completely destroys my mental model for how Python code either does work or should work. A simple

[issue27157] Unhelpful error message when one calls a subclass of type with a custom metaclass

2016-08-19 Thread Berker Peksag
Berker Peksag added the comment: Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue27662] Check against PY_SSIZE_T_MAX instead of PY_SIZE_MAX in List_New

2016-08-19 Thread Xiang Zhang
Xiang Zhang added the comment: Thanks for your reply Mark. But I don't understand your message about the assertion. There is now no assertion in PyList_New. The changed assertion statement is in list_ass_subscript. If this confuses you I am quite sorry to bring in a somewhat unrelated change.

[issue27080] Implement the formatting part of PEP 515, '_' in numeric literals.

2016-08-19 Thread Eric V. Smith
Eric V. Smith added the comment: Unfortunately I'm not going to have time to implement this before 3.6 beta 1, so I'm un-assigning it to myself. I'll post to python-dev and hopefully someone else can get to it. Apologies for waiting so long. -- assignee: eric.smith -> versions:

[issue27662] Check against PY_SSIZE_T_MAX instead of PY_SIZE_MAX in List_New

2016-08-19 Thread Mark Dickinson
Mark Dickinson added the comment: There's also still a use of PY_SIZE_MAX in the list_resize function. Would it be worth fixing that one too? -- ___ Python tracker

[issue26988] Add AutoNumberedEnum to stdlib

2016-08-19 Thread Vedran Čačić
Vedran Čačić added the comment: I must say I never understood how exactly is assigning a constant better in this regard. To me, after a = SOMETHING b = SOMETHING a and b should be the same, right? _Especially_ when SOMETHING is None or (), but also when it's some bare identifier like

[issue27797] ASCII file with UNIX line conventions and enough lines throws SyntaxError when ASCII-compatible codec is declared

2016-08-19 Thread SilentGhost
Changes by SilentGhost : -- stage: -> needs patch type: -> behavior versions: -Python 3.4 ___ Python tracker ___

[issue26689] Add `has_flag` method to `distutils.CCompiler`

2016-08-19 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag stage: commit review -> patch review versions: -Python 2.7 ___ Python tracker

[issue27598] Add SizedIterable to collections.abc and typing

2016-08-19 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Thank you Neil, I agree that Sequence is a reversible collection. I combined you documentation patch with updated _collections_abc and updated test_functools (it tests MRO) into a single patch. -- Added file:

[issue26050] Add new StreamReader.readuntil() method

2016-08-19 Thread Martin Panter
Martin Panter added the comment: Also it looks like the b'\n' default confuses Sphinx. Maybe it needs extra escaping? -- ___ Python tracker ___

[issue27662] Check against PY_SSIZE_T_MAX instead of PY_SIZE_MAX in List_New

2016-08-19 Thread Mark Dickinson
Mark Dickinson added the comment: The change to use PyMem_Calloc looks good to me. -- ___ Python tracker ___

[issue26988] Add AutoNumberedEnum to stdlib

2016-08-19 Thread STINNER Victor
STINNER Victor added the comment: Would it be possible to use a auto or AUTO_ENUM constant from the enum in the Enum class? (And drop AutoEnum class.) -- ___ Python tracker

[issue27662] Check against PY_SSIZE_T_MAX instead of PY_SIZE_MAX in List_New

2016-08-19 Thread Mark Dickinson
Mark Dickinson added the comment: Right, sorry. I'm suggesting dropping that second assertion entirely; essentially, we're moving the responsibility for and knowledge about overflow checking into the PyMem_* functions/macros (which is where it belongs), and I don't see a need to check the

[issue27662] Check against PY_SSIZE_T_MAX instead of PY_SIZE_MAX in List_New

2016-08-19 Thread Xiang Zhang
Xiang Zhang added the comment: Just remove it. Regenerate the patch. As for list_resize, I have already fired another issue27660. -- Added file: http://bugs.python.org/file44147/List_New_Calloc_v2.patch ___ Python tracker

[issue12946] PyModule_GetDict() claims it can never fail, but it can

2016-08-19 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue12946] PyModule_GetDict() claims it can never fail, but it can

2016-08-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4b64a049f451 by Berker Peksag in branch 'default': Issue #12946: Remove dead code in PyModule_GetDict https://hg.python.org/cpython/rev/4b64a049f451 -- ___ Python tracker

[issue23231] Fix codecs.iterencode/decode() by allowing data parameter to be omitted

2016-08-19 Thread Martin Panter
Martin Panter added the comment: Serhiy’s two proposals won’t work for codecs that include non-zero output for zero input: >>> tuple(iterencode((), "utf-8-sig")) (b'\xef\xbb\xbf',) >>> encode(b"", "uu") b'begin 666 \n \nend\n' >>> encode(b"", "zlib") b'x\x9c\x03\x00\x00\x00\x00\x01' However I

[issue27598] Add SizedIterable to collections.abc and typing

2016-08-19 Thread Neil Girdhar
Neil Girdhar added the comment: (added the documentation changes) -- Added file: http://bugs.python.org/file44146/doc_changes.diff ___ Python tracker ___

[issue20132] Many incremental codecs don’t handle fragmented data

2016-08-19 Thread Martin Panter
Martin Panter added the comment: Split off Issue 27799 for the base-64 incremental decoder -- dependencies: +Fix base64-codec and bz2-codec incremental decoders ___ Python tracker

[issue27801] test_update_lines_cols fails from test.test_curses.MiscTests fails on Ubuntu 14.04 LTS

2016-08-19 Thread Dwayne Crooks
New submission from Dwayne Crooks: I was installing Python 3.5.2 from source on a Ubuntu 14.04 LTS virtual machine (it uses https://atlas.hashicorp.com/ubuntu/boxes/trusty64/versions/20160816.0.0). This is part of the result of running: ./python -m test -u curses -v test_curses

[issue25144] 3.5 Win install fails with "TARGETDIR"

2016-08-19 Thread Jagannath Basu
Jagannath Basu added the comment: I ran the python-3.5.2.exe file as administrator (right click > Run as Admin) and then followed the custom installation to set up target directory. It got installed without further complaints. -- nosy: +basuj81 ___

[issue27798] test_sysconfig: test_srcdir() fails on "x86 Gentoo Installed with X 3.x" buildbot

2016-08-19 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/x86%20Gentoo%20Installed%20with%20X%203.x/builds/879/steps/test/logs/stdio == FAIL: test_srcdir (test.test_sysconfig.TestSysConfig)

[issue26988] Add AutoNumberedEnum to stdlib

2016-08-19 Thread Kenneth Reitz
Kenneth Reitz added the comment: Explicit is better than implicit :) -- ___ Python tracker ___ ___

[issue27800] Regular expressions with multiple repeat codes

2016-08-19 Thread Martin Panter
New submission from Martin Panter: In the documentation for the “re” module, it says repetition codes like {4} and “*” operate on the preceding regular expression. But even though “a{4}” is a valid expression, the obvious way to apply a “*” repetition to it fails: >>> re.compile("a{4}*")

[issue26988] Add AutoNumberedEnum to stdlib

2016-08-19 Thread Vedran Čačić
Vedran Čačić added the comment: Absolutely. How the hell is `green = None` explicit?! On the other hand, `class Color(Enum, style='declarative'):` is explicit. People must learn something. Why then don't they learn the right thing instead of "hey, assigning None inside enums magically does

[issue27776] PEP 524: Make os.urandom() blocking on Linux

2016-08-19 Thread STINNER Victor
STINNER Victor added the comment: Enhanced patch to address Nick's comments and fix mistakes. The new patch now also updates the documentation. I restored the code in _random.Random.seed() to fallback on the system clock: _PyOS_URandomNonblock() *can* fail is /dev/urandom is missing or not

[issue27797] ASCII file with UNIX line conventions and enough lines throws SyntaxError when ASCII-compatible codec is declared

2016-08-19 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue27801] test_update_lines_cols from test.test_curses.MiscTests fails on Ubuntu 14.04 LTS

2016-08-19 Thread Dwayne Crooks
Changes by Dwayne Crooks : -- title: test_update_lines_cols fails from test.test_curses.MiscTests fails on Ubuntu 14.04 LTS -> test_update_lines_cols from test.test_curses.MiscTests fails on Ubuntu 14.04 LTS ___ Python

[issue27799] Fix base64-codec and bz2-codec incremental decoders

2016-08-19 Thread Martin Panter
New submission from Martin Panter: This is split off a large patch I posted at Issue 20132. My new patch here fixes the following two flaws. 1. There is special code in the bz2 decoder that returns an empty text str object at EOF, even though bz2-codec is a bytes-to-bytes codec: >>> import

[issue27797] ASCII file with UNIX line conventions and enough lines throws SyntaxError when ASCII-compatible codec is declared

2016-08-19 Thread Eryk Sun
Eryk Sun added the comment: In issue 20844 I suggested opening the file in binary mode, i.e. change the call to _Py_wfopen(filename, L"rb") in Modules/main.c. That would also entail documenting that PyRun_SimpleFileExFlags requires a FILE pointer that's opened in binary mode. After making

[issue27776] PEP 524: Make os.urandom() blocking on Linux

2016-08-19 Thread STINNER Victor
STINNER Victor added the comment: > _PyOS_URandomNonblock() *can* fail is /dev/urandom is missing or not readable Oh. It looks like Python initialization currently fails with a fatal error in this case, see _PyRandom_Init(). Maybe we should also fall back on clocks/pid in _PyRandom_Init()?

[issue27802] Add __eq__ and __ne__ to collections.abc.Sequence.

2016-08-19 Thread Neil Girdhar
New submission from Neil Girdhar: Both Mapping and Set provide __eq__ and __ne__. Why not have Sequence do the same? -- messages: 273114 nosy: neil.g priority: normal severity: normal status: open title: Add __eq__ and __ne__ to collections.abc.Sequence.

[issue27802] Add __eq__ and __ne__ to collections.abc.Sequence.

2016-08-19 Thread Neil Girdhar
Changes by Neil Girdhar : -- components: +Library (Lib) versions: +Python 3.6 ___ Python tracker ___

[issue27080] Implement the formatting part of PEP 515, '_' in numeric literals.

2016-08-19 Thread Chris Angelico
Chris Angelico added the comment: Here's a first-cut patch. No docs, no tests, and applies only to decimal formatting. It involves redefining the thousands_separators flag from being a boolean to being a three-state flag (none, comma, or underscore), and (ab)uses LT_*_LOCALE to carry that

[issue26988] Add AutoNumberedEnum to stdlib

2016-08-19 Thread STINNER Victor
STINNER Victor added the comment: 2016-08-19 14:19 GMT+02:00 Vedran Čačić : > In fact, what _is_ explicit, is this: > > class Color(metaclass=Enum): > green = object() > yellow = object() > > I could live with it. :-) For me, it's legit to use a

[issue27080] Implement the formatting part of PEP 515, '_' in numeric literals.

2016-08-19 Thread Chris Angelico
Chris Angelico added the comment: Hmm, adding bin/oct/hex support didn't turn out that hard. Although it feels like this code is getting hackish. Definitely needs code review! -- Added file: http://bugs.python.org/file44153/underscores_all_bases.patch

[issue27792] bool % int has inconsistent return type.

2016-08-19 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> mark.dickinson ___ Python tracker ___ ___

[issue27802] Add __eq__ and __ne__ to collections.abc.Sequence.

2016-08-19 Thread Neil Girdhar
Neil Girdhar added the comment: (there's already an open thread.) -- ___ Python tracker ___ ___

[issue27080] Implement the formatting part of PEP 515, '_' in numeric literals.

2016-08-19 Thread Chris Angelico
Changes by Chris Angelico : -- nosy: +Rosuav ___ Python tracker ___ ___ Python-bugs-list

[issue27080] Implement the formatting part of PEP 515, '_' in numeric literals.

2016-08-19 Thread Chris Angelico
Chris Angelico added the comment: Hmm, strange. Comma formatting never seems to have had tests added. So I've added a couple of simple tests of comma formatting at the same time as adding underscore formatting tests. Also, test_long.py currently has a comment "# octal" preceding a bunch of

[issue27598] Add SizedIterable to collections.abc and typing

2016-08-19 Thread Neil Girdhar
Neil Girdhar added the comment: Given issue http://bugs.python.org/issue27802, it might be worth considering that all Collections implement __eq__ and __ne__, so maybe these should be abstract methods on Collection? -- ___ Python tracker

[issue27598] Add Collection to collections.abc and typing

2016-08-19 Thread Neil Girdhar
Changes by Neil Girdhar : -- title: Add SizedIterable to collections.abc and typing -> Add Collection to collections.abc and typing ___ Python tracker

[issue27802] Add __eq__ and __ne__ to collections.abc.Sequence.

2016-08-19 Thread Martin Panter
Martin Panter added the comment: Your implementation looks like it will make a Sequence equal to a list and a tuple, even though lists and tuples are never equal to each other. -- nosy: +martin.panter type: -> enhancement ___ Python tracker

[issue27801] test_update_lines_cols from test.test_curses.MiscTests fails on Ubuntu 14.04 LTS

2016-08-19 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report! update_lines_cols() was added in 132b5376bf34. I guess we should just skip the test if update_lines_cols() is not available. -- nosy: +berker.peksag stage: -> needs patch type: -> behavior versions: +Python 3.6

[issue27802] Add __eq__ and __ne__ to collections.abc.Sequence.

2016-08-19 Thread Neil Girdhar
Changes by Neil Girdhar : -- keywords: +patch Added file: http://bugs.python.org/file44151/abc_eq.diff ___ Python tracker ___

[issue27802] Add __eq__ and __ne__ to collections.abc.Sequence.

2016-08-19 Thread Neil Girdhar
Neil Girdhar added the comment: That's a really good point. Perhaps bring it up on ideas so that it can be discussed by more people? I don't know what the answer is. -- ___ Python tracker

[issue26988] Add AutoNumberedEnum to stdlib

2016-08-19 Thread Vedran Čačić
Vedran Čačić added the comment: > For me, it's legit to use a singleton in an enum. But you cannot explain _why_, right? Like Raymond says, it's not working like anything else in Python works. To me, this looks almost the same as the gripes of those lazy people who want "myfile.close"

[issue27801] test_update_lines_cols from test.test_curses.MiscTests fails on Ubuntu 14.04 LTS

2016-08-19 Thread Xiang Zhang
Xiang Zhang added the comment: Yes. update_lines_cols is not always available. We can just treat it like other methods like resize_term. Upload a trivial patch to fix this. -- keywords: +patch nosy: +xiang.zhang Added file: http://bugs.python.org/file44155/issue27801.patch

[issue22021] shutil.make_archive() root_dir do not work

2016-08-19 Thread R. David Murray
R. David Murray added the comment: "base_name is the name of the file to create, including the path". So you should be able to specify the path to where you want it created. If that doesn't work, that's a bug. -- ___ Python tracker

[issue27801] test_update_lines_cols from test.test_curses.MiscTests fails on Ubuntu 14.04 LTS

2016-08-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 51368991e858 by Berker Peksag in branch '3.5': Issue #27801: Skip test_update_lines_cols when update_lines_cols() is not available https://hg.python.org/cpython/rev/51368991e858 New changeset bd9183850965 by Berker Peksag in branch 'default':

[issue27801] test_update_lines_cols from test.test_curses.MiscTests fails on Ubuntu 14.04 LTS

2016-08-19 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue26988] Add AutoNumberedEnum to stdlib

2016-08-19 Thread Ethan Furman
Ethan Furman added the comment: Vedran, you have some very interesting points. However, if you really want to champion this you'll need to take it to Python Ideas. -- ___ Python tracker

[issue26988] Add AutoNumberedEnum to stdlib

2016-08-19 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Hey, I just realized that you can get pretty darn close with just a little bit of extra typing, and existing stdlib: from enum import Enum from itertools import count auto = count() class Color(Enum): red = next(auto) green =

[issue26988] Add AutoNumberedEnum to stdlib

2016-08-19 Thread Ethan Furman
Ethan Furman added the comment: No magic, but a whole heap of extra boiler-plate. :( -- ___ Python tracker ___

[issue27800] Regular expressions with multiple repeat codes

2016-08-19 Thread R. David Murray
R. David Murray added the comment: It seems perfectly logical and consistent to me. {4} is a repeat count, as is *. You get the same error if you do 'a?*', and the same bypass if you do '(a?)*' (though I haven't tested if that does anything useful :). You don't need the ?:, as far as I can

[issue26988] Add AutoNumberedEnum to stdlib

2016-08-19 Thread Kenneth Reitz
Kenneth Reitz added the comment: There's a difference between boiler-plate and "code". > On Aug 19, 2016, at 10:53 AM, Ethan Furman wrote: > > > Ethan Furman added the comment: > > No magic, but a whole heap of extra boiler-plate. :( > > -- > >

[issue27740] Fix doc of Py_CompileStringExFlags

2016-08-19 Thread Xiang Zhang
Xiang Zhang added the comment: Ping. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27128] Add _PyObject_FastCall()

2016-08-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset a1a29d20f52d by Victor Stinner in branch 'default': Add _PyObject_FastCall() https://hg.python.org/cpython/rev/a1a29d20f52d New changeset 89e4ad001f3d by Victor Stinner in branch 'default': PyEval_CallObjectWithKeywords() uses fast call

[issue27740] Fix doc of Py_CompileStringExFlags

2016-08-19 Thread Xiang Zhang
Xiang Zhang added the comment: > filename is going to be decoded inside of Py_CompileStringExFlags Actually all I want to express is this, *filename* will be decoded inside. But now the wording looks to me is that *filename* is already a decoded string when passed. I don't want to document

[issue27128] Add _PyObject_FastCall()

2016-08-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2da6dc1c30d8 by Victor Stinner in branch 'default': contains and rich compare slots use fast call https://hg.python.org/cpython/rev/2da6dc1c30d8 New changeset 2d4d40da2aba by Victor Stinner in branch '3.5': Fix a refleak in call_method()

[issue27802] Add __eq__ and __ne__ to collections.abc.Sequence.

2016-08-19 Thread R. David Murray
R. David Murray added the comment: I was wondering the same thing recently, thanks for opening this issue. Here is my use case: I'm implementing a PersistentList, and I want it to be equal to a 'real' list, but not equal to a tuple. Frankly, I hadn't thought about the latter problem before

[issue27740] Fix doc of Py_CompileStringExFlags

2016-08-19 Thread Berker Peksag
Berker Peksag added the comment: I don't understand the second part of the patch. *filename* is a filesystem encoding (:func:`os.fsdecode`) encoded string [...] Do you want to document that filename should be encoded by using PyUnicode_EncodeFSDefault *before* passing it to

[issue27798] test_sysconfig: test_srcdir() fails on "x86 Gentoo Installed with X 3.x" buildbot

2016-08-19 Thread Zachary Ware
Zachary Ware added the comment: This appears to be a duplicate of #23968. -- nosy: +zach.ware resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET) type: -> behavior

[issue27713] Spurious "platform dependent libraries" warnings when running make

2016-08-19 Thread Xiang Zhang
Xiang Zhang added the comment: This is the design of getpath.c, when no exec/exec_prefix can be found it will emit warning and use the default one. Fortunately it gives use the ability to suppress the warnings. :) Simply set Py_FrozenFlag in _freeze_importlib.c can solve this problem. Upload

[issue27126] Apple-supplied libsqlite3 on OS X is not fork safe; can cause crashes

2016-08-19 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker ___ ___

[issue27806] 2.7 32-bit builds fail on future releases of OS X due to dependency on deleted header file

2016-08-19 Thread Ned Deily
New submission from Ned Deily: Attempts to build Python 2.7 using OS X/macOS public beta versions of the latest command-line tools can fail due to the removal of the system header file for QuickTime/QuickTime.h, one of the long deprecated Carbon APIs. Currently, Python only attempts to build

[issue12713] argparse: allow abbreviation of sub commands by users

2016-08-19 Thread paul j3
Changes by paul j3 : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list

[issue27283] Add a "What's New" entry for PEP 519

2016-08-19 Thread Brett Cannon
Brett Cannon added the comment: While I wait on various patches related to PEP 519 to land, I have gone ahead and written the What's New entry. -- keywords: +patch Added file: http://bugs.python.org/file44160/pep_519_whatsnew.diff ___ Python tracker

[issue27283] Add a "What's New" entry for PEP 519

2016-08-19 Thread Brett Cannon
Changes by Brett Cannon : -- stage: needs patch -> patch review ___ Python tracker ___ ___

[issue26988] Add AutoNumberedEnum to stdlib

2016-08-19 Thread Vedran Čačić
Vedran Čačić added the comment: # Just wait until I put the keys to the time machine in their usual place... :-) Ok, while we're talking about whether declarative style is a good idea, Python has already got the initial seed of that style. With Guido's blessing! PEP 526 enables us to mix

[issue27807] Prevent site-packages .pth files from causing test_site failure

2016-08-19 Thread Chris Angelico
New submission from Chris Angelico: Having matplotlib installed globally causes test_site to fail, due to the .pth file importing types. The point of the test is to monitor startup dependencies (and thus time) for the core interpreter and standard library, not third-party libraries, so having

[issue27807] Prevent site-packages .pth files from causing test_site failure

2016-08-19 Thread Chris Angelico
Changes by Chris Angelico : -- keywords: +patch Added file: http://bugs.python.org/file44158/no-site-packages-in-test.patch ___ Python tracker

[issue27128] Add _PyObject_FastCall()

2016-08-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset c2af917bde71 by Victor Stinner in branch 'default': PyFile_WriteObject() now uses fast call https://hg.python.org/cpython/rev/c2af917bde71 New changeset 0da1ce362d15 by Victor Stinner in branch 'default': import_name() now uses fast call

[issue26027] Support Path objects in the posix module

2016-08-19 Thread Brett Cannon
Brett Cannon added the comment: Here is a patch that incorporates Serhiy's feedback. -- Added file: http://bugs.python.org/file44159/path_converter.diff ___ Python tracker

[issue26689] Add `has_flag` method to `distutils.CCompiler`

2016-08-19 Thread Ned Deily
Ned Deily added the comment: "I posted a couple of messages on distutils-sig and got little attention." OK, for future reference, the start of the discussion was here: https://mail.python.org/pipermail/distutils-sig/2016-May/029010.html It looks like the first item, the one relative to this

[issue26027] Support Path objects in the posix module

2016-08-19 Thread Brett Cannon
Changes by Brett Cannon : -- stage: test needed -> commit review ___ Python tracker ___ ___

[issue27598] Add Collection to collections.abc and typing

2016-08-19 Thread Neil Girdhar
Neil Girdhar added the comment: (never mind about the comparison operators :) Turns out that would break backwards compatibility.) -- ___ Python tracker

[issue27807] Prevent site-packages .pth files from causing test_site failure

2016-08-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think hitting adventurous users like Chris who locally compile and test with this failure is wrong. There is no core dev 'site' expert, so I picked 'testing'. -- nosy: +ezio.melotti, michael.foord, terry.reedy

[issue27128] Add _PyObject_FastCall()

2016-08-19 Thread STINNER Victor
STINNER Victor added the comment: Ok, I updated the most simple forms of function calls. I will open new issues for more complex calls and more sensible parts of the code like ceval.c. Buildbots seem to be happy. -- ___ Python tracker

[issue27804] IDLE 3.5.2 crashes when typing ^ on keyboard

2016-08-19 Thread Grégoire Cutzach
New submission from Grégoire Cutzach: When typing ^ (CIRCUMFLEX ACCENT Unicode: U+005E, UTF-8: 5E) on azerty Keyboard, IDLE quits/crashes. Encountered on a mac running OS X 10.11.6 -- assignee: terry.reedy components: IDLE messages: 273155 nosy: Grégoire Cutzach, terry.reedy priority:

  1   2   >