[issue29307] ModuleNotFoundError when using literal string interpolation with invalid format specifier
Jeroen Van Goey added the comment: Thanks Barry for your extensive explanation! -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29307> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29307] ModuleNotFoundError when using literal string interpolation with invalid format specifier
New submission from Jeroen Van Goey: I installed Python 3.6 from J Fernyhough's PPA by doing sudo add-apt-repository ppa:jonathonf/python-3.6 sudo apt-get update sudo apt-get install python3.6 I made a string, using the new literal string interpolation, but I supplied an invalid format specifier. I not only got the expected "ValueError: Invalid format specifier", but also the unexpected "ModuleNotFoundError: No module named 'apt_pkg'". $ python3.6 Python 3.6.0 (default, Dec 29 2016, 21:40:36) [GCC 5.4.1 20161202] on linux Type "help", "copyright", "credits" or "license" for more information. >>> value = 4 * 20 >>> f'the value is {value:%A}' Traceback (most recent call last): File "", line 1, in ValueError: Invalid format specifier Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook from apport.fileutils import likely_packaged, get_recent_crashes File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in from apport.report import Report File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in import apport.fileutils File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in from apport.packaging_impl import impl as packaging File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 23, in import apt File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in import apt_pkg ModuleNotFoundError: No module named 'apt_pkg' Original exception was: Traceback (most recent call last): File "", line 1, in ValueError: Invalid format specifier -- messages: 285716 nosy: jeroen-vangoey priority: normal severity: normal status: open title: ModuleNotFoundError when using literal string interpolation with invalid format specifier type: behavior versions: Python 3.6 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29307> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20018] Replace dead URL with link to mirror
New submission from Jeroen Van Goey: The header of a cookie file generated by _MozillaCookieJar.py contains a link to the spec: http://www.netscape.com/newsref/std/cookie_spec.html This URL no longer exists (redirects to the AOL homepage). Attached patch replaces the link with a mirror where the original text is hosted. -- assignee: docs@python components: Documentation files: _MozillaCookieJar.diff keywords: patch messages: 206549 nosy: docs@python, jeroen-vangoey, loewis priority: normal severity: normal status: open title: Replace dead URL with link to mirror type: enhancement versions: Python 2.7, Python 3.3 Added file: http://bugs.python.org/file33196/_MozillaCookieJar.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20018 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20018] Replace dead URL with link to mirror
Jeroen Van Goey added the comment: Added patch file for Python 3.3 -- Added file: http://bugs.python.org/file33197/cookiejar.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20018 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18912] Intendation issue in example code in itertools.count documentation
New submission from Jeroen Van Goey: The sample code in the itertools.count documentation should be indented by 4 spaces. For 2.7.4: lines 3429 till 3432 in http://hg.python.org/releasing/2.7.4/file/026ee0057e2d/Modules/itertoolsmodule.c#l3429 For 3.4.0a1: lines 3981 till 3984 in http://hg.python.org/releasing/py3.4.0a1/file/edc668a667ad/Modules/itertoolsmodule.c#l3981 Also, the example code uses the arguments 'firstval' and 'step' whereas the documentation of the function itself uses the arguments 'start' and 'step'. Maybe better be consistent and use as first argument 'start' in both cases? -- assignee: docs@python components: Documentation hgrepos: 207 messages: 196826 nosy: docs@python, jeroen-vangoey priority: normal severity: normal status: open title: Intendation issue in example code in itertools.count documentation type: enhancement versions: Python 2.7, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18912 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18912] Intendation issue in example code in itertools.count documentation
Changes by Jeroen Van Goey jeroen.vang...@gmail.com: -- hgrepos: -207 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18912 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18912] Intendation issue in example code in itertools.count documentation
Jeroen Van Goey added the comment: Patch for Python 2.7.4 attached -- keywords: +patch Added file: http://bugs.python.org/file31571/2.7itertoolsmodule.c.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18912 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18912] Intendation issue in example code in itertools.count documentation
Jeroen Van Goey added the comment: Patch for Python 3.4.0a1 attached -- Added file: http://bugs.python.org/file31572/3.4itertoolsmodule.c.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18912 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com