New submission from Nick Coghlan <ncogh...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue32691> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com