[issue949667] setblocking() method on file objects

2013-10-24 Thread Tim Golden
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

[issue949667] setblocking() method on file objects

2013-10-24 Thread STINNER Victor
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

[issue949667] setblocking() method on file objects

2013-10-24 Thread Antoine Pitrou
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

[issue949667] setblocking() method on file objects

2013-07-07 Thread Christian Heimes
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 ___

[issue949667] setblocking() method on file objects

2013-07-07 Thread STINNER Victor
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

[issue949667] setblocking() method on file objects

2012-12-26 Thread Charles-François Natali
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

[issue949667] setblocking() method on file objects

2010-10-27 Thread STINNER Victor
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?) -

[issue949667] setblocking() method on file objects

2010-10-27 Thread STINNER Victor
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 ___

[issue949667] setblocking() method on file objects

2010-08-09 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: unit test needed - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue949667 ___ ___

[issue949667] setblocking() method on file objects

2010-08-09 Thread Giampaolo Rodola'
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

[issue949667] setblocking() method on file objects

2010-08-09 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- components: +IO ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue949667 ___ ___ Python-bugs-list

[issue949667] setblocking() method on file objects

2010-08-09 Thread Tim Golden
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

[issue949667] setblocking() method on file objects

2010-08-09 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue949667 ___ ___ Python-bugs-list

[issue949667] setblocking() method on file objects

2010-08-08 Thread Terry J. Reedy
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 ___

[issue949667] setblocking() method on file objects

2009-02-19 Thread Antoine Pitrou
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