weird problem with os.chmod

"Martin v. Löwis" martin at v.loewis.de
Fri Nov 11 20:15:29 EST 2005


James Colannino wrote:
> 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?

Try this:

http://docs.python.org/lib/built-in-funcs.html#l2h-39

Regards,
Martin



More information about the Python-list mailing list