STINNER Victor added the comment:
> fcntl.__file__ returns "fcntl.py". The file is located under site-packages.
Ok, it's not a bug in Python, but in your local setup. Rename this file to
fcntl.py.old, it should fix your issue.
--
resolution: -> not a bug
status: open -> closed
Hassan El Karouni added the comment:
fcntl.__file__ returns "fcntl.py". The file is located under site-packages.
The contents of the file are:
def fcntl(fd, op, arg=0):
return 0
def ioctl(fd, op, arg=0, mutable_flag=True):
if mutable_flag:
return 0
else:
ret
STINNER Victor added the comment:
Hi, do you have a file called fcntl.py in your project?
Try:
>>> import fcntl
>>> fcntl.__file__
'/usr/lib64/python2.7/lib-dynload/fcntlmodule.so'
This module should be available on Windows.
--
nosy: +haypo
___
Pyt
New submission from Hassan El Karouni:
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tempfile
>>> tempfile.mkstemp()
Traceback (most recent call last):
File "", line 1, in