[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 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

[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 . Ho

[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 ty

[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 mailing list Unsubscribe: https://mail.pyt

[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 t

[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 ___ Python tracker

[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

[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 ty

[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. I

[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

[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 add

[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 ___ ___ Python-bugs-list mailing list

[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 cha

[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')

[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 ___

[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 ___ ___ Python-bugs-list ma

[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 tr

[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 beh

[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

[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 ___ ___ Pytho

[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 mailing list Unsubscribe:

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

2016-09-07 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[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 opcod

[issue28004] Optimize bytes.join(sequence)

2016-09-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[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? -- _

[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 sur

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[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 exac

[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 = download

[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. ---

[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 ___

[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 sam

[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

[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 ___ Python

[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 multip

[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. -- ___ P

[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 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 'typ

[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 ___

[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

[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 t

[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 certa

[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 impl

[issue27989] incomplete signature with help function using typing

2016-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: I've lost you -- why don't you upload a patch? -- ___ Python tracker ___ ___ Python-bugs-list mail

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

2016-09-07 Thread Emanuel Barry
Emanuel Barry added the comment: Thank you Serhiy for the comments! Here's a new patch. I'm fine with the recursive repr tests failing for now; it's something I believe we can fix during the beta phase if we don't have time before (fix as in modify the C implementation to match the Python vers

[issue28005] Broken encoding modules are silently skipped.

2016-09-07 Thread Sye van der Veen
Changes by Sye van der Veen : -- nosy: +syeberman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

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

2016-09-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue27850] Remove 3DES from cipher list (sweet32 CVE-2016-2183)

2016-09-07 Thread Christian Heimes
Christian Heimes added the comment: On 2016-09-07 05:06, Larry Hastings wrote: > > Larry Hastings added the comment: > >> FWIW the cipher list (at least the restricted ones for >> ssl.create_default_context()) is explicitly documented >> as being able to be changed at any time without prior dep

[issue10839] email module should not allow some header field repetitions

2016-09-07 Thread R. David Murray
R. David Murray added the comment: I've committed Berker's patch from #27331, and I'm about to take the new email API out of provisional status. Barry is committed to not changing this behavior in 2.7 and I agree. In any case 2.7 doesn't differentiate between headers being added by the user a

[issue19500] Add client-side SSL session resumption

2016-09-07 Thread Christian Heimes
Christian Heimes added the comment: Session resumption is currently broken in OpenSSL 1.1.0, https://github.com/openssl/openssl/issues/1550 -- ___ Python tracker ___ ___

[issue27999] Make "global after use" a SyntaxError

2016-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: I strongly prefer to have it as a separate patch (either before or after) to avoid the appearance of piggy-backing this in with a much larger change. -- ___ Python tracker __

[issue27999] Make "global after use" a SyntaxError

2016-09-07 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: OK, then I think after will be safer. Let us came back to this right after PEP 526. -- ___ Python tracker ___

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

2016-09-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Working on a revised patch. Stand by. -- assignee: steve.dower -> rhettinger ___ Python tracker ___

[issue28008] PEP 530, asynchronous comprehensions implementation

2016-09-07 Thread Yury Selivanov
New submission from Yury Selivanov: This patch is supposed to be committed after issue #28003. -- assignee: yselivanov components: Interpreter Core files: async_comp_1.patch keywords: patch messages: 274897 nosy: haypo, lukasz.langa, ned.deily, yselivanov priority: release blocker severi

[issue23545] Turn on extra warnings on GCC

2016-09-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

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

2016-09-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm going to withdraw this one. I'm not familiar enough with this part of the code to reliably make changes to it. -- status: open -> closed ___ Python tracker ___

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

2016-09-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 69900c5992c5 by R David Murray in branch '3.5': #22233: Only split headers on \r and/or \n, per email RFCs. https://hg.python.org/cpython/rev/69900c5992c5 New changeset 4d2369b901be by R David Murray in branch 'default': Merge: #22233: Only split he

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

2016-09-07 Thread R. David Murray
R. David Murray added the comment: I want to stack another patch on top of this, so I committed it. If you see anything I screwed up, Martin, please let me know. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Py

[issue21826] Performance issue (+fix) AIX ctypes.util with no /sbin/ldconfig present

2016-09-07 Thread Michael Felt
Michael Felt added the comment: re: issue 26439 and issue 27435 would like to show: without patch, find_library() is consistently slow, and in default situations, returns nothing. root@x064:[/data/prj/aixtools/python/python-2.7.10]./python -m timeit -n 100 'import ctypes.util; ctypes.util.fin

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

2016-09-07 Thread Eric V. Smith
Changes by Eric V. Smith : -- title: f-strings do not round trip through Tools/parser/test_unparse.py -> Some f-strings do not round trip through Tools/parser/test_unparse.py ___ Python tracker ___

[issue27850] Remove 3DES from cipher list (sweet32 CVE-2016-2183)

2016-09-07 Thread Larry Hastings
Larry Hastings added the comment: Okay. We (Ned Deily + Steve Dower + me) talked it over here at the core dev sprints, and they convinced me that it's basically okay to add the CHACHA20 string to 3.4 and 3.5--it has some history, and OpenSSL is a little different, etc etc. So go for it. I s

[issue27989] incomplete signature with help function using typing

2016-09-07 Thread Ivan Levkivskyi
Changes by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

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

2016-09-07 Thread Martin Panter
Martin Panter added the comment: Your modifications look sensible David; thanks for handling this. -- ___ Python tracker ___ ___ Pytho

[issue27989] incomplete signature with help function using typing

2016-09-07 Thread David E. Franco G.
David E. Franco G. added the comment: I think that removing the "typing." is for the best, with the example above >>> help(foo) Help on function foo in module __main__: foo(data:typing.List[typing.Any]) -> typing.Iterator[typing.Tuple[int, typing.Any]] >>> leaving the "typing." produce re

[issue27995] Upgrade Python 3.4 to OpenSSL 1.0.2h on Windows

2016-09-07 Thread Larry Hastings
Larry Hastings added the comment: I talked this over with Steve Dower, the current "platform expert" for Windows. As he points out: the 3.4 Windows build is effectively unsupported. The Windows platform expert for Python 3.4 resigned from core Python development. Also, of course, all future

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

2016-09-07 Thread Steve Dower
Steve Dower added the comment: I can't actually come up with many useful tests for this... so far I can validate that we can open the console IO object from 0, 1, 2, "CON", "CONIN$" and "CONOUT$", get fileno(), check readable()/writable() and close (multiple times without crashing). Anything

[issue18844] allow weights in random.choice

2016-09-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: There isn't really an option to return a generator because it conflicts the rest of the module that uses lists elsewhere and that allows state to be saved and restored before and after any function call. One of the design reviewers also said that the gener

[issue27983] "Cannot perform PGO build because llvm-profdata was not found in PATH" error upon make

2016-09-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 279450d88fb0 by Gregory P. Smith in branch '3.5': Fixes issue# 27983: Cause lack of llvm-profdata tool when using clang - https://hg.python.org/cpython/rev/279450d88fb0 New changeset 9f2467e13c98 by Gregory P. Smith in branch 'default': Fixes Issue

[issue27983] "Cannot perform PGO build because llvm-profdata was not found in PATH" error upon make

2016-09-07 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith versions: -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mail

[issue28009] core logic of uuid.getnode() is broken for AIX - all versions

2016-09-07 Thread Michael Felt
New submission from Michael Felt: Short version: the five routines get_node() calls to get the MAC address either fail by definition, or is wrong. The one routine that works - is wrong because it returns the same value regardless of the system it runs on - wrong character is used to identify

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

2016-09-07 Thread Steve Dower
Steve Dower added the comment: One minor change - I removed the unused definition of Py_FileSystemDefaultDecodeErrors. -- ___ Python tracker ___

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

2016-09-07 Thread Berker Peksag
Berker Peksag added the comment: I left some minor comments for Doc/whatsnew/3.6.rst on Rietveld. In Lib/test/test_winconsoleio.py: * self.assert_() (deprecated) can be replaced by self.assertTrue() * We can add if __name__ == '__main__': unittest.main() -- nosy: +berker.peks

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

2016-09-07 Thread Davin Potts
Davin Potts added the comment: Attaching updated patch to reflect Yury's suggested changes from review. -- Added file: http://bugs.python.org/file44453/issue_6766_py36.nogit.yuryfeedback.patch ___ Python tracker __

[issue28010] http.client.HTTPConnection.putrequest incorrect arguments

2016-09-07 Thread p0lm
New submission from p0lm: Currently the arguments for HTTPConnection.putrequest in the http.client documentation are listed as "request, selector, skip_host=False, skip_accept_encoding=False". This does not reflect the correct arguments: >>> from http.client import HTTPConnection >>> help(HTTPC

[issue27985] Implement PEP 526

2016-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: Hey Ivan, Brett and I divided the review, he started at the bottom and I started at the top, we're meeting at Lib/typing.py. -- ___ Python tracker __

[issue27895] Spelling fixes

2016-09-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset ff3df2b1ac7f by Martin Panter in branch '3.5': Issue #27895: Spelling fixes (Contributed by Ville Skyttä). https://hg.python.org/cpython/rev/ff3df2b1ac7f -- ___ Python tracker

[issue27993] In the argparse there are typos with endings in plural words

2016-09-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8f02a1a6b647 by Martin Panter in branch '3.5': Issue #27993: Fix problems with plural objects in docs and comments https://hg.python.org/cpython/rev/8f02a1a6b647 New changeset bb2a7134d82b by Martin Panter in branch 'default': Issue #27993: Merge pl

[issue27570] Avoid memcpy(. . ., NULL, 0) etc calls

2016-09-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset e231dcad3a9b by Martin Panter in branch '3.5': Issue #27570: Avoid zero-length memcpy() calls with null source pointers https://hg.python.org/cpython/rev/e231dcad3a9b New changeset 2d0fb659372c by Martin Panter in branch 'default': Issue #27570: Mer

[issue27985] Implement PEP 526

2016-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: I played with the REPL, and found this: >>> del __annotations__ del __annotations__ >>> x: int = 0 x: int = 0 Traceback (most recent call last): File "", line 1, in NameError: __annotations__ not found >>> I would expect this to re-create __annotations__.

[issue27985] Implement PEP 526

2016-09-07 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: We discussed this at some point on python/typing. At that time we decided that class C: del __annotations__ x: int Should be an error. Do you think that it should behave in a different way in interactive REPL and/or at module level? --

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

2016-09-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 39e7307f9aee by Davin Potts in branch 'default': Fixes issue #6766: Updated multiprocessing Proxy Objects to support nesting https://hg.python.org/cpython/rev/39e7307f9aee -- nosy: +python-dev ___ Python

[issue15767] add ModuleNotFoundError

2016-09-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 90549c3c609c by Eric Snow in branch 'default': Issue #15767: Add ModuleNotFoundError. https://hg.python.org/cpython/rev/90549c3c609c New changeset 5fdb8c897023 by Eric Snow in branch 'default': Issue #15767: Use ModuleNotFoundError. https://hg.pytho

[issue20476] If new email policies are used, default message factory should be EmailMessage

2016-09-07 Thread R. David Murray
R. David Murray added the comment: Here's the patch to add the message_factory policy attribute. -- Added file: http://bugs.python.org/file44454/message_factory.diff ___ Python tracker _

[issue15767] add ModuleNotFoundError

2016-09-07 Thread Eric Snow
Changes by Eric Snow : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___ Pytho

[issue27911] Unnecessary error checks in exec_builtin_or_dynamic

2016-09-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 96c6816825dc by Brett Cannon in branch 'default': Issue #27911: Remove some unnecessary error checks in import.c. https://hg.python.org/cpython/rev/96c6816825dc -- nosy: +python-dev ___ Python tracker

[issue27911] Unnecessary error checks in exec_builtin_or_dynamic

2016-09-07 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the patch! -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue27985] Implement PEP 526

2016-09-07 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: I could change STORE_ANNOTATION opcode so that it will recreate __annotations__ if __name__ == '__main__'. Or do you now think that it should re-create it always? I still think that always re-creating __annotations__ if they don't exist seems like silencing a

[issue27976] Deprecate building with bundled copy of libffi on non-Darwin POSIX platforms

2016-09-07 Thread Zachary Ware
Zachary Ware added the comment: Finally got a new patch created. After talking it over with Ned yesterday, this patch makes sure that nothing changes on OSX. -- Added file: http://bugs.python.org/file44455/issue27976.diff ___ Python tracker

[issue27868] Unconditionally state when a build succeeds

2016-09-07 Thread Brett Cannon
Brett Cannon added the comment: I'm not going to do this because I'm willing to bet someone is relying on the fact nothing is printed to stdout. Benjamin says that if you're not happy with this then "you're not a well-behaved UNIX user". -- resolution: -> rejected status: open -> clos

[issue27979] Remove bundled libffi

2016-09-07 Thread Zachary Ware
Zachary Ware added the comment: The patch will need to be updated to just completely remove the --with(out)-system-ffi check everywhere but OSX. It will also need to make some changes after the latest patch in #27976. -- ___ Python tracker

[issue27985] Implement PEP 526

2016-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: Each statement at the REPL should re-initialize __annotations__ if it contains any annotations. I think this is how exec() already works. It adds __annotations__ to the namespace as needed, but just updates it if present. Inside a class it's different, that sho

[issue27985] Implement PEP 526

2016-09-07 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: > I think this is how exec() already works This is not exactly like this, exec() emits ast.Module while interactive input emits ast.Interactive (this one skips compiler_body in compile.c), but I think I have got your point, will fix this. -- ___

[issue27930] logging's QueueListener drops log messages

2016-09-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 121b5b41c9e8 by Vinay Sajip in branch 'default': Fixes #27930: improved QueueListener behaviour. https://hg.python.org/cpython/rev/121b5b41c9e8 New changeset b2ea0ede3753 by Vinay Sajip in branch '3.5': Fixes #27930: improved QueueListener behaviour

[issue28005] Broken encoding modules are silently skipped.

2016-09-07 Thread Steve Dower
Changes by Steve Dower : -- assignee: -> steve.dower nosy: +steve.dower resolution: -> fixed stage: test needed -> resolved status: open -> closed ___ Python tracker ___ __

[issue27850] Remove 3DES from cipher list (sweet32 CVE-2016-2183)

2016-09-07 Thread Jim Jewett
Jim Jewett added the comment: On Sep 6, 2016 10:55 PM, Donald Stufft added the comment: > In the hypothetical case we don't backport ChaCha20 support and 3DES and AES constructs in TLS are no longer secure... what do you do? Do you just plug your fingers in your ears and hope nobody attacks you?

[issue28005] Broken encoding modules are silently skipped.

2016-09-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2b2e7b39bb68 by Steve Dower in branch 'default': Issue #28005: Allow ImportErrors in encoding implementation to propagate. https://hg.python.org/cpython/rev/2b2e7b39bb68 -- nosy: +python-dev ___ Python tr

<    1   2   3   >