Posts: 4,648
Threads: 1,495
Joined: Sep 2016
the library reference manual shows for
open() that the keyword argument
buffering= has a default value of
-1. it does not explain what that means or does. is it a default indicator like None usually is?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,648
Threads: 1,495
Joined: Sep 2016
then, what is the point of there being that document if the source can be used? i think Python would not be as popular as it is if everyone needed to read the source to know how it all worked? source is good, but not for this.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,648
Threads: 1,495
Joined: Sep 2016
back when i coded in C, -
1
was often used as "assume nothing" value, even where i could have done that with 0. getting an answer to "why?" probably does need to go to source. a useful document would be "
Python Tricks and Hints". it would tell programs a lot of ways to make things work, including telling when using
-1
or
-1.0
works out better than
None
. i'm curious, but not urgently so. i'll probably look at the source next year.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.