[issue35840] Control flow inconsistency on closed asyncio stream

2019-01-27 Thread Marc Schlaich
New submission from Marc Schlaich : After closing a StreamWriter the `StreamReaderProtocol.connection_lost` on the other end is not getting called. In this case the StreamReader is at EOF but calling write/drain does not raise any Exception (and sending data to Nirvana). I would expect that

[issue35791] Unexpected exception with importlib

2019-01-27 Thread Nick Coghlan
Nick Coghlan added the comment: #35839 is follow-up enhancement request, proposing that we tweak the sys.modules handling in find_spec to ignore cache entries that don't have a __spec__ attribute set. -- ___ Python tracker

[issue35839] Suggestion: Ignore sys.modules entries with no __spec__ attribute in find_spec

2019-01-27 Thread Nick Coghlan
Nick Coghlan added the comment: I'd also suggest that we emit ImportWarning when taking the fallback path, since we really would prefer that sys.modules entries either have a valid __spec__, or else explicitly set `__spec__ = None`. -- ___ Python

[issue35806] typing module adds objects to sys.modules that don't look like modules

2019-01-27 Thread Nick Coghlan
Nick Coghlan added the comment: OK, I've filed #35839 to propose falling back to a regular search when the __spec__ attribute is missing, while treating "obj.__spec__ is None" as a true negative cache entry. -- ___ Python tracker

[issue35839] Suggestion: Ignore sys.modules entries with no __spec__ attribute in find_spec

2019-01-27 Thread Nick Coghlan
New submission from Nick Coghlan : (Alternate proposal inspired by the discussions in #35806 and #35791) Currently, a sys.modules entry with no __spec__ attribute will prevent importlib.util.find_spec() from locating the module, requiring the following workaround: def

[issue35832] Installation error

2019-01-27 Thread Steve Dower
Steve Dower added the comment: Thanks. You should have some more log files - I'm particularly interested in the one with "3.7.2" and "core_JustForMe" in the filename, as that is the one that failed. Also, did you notice that you have 64-bit 3.7.0 and 32-bit 3.7.2? Is that deliberate? You

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-27 Thread jcrmatos
jcrmatos added the comment: Hello, Yes, I signed the CLA and now I have to wait at least 1 business day. So I will wait for that confirmation before making the PR to the CPython repo. Thanks, JM -- ___ Python tracker

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: @jcrmatos yes, you should be making a PR to CPython repo's master branch since GitHub PRs are accepted. I hope also need to sign the CLA for your contribution to get merged though it's a documentation fix. Thanks --

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-27 Thread jcrmatos
jcrmatos added the comment: Hello, On the previous message I forgot to mention that the pull request was made in my fork, not the cpython repo. Should I made a PR in the cpython repo at this point? Thanks, JM -- ___ Python tracker

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-27 Thread jcrmatos
jcrmatos added the comment: Hello, I'm using Github web interface. I did these steps: - Forked cpython and changed the pdb.rst file. - Created a branch called "fix-issue-35835". - Made the commit with description "Add reference to Python 3.7 new function breakpoint()". - Made the pull

[issue31710] setup.py: _ctypes won't get built when system ffi is only in $PREFIX

2019-01-27 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- nosy: -yan12125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-27 Thread jcrmatos
jcrmatos added the comment: Hello, Yes, I'm interested in learning, thanks. I use Windows not Linux. Is that a problem? I will read the guide and let you know if I have any questions. Thanks again. JM -- ___ Python tracker

[issue29541] Python3 error while building on Alt-F

2019-01-27 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- nosy: -yan12125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35838] ConfigParser calls optionxform twice when assigning dict

2019-01-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35838] ConfigParser calls optionxform twice when assigning dict

2019-01-27 Thread Phil Kang
New submission from Phil Kang : ConfigParser calls ConfigParser.optionxform twice per each key when assigning a dictionary to a section. The following code: ini = configparser.ConfigParser() ini.optionxform = lambda x: '(' + x + ')' # Bugged ini['section A'] = {'key 1':

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-27 Thread Cheryl Sabella
Cheryl Sabella added the comment: @jcrmatos, No problem. :-) If you are interested in learning how, we can guide you. However, if you'd rather not, then that's OK too and we'll make the patch. Just let us know which you'd prefer. If you need help deciding, take a look at the devguide

[issue35806] typing module adds objects to sys.modules that don't look like modules

2019-01-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: Note that I will have to special case namespaces like typing.re anyway in my code, being a namespace that does not correspond to a "real" module whose code I can analyse. #35791 was mostly about 3th-party code like apipkg that are "real" modules, but for

[issue35806] typing module adds objects to sys.modules that don't look like modules

2019-01-27 Thread Guido van Rossum
Guido van Rossum added the comment: Option 2 sounds best. I am also not against adding __spec__ but I think we should support the idiom regardless, and I don’t consider this a bug in the typing module — at best there’s a slight improvement. On Sun, Jan 27, 2019 at 6:50 AM Nick Coghlan wrote:

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-27 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-27 Thread jcrmatos
jcrmatos added the comment: Hello, I'm sorry, I have no idea how to do it. JM -- ___ Python tracker ___ ___ Python-bugs-list

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-27 Thread Cheryl Sabella
Cheryl Sabella added the comment: @jcrmatos, would you like to create a Github pull request with the change? -- ___ Python tracker ___

[issue35832] Installation error

2019-01-27 Thread Stefano Bonalumi
Stefano Bonalumi added the comment: Hi plesaes find these files attached Please give me further instructions Thanks a lot Il giorno sab 26 gen 2019 alle ore 16:21 Steve Dower ha scritto: > > Steve Dower added the comment: > > You should have a set of log files in your %TEMP% directory.

[issue32834] test_gdb fails with Posix locale in 3.7

2019-01-27 Thread STINNER Victor
STINNER Victor added the comment: > Possibly fixed with issue34537 ? "LC_ALL=C ./python -We -m test -vuall -m test_strings test_gdb" still fails for me on Fedora 29. == FAIL: test_strings (test.test_gdb.PrettyPrintTests)

[issue35837] smtpd PureProxy breaks on mail_options keyword argument

2019-01-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Sorry, I overlooked that one. While searching for other smtpd issues many of them were closed as won't fix and hence my message. Thanks for the link. -- ___ Python tracker

[issue35837] smtpd PureProxy breaks on mail_options keyword argument

2019-01-27 Thread Samuel Colvin
Samuel Colvin added the comment: Hi, did you see https://bugs.python.org/issue35788#msg334155 later in the issue? -- ___ Python tracker ___

[issue35837] smtpd PureProxy breaks on mail_options keyword argument

2019-01-27 Thread Sjoerd
Change by Sjoerd : -- nosy: +samuelcolvin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35829] datetime: parse "Z" timezone suffix in fromisoformat()

2019-01-27 Thread Paul Ganssle
Paul Ganssle added the comment: > It seems a little odd to need to pull in a third-party library for this; it > seems far more tempting for me to just do > "datetime.fromisoformat(str.replace('Z', '+00:00'))" instead since I know my > dates are produced by a JSON API. Yes, this is also a

[issue35537] use os.posix_spawn in subprocess

2019-01-27 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- pull_requests: +11528 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35806] typing module adds objects to sys.modules that don't look like modules

2019-01-27 Thread Nick Coghlan
Nick Coghlan added the comment: Closing this without any changes contradicts the answer we gave Ronald on #35791 that it's expected behaviour for importlib.find_spec() to throw an exception for already loaded modules without a __spec__ attribute. So if this stays closed, then we should

[issue35837] smtpd PureProxy breaks on mail_options keyword argument

2019-01-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. smtpd is deprecated in favor of aiosmtpd. Some of the fixes were closed in the past as won't fix. Please see https://bugs.python.org/issue35788#msg334088 and the discussion for deprecation and removal. -- nosy:

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I am ok with Cheryl's idea too. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-27 Thread jcrmatos
jcrmatos added the comment: Hello, In my first message I said exactly that (the replacement used the previous text, if you check it). I'm ok with the wording from Cheryl. How about you Karthikeyan? Thanks, JM -- ___ Python tracker

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-27 Thread Cheryl Sabella
Cheryl Sabella added the comment: I agree with Karthikeyan. If it's added to the pdb doc page, I think the existing text should stay as it is, but a 'New in 3.7' added after it. Something like: The typical usage to break into the debugger from a running program is to insert import pdb;

[issue35837] smtpd PureProxy breaks on mail_options keyword argument

2019-01-27 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch, patch pull_requests: +11526, 11527 stage: -> patch review ___ Python tracker ___

[issue35837] smtpd PureProxy breaks on mail_options keyword argument

2019-01-27 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +11526 stage: -> patch review ___ Python tracker ___ ___

[issue11315] unicode support in Cookie module

2019-01-27 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35837] smtpd PureProxy breaks on mail_options keyword argument

2019-01-27 Thread Sjoerd
New submission from Sjoerd : According to https://python.readthedocs.io/en/stable/whatsnew/3.5.html: The SMTPServer class now advertises the 8BITMIME extension (RFC 6152) if decode_data has been set True. If the client specifies BODY=8BITMIME on the MAIL command, it is passed to

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I didn't want the doc to sound like breakpoint() is encouraged since it's optional and a shortcut. Hence my personal preference to just add a note with link to breakpoint() that it does the same thing. I will wait for someone else to rephrase it

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-27 Thread jcrmatos
jcrmatos added the comment: Hello, What about like this import pdb; pdb.set_trace() New in version 3.7: breakpoint() is preferable to using the previous line. Thanks, JM -- ___ Python tracker

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > New in version 3.7: breakpoint() replaces the previous line. replaces sounds little more like removed or deprecated to me. How about the below under pdb.set_trace() doc and example using it in the beginning? New in version 3.7: breakpoint() is a

[issue32834] test_gdb fails with Posix locale in 3.7

2019-01-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Possibly fixed with issue34537 ? -- nosy: +xtreak ___ Python tracker ___ ___

[issue35836] ZeroDivisionError class should have a __name__ attr

2019-01-27 Thread jcrmatos
jcrmatos added the comment: Hello, You are correct. My bad. Thanks, JM -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue35835] There is no mention of breakpoint() in the pdb documentation

2019-01-27 Thread SilentGhost
Change by SilentGhost : -- assignee: -> docs@python components: +Documentation nosy: +docs@python stage: -> needs patch ___ Python tracker ___

[issue35836] ZeroDivisionError class should have a __name__ attr

2019-01-27 Thread Steven D'Aprano
Steven D'Aprano added the comment: You are not looking at the class, you are looking at an instance: py> exc = ZeroDivisionError('divide by zero') py> type(exc).__name__ 'ZeroDivisionError' py> exc.__name__ Traceback (most recent call last): File "", line 1, in AttributeError:

[issue35834] get_type_hints exposes an instance of ForwardRef (internal class) in its result, with `from __future__ import annotations` enabled

2019-01-27 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: It looks like an opposite side of https://github.com/python/typing/issues/508 (I wanted to work on it, but never had time to, sorry). This question appeared couple times before, and I think there are pros and cons for both returning a ForwardRef() and for

[issue35836] ZeroDivisionError class should have a __name__ attr

2019-01-27 Thread jcrmatos
New submission from jcrmatos : Hello, When trying this try: 1/0 except Exception as exc: print(type(exc)) # returns print(exc.__name__) # returns AttributeError: 'ZeroDivisionError' object has no attribute '__name__' I believe all classes should have a __name__ attr, correct?