Python module 'os' has no attribute 'mknod' -


i want create new file in python using mknod command, getting error as:

os.mknod(); attributeerror: module 'os' has no attribute 'mknod' 

i using windows , attributes other 'mknod' working.

os offers functionality closely related os you're using. if other attributes can accessed os (meaning haven't got os.py file in current dir masking standard module) attributeerror 99% signal unsupported function on operating system.

this case os.mknod on windows. creating named pipes in windows has, far can understand, very different semantics.

either way, if trying use mknod create named pipes you'd better using mkfifo() (again, unix supported) . if you're using create ordinary files, don't, use open() portable.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -