Changes by Tim Golden m...@timgolden.me.uk:
--
nosy: -tim.golden
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue949667
___
___
Python-bugs-list
STINNER Victor added the comment:
There is a real need of non-blocking operation, but I now think that adding a
set_blocking() method is not the right solution. First, as said by
Charles-Francois: O_NONBLOCK flag has no effect on regular files. Second, there
is no portable way to declare a
Antoine Pitrou added the comment:
There is a real need of non-blocking operation, but I now think that
adding a set_blocking() method is not the right solution. First, as
said by Charles-Francois: O_NONBLOCK flag has no effect on regular
files. Second, there is no portable way to declare a
Changes by Christian Heimes li...@cheimes.de:
--
nosy: +christian.heimes
versions: +Python 3.4 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue949667
___
STINNER Victor added the comment:
See the PEP 466 which proposes to add a new os.set_blocking() function on UNIX,
and blocking parameter to socket constructor.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue949667
Charles-François Natali added the comment:
I'm not sure that a setblocking() method to fileobjects would make much sense,
since non-blocking IO doesn't work with regular files (only pipes, sockets...).
--
nosy: +neologix
___
Python tracker
STINNER Victor victor.stin...@haypocalc.com added the comment:
Prototype to test nonblocking file objet:
- add getblocking() and setblocking() methods to _io._FileIO and all _pyio
classes
- fileio_setblocking() is implemented using fcntl(fd, F_SETFL, flags |
O_NONBLOCK) (POSIX only?)
-
Changes by STINNER Victor victor.stin...@haypocalc.com:
Added file: http://bugs.python.org/file19385/test_process.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue949667
___
Changes by Antoine Pitrou pit...@free.fr:
--
stage: unit test needed - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue949667
___
___
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Any clue on where to start to do this?
What about Windows where fcntl is not available?
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue949667
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
components: +IO
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue949667
___
___
Python-bugs-list
Tim Golden m...@timgolden.me.uk added the comment:
There are at least two ways to do non-blocking file IO on Windows:
Overlapped I/O
I/O Completion ports
Don't know what's best here, but happy to see what might be achieved
if it was thought worth pursuing.
--
nosy: +tim.golden
Changes by Brian Curtin cur...@acm.org:
--
nosy: +brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue949667
___
___
Python-bugs-list
Changes by Terry J. Reedy tjre...@udel.edu:
--
stage: - unit test needed
versions: +Python 3.2 -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue949667
___
Changes by Antoine Pitrou pit...@free.fr:
--
title: file write() method and non-blocking mode. - setblocking() method on
file objects
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue949667
15 matches
Mail list logo