Roundup Robot added the comment:
New changeset 1745fd612d73 by R David Murray in branch '3.4':
#12780: update inspect test skipIf for PEP 3147.
https://hg.python.org/cpython/rev/1745fd612d73
New changeset 8120de25932f by R David Murray in branch 'default':
Merge: #12780: update inspect test
R. David Murray added the comment:
It is not true that __file__ will always end with '.py'. If *only* the .pyc or
.pyo file exists (not the PEP 3147 version, but just modname.pyc on the
pythonpath), then __file__ will end with .pyc. It is also the case that
__file__ may end with something
Éric Araujo mer...@netwok.org added the comment:
Seems reasonable to me. When did/does unicodedata ever have a __file__
attribute?
No idea. Maybe it has to do with static vs. dynamic linking? Or alternate VMs?
--
___
Python tracker
Barry A. Warsaw ba...@python.org added the comment:
Seems reasonable to me. When did/does unicodedata ever have a __file__
attribute?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12780
Éric Araujo mer...@netwok.org added the comment:
Barry, could you review the second part of the patch? (the first was committed)
--
nosy: +barry
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12780
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 98d13885a574 by Vinay Sajip in branch '3.2':
Issue #12780: Removed checks in logging for .pyc/.pyo in __file__.
http://hg.python.org/cpython/rev/98d13885a574
New changeset ac0c04d8eafb by Vinay Sajip in branch
New submission from Éric Araujo mer...@netwok.org:
After PEP 3147, __file__ always points to the py file, not pyc/pyo. I found
two instances of obsolete code.
--
files: fix-11599.diff
keywords: patch
messages: 142375
nosy: benjamin.peterson, eric.araujo, vinay.sajip
priority: normal
Changes by Éric Araujo mer...@netwok.org:
Removed file: http://bugs.python.org/file22940/fix-11599.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12780
___
Changes by Éric Araujo mer...@netwok.org:
Added file:
http://bugs.python.org/file22941/__file__-cant-contain-pyc-in-3.2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12780
___