Message279415
I have a small problem with python 3.5.2 64bit on win7 64 bit:
I cannot check if an object is of type DirEntry
(os.DirEntry or nt.DirEntry).
Did I misunderstand something or what is wrong?
Here is a log of my console:
-----------------------------------------
In [63]: sd = os.scandir(".")
In [64]: de = next(sd)
In [65]: type(de)
Out[65]: nt.DirEntry
In [66]: import nt
In [67]: nt.DirEntry
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-67-bb02e8263344> in <module>()
----> 1 nt.DirEntry
AttributeError: module 'nt' has no attribute 'DirEntry'
In [68]: os.DirEntry
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-68-5aa7495652fa> in <module>()
----> 1 os.DirEntry
AttributeError: module 'os' has no attribute 'DirEntry'
In [69]:
------------------------------------------ |
|
Date |
User |
Action |
Args |
2016-10-25 15:46:16 | stephan | set | recipients:
+ stephan |
2016-10-25 15:46:16 | stephan | set | messageid: <1477410376.41.0.315236150527.issue28530@psf.upfronthosting.co.za> |
2016-10-25 15:46:16 | stephan | link | issue28530 messages |
2016-10-25 15:46:16 | stephan | create | |
|