[issue37917] Warning regarding collections ABCs still present in 3.9

2019-08-22 Thread Michael Anckaert
New submission from Michael Anckaert : When importing an ABC from the collections module in Python 3.9 there is a warning that this is deprecated since Python 3.3 and will stop working in Python 3.9. Should this warning be removed and lead to an ImportError? Python 3.9.0a0 (heads

[issue37914] class timedelta, support the method hours and minutes in field accessors

2019-08-22 Thread Michael Anckaert
Michael Anckaert added the comment: Thank you for the clarification Paul. It makes sense to me now to not include those accessors. On Thu, 22 Aug 2019 at 17:46, Paul Ganssle wrote: > > Paul Ganssle added the comment: > > > I would support this addition. The timedelta cl

[issue17306] Improve the way abstract base classes are shown in help()

2019-08-22 Thread Michael Anckaert
Michael Anckaert added the comment: I would be very interested and motivated to work on this. I'll start by taking a look at the pointers Raymond gave. If anyone can chime in with some more information / guidance that would be awesome. -- nosy: +michaelanckaert

[issue37914] class timedelta, support the method hours and minutes in field accessors

2019-08-22 Thread Michael Anckaert
Michael Anckaert added the comment: I would support this addition. The timedelta class already has accessors for days and seconds, why not for hours and minutes? The implementation should make use of the idiomatic way as Serhiy mentioned. >>> timedelta(hours=25).seconds

[issue19820] docs are missing info about module attributes

2019-08-21 Thread Michael Anckaert
Change by Michael Anckaert : -- keywords: +patch pull_requests: +15071 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/15359 ___ Python tracker <https://bugs.python.org/issu

[issue19820] docs are missing info about module attributes

2019-08-14 Thread Michael Anckaert
Michael Anckaert added the comment: @emmanuel: thanks for offering your help. I made a first attempt at improving the docs in this branch: https://github.com/MichaelAnckaert/cpython/tree/bpo-19820 -- ___ Python tracker <https://bugs.python.

[issue1823] Possible to set invalid Content-Transfer-Encoding on email.mime.multipart.MIMEMultipart

2019-08-14 Thread Michael Anckaert
Michael Anckaert added the comment: This issue is still present on Python 3.7 and above. As David suggested set_charset could be turned into a no-op on MIMEMultipart. I traced set_charset back to inheritance from email.message.Message, would overriding set_charset (and possibly raising

[issue19820] docs are missing info about module attributes

2019-08-14 Thread Michael Anckaert
Michael Anckaert added the comment: As far as I can tell there is at least some information missing from the 'Types and members' section. Not all attributes are listed in the table. For example the attribute __cached__ is missing from the module type but it is documented in the inspect

[issue37823] Telnet documentation: fix the link to open()

2019-08-14 Thread Michael Anckaert
Michael Anckaert added the comment: I created a PR for this issue (PR 15281). If any changes are required I'm more than happy to make them. -- nosy: +michaelanckaert ___ Python tracker <https://bugs.python.org/issue37

[issue37823] Telnet documentation: fix the link to open()

2019-08-14 Thread Michael Anckaert
Change by Michael Anckaert : -- keywords: +patch pull_requests: +15005 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/15281 ___ Python tracker <https://bugs.python.org/issu

[issue26131] Raise ImportWarning when loader.load_module() is used

2019-08-09 Thread Michael Anckaert
Michael Anckaert added the comment: Clarification: the imp module shows a DeprecationWarning when imported. Was this what was meant? -- ___ Python tracker <https://bugs.python.org/issue26

[issue26131] Raise ImportWarning when loader.load_module() is used

2019-08-09 Thread Michael Anckaert
Michael Anckaert added the comment: I checked out the source (Lib/imp.py:219) and only see the docstring marking this method als Deprecated. No exceptions are being raised. I would like to work on this issue. -- nosy: +michaelanckaert ___ Python