[New-bugs-announce] [issue32691] "pdb -m <module>" sets __main__.__package__ incorrectly
Nick Coghlan
report at bugs.python.org
Sun Jan 28 00:04:51 EST 2018
New submission from Nick Coghlan <ncoghlan at gmail.com>:
For regular modules, the initial implementation of bpo-32206 sets __package__ to "module_name" instead of "module_name.rpartition('.')[0]".
This is not correct, and will cause problems for relative imports.
(From https://bugs.python.org/issue32206#msg310882)
----------
messages: 310917
nosy: jason.coombs, mariocj89, ncoghlan
priority: normal
severity: normal
stage: test needed
status: open
title: "pdb -m <module>" sets __main__.__package__ incorrectly
type: behavior
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32691>
_______________________________________
More information about the New-bugs-announce
mailing list