New submission from Alexandru Ardelean:

On OpenWrt, the Python & Python3 are shipped with bytecodes [also, bytecode 
compiling is disabled by default].
2 reasons for that: 1) that would fill up flash/RAM 2) bytecodes can be up to 
10x faster than Python source code

I got a report of an issue with virtualenv on Python3, that had a weird path: 
the `virtualenv /test` would generate 
`/test/lib/virtualenv/__init__.py/__init__.pyc`


The fix is here in the patch file:
https://github.com/openwrt/packages/pull/4475/commits/576c45eb0a5314121aeb2f8d8931644b65e5be99

----------
components: Library (Lib)
messages: 295865
nosy: Alexandru Ardelean
priority: normal
severity: normal
status: open
title: imp.py: load_package: function has a buggy loop with `path = 
os.path.join(path, '__init__'+extension)`
versions: Python 3.6, Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30645>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to