homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients collinwinter, fer_perez, gvanrossum, jerry.seutter, zseil
Date 2022年03月03日.16:06:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1646323577.9.0.387173252349.issue1666807@roundup.psfhosted.org>
In-reply-to
Content
So this bug is referenced when pydevd encounters some problem with 3.11a5+:
https://github.com/fabioz/PyDev.Debugger/issues/213
Since the link to this bug is apparently baked into the error messages printed by pydevd, I am adding this comment to this old, closed bug.
I can't seem to reproduce it. I modernized the reproducer script:
###
import inspect,sys
print('Version info:',sys.version_info)
print()
f1 = inspect.getabsfile(inspect)
f2 = inspect.getabsfile(inspect.iscode)
print('File for `inspect` :',f1)
print('File for `inspect.iscode`:',f2)
print('Do these match?',f1==f2)
if f1==f2:
 print('OK')
else:
 print('BUG - this is a bug in this version of Python')
###EOF
And the output is:
Version info: sys.version_info(major=3, minor=11, micro=0, releaselevel='alpha', serial=5)
File for `inspect` : c:\users\gvanrossum\appdata\local\programs\python\python311\lib\inspect.py 
File for `inspect.iscode`: c:\users\gvanrossum\appdata\local\programs\python\python311\lib\inspect.py 
Do these match? True
OK
I tried it with the most recent Python built from source and get the same result:
Version info: sys.version_info(major=3, minor=11, micro=0, releaselevel='alpha', serial=5)
File for `inspect` : c:\users\gvanrossum\cpython\lib\inspect.py
File for `inspect.iscode`: c:\users\gvanrossum\cpython\lib\inspect.py
Do these match? True
OK
So I wonder if the problem that's currently plagueing pydevd in 3.11 alpha releases is slightly different?
History
Date User Action Args
2022年03月03日 16:06:17gvanrossumsetrecipients: + gvanrossum, collinwinter, fer_perez, zseil, jerry.seutter
2022年03月03日 16:06:17gvanrossumsetmessageid: <1646323577.9.0.387173252349.issue1666807@roundup.psfhosted.org>
2022年03月03日 16:06:17gvanrossumlinkissue1666807 messages
2022年03月03日 16:06:17gvanrossumcreate

AltStyle によって変換されたページ (->オリジナル) /