Proposal: Decimal literals in Python.

Tim Chase python.list at tim.thechases.com
Sat Oct 27 20:28:02 CEST 2007


>> Even clearer is not to allow octal literals :) Is there *any* use for
>> them?
> 
> The mode argument to os.chmod.

You mean instead of

  import this
  os.chmod(filename, os.R_OK | os.W_OK | os.X_OK)

which explicitly (rather than implicitly) spells it out?

-tkc






More information about the Python-list mailing list