From: Iñaki Baz Castillo on 7 Jan 2010 09:41 Hi, the rdoc says that "w+" means: "w+": Read-write, truncates existing file to zero length or creates a new file for reading and writing. however in a post I've read: output = open("my_pipe", "w+") # the w+ means we don't block Is it true? AFAIK it's not correct as you open a IO and later use bocking or non-blocking methods. Do I miss something? Thanks. -- Iñaki Baz Castillo <ibc(a)aliax.net>
From: Robert Klemme on 7 Jan 2010 12:34 On 01/07/2010 03:41 PM, Iñaki Baz Castillo wrote: > Hi, the rdoc says that "w+" means: > > "w+": Read-write, truncates existing file to zero length or creates a > new file for reading and writing. > > however in a post I've read: > > output = open("my_pipe", "w+") # the w+ means we don't block > > Is it true? AFAIK it's not correct as you open a IO and later use bocking or > non-blocking methods. Do I miss something? No. RI is RIght. ;-) Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/
|
Pages: 1 Prev: nanoc 3.0.3 Next: Ruby editing style rules and recommendation? |