Author stephan
Recipients stephan
Date 2016-10-25.15:46:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1477410376.41.0.315236150527.issue28530@psf.upfronthosting.co.za>
In-reply-to
Content
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]:

------------------------------------------
History
Date User Action Args
2016-10-25 15:46:16stephansetrecipients: + stephan
2016-10-25 15:46:16stephansetmessageid: <1477410376.41.0.315236150527.issue28530@psf.upfronthosting.co.za>
2016-10-25 15:46:16stephanlinkissue28530 messages
2016-10-25 15:46:16stephancreate