[issue11374] pkgutil.extend_path do not recognize py{c,o} file

2020-11-16 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___ _

[issue11374] pkgutil.extend_path do not recognize py{c,o} file

2011-11-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Nov 29, 2011, at 12:50 PM, Éric Araujo wrote: >Before you put more work into this, it would be nice to get confirmation from >one import expert that the bug is valid: I know the import system only >superficially, and I’m not sure that package/__init__.pyc /

[issue11374] pkgutil.extend_path do not recognize py{c,o} file

2011-11-29 Thread Éric Araujo
Éric Araujo added the comment: .pyo files are used if sys.dont_write_bytecode is false and sys.flags.optimize is >= 1 (IOW, true). For Python 3.2 and 3.3, imp.cache_from_source should be used to get the right paths (see PEP 3147). Before you put more work into this, it would be nice to get c

[issue11374] pkgutil.extend_path do not recognize py{c,o} file

2011-11-29 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11374] pkgutil.extend_path do not recognize py{c,o} file

2011-11-28 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue11374] pkgutil.extend_path do not recognize py{c,o} file

2011-06-01 Thread Éric Araujo
Éric Araujo added the comment: Hi, thanks for the report and patch. I think the code should not find byte-compiled files if sys.dont_write_bytecode is true, and it should not find pyo files when sys.flags.optimize has a certain value (I don’t remember if it’s 1 or 2). It also requires tests

[issue11374] pkgutil.extend_path do not recognize py{c,o} file

2011-05-31 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.5, Python 2.6, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11374] pkgutil.extend_path do not recognize py{c,o} file

2011-03-02 Thread Alexandre Badez
Alexandre Badez added the comment: A little change in the patch -- Added file: http://bugs.python.org/file20978/patch.diff ___ Python tracker ___ ___

[issue11374] pkgutil.extend_path do not recognize py{c,o} file

2011-03-02 Thread Alexandre Badez
Changes by Alexandre Badez : Removed file: http://bugs.python.org/file20977/patch.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue11374] pkgutil.extend_path do not recognize py{c,o} file

2011-03-02 Thread Alexandre Badez
Alexandre Badez added the comment: I've made a simple patch. -- keywords: +patch Added file: http://bugs.python.org/file20977/patch.diff ___ Python tracker ___ _

[issue11374] pkgutil.extend_path do not recognize py{c,o} file

2011-03-02 Thread Alexandre Badez
Changes by Alexandre Badez : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue11374] pkgutil.extend_path do not recognize py{c,o} file

2011-03-02 Thread Alexandre Badez
New submission from Alexandre Badez : extend_path only test if "init.py" files exist, but it should also test "init.pyc" and/or "init.pyo". -- components: Library (Lib) messages: 129896 nosy: Alexandre.Badez priority: normal severity: normal status: open title: pkgutil.extend_path do no