[issue27781] Change sys.getfilesystemencoding() on Windows to UTF-8

2016-09-07 Thread Steve Dower
Steve Dower added the comment: PEP 529 has been accepted, so this really needs a review now. But since it's experimental and all the tests pass, I'll be committing it shortly anyway and will be tidying up issues during beta. -- ___ Python tracker

[issue27999] Make "global after use" a SyntaxError

2016-09-07 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Yes, nonlocal will be fixed too. This will be a relatively small patch, but I am a bit afraid there could be merge conflicts (the code affected could overlap with changes for PEP 526). Easiest way would be to simply make this a single patch with PEP 526

[issue27331] Add a policy argument to email.mime.MIMEBase

2016-09-07 Thread R. David Murray
R. David Murray added the comment: Thanks, Berker. -- resolution: -> fixed stage: test needed -> resolved status: open -> closed ___ Python tracker ___

[issue28007] Bad .pyc files prevent import of otherwise valid .py files.

2016-09-07 Thread Sye van der Veen
Sye van der Veen added the comment: Consider a process that is terminated while writing a large .pyc file. Currently a user can only fix this by deleting the .pyc file, which requires knowing where to look. A developer can be expected to know this, but the end user of their application

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

2016-09-07 Thread Steve Dower
Steve Dower added the comment: Updated patch based on some suggestions from Eryk. The PEP has been accepted, so now I just need to land it in the next two days. Currently "normal" usage here is fine, and some edge cases match the Python 3.5 behaviour. I'm going to go through now and bulk out

[issue27331] Add a policy argument to email.mime.MIMEBase

2016-09-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 481d14cb7595 by R David Murray in branch 'default': #27331: add policy keyword argument to all MIME subclasses. https://hg.python.org/cpython/rev/481d14cb7595 -- nosy: +python-dev ___ Python tracker

[issue27331] Add a policy argument to email.mime.MIMEBase

2016-09-07 Thread R. David Murray
R. David Murray added the comment: Sorry, I must have mispaged or something and missed the tests on the first readthrough. -- ___ Python tracker ___

[issue27989] incomplete signature with help function using typing

2016-09-07 Thread Spencer Brown
Spencer Brown added the comment: It might be better to just change the if statement to 'if isinstance(annotation, type) and type(annotation).__repr__ is type.__repr__:'. That would make it fallback for any metaclass which overrides repr, instead of special-casing typing. That also ensures

[issue27331] Add a policy argument to email.mime.MIMEBase

2016-09-07 Thread R. David Murray
R. David Murray added the comment: I'm going to commit this, but leave the issue open for someone to provide tests. -- stage: patch review -> test needed ___ Python tracker

[issue27989] incomplete signature with help function using typing

2016-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: That sounds a fine solution (except the elif should just test for `in 'typing'`). Can one of you prepare a patch? I think it should be fine to fix this in 3.5 as well. There should be a unit test for this. -- ___

[issue27010] email library could "recover" from bad mime boundary like (some?) email clients do

2016-09-07 Thread R. David Murray
R. David Murray added the comment: Andrea: yes, your patch is different from what I had in mind. The idea would be to recognize the "nested part with duplicate boundary", register the new defect, but produce a Message object with a structure that looked like this: multipart/mixed

[issue28007] Bad .pyc files prevent import of otherwise valid .py files.

2016-09-07 Thread R. David Murray
R. David Murray added the comment: I agree, I don't think it is worth it. If we did do it, there should be a warning, and things should still fail if the new .pyc file can't be written to replace the corrupt one. -- nosy: +r.david.murray ___

[issue23591] enum: Add Flags and IntFlags

2016-09-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Any problems with: > > class Color(Enum): # or Color(Flag) > red = _auto_ > green = _auto_ > blue = _auto_ As long as _auto_ has been defined somewhere (i.e. from enum import _auto_), it is normal Python and doesn't fight with the rest of language or

[issue6766] Cannot modify dictionaries inside dictionaries using Managers from multiprocessing

2016-09-07 Thread Davin Potts
Davin Potts added the comment: Updating previously supplied patch for 3.6 to the right format. -- Added file: http://bugs.python.org/file8/issue_6766_py36.nogit.patch ___ Python tracker

[issue23591] enum: Add Flags and IntFlags

2016-09-07 Thread Vedran Čačić
Vedran Čačić added the comment: _member_() is fine with me, though I prefer _auto_(). _auto_member_() is probably too much. :-) The argument "we already do magic, so let's do also this bit of non-connected magic" seems very weak to me. But in fact those other things are not _magic_ in the

[issue16384] import.c doesn't handle EOFError from PyMarshal_Read*

2016-09-07 Thread Eric Snow
Eric Snow added the comment: I've opened #28007 to cover the concerns about bad a .pyc file blocking import from a valid .py file. -- ___ Python tracker

[issue28007] Bad .pyc files prevent import of otherwise valid .py files.

2016-09-07 Thread Eric Snow
New submission from Eric Snow: As pointed out in #16384, a bad .pyc file will cause a module to fail importing. Sometimes the .py file is okay, however. The question posed in the other issue is if it would be desirable to fall back to the .py file. FWIW, I don't think it's worth it.

[issue27973] urllib.urlretrieve() fails on second ftp transfer

2016-09-07 Thread Sohaib Ahmad
Sohaib Ahmad added the comment: I am not much familiar with mercurial. I will try to setup the development environment. Traceback is: [Errno ftp error] 200 Switching to Binary mode. Traceback (most recent call last): File "multiple_ftp_download.py", line 49, in main file2_path =

[issue23591] enum: Add Flags and IntFlags

2016-09-07 Thread Ethan Furman
Ethan Furman added the comment: > For me, it is an issue. But you probably already know that. >(http://bugs.python.org/issue26988#msg273125) (That's "the other thread".) Ah, thanks. I had forgotten about that one. For what it's worth, I largely agree with you there. > Try to explain: how

[issue28006] Remove tracing overhead from the fine-grained fast opcodes

2016-09-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue23591] enum: Add Flags and IntFlags

2016-09-07 Thread Vedran Čačić
Vedran Čačić added the comment: For me, it is an issue. But you probably already know that. (http://bugs.python.org/issue26988#msg273125) (That's "the other thread".) Try to explain: how exactly is that different than wanting "file.close" to close the file, or "quit" to quit the REPL? And I

[issue23591] enum: Add Flags and IntFlags

2016-09-07 Thread Ethan Furman
Ethan Furman added the comment: Any problems with: class Color(Enum): # or Color(Flag) red = _auto_ green = _auto_ blue = _auto_ In other words: - is the missing parenthesis an issue? - are linters/checkers/IDEs going to have (or report) problems with that? --

[issue28004] Optimize bytes.join(sequence)

2016-09-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +pitrou ___ Python tracker ___ ___

[issue28006] Remove tracing overhead from the fine-grained fast opcodes

2016-09-07 Thread Raymond Hettinger
New submission from Raymond Hettinger: The fast opcodes are ones where we bypass signal/event checking, but they still have the overhead of checking for tracing enabled (this doesn't seem like much, it adds a memory access and can take almost half the time for some of these already quick

[issue28006] Remove tracing overhead from the fine-grained fast opcodes

2016-09-07 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue15767] add ModuleNotFoundError

2016-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: +1 to add this to 3.6b1. -- ___ Python tracker ___ ___ Python-bugs-list

[issue25856] The __module__ attribute of non-heap classes is not interned

2016-09-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It can be NULL in very rare cases. See for example issue26906. -- ___ Python tracker ___

[issue15767] add ModuleNotFoundError

2016-09-07 Thread Eric Snow
Changes by Eric Snow : -- assignee: brett.cannon -> eric.snow resolution: rejected -> stage: -> needs patch status: closed -> open versions: +Python 3.6 -Python 3.4 ___ Python tracker

[issue2651] Strings passed to KeyError do not round trip

2016-09-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: > No, the suggestion is to only adopt the first part of the patch from 2010, > which is to revert KeyError to behave like LookupError again That ship has sailed long ago. 2.7, 3.4 and 3.5 (the three major Python versions currently in use) all have the same

[issue25856] The __module__ attribute of non-heap classes is not interned

2016-09-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: I don't think it can be NULL either. On Wed, Sep 7, 2016, at 11:36, Serhiy Storchaka wrote: > > Serhiy Storchaka added the comment: > > Indeed, the PyDict_Check() check can be omitted. > > -- > > ___ > Python

[issue25856] The __module__ attribute of non-heap classes is not interned

2016-09-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Indeed, the PyDict_Check() check can be omitted. -- ___ Python tracker ___

[issue25856] The __module__ attribute of non-heap classes is not interned

2016-09-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: I don't understand why you need to check the validity of tp_dict at all. We generally assume it's a dict. -- ___ Python tracker

[issue2651] Strings passed to KeyError do not round trip

2016-09-07 Thread Łukasz Langa
Łukasz Langa added the comment: No, the suggestion is to only adopt the first part of the patch from 2010, which is to revert KeyError to behave like LookupError again: >>> print(LookupError('key')) key >>> print(KeyError('key'), 'now') 'key' now >>> print(KeyError('key'), 'in 3.6')

[issue27975] math.isnan(int) and math.isinf(int) should not raise OverflowError

2016-09-07 Thread Mark Dickinson
Mark Dickinson added the comment: Closing this as "won't fix". I agree with Tim that the right way to handle this is to make math.isnan behave like math.floor and math.ceil currently do, via new special methods, but (1) I think introducing new special methods should probably be a PEP-level

[issue16384] import.c doesn't handle EOFError from PyMarshal_Read*

2016-09-07 Thread Eric Snow
Changes by Eric Snow : Removed file: http://bugs.python.org/file44424/issue16384.diff ___ Python tracker ___

[issue16384] import.c doesn't handle EOFError from PyMarshal_Read*

2016-09-07 Thread Eric Snow
Eric Snow added the comment: Here's an updated patch. Per a suggestion from Brett, I've chained the original EOFError with an ImportError. The consequence is that the problematic encoding is skipped (silently) rather than causing the interpreter to abort. FYI, I've opened issue #28005 to

[issue25856] The __module__ attribute of non-heap classes is not interned

2016-09-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good catch Benjamin! There is yet one bug -- the type type already has the __module__ attribute, but it is a descriptor, not a string. Updated patch fixes these bugs. -- Added file: http://bugs.python.org/file5/intern_and_cache___module__3.patch

[issue28005] Broken encoding modules are silently skipped.

2016-09-07 Thread Eric Snow
New submission from Eric Snow: In Lib/encodings/__init__.py, search_function() looks up an encoding by name. It loads the encoding by importing the corresponding module in the encodings package. If there's an ImportError while importing that module then the encoding gets silently ignored.

[issue28004] Optimize bytes.join(sequence)

2016-09-07 Thread STINNER Victor
New submission from STINNER Victor: The article https://atleastfornow.net/blog/not-all-bytes/ says that bytes.join(sequence) is slower on Python 3 compared to Python 2. I compared Python 2 and Python 3 code: the main different seems to be that Python 3 uses the Py_buffer API to support more

[issue26209] TypeError in smtpd module with string arguments

2016-09-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7aaf8cff23e5 by R David Murray in branch '2.7': #26209: Clarify type of *localaddr*/*remoteadr* in smtpd docs. https://hg.python.org/cpython/rev/7aaf8cff23e5 -- ___ Python tracker

[issue26209] TypeError in smtpd module with string arguments

2016-09-07 Thread R. David Murray
Changes by R. David Murray : -- dependencies: -Deprecate smtpd (based on deprecated asyncore/asynchat): write a new smtp server with asyncio resolution: -> fixed stage: patch review -> resolved status: open -> closed ___

[issue26209] TypeError in smtpd module with string arguments

2016-09-07 Thread R. David Murray
R. David Murray added the comment: Thanks for the patch, Ram. I started from your patch but further clarified exactly what the tuple is by linking to the actual documentation in the socket docs of what a (host, port) tuple looks like. I'll apply my patch to 2.7 as well as soon as I confirm

[issue27899] Apostrophe is not replace with ElementTree.tostring (also in Element.write)

2016-09-07 Thread Ned Deily
Changes by Ned Deily : -- nosy: +scoder -skrah ___ Python tracker ___ ___ Python-bugs-list

[issue26209] TypeError in smtpd module with string arguments

2016-09-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1ed37f6e91bb by R David Murray in branch '3.5': #26209: Clarify type of *localaddr*/*remoteadr* in smtpd docs. https://hg.python.org/cpython/rev/1ed37f6e91bb New changeset fe2ca2216334 by R David Murray in branch 'default': Merge: #26209: Clarify

[issue27998] Remove support of bytes paths in os.scandir()

2016-09-07 Thread Steve Dower
Steve Dower added the comment: There are only two references to bytes in the pep: > Like the other functions in the os module, scandir() accepts either a > bytes or str object for the path parameter, and returns the > DirEntry.name and DirEntry.path attributes with the same type as > path .

[issue27998] Remove support of bytes paths in os.scandir()

2016-09-07 Thread STINNER Victor
STINNER Victor added the comment: I'm ok to support os.scandir(bytes) on Windows. My long term goal was to drop bytes support on Windows, but it seems like the new trend is more to keep this support and even enhance it. It's quite easy to support os.scandir(bytes) on Windows, whereas it seems

[issue27988] email iter_attachments can mutate the payload

2016-09-07 Thread R. David Murray
R. David Murray added the comment: I forgot the # on the issue number in the commit. The hashes are: 3.5 3bf2f6818719 3.6 69da5242aae3 -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue27998] Remove support of bytes paths in os.scandir()

2016-09-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: But why? The code of os and glob modules could be simpler if add the support. -- ___ Python tracker ___

[issue27998] Remove support of bytes paths in os.scandir()

2016-09-07 Thread Steve Dower
Changes by Steve Dower : -- title: Add support of bytes paths in os.scandir() -> Remove support of bytes paths in os.scandir() ___ Python tracker

[issue2651] Strings passed to KeyError do not round trip

2016-09-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: What are you suggesting? Something like: KeyError: key 'foobar' not found in dict ? If so, +1 from me. -- ___ Python tracker

[issue27998] Add support of bytes paths in os.scandir()

2016-09-07 Thread Steve Dower
Steve Dower added the comment: Guido just said that we should make sure that os.scandir() continues to not support bytes, even after the patch for issue27781 goes in, so I'm reopening this. -- dependencies: +Change sys.getfilesystemencoding() on Windows to UTF-8 nosy: +gvanrossum

[issue28003] PEP 525 asynchronous generators implementation

2016-09-07 Thread Yury Selivanov
New submission from Yury Selivanov: The PEP has been accepted, let's review the reference implementation and get it committed. -- assignee: yselivanov components: Interpreter Core files: asyncgen_1.patch keywords: patch messages: 274845 nosy: haypo, lukasz.langa, yselivanov priority:

[issue22233] http.client splits headers on non-\r\n characters

2016-09-07 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file1/crlf-headers2.patch ___ Python tracker ___

[issue22233] http.client splits headers on non-\r\n characters

2016-09-07 Thread R. David Murray
Changes by R. David Murray : Added file: http://bugs.python.org/file2/crlf-headers2.patch ___ Python tracker ___

[issue2651] Strings passed to KeyError do not round trip

2016-09-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: The current behavior seems to be a recurring source of confusion and bugs, so something needs to change. I'm thinking that the least egregious thing to do is to remove (in 3.6) the special case code for KeyError. The small downside is that KeyError('')

[issue22233] http.client splits headers on non-\r\n characters

2016-09-07 Thread R. David Murray
Changes by R. David Murray : -- stage: patch review -> commit review ___ Python tracker ___

[issue27921] f-strings: do not allow backslashes

2016-09-07 Thread Eric V. Smith
Eric V. Smith added the comment: Issue 28002 tracks the problem with Tools/parser/unparse.py. -- ___ Python tracker ___

[issue28002] f-strings do not round trip through Tools/parser/test_unparse.py

2016-09-07 Thread Eric V. Smith
New submission from Eric V. Smith: The problem relates to how f-strings are re-created. For the input file foo.txt containing this one line: f'''{"'"}''' Run: ./python Tools/parser/test_unparse.py foo.txt Gives this output: f'{"\'"}' This result is not a valid f-string, since it contains a

[issue25856] The __module__ attribute of non-heap classes is not interned

2016-09-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: I don't understand this code: type->tp_dict && PyDict_Check(type->tp_dict) since the code explicitly assume it's not NULL and access it as a dict earlier in the function -- nosy: +benjamin.peterson ___ Python

[issue22233] http.client splits headers on non-\r\n characters

2016-09-07 Thread R. David Murray
R. David Murray added the comment: This looks good to me. However, although it is by no means obvious, the tests in test_parser are supposed to be for the new policies. When I changed the test to test them another place that needed to fixed was revealed. I've updated the patch accordingly.

[issue27921] f-strings: do not allow backslashes

2016-09-07 Thread Eric V. Smith
Eric V. Smith added the comment: The problem with test_unparse is that: f'''{"'"}''' becomes: f'{"\'"}' when it's run through Tools/parser/unparse.py. I'll open another issue for this. -- ___ Python tracker

[issue27364] Deprecate invalid escape sequences in str/bytes

2016-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: +1 on getting this in. Who can help reviewing and merging before beta 1? -- ___ Python tracker ___

[issue27928] Add hashlib.scrypt

2016-09-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: PEP 466 is explicitly not blanket approval for backporting All The Things to 2.7. The only justification for pbkdf2 in PEP 466 is to "lower the barriers to secure password storage and checking in Python 2 server applications". While scrypt is probably a bit

[issue28001] test.support.open_urlresource should work from an installed Python

2016-09-07 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: christian.heimes, r.david.murray, zach.ware priority: normal severity: normal stage: needs patch status: open title: test.support.open_urlresource should work from an installed Python type: behavior versions: Python 2.7, Python

[issue27999] Make "global after use" a SyntaxError

2016-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: I like fixing this. I suppose it'll be fixed for nonlocal too? -- ___ Python tracker ___

[issue27968] test_coroutines generates some warnings

2016-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks Benjamin! -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue27938] PyUnicode_AsEncodedString, PyUnicode_Decode: add fast-path for "us-ascii" encoding

2016-09-07 Thread STINNER Victor
STINNER Victor added the comment: > FAIL: test_create_at_shutdown_without_encoding > (test.test_io.PyTextIOWrapperTest) Steve fixed it: --- changeset: 103229:47b4dbd451f5 tag: tip user:Steve Dower date:Wed Sep 07 09:31:52 2016 -0700 files:

[issue27928] Add hashlib.scrypt

2016-09-07 Thread Alex Gaynor
Alex Gaynor added the comment: OpenSSL supports scrypt On Sep 7, 2016 12:28 PM, "Benjamin Peterson" wrote: > > Benjamin Peterson added the comment: > > Why are we adding scrypt and not argon2 anyway? > > On Wed, Sep 7, 2016, at 03:25, Christian Heimes wrote: > > > >

[issue27966] PEP-397 documents incorrect registry path

2016-09-07 Thread Ned Deily
Changes by Ned Deily : -- components: +Windows -Documentation nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker

[issue27959] Add 'oem' encoding

2016-09-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 47b4dbd451f5 by Steve Dower in branch 'default': Issue #27959: Prevent ImportError from escaping codec search function https://hg.python.org/cpython/rev/47b4dbd451f5 -- ___ Python tracker

[issue27938] PyUnicode_AsEncodedString, PyUnicode_Decode: add fast-path for "us-ascii" encoding

2016-09-07 Thread Steve Dower
Steve Dower added the comment: The Windows buildbot failures are partly my fault and partly Ben's fault (I created a new error message - Ben added it to the wrong test), so I'll go and prevent the error message. No idea on the other issue. It doesn't repro for me, but since it seems to be

[issue27928] Add hashlib.scrypt

2016-09-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: Why are we adding scrypt and not argon2 anyway? On Wed, Sep 7, 2016, at 03:25, Christian Heimes wrote: > > Christian Heimes added the comment: > > Benjamin, what's your take on Alex's suggestion? > > gutworth: Alex_Gaynor has asked me if hashlib.scrypt()

[issue16384] import.c doesn't handle EOFError from PyMarshal_Read*

2016-09-07 Thread Brett Cannon
Brett Cannon added the comment: It's a question of whether you want the error that your .pyc files have somehow ended up in a bad state to pass silently or you should know you that something on your system is corrupting .pyc files (hence why the EOFError has been allowed to propagate).

[issue23591] enum: Add Flags and IntFlags

2016-09-07 Thread Ethan Furman
Ethan Furman added the comment: I like it! (Although I have no idea which other thread you are talking about.) And yes, it needs the leading and trailing underscore so as not to clash with member names. -- ___ Python tracker

[issue27137] Python implementation of `functools.partial` is not a class

2016-09-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think we can change C implementation of __repr__ to match straightforward Python implementation. -- ___ Python tracker

[issue23591] enum: Add Flags and IntFlags

2016-09-07 Thread Vedran Čačić
Vedran Čačić added the comment: I think we had that discussion in the other thread, and concluded that auto() (or _auto_() if you insist) is quite fine. I think it's important to emphasize it's automatically generated, not that it's really "next" in any particular order. --

[issue23591] enum: Add Flags and IntFlags

2016-09-07 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___

[issue27968] test_coroutines generates some warnings

2016-09-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 096dfac57e44 by Benjamin Peterson in branch '3.5': capture stderr to silence output during test_coroutines (closes #27968) https://hg.python.org/cpython/rev/096dfac57e44 New changeset b43923ce86f0 by Benjamin Peterson in branch 'default': merge 3.5

[issue28000] Build fails on AIX with _LINUX_SOURCE_COMPAT flag

2016-09-07 Thread Eric N. Vander Weele
Changes by Eric N. Vander Weele : -- nosy: +ericvw ___ Python tracker ___ ___

[issue27928] Add hashlib.scrypt

2016-09-07 Thread Alex Gaynor
Alex Gaynor added the comment: PEP466 includes hashlib.pbkdf2_hmac(). Any reasoning that includes that surely is applicable to scrypt as well. -- ___ Python tracker

[issue27968] test_coroutines generates some warnings

2016-09-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 234f758449f8 by Benjamin Peterson in branch '3.5': supress coroutine warning when an exception is pending (#27968) https://hg.python.org/cpython/rev/234f758449f8 New changeset f48b00b1ec4f by Benjamin Peterson in branch 'default': merge 3.5

[issue23591] enum: Add Flags and IntFlags

2016-09-07 Thread Ethan Furman
Ethan Furman added the comment: I would like to add a function that can be used when creating a Flag (and Enum, but that's less important) that will generate the next value. This is important because in Flag the values are an important internal detail, but are largely irrelevant to the user

[issue27877] Add recipe for "valueless" Enums to docs

2016-09-07 Thread Ethan Furman
Ethan Furman added the comment: Thanks for the patch, John and Emanuel! -- ___ Python tracker ___ ___

[issue27928] Add hashlib.scrypt

2016-09-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: No, scrypt is a simple new feature. An extension module on PyPI is the appropriate place for that for 2.6 through 3.5. Wholly unrelated to PEP466. -- ___ Python tracker

[issue28000] Build fails on AIX with _LINUX_SOURCE_COMPAT flag

2016-09-07 Thread Matthieu S
New submission from Matthieu S: Python build fails on AIX when using the _LINUX_SOURCE_COMPAT flag. When using this flag, the gethostbyname_r subroutine has 6 parameters instead of 3, like on Linux, but Modules/socketmodule.c always expects a gethostbyname_r subroutine with only 3 parameters

[issue27877] Add recipe for "valueless" Enums to docs

2016-09-07 Thread Ethan Furman
Ethan Furman added the comment: New changeset 871bdb06c1cf by Ethan Furman in branch 'default': add recipes for pseudo-valueless enums https://hg.python.org/cpython/rev/871bdb06c1cf -- ___ Python tracker

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

2016-09-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka versions: +Python 3.6 -Python 3.5 ___ Python tracker ___

[issue27948] f-strings: allow backslashes only in the string parts, not in the expression parts

2016-09-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___

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

2016-09-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed generating info for fast search for groups with local flags and added some documentation (would appreciate for improving it). -- priority: low -> normal versions: +Python 3.6 -Python 3.5 Added file:

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2016-09-07 Thread Aymeric Augustin
Aymeric Augustin added the comment: The latest patch removes the current statement parsing and unexpected implicit commits. It looks good to me. Unfortunately it also introduces a new kind of statement parsing that detects DDL statements and doesn't open a transaction in that case, while it

[issue16334] Faster unicode-escape and raw-unicode-escape codecs

2016-09-07 Thread STINNER Victor
STINNER Victor added the comment: Feel free to document the change. It's not my patch, it's yours :-) -- ___ Python tracker ___

[issue27989] incomplete signature with help function using typing

2016-09-07 Thread David E. Franco G.
David E. Franco G. added the comment: as that is the case, how about this as a solution: def formatannotation(annotation, base_module=None): if isinstance(annotation, type): if annotation.__module__ in ('builtins', base_module): return annotation.__qualname__

[issue27999] Make "global after use" a SyntaxError

2016-09-07 Thread Ivan Levkivskyi
New submission from Ivan Levkivskyi: The documentation at https://docs.python.org/3/reference/simple_stmts.html says that: "Names listed in a global statement must not be used in the same code block textually preceding that global statement" But then later: "CPython implementation detail:

[issue27998] Add support of bytes paths in os.scandir()

2016-09-07 Thread Steve Dower
Steve Dower added the comment: Heh, totally by accident as well. -- ___ Python tracker ___ ___

[issue27445] Charset instance not passed to set_payload()

2016-09-07 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag stage: -> patch review type: -> behavior versions: +Python 3.5 ___ Python tracker

[issue27948] f-strings: allow backslashes only in the string parts, not in the expression parts

2016-09-07 Thread Eric V. Smith
Changes by Eric V. Smith : -- stage: needs patch -> patch review ___ Python tracker ___

[issue27948] f-strings: allow backslashes only in the string parts, not in the expression parts

2016-09-07 Thread Eric V. Smith
Eric V. Smith added the comment: This patch implements the new logic. It passes all of the fstring tests (except of course the ones that had backslashes in the expressions). I'd still like to add some more tests, because I'm not convinced the named unicode escapes are correct (f"\N{LEFT CURLY

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2016-09-07 Thread Berker Peksag
Berker Peksag added the comment: Here is an updated patch. I'd like to get this in before 3.6 beta 1. -- Added file: http://bugs.python.org/file44437/issue10740_upstream_v2.diff ___ Python tracker

[issue27137] Python implementation of `functools.partial` is not a class

2016-09-07 Thread Emanuel Barry
Emanuel Barry added the comment: Hi Nick, thank you for letting me know! I started trying to fix this, however I found it very hard to fix the recursive repr issue. I've whipped up an incomplete (but yet working) patch that fixes all but the recursive repr issue. Only those two tests fail

[issue27654] [Patch] Use arc4random_buf() on CloudABI

2016-09-07 Thread Christian Heimes
Christian Heimes added the comment: LGTM, but it's Victor's final call. -- assignee: -> haypo ___ Python tracker ___

<    1   2   3   >