[issue41809] finding file attributes in Windows seems to fail

2020-09-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am closing this report because 1) it appears to be a result of a typo; 2) os.stat works fine for me (also on Windows); and 3) I am 99.99% sure that IDLE does not delete user code object attributes. If a system has two files with the same name in two

[issue41809] finding file attributes in Windows seems to fail

2020-09-18 Thread E. Paine
E. Paine added the comment: Thank you for reporting this. Please could you double check what you ran because your code says 'st_file_attributes' but the error says 'st_file_atributes' (missing a t in attributes). -- nosy: +epaine ___ Python

[issue41809] finding file attributes in Windows seems to fail

2020-09-18 Thread musiquegraeme
musiquegraeme added the comment: I got '3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)]' -- ___ Python tracker ___

[issue41809] finding file attributes in Windows seems to fail

2020-09-18 Thread STINNER Victor
STINNER Victor added the comment: What is the Python version of IDLE? Try: >>> import sys; sys.version '3.8.5 (default, Aug 12 2020, 00:00:00) \n[GCC 10.2.1 20200723 (Red Hat 10.2.1-1)]' -- nosy: +vstinner ___ Python tracker

[issue41809] finding file attributes in Windows seems to fail

2020-09-18 Thread musiquegraeme
New submission from musiquegraeme : When I try this in shell os.stat('MyFile2.iso').st_file_attributes I get a value - 32 When I try this in IDLE print (os.stat('MyFile2.iso').st_file_attributes) I get the error message. AttributeError: 'os.stat_result' object has no attribute