Re: Why gives "k = 09" a syntax error ?
- From: Steve Holden <steve@xxxxxxxxxxxxx>
- Date: Thu, 30 Oct 2008 00:44:11 -0400
Cameron Laird wrote:
In article <6772c5db-cdcc-4f79-9a24-1da8e849c870@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,They are also more likely to write
Mensanator <mensanator@xxxxxxx> wrote:
On Oct 29, 2:44 pm, Stef Mientki <stef.mien...@xxxxxxxxx> wrote:.
Guilherme Polo wrote:Windows users don't have much need for it, but it's still
On 10/29/08, Stef Mientki <stef.mien...@xxxxxxxxx> wrote:thanks guys,
hello,09 is not a valid octal number. Instead use 011.
Why gives "k = 09" a syntax error ?
Ok, I guess you were not aware that prefixing a number with a '0'
would cause python to parse it as an octal and now you know.
I didn't realize there were still people using octal notation ;-)
popular with the 'Nix crowd.
.
.
I contest that; my observation is that it's entirely an artifact
of legacy software, and regarded as no better than a distraction
by even the most narrow human 'Nixers, or the hardware types who
might at one time have found octal natural. My own origins were
in hardware, Unix, and other DEC OSs, so I consider myself as
likely as anyone to think in octal--and I rarely do.
While I can't accept the "popular" part, I agree with you that
Unix people are at least more likely to recognize the 0-prefix.
chmod 330 file
than
chmod ug=rw file
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
.
- References:
- Re: Why gives "k = 09" a syntax error ?
- From: Stef Mientki
- Re: Why gives "k = 09" a syntax error ?
- From: Mensanator
- Re: Why gives "k = 09" a syntax error ?
- From: Cameron Laird
- Re: Why gives "k = 09" a syntax error ?
- Prev by Date: Re: Why gives "k = 09" a syntax error ?
- Next by Date: Re: Finding the instance reference of an object
- Previous by thread: Re: Why gives "k = 09" a syntax error ?
- Next by thread: Dot operator magic has me stymied...
- Index(es):
Relevant Pages
|