[issue34405] Upgrade to OpenSSL 1.1.0i / 1.0.2p

2018-09-11 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +8609 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34589] Py_Initialize() and Py_Main() should not enable C locale coercion

2018-09-11 Thread Nick Coghlan
Nick Coghlan added the comment: The entire change affecting the PEP 538 implementation in https://github.com/python/cpython/commit/9454060e84a669dde63824d9e2fcaf295e34f687#diff-8c018c3ada66d06c8e101e47a313c2c7 needs to be reverted: the locale should be coerced before *ANY* calls are made to

[issue34589] Py_Initialize() and Py_Main() should not enable C locale coercion

2018-09-11 Thread Nick Coghlan
Nick Coghlan added the comment: (The one exception to "nothing gets decoded incorrectly" is that PYTHONCOERCECLOCALE itself is always interpreted as an ASCII field: the values that it checks for are actually ASCII byte sequences, not Unicode code points. The documentation could definitely

[issue34405] Upgrade to OpenSSL 1.1.0i / 1.0.2p

2018-09-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +8610 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34405] Upgrade to OpenSSL 1.1.0i / 1.0.2p

2018-09-11 Thread Ned Deily
Ned Deily added the comment: New changeset 3102e24d83315eee42a94c460956fbcb92ac510f by Ned Deily in branch 'master': bpo-34405: Update to OpenSSL 1.1.0i for macOS installer builds (GH-9166) https://github.com/python/cpython/commit/3102e24d83315eee42a94c460956fbcb92ac510f --

[issue34443] enum repr should use __qualname__

2018-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Serhiy, why should __qualname__ always be used together with __module__? Because what is the purpose of using __qualname__? -- ___ Python tracker

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2018-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The solution with fileno() is clever, but as was mentioned before, it doesn't work if stdin or stdout are not real files, but something like StringIO. It is not that in common use of argparse for parsing arguments in scripts they are redefined, but

[issue34589] Py_Initialize() and Py_Main() should not enable C locale coercion

2018-09-11 Thread Nick Coghlan
Nick Coghlan added the comment: FWIW, this is also why I don't want PEP 432 to expose any wstr fields in the configuration settings: it means embedding applications have to figure out which encoding Python is expecting to be used for those fields. Everything should be much cleaner if the

[issue34443] enum repr should use __qualname__

2018-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think using more longer name in repr and/or str for *instances* of enum classes is not good idea. They are already verbose, and this will make them more verbose. Actually in some cases when enum instances are exposed as module globals, I would want to

[issue34579] test_embed.InitConfigTests fail on AIX

2018-09-11 Thread Eric Snow
Change by Eric Snow : -- nosy: +eric.snow, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34405] Upgrade to OpenSSL 1.1.0i / 1.0.2p

2018-09-11 Thread Ned Deily
Ned Deily added the comment: New changeset 3235fac0d7d94ad6464a162261c18a424829d2e5 by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-34405: Update to OpenSSL 1.1.0i for macOS installer builds (GH-9166) (GH-9167)

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2018-09-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.8 -Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue4921] Object lifetime and inner recursive function

2018-09-11 Thread Eric Snow
Change by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34443] enum repr should use __qualname__

2018-09-11 Thread Ethan Furman
Ethan Furman added the comment: Serhiy said: --- > I think using more longer name in repr and/or str for *instances* of > enum classes is not good idea. They are already verbose, and this > will make them more verbose. I'm okay with verbose reprs, as debugging is the primary feature

[issue34641] Curiosity: f((a)=1) is not a syntax error -- why?

2018-09-11 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: There seems to be some of the similar cases that have tests added as part of c960f26044edaea6669e60859ecf590c63c65e62 and the original error message added at 3e0055f8c65c407e74ce476b8e2b1fb889723514. Existing tests : >>> f(x()=2) Traceback (most

[issue33986] asyncio: Typo in documentation: BaseSubprocessTransport -> SubprocessTransport

2018-09-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: Superseded by #33649 -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> asyncio docs overhaul ___ Python tracker

[issue33649] asyncio docs overhaul

2018-09-11 Thread Yury Selivanov
Yury Selivanov added the comment: The first PR has been just landed. The plan is to work in 'master' branch and when the docs are ready we backport them to 3.7 in one big PR. So far the following files were updated/reviewed: Doc/library/asyncio-eventloop.rst

[issue34630] Don't log ssl cert errors in asyncio

2018-09-11 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +8611 stage: -> patch review ___ Python tracker ___ ___

[issue34443] enum repr should use __qualname__

2018-09-11 Thread Ethan Furman
Ethan Furman added the comment: Okay, I might be changing my mind. In most cases I suspect the difference would be minimal, but when it isn't, it really isn't. Take this example from a pydoc test: class Color(enum.Enum) | Color(value, names=None, *, module=None, qualname=None,

[issue34465] ipaddress should accept bytearray in addition to bytes

2018-09-11 Thread Jörn Heissler
Jörn Heissler added the comment: > Maybe add a special purposed named constructor IPv4Address.from_bytes() that > will accept any objects supporting the buffer protocol? That would work for me. I wonder if there should be something like ipaddress.ip_address_from_bytes too that can construct

[issue34628] urllib.request.urlopen fails when userinfo is present in URL

2018-09-11 Thread Niklas Sombert
New submission from Niklas Sombert : Today I tried to access URLs like this one: http://user:1...@example.net:8080. The result was this: >>> import urllib.request >>> urllib.request.urlopen("http://user:1...@example.net:1234/;) Traceback (most recent call last): File

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2018-09-11 Thread Erik Janssens
Erik Janssens added the comment: @vijay may I suggest you try to investigate your issue in more detail : - does it depend on the Python version ? If so which versions work, which dont. - does the crash happen as well when using the REPL ? - if you use PyQt instead of pywin32, does it still

[issue29832] Don't refer to getsockaddrarg in error messages

2018-09-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 735171e33486131d93865cf851c0c3d63fffd364 by Benjamin Peterson (Oren Milman) in branch 'master': closes bpo-29832: Remove "getsockaddrarg" from error messages. (GH-3163)

[issue34622] Extract asyncio exceptions into a separate file

2018-09-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 0baa72f4b2e7185298d09cf64c7b591efcd22af0 by Andrew Svetlov in branch 'master': bpo-34622: Extract asyncio exceptions into a separate module (GH-9141) https://github.com/python/cpython/commit/0baa72f4b2e7185298d09cf64c7b591efcd22af0 --

[issue26502] traceback.extract_tb breaks compatibility by returning FrameSummary

2018-09-11 Thread Berker Peksag
Berker Peksag added the comment: Thanks for merging this, Petr. What do you think about backporting to 3.7? -- components: -Documentation versions: +Python 3.8 ___ Python tracker

[issue34629] Python3 regression for urllib(2).urlopen(...).fp for chunked http responses

2018-09-11 Thread Thibault Kruse
New submission from Thibault Kruse : We had a problem running code that downloads files from github when porting from python2.7 to python3.[3-7]. Not sure if a bug or not. With the given code, in python3 a file downloaded in chunks will contain the size of chunks when using the undocumented

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2018-09-11 Thread Erik Janssens
Erik Janssens added the comment: @ronaldoussoren In my case it was not Outlook, it was a third party line of business application, but as in the case of the OP, as mentioned in the StackOverflow link, the crashing only happens using certain Python version. I'm not suggesting the issue of

[issue33649] asyncio docs overhaul

2018-09-11 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 7c7605ff1133cf757cac428c483827f666c7c827 by Yury Selivanov in branch 'master': bpo-33649: First asyncio docs improvement pass (GH-9142) https://github.com/python/cpython/commit/7c7605ff1133cf757cac428c483827f666c7c827 --

[issue34630] Don't log ssl cert errors in asyncio

2018-09-11 Thread Andrew Svetlov
New submission from Andrew Svetlov : It is reported as a regular exception, not need to log it (as we skip logging of connection errors already). -- messages: 325032 nosy: asvetlov priority: normal severity: normal status: open title: Don't log ssl cert errors in asyncio

[issue34631] Upgrade to OpenSSL 1.1.1

2018-09-11 Thread Christian Heimes
New submission from Christian Heimes : OpenSSL 1.1.1 was released today. The blog post https://www.openssl.org/blog/blog/2018/09/11/release111/ lists all major improvements. Highlights: * TLS 1.3 * API and ABI compatible with OpenSSL 1.1.0 * LTS release (support schedule TBD) All tests on

[issue34622] Extract asyncio exceptions into a separate file

2018-09-11 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue29386] select.epoll.poll may behave differently if timeout = -1 vs timeout = None

2018-09-11 Thread Berker Peksag
Berker Peksag added the comment: New changeset b690b9b04729ba3d91c59bff1bb11c3dcc1b50fc by Berker Peksag in branch 'master': bpo-29386: Pass -1 to epoll_wait() when timeout is < -1 (GH-9040) https://github.com/python/cpython/commit/b690b9b04729ba3d91c59bff1bb11c3dcc1b50fc --

[issue29386] select.epoll.poll may behave differently if timeout = -1 vs timeout = None

2018-09-11 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.6, Python 3.7 ___ Python tracker ___

[issue28617] Why isn't "in" called a comparison operation?

2018-09-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +8613 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28617] Why isn't "in" called a comparison operation?

2018-09-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +8612 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28617] Why isn't "in" called a comparison operation?

2018-09-11 Thread miss-islington
miss-islington added the comment: New changeset 08bcf647d8a92e4bd47531588b284c6820b7a7ef by Miss Islington (bot) (wim glenn) in branch 'master': bpo-28617 Fixed docs inaccuracies about the types that support membership tests (GH-9086)

[issue26502] traceback.extract_tb breaks compatibility by returning FrameSummary

2018-09-11 Thread Petr Viktorin
Petr Viktorin added the comment: I don't think I have a good enough feel for what should, generally, go to 3.7. So take my opinion with a grain of salt. But honestly, I don't think the issue is important enough -- I've only seen one codebase affected by it, which wasn't hard to fix.

[issue31704] HTTP check lowercase response from proxy

2018-09-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: The spec, https://tools.ietf.org/html/rfc7230#section-2.6, is quite clear that the HTTP version is case sensitive. In practice, not every client is lax. Firefox does a case-insensitive comparison, but libcurl requires uppercase. That makes me think we

[issue33649] asyncio docs overhaul

2018-09-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34628] urllib.request.urlopen fails when userinfo is present in URL

2018-09-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26502] traceback.extract_tb breaks compatibility by returning FrameSummary

2018-09-11 Thread Berker Peksag
Berker Peksag added the comment: Ok, let's close this issue then. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.5, Python 3.6 ___ Python tracker

[issue34595] PyUnicode_FromFormat(): add %T format for an object type name

2018-09-11 Thread Petr Viktorin
Petr Viktorin added the comment: > The PEP 399 requires that C accelerator behaves exactly as Python, [...] It does not. PEP 399 requires that that the C code must pass the same *test suite*. And error messages in particular tend to not be checked in tests. Anyway, I don't see how that

[issue34363] dataclasses.asdict() mishandles dataclass instance attributes that are instances of subclassed typing.NamedTuple

2018-09-11 Thread Eric V. Smith
Eric V. Smith added the comment: The question here is: what should asdict() return if the dataclass contains a namedtuple? What the code is trying to do (but currently failing!) is to return another namedtuple, but with the values returned by recursively calling in to asdict() (or rather,

[issue34600] python3 regression ElementTree.iterparse() unable to capture comments

2018-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Than your for your example Martin. Now I see what is not working. Indeed, using the TreeBuilder subclass is recommended way, but iterparse() was designed to accept only exact TreeBuilder. Actually there is an intention to consider the parser parameter of

[issue34613] asyncio.StreamReader initialization documentation incorrectly declare limit as None

2018-09-11 Thread miss-islington
miss-islington added the comment: New changeset cb51dd7cac6a6e2a7ba67fa4cd328a68f630095b by Miss Islington (bot) in branch '3.6': bpo-34613: document the correct value of limit argument of asyncio.StreamReader (GH-9121)

[issue31608] crash in methods of a subclass of _collections.deque with a bad __new__()

2018-09-11 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +8618 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34629] Python3 regression for urllib(2).urlopen(...).fp for chunked http responses

2018-09-11 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28617] Why isn't "in" called a comparison operation?

2018-09-11 Thread miss-islington
miss-islington added the comment: New changeset 889f080a4d5cdb1cfb901b953f4b89f3ea806bbe by Miss Islington (bot) in branch '3.6': bpo-28617 Fixed docs inaccuracies about the types that support membership tests (GH-9086)

[issue28617] Why isn't "in" called a comparison operation?

2018-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Humm, why the bot merges in the master branch? -- ___ Python tracker ___ ___ Python-bugs-list

[issue34613] asyncio.StreamReader initialization documentation incorrectly declare limit as None

2018-09-11 Thread miss-islington
miss-islington added the comment: New changeset b4ec36200a959da70eba94c19826446a8efdffdd by Miss Islington (bot) (Bram) in branch 'master': bpo-34613: document the correct value of limit argument of asyncio.StreamReader (GH-9121)

[issue34613] asyncio.StreamReader initialization documentation incorrectly declare limit as None

2018-09-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +8615 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34613] asyncio.StreamReader initialization documentation incorrectly declare limit as None

2018-09-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +8614 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31608] crash in methods of a subclass of _collections.deque with a bad __new__()

2018-09-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 24bd50bdcc97d65130c07d6cd26085fd06c3e972 by Benjamin Peterson (Oren Milman) in branch 'master': closes bpo-31608: Fix a crash in methods of a subclass of _collections.deque with a bad __new__(). (GH-3788)

[issue31636] test_locale failure on OpenBSD

2018-09-11 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +8617 stage: -> patch review ___ Python tracker ___ ___

[issue34613] asyncio.StreamReader initialization documentation incorrectly declare limit as None

2018-09-11 Thread miss-islington
miss-islington added the comment: New changeset e02ca4270ef258162215e345c23025bec27f9eb0 by Miss Islington (bot) in branch '3.7': bpo-34613: document the correct value of limit argument of asyncio.StreamReader (GH-9121)

[issue31608] crash in methods of a subclass of _collections.deque with a bad __new__()

2018-09-11 Thread miss-islington
miss-islington added the comment: New changeset 536e45accf8f05355dd943a6966b9968cdb15f5a by Miss Islington (bot) in branch '3.7': closes bpo-31608: Fix a crash in methods of a subclass of _collections.deque with a bad __new__(). (GH-3788)

[issue34600] python3 regression ElementTree.iterparse() unable to capture comments

2018-09-11 Thread Stefan Behnel
Stefan Behnel added the comment: lxml supports "comment" and "pi" as event types in iterparse (or, more specifically, in the XMLPullParser). If someone wants to implement this for (c)ElementTree, I'd be happy to review the PR. https://lxml.de/api/lxml.etree.XMLPullParser-class.html

[issue28617] Why isn't "in" called a comparison operation?

2018-09-11 Thread miss-islington
miss-islington added the comment: New changeset 3e648f8371e342ccfa663ad77e82a538fcc8c9fb by Miss Islington (bot) in branch '3.7': bpo-28617 Fixed docs inaccuracies about the types that support membership tests (GH-9086)

[issue34632] Port importlib_metadata to Python 3.8

2018-09-11 Thread Barry A. Warsaw
New submission from Barry A. Warsaw : https://importlib_metadata.rtfd.org We're fleshing out the API and implementation in the standalone library, but once we're confident of the API and semantics, we will want to port this into Python 3.8. -- assignee: barry components: Library

[issue31608] crash in methods of a subclass of _collections.deque with a bad __new__()

2018-09-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +8616 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34409] Add a way to customize iteration over fields in asdict() for the nested dataclasses

2018-09-11 Thread Eric V. Smith
Eric V. Smith added the comment: I've been thinking about this, but I don't have a suggestion on how to improve the API. Maybe some sort of visitor pattern? I'm open to concrete ideas. -- ___ Python tracker

[issue31608] crash in methods of a subclass of _collections.deque with a bad __new__()

2018-09-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset ccbbdd0a1e00ecad6f0005438dd6ff6d84fd9ceb by Benjamin Peterson in branch '3.6': [3.6] closes bpo-31608: Fix a crash in methods of a subclass of _collections.deque with a bad __new__(). (GH-9178)

[issue34586] collections.ChainMap should have a get_where method

2018-09-11 Thread Zahari Dim
Zahari Dim added the comment: > > I've discussed this with other core devs and spent a good deal of time > evaluating this proposal. I'm going to pass on the this one but do think it > was a inspired suggestion. Thank you for the proposal. Thank you for taking the time to consider it. I

[issue25041] document AF_PACKET socket address format

2018-09-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset a00de685c11cf8bdca1f8efa7aab80552d80ddfb by Benjamin Peterson in branch '3.6': [3.6] closes bpo-25041: Document AF_PACKET socket address format. (GH-9209) https://github.com/python/cpython/commit/a00de685c11cf8bdca1f8efa7aab80552d80ddfb

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2018-09-11 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +8607 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34569] test__xxsubinterpreters.ShareableTypeTests._assert_values fails on AIX - 32-bit mode

2018-09-11 Thread Eric Snow
Eric Snow added the comment: Thanks for bringing this up, Michael. I'll give you a review on the PR sometime this week (while at the core sprint). -- ___ Python tracker ___

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2018-09-11 Thread Ronald Oussoren
Ronald Oussoren added the comment: There's not enough information in the issue to be sure, but I'm inclined to say this is a 3th-party problem. To be sure someone will have to reproduce the problem in a debugger, or provide a stack trace of the crash. The initial message says there's a

[issue32490] subprocess: duplicate filename in exception message

2018-09-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: The builtin exception is better now, so I don't see a problem with reverting the original patch. -- ___ Python tracker ___

[issue32490] subprocess: duplicate filename in exception message

2018-09-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 73870bfeb9cf350d84ee88bd25430c104b3c6191 by Benjamin Peterson (Zackery Spytz) in branch 'master': closes bpo-32490: Fix filename duplication in subprocess exception message. (GH-9163)

[issue31608] crash in methods of a subclass of _collections.deque with a bad __new__()

2018-09-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 253279c616d4f34287c5749df15e20eb2eb988d6 by Benjamin Peterson in branch '2.7': [2.7] closes bpo-31608: Fix a crash in methods of a subclass of _collections.deque with a bad __new__(). (GH-9179)

[issue32502] uuid1() fails if only 64-bit interface addresses are available

2018-09-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset d919c60e6936f853ad15040017f2c0bce0f027f8 by Benjamin Peterson (Chih-Hsuan Yen) in branch '2.7': [2.7] bpo-32502: Discard 64-bit (and other invalid) hardware addresses (GH-9125)

[issue15727] PyType_FromSpecWithBases tp_new bugfix

2018-09-11 Thread Petr Viktorin
Petr Viktorin added the comment: Converting static types to heap ones is just one of the reasons to use PyType_FromSpec*. Another ones are writing such classes from scratch, and converting pure-Python classes to C. I don't think PyObject_FailingNew is a good default for either of those. I

[issue34365] datetime's documentation refers to "comparison [...] falling back to the default scheme of comparing object addresses"

2018-09-11 Thread miss-islington
miss-islington added the comment: New changeset 9c223794c754408644c16349b85dd27fdba8a926 by Miss Islington (bot) (Danish Prakash) in branch 'master': bpo-34365: Update date object documentation (GH-8814) https://github.com/python/cpython/commit/9c223794c754408644c16349b85dd27fdba8a926

[issue34365] datetime's documentation refers to "comparison [...] falling back to the default scheme of comparing object addresses"

2018-09-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +8620 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34365] datetime's documentation refers to "comparison [...] falling back to the default scheme of comparing object addresses"

2018-09-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +8619 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26979] The danger of PyType_FromSpec()

2018-09-11 Thread Petr Viktorin
Petr Viktorin added the comment: I don't think PEP 384 should be updated. It documents the feature as it was added, and shouldn't be used as documentation now. Instead, Python documentation should be improved to cover all of PEP 389. I submitted a pull request for that (GH-9154). For this

[issue34365] datetime's documentation refers to "comparison [...] falling back to the default scheme of comparing object addresses"

2018-09-11 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks! -- nosy: +Mariatta resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34409] Add a way to customize iteration over fields in asdict() for the nested dataclasses

2018-09-11 Thread mkurnikov
mkurnikov added the comment: Cleanest thing I could think of is: 1. Extract dataclass_to_dict function from _asdict_inner as: def dataclass_asdict(obj, dict_factory): result = [] for f in fields(obj): value = _asdict_inner(getattr(obj, f.name), dict_factory)

[issue34633] Simplify __reduce__ for ordered dict.

2018-09-11 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : The code for __reduce__ in ordered dictionaries can be simplified in the similar way issue34573 is treating dict and set objects. -- components: Interpreter Core messages: 325063 nosy: pablogsal priority: normal severity: normal status: open

[issue34634] New asyncio streams API

2018-09-11 Thread Andrew Svetlov
New submission from Andrew Svetlov : Currently, we have separate classes: reader and writer. It is very inconvenient: these classes are tightly coupled internally, there is no sense to have two objects to the single logical entity. The second problem is `writer.write()` synchronous API. To

[issue34634] New asyncio streams API

2018-09-11 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +8621 stage: -> patch review ___ Python tracker ___ ___

[issue34633] Simplify __reduce__ for ordered dict.

2018-09-11 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +8622 stage: -> patch review ___ Python tracker ___ ___

[issue34365] datetime's documentation refers to "comparison [...] falling back to the default scheme of comparing object addresses"

2018-09-11 Thread miss-islington
miss-islington added the comment: New changeset e2b40f4ce954ea3d35a73541029b2253abd9d245 by Miss Islington (bot) in branch '3.7': bpo-34365: Update date object documentation (GH-8814) https://github.com/python/cpython/commit/e2b40f4ce954ea3d35a73541029b2253abd9d245 --

[issue34365] datetime's documentation refers to "comparison [...] falling back to the default scheme of comparing object addresses"

2018-09-11 Thread miss-islington
miss-islington added the comment: New changeset 8a2c2d4e1b6b46a9a982e5c064ca4399ec28d55d by Miss Islington (bot) in branch '3.6': bpo-34365: Update date object documentation (GH-8814) https://github.com/python/cpython/commit/8a2c2d4e1b6b46a9a982e5c064ca4399ec28d55d --

[issue34635] inspect: add tools for inspecting subclasses

2018-09-11 Thread Benjamin Mintz
New submission from Benjamin Mintz : Adds inspect.getsubclasses, inspect.getallsubclasses (recursive), and inspect.getsubclasstree (recursive, maintains structure). See documentation for more details. -- components: Library (Lib) messages: 325068 nosy: bmintz priority: normal

[issue34538] Remove encouragement to author a base class for all Exception subclasses in a module

2018-09-11 Thread Nathaniel Manista
Nathaniel Manista added the comment: I’d like to try to steer this conversation back toward what I think is the actionable question: “does the exemplification of this practice in the Errors and Exceptions portion of The Python Tutorial bring about a net benefit or a net cost to its intended

[issue34635] inspect: add tools for inspecting subclasses

2018-09-11 Thread Benjamin Mintz
Change by Benjamin Mintz : -- keywords: +patch pull_requests: +8623 stage: -> patch review ___ Python tracker ___ ___

[issue34635] inspect: add tools for inspecting subclasses

2018-09-11 Thread Zachary Ware
Change by Zachary Ware : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26979] The danger of PyType_FromSpec()

2018-09-11 Thread Petr Viktorin
Petr Viktorin added the comment: Christian, do you have a specific example of the default tp_dealloc doing the wrong thing? -- ___ Python tracker ___

[issue34633] Simplify __reduce__ for ordered dict iterators

2018-09-11 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- title: Simplify __reduce__ for ordered dict. -> Simplify __reduce__ for ordered dict iterators ___ Python tracker ___

[issue34595] PyUnicode_FromFormat(): add %T format for an object type name

2018-09-11 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +8625 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

<    1   2