[issue28070] 3.6 regression: re.compile not handling flags with X correctly

2016-09-11 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Thanks for such a quick fix! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28022] SSL releated deprecation for 3.6

2016-09-11 Thread Nick Coghlan
Nick Coghlan added the comment: Leaving the option of context caching entirely to the caller would definitely make things simpler - my main interest is just in avoiding a hard compatibility break for folks that aren't doing anything particularly wrong, by which I mean specifically cases where

[issue26081] Implement asyncio Future in C to improve performance

2016-09-11 Thread INADA Naoki
INADA Naoki added the comment: Sorry, again. fixed. Now this passes `./python -m test.test_asyncio` -- Added file: http://bugs.python.org/file44547/fastfuture.patch ___ Python tracker __

[issue28066] [Patch] Fix the ability to cross compile Python when doing a rebuild of importlib.h

2016-09-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue28061] Compact dict bug on Windows (Visual Studio): if (mp->ma_keys->dk_usable * 3 < other->ma_used * 2)

2016-09-11 Thread STINNER Victor
Changes by STINNER Victor : -- title: Python crashes on 'from test import support' -> Compact dict bug on Windows (Visual Studio): if (mp->ma_keys->dk_usable * 3 < other->ma_used * 2) ___ Python tracker __

[issue26900] Exclude the private API from the stable API

2016-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset d00f15af75ea by Serhiy Storchaka in branch 'default': Issue #26900: Excluded underscored names and other private API from limited API. https://hg.python.org/cpython/rev/d00f15af75ea -- nosy: +python-dev _

[issue433028] SRE: (?flag:...) is not supported

2016-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There was one bug (issue28070), it is now fixed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker _

[issue23591] enum: Add Flags and IntFlags

2016-09-11 Thread Vedran Čačić
Vedran Čačić added the comment: > Which means it has methods such as __getitem__, __setitem__, etc., which > means those methods can implement whatever is needed to give the namespace > the desired semantics (within Python syntax). Ah, _that_'s what you had in mind. (All this time, I thought _

[issue27932] platform.win32_ver() leaks in 2.7.12

2016-09-11 Thread STINNER Victor
STINNER Victor added the comment: > pointer-type cache grows without bound Maybe we should also fix ctypes to use an LRU cache like @functools.lru_cache? A cache without limit doesn't seem like a good idea. -- ___ Python tracker

[issue26885] Add parsing support for more types in xmlrpc

2016-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset ef63e1c999bd by Serhiy Storchaka in branch 'default': Issue #26885: xmlrpc now supports unmarshalling additional data types used https://hg.python.org/cpython/rev/ef63e1c999bd -- nosy: +python-dev ___ Pyt

[issue26900] Exclude the private API from the stable API

2016-09-11 Thread STINNER Victor
STINNER Victor added the comment: I didn't follow this discussion, but thanks for the fix Serhiy :-) By the way, I started a thread on python-dev to discuss a new organization of the C API for Python 3.7. -- ___ Python tracker

[issue26900] Exclude the private API from the stable API

2016-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Maybe new private functions was added after writing the patch. And many new public functions was added without guarding by specific Py_LIMITED_API value. This is separate issue. -- ___ Python tracker

[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-11 Thread Berker Peksag
Berker Peksag added the comment: I'm getting segfaults with a77756e480c2 (thanks to 'hg bisect') on Ubuntu 12.04. I've checked buildbots, but they seem happy. In test_sys: test_recursionlimit_recovery (test.test_sys.SysModuleTest) ... Fatal Python error: Segmentation fault In test_runpy: te

[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-11 Thread STINNER Victor
STINNER Victor added the comment: Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2016-09-11 08:55 Berker: "I'm getting segfaults with a77756e480c2 (thanks to 'hg bisect') on Ubuntu 12.04 (...) test_recursionlimit_recovery (...) test_main_recursion_error (...)" We should

[issue28075] py35 os.stat behavoir different than python 2.7

2016-09-11 Thread ramson
New submission from ramson: doing os.stat on the directory c:\config.msi gives different results on my Windows 10 machine, when done with py27 and py35 -- Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:24:40) [MSC v.1500 64 bit (AMD64)]

[issue15819] Unable to build Python out-of-tree when source tree is readonly.

2016-09-11 Thread Martin Panter
Martin Panter added the comment: Perhaps there should be a comment explaining that you can’t write to $(srcdir). Or even a buildbot that does an out-of-tree build. Every now and then I seem to be defending against patches that want to change targets back to $(srcdir). Also, Trent’s last change

[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-11 Thread Berker Peksag
Berker Peksag added the comment: > [...] please try a "make distclean" and make sure that all .pyc files are > removed, and then recompile Python. I forgot to mention that in my earlier comment. I usually run "make distclean" before "./configure --with-pydebug; make -s -j" so unfortunately run

[issue27932] platform.win32_ver() leaks in 2.7.12

2016-09-11 Thread Eryk Sun
Eryk Sun added the comment: Limiting the pointer-type cache could be a problem. It's expected that POINTER() returns a reference to an existing pointer type. ctypes uses Python types to ensure compatible C data types. For example: LP_c_int = ctypes.POINTER(ctypes.c_int) class LP_c_int

[issue28066] [Patch] Fix the ability to cross compile Python when doing a rebuild of importlib.h

2016-09-11 Thread Martin Panter
Martin Panter added the comment: There are various tricky cases to be considered with the regenerated files like importlib.h. One of them is that you are supposed to be able to build Python from a read-only source tree. See Issue 15819. Writing files into $(srcdir) would break this. Also, as

[issue28066] [Patch] Fix the ability to cross compile Python when doing a rebuild of importlib.h

2016-09-11 Thread Martin Panter
Changes by Martin Panter : Removed file: http://bugs.python.org/file44548/srcdir-check.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue28066] [Patch] Fix the ability to cross compile Python when doing a rebuild of importlib.h

2016-09-11 Thread Martin Panter
Changes by Martin Panter : Added file: http://bugs.python.org/file44549/srcdir-check.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue28061] Compact dict bug on Windows (Visual Studio): if (mp->ma_keys->dk_usable * 3 < other->ma_used * 2)

2016-09-11 Thread INADA Naoki
INADA Naoki added the comment: I built acfe53a (git hash). Then: c:\Users\inada-n\work\cpython>PCbuild\win32\python_d.exe -m test.test_dict .. -- Ran 7

[issue27364] Deprecate invalid escape sequences in str/bytes

2016-09-11 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Currently the deprecation message is not so useful when fixing lots of files in a large project. For example, I have two files foo.py and bar.py: # foo.py import bar # bar.py print('\d') It gives: $ python3.6 -W error foo.py Traceback (most recent call last):

[issue28061] Compact dict bug on Windows (Visual Studio): if (mp->ma_keys->dk_usable * 3 < other->ma_used * 2)

2016-09-11 Thread STINNER Victor
STINNER Victor added the comment: Emanuel Barry: What is your Visual Studio (exact) version? I know that there are service packs for VS. What is your Windows version? -- ___ Python tracker

[issue22493] Deprecate the use of flags not at the start of regular expression

2016-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 31f8af1c3567 by Serhiy Storchaka in branch 'default': Issue #22493: Inline flags now should be used only at the start of the https://hg.python.org/cpython/rev/31f8af1c3567 -- nosy: +python-dev ___ Python

[issue28061] Compact dict bug on Windows (Visual Studio): if (mp->ma_keys->dk_usable * 3 < other->ma_used * 2)

2016-09-11 Thread STINNER Victor
STINNER Victor added the comment: > Emanuel Barry: What is your Visual Studio (exact) version? I know that there > are service packs for VS. What is your Windows version? Oh, same questions for you Naoki in fact :-) It may help to check if it's related to VS, Windows or if it's something else.

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2016-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 284676cf2ac8 by Berker Peksag in branch 'default': Issue #10740: sqlite3 no longer implicitly commit an open transaction before DDL statements https://hg.python.org/cpython/rev/284676cf2ac8 -- nosy: +python-dev

[issue28055] pyhash's siphash24 assumes alignment of the data pointer

2016-09-11 Thread Antti Haapala
Antti Haapala added the comment: There is no need to ifdef anything, the memcpy is the only correct way to do it. As memcpy is also a reserved identifier in C, the compiler can and will optimize this into a 64-bit access on those platforms where it can be safely done so (x86 for example), e.g.

[issue27991] In the argparse howto there is a misleading sentence about store_true

2016-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0e45cd7859ec by Berker Peksag in branch '3.5': Issue #27991: Remove incorrect sentence about store_true https://hg.python.org/cpython/rev/0e45cd7859ec New changeset 9a75fa28bd0a by Berker Peksag in branch 'default': Issue #27991: Merge from 3.5 http

[issue27991] In the argparse howto there is a misleading sentence about store_true

2016-09-11 Thread Berker Peksag
Berker Peksag added the comment: Good catch, thanks! -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.5 ___ Python tracker ___

[issue27952] Finish converting fixcid.py from regex to re

2016-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 740e43eb8138 by Martin Panter in branch '2.7': Issue #27952: Get fixcid.py working with the re module https://hg.python.org/cpython/rev/740e43eb8138 New changeset ca68bb597df9 by Martin Panter in branch '3.5': Issue #27952: Get fixcid.py working wit

[issue28061] Compact dict bug on Windows (Visual Studio): if (mp->ma_keys->dk_usable * 3 < other->ma_used * 2)

2016-09-11 Thread INADA Naoki
INADA Naoki added the comment: I noticed I tested win32 mode. I'll rebuild on amd64 mode. > Oh, same questions for you Naoki in fact :-) I don't know about how to describe exist version of my Windows environment. Is these enough? Windows 10 Home (with Anniversary Update) 10.0.14393 build 143

[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > python: Objects/abstract.c:2385: _PyStack_AsDict: Assertion > `PyDict_GetItem(kwdict, key) != ((void *)0)' failed. Aborted (core dumped) > generate-posix-vars failed > make: *** [pybuilddir.txt] Error 1 Ah, it's my fault. I didn't test the latest patch with

[issue28022] SSL releated deprecation for 3.6

2016-09-11 Thread Martin Panter
Martin Panter added the comment: New test failure when using -Werror: == ERROR: test_local_bad_hostname (test.test_httplib.HTTPSTest) -- Traceback (most recent

[issue15819] Unable to build Python out-of-tree when source tree is readonly.

2016-09-11 Thread Kubilay Kocak
Kubilay Kocak added the comment: @Martin Maybe Zach (nosey'd) can help us get an out-of-tree builder set up? If this is relevant for 3.5+, versions should be updated accordingly. -- nosy: +zach.ware ___ Python tracker

[issue28061] Compact dict bug on Windows (Visual Studio): if (mp->ma_keys->dk_usable * 3 < other->ma_used * 2)

2016-09-11 Thread INADA Naoki
INADA Naoki added the comment: amd64 result c:\Users\inada-n\work\cpython>PCbuild\amd64\python_d.exe -m test.test_dict .. -- Ran 78 tests in 1.498s OK

[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-11 Thread Berker Peksag
Berker Peksag added the comment: Thanks, Serhiy. test_recursionlimit_recovery in test_sys passed, but now I'm getting the following failure: FAIL: test_recursionlimit_fatalerror (test.test_sys.SysModuleTest) I modified test_recursionlimit_fatalerror to use subTest() and it looks like the tes

[issue27129] Wordcode, part 2

2016-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset dd046963bd42 by Serhiy Storchaka in branch 'default': Issue #27129: Replaced wordcode related magic constants with macros. https://hg.python.org/cpython/rev/dd046963bd42 -- nosy: +python-dev ___ Python tr

[issue28076] Variable annotations should be mangled for private names

2016-09-11 Thread Ivan Levkivskyi
New submission from Ivan Levkivskyi: Variable annotations for private names are stored in __annotations__ without name mangling. This is inconsistent with how function annotations behave: class C: def meth(__x: int): ... assert C.meth.__annotations__ == {'_C__x': int} The attached patch fi

[issue27129] Wordcode, part 2

2016-09-11 Thread Berker Peksag
Berker Peksag added the comment: >From >http://buildbot.python.org/all/builders/s390x%20Debian%203.x/builds/1811/steps/compile/logs/stdio > (I also saw the same compile error on another Linux boxes) _freeze_importlib: Python/peephole.c:524: PyCode_Optimize: Assertion `((codestr[i]) >> 8) == 10

[issue25497] Rewrite test_robotparser

2016-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2193bd6f020c by Berker Peksag in branch 'default': Issue #25497: Rewrite test_robotparser to use a class based design https://hg.python.org/cpython/rev/2193bd6f020c -- nosy: +python-dev ___ Python tracker

[issue25497] Rewrite test_robotparser

2016-09-11 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.5 ___ Python tracker ___ _

[issue25671] Fix venv activate.fish to maintain $status

2016-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset f6125944ffb8 by Vinay Sajip in branch '3.5': Fixes #25671: Updated prompt handling in activate.fish. https://hg.python.org/cpython/rev/f6125944ffb8 New changeset ed34b93519ba by Vinay Sajip in branch 'default': Closes #25671: Merged fix from 3.5. ht

[issue25400] robotparser doesn't return crawl delay for default entry

2016-09-11 Thread Berker Peksag
Berker Peksag added the comment: I've now updated Lib/test/test_robotparser.py (issue 25497) Peter, do you have time to update your patch? Thanks! -- ___ Python tracker ___

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

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

[issue28075] os.stat fails when access is denied

2016-09-11 Thread Eryk Sun
Eryk Sun added the comment: Python 3's os.stat tries to open a handle for the file or directory in order to call GetFileInformationByHandle. Opening a file handle via CreateFile requests at least FILE_READ_ATTRIBUTES and SYNCHRONIZE access when it calls NtCreateFile. If access is denied, os.st

[issue27952] Finish converting fixcid.py from regex to re

2016-09-11 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue28061] Compact dict bug on Windows (Visual Studio): if (mp->ma_keys->dk_usable * 3 < other->ma_used * 2)

2016-09-11 Thread Emanuel Barry
Emanuel Barry added the comment: Huh, weird. I'm running a win32 build on a 64 bits machine, with VS2015. I didn't have time to test on a clean checkout, I will do that first thing when I'm back home tonight. I hope I did something wrong and there really isn't any issue :) -- ___

[issue26533] logging.config does not allow disable_existing_loggers=True

2016-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 65a1abf4b432 by Vinay Sajip in branch '3.5': Closed #26533: expanded on behaviour of logging.config.listen(). https://hg.python.org/cpython/rev/65a1abf4b432 New changeset abd744bf62fb by Vinay Sajip in branch 'default': Closed #26533: Merged update

[issue27129] Wordcode, part 2

2016-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset b49a938eaa31 by Serhiy Storchaka in branch 'default': Fixed refactoring bug in dd046963bd42 (issue27129). https://hg.python.org/cpython/rev/b49a938eaa31 -- ___ Python tracker

[issue27129] Wordcode, part 2

2016-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Berker! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue28036] Remove unused pysqlite_flush_statement_cache function

2016-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0bd7fe9b0bd7 by Berker Peksag in branch 'default': Issue #28036: Remove unused pysqlite_flush_statement_cache function https://hg.python.org/cpython/rev/0bd7fe9b0bd7 -- nosy: +python-dev ___ Python tracke

[issue28036] Remove unused pysqlite_flush_statement_cache function

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

[issue20100] epoll docs are not clear with regards to CLOEXEC.

2016-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9023c4f5d467 by Berker Peksag in branch '3.5': Issue #20100: Clarify that passing flags to epoll() has no effect https://hg.python.org/cpython/rev/9023c4f5d467 New changeset d2b5806fa770 by Berker Peksag in branch 'default': Issue #20100: Merge from

[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please attach a reproducer Berker. I still can't reproduce crashes. Maybe it depends on platform or installed third-party module or Python command line options. -- ___ Python tracker

[issue24454] Improve the usability of the match object named group API

2016-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset ac0643314d12 by Eric V. Smith in branch 'default': Issue 24454: Improve the usability of the re match object named group API https://hg.python.org/cpython/rev/ac0643314d12 -- nosy: +python-dev ___ Python

[issue24454] Improve the usability of the match object named group API

2016-09-11 Thread Eric V. Smith
Changes by Eric V. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue28065] Update Windows build to xz-5.2.2

2016-09-11 Thread Tim Golden
Tim Golden added the comment: Applies, builds & tests ok for me for Win32 Release build (ie build.bat -e) on Win 8.1 x64. -- ___ Python tracker ___ _

[issue20100] epoll docs are not clear with regards to CLOEXEC.

2016-09-11 Thread Berker Peksag
Berker Peksag added the comment: Here is an updated patch for Modules/selectmodule.c. It would be nice to get a code review. -- Added file: http://bugs.python.org/file44553/selectmodule.diff ___ Python tracker ___

[issue24454] Improve the usability of the match object named group API

2016-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please document this feature in What's News Eric. There is no need to add the __getitem__ method explicitly the the list of methods match_methods. It would be added automatically. -- ___ Python tracker

[issue24454] Improve the usability of the match object named group API

2016-09-11 Thread Eric V. Smith
Eric V. Smith added the comment: I added a note in Misc/NEWS. Is that not what you mean? I'll look at match_methods. -- ___ Python tracker ___ __

[issue24454] Improve the usability of the match object named group API

2016-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I meant Doc/whatsnew/3.6.rst. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue28061] Compact dict bug on Windows (Visual Studio): if (mp->ma_keys->dk_usable * 3 < other->ma_used * 2)

2016-09-11 Thread Steve Dower
Steve Dower added the comment: It's unlikely, but we also print out the UCRT version at the end of the build process (with a warning if you need to update the WinSDK). I built and tested a number of times with this change though. If suggest hg purge and rebuild to make sure everything is clean

[issue24454] Improve the usability of the match object named group API

2016-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3265247e08f0 by Eric V. Smith in branch 'default': Issue 24454: Added whatsnew entry, removed __getitem__ from match_methods. Thanks Serhiy Storchaka. https://hg.python.org/cpython/rev/3265247e08f0 -- __

[issue24454] Improve the usability of the match object named group API

2016-09-11 Thread Eric V. Smith
Eric V. Smith added the comment: Fixed. Thanks, Serhiy. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue24454] Improve the usability of the match object named group API

2016-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: ./Modules/_sre.c:2425:14: warning: ‘match_getitem_doc’ defined but not used [- Wunused-variable] -- ___ Python tracker ___ ___

[issue28075] os.stat fails when access is denied

2016-09-11 Thread Eryk Sun
Eryk Sun added the comment: I overlooked attempting to open a paging-file for any access, which is hard coded as a sharing violation. The attached patch checks for both cases. -- keywords: +patch Added file: http://bugs.python.org/file44554/issue_28075_01.patch

[issue23105] os.O_SHLOCK and os.O_EXLOCK are not available on Linux

2016-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5ca4c545dfe4 by Vinay Sajip in branch '2.7': Issue #23105: Updated documentation on open() flag constants. https://hg.python.org/cpython/rev/5ca4c545dfe4 New changeset f1427491a8a5 by Vinay Sajip in branch '3.5': Issue #23105: Updated documentation

[issue24454] Improve the usability of the match object named group API

2016-09-11 Thread Eric V. Smith
Eric V. Smith added the comment: On 9/11/2016 10:05 AM, Serhiy Storchaka wrote: > > Serhiy Storchaka added the comment: > > ./Modules/_sre.c:2425:14: warning: ‘match_getitem_doc’ defined but not used [- > Wunused-variable] Not in Visual Studio! Standby. --

[issue24454] Improve the usability of the match object named group API

2016-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9eb38e0f1cad by Eric V. Smith in branch 'default': Issue 24454: Removed unused match_getitem_doc. https://hg.python.org/cpython/rev/9eb38e0f1cad -- ___ Python tracker

[issue28066] [Patch] Fix the ability to cross compile Python when doing a rebuild of importlib.h

2016-09-11 Thread Ed Schouten
Ed Schouten added the comment: It does. I can now cross build Python for CloudABI by copying importlib.h and importlib_external.h from the native build directory to the target build directory. Thanks! -- ___ Python tracker

[issue28077] Fix find_empty_slot in dictobject

2016-09-11 Thread Xiang Zhang
New submission from Xiang Zhang: find_empty_slot will also do *value_addr = &mp->ma_values[-1] if it encounters a split dict. -- components: Interpreter Core files: find_empty_slot.patch keywords: patch messages: 275800 nosy: haypo, methane, xiang.zhang priority: normal severity: normal

[issue23591] enum: Add Flags and IntFlags

2016-09-11 Thread Ethan Furman
Ethan Furman added the comment: >> Which means it has methods such as __getitem__, __setitem__, etc., >> which means those methods can implement whatever is needed to give >> the namespace the desired semantics (within Python syntax). > Ah, _that_'s what you had in mind. (All this time, I though

[issue23591] enum: Add Flags and IntFlags

2016-09-11 Thread Ethan Furman
Ethan Furman added the comment: Many thanks to everyone for their input and help. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue28078] Silence resource warnings in test_socket

2016-09-11 Thread Xiang Zhang
New submission from Xiang Zhang: test_aead_aes_gcm (test.test_socket.LinuxKernelCryptoAPI) ... /home/angwer/cpython/Lib/unittest/case.py:600: ResourceWarning: unclosed testMethod() skipped "('[Errno 2] No such file or directory', 'aead', 'gcm(aes)')" test_sendmsg_afalg_args (test.test_socket

[issue28078] Silence resource warnings in test_socket

2016-09-11 Thread Xiang Zhang
Changes by Xiang Zhang : -- keywords: +patch Added file: http://bugs.python.org/file44556/test_socket.patch ___ Python tracker ___ ___

[issue26331] PEP 515: Tokenizer: allow underscores for grouping in numeric literals

2016-09-11 Thread Georg Brandl
Georg Brandl added the comment: Thanks Brett! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue27715] call-matcher breaks if a method is mocked with spec=True

2016-09-11 Thread Eli_B
Changes by Eli_B : -- nosy: +Eli_B ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mail

[issue28078] Silence resource warnings in test_socket

2016-09-11 Thread Christian Heimes
Christian Heimes added the comment: Thanks! The first fix looks good. For the second one I'd rather wrap the test body in a with statement: def test_sendmsg_afalg_args(self): sock = socket.socket(socket.AF_ALG, socket.SOCK_SEQPACKET, 0) with sock: with self.asser

[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-11 Thread Влад Ключкей
Changes by Влад Ключкей : -- hgrepos: +354 Added file: http://bugs.python.org/file44557/IMG_20160830_174452.jpg ___ Python tracker ___ ___

[issue28078] Silence resource warnings in test_socket

2016-09-11 Thread Xiang Zhang
Xiang Zhang added the comment: It's your code. Do what you like. :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file44557/IMG_20160830_174452.jpg ___ Python tracker ___ ___ Python-bugs-li

[issue28076] Variable annotations should be mangled for private names

2016-09-11 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks! I think you have a PEP update already waiting for me? -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue28076] Variable annotations should be mangled for private names

2016-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1c2a4f29e1ab by Guido van Rossum in branch 'default': Issue #28076: Variable annotations should be mangled for private names. https://hg.python.org/cpython/rev/1c2a4f29e1ab -- nosy: +python-dev ___ Python

[issue28079] Update typing and test typing from python/typing repo

2016-09-11 Thread Ivan Levkivskyi
New submission from Ivan Levkivskyi: Here is the patch for 3.5 -- files: typing-patch.diff keywords: patch messages: 275809 nosy: gvanrossum, levkivskyi priority: normal severity: normal status: open title: Update typing and test typing from python/typing repo Added file: http://bugs.pyt

[issue28079] Update typing and test typing from python/typing repo

2016-09-11 Thread Ivan Levkivskyi
Changes by Ivan Levkivskyi : -- components: +Library (Lib) type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue28079] Update typing and test typing from python/typing repo

2016-09-11 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: I have noticed that some code could be simplified, since it is backward-compatible even with 3.2, but I think it is easiest to keep the source here in sync with what is on python/typing. -- ___ Python tracker

[issue28079] Update typing and test typing from python/typing repo

2016-09-11 Thread Guido van Rossum
Guido van Rossum added the comment: Um, if I apply this to 3.5 it works, but if I then merge forward to 3.6 (default) I get merge conflicts. I'll have to sort that out tonight. -- ___ Python tracker __

[issue28079] Update typing and test typing from python/typing repo

2016-09-11 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: I could guess this is because some changes have been already integrated by patch that implemented PEP 526. If this would help here is a separate patch that should apply cleanly to 3.6 -- Added file: http://bugs.python.org/file44559/typing-patch-3.6.di

[issue27405] Ability to trace Tcl commands executed by Tkinter

2016-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is more mature patch. Now you can set tracing function with the tkinter.Tk.settrace() method. Tracing function takes the single argument -- a tuple containing the command and arguments. If set global tkinter.debug to True, the tracing function of newly

[issue28008] PEP 530, asynchronous comprehensions implementation

2016-09-11 Thread Ned Deily
Changes by Ned Deily : -- priority: release blocker -> resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python

[issue28078] Silence resource warnings in test_socket

2016-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset c515bc3b29bf by Christian Heimes in branch 'default': Issue #28078: Silence resource warnings in test_socket. Initial patch by Xiang Zhang, thanks https://hg.python.org/cpython/rev/c515bc3b29bf -- nosy: +python-dev

[issue28078] Silence resource warnings in test_socket

2016-09-11 Thread Christian Heimes
Christian Heimes added the comment: Thanks for the report and your patch. Let's watch the build bot. -- stage: patch review -> commit review status: open -> pending ___ Python tracker __

[issue28022] SSL releated deprecation for 3.6

2016-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2e541e994927 by Christian Heimes in branch 'default': Issue 28022: Catch deprecation warning in test_httplib, reported by Martin Panter https://hg.python.org/cpython/rev/2e541e994927 -- ___ Python tracke

[issue28022] SSL releated deprecation for 3.6

2016-09-11 Thread Christian Heimes
Christian Heimes added the comment: Thanks for the report. "./python -Werror -m test -uall test_httplib" is now passing for me. -- ___ Python tracker ___ ___

[issue28078] Silence resource warnings in test_socket

2016-09-11 Thread Xiang Zhang
Xiang Zhang added the comment: Christian, you forget a : after else. -- status: pending -> open ___ Python tracker ___ ___ Python-bugs

[issue28078] Silence resource warnings in test_socket

2016-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8b655668c04f by Christian Heimes in branch 'default': Issue #28078: Add missing colon https://hg.python.org/cpython/rev/8b655668c04f -- ___ Python tracker

[issue28068] Error in freeze.py due to unguarded sys.abiflags usage under Windows

2016-09-11 Thread Gevorg Voskanyan
Gevorg Voskanyan added the comment: Thanks for the patch! It makes the error go away for me, but only because `ishome` is True in my case. Were it False, it would fail the same way on the line containing sys.abiflags . I think this line in the patch: flagged_version = version + sys.abif

[issue28078] Silence resource warnings in test_socket

2016-09-11 Thread Christian Heimes
Christian Heimes added the comment: Oh heck! I'm not sure what happened here. The test was passing locally. I can only assume that I accidentally modified the file between test run and commit. -- ___ Python tracker

[issue27701] [posixmodule] [Refactoring patch] Simply call into *at() functions unconditionally when present

2016-09-11 Thread Ed Schouten
Ed Schouten added the comment: Hmmm... Taking a second look at my patch: I still think it's conceptually a good idea to pursue this, but I think it may be wiser to first focus on the bits that are strictly necessary from my side. The patch that I've posted previously has the disadvantage that

  1   2   3   >