weird problem with os.chmod
James Colannino
james at colannino.org
Fri Nov 11 19:53:40 EST 2005
James Colannino wrote:
>So then I entered the command print 0600, and saw that the
>actual number being output was 384 (why would it output 384?!)
>
>
Ok, so further research revealed that 0600 is actually the octal
representation for 384 (which makes sense.) So then, I guess my
question would have to be, is there a way for me to make Python aware
that the 0600 I'm passing to int() is octal and not decimal so that I
will get 384 instead of 600?
James
--
My blog: http://www.crazydrclaw.com/
My homepage: http://james.colannino.org/
"A well regulated militia being necessary to the security of a free
state, THE RIGHT of the people to keep and bear arms SHALL NOT BE
INFRINGED." --United States Constitution, Second Ammendment
More information about the Python-list
mailing list