Guilherme Polo wrote:
On 10/29/08, Stef Mientki <st**********@gmail.comwrote:
>hello,
Why gives "k = 09" a syntax error ?
09 is not a valid octal number. Instead use 011.
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.
thanks guys,
I didn't realize there were still people using octal notation ;-)
cheers,
Stef 5 1644
On Oct 29, 2:44*pm, Stef Mientki <stef.mien...@gmail.comwrote:
Guilherme Polo wrote:
On 10/29/08, Stef Mientki <stef.mien...@gmail.comwrote:
hello,
*Why gives "k = 09" *a syntax error ?
09 is not a valid octal number. Instead use 011.
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.
thanks guys,
I didn't realize there were still people using octal notation ;-)
Windows users don't have much need for it, but it's still
popular with the 'Nix crowd.
>
cheers,
Stef
In article <67**********************************@34g2000hsh.g ooglegroups.com>,
Mensanator <me********@aol.comwrote:
>On Oct 29, 2:44*pm, Stef Mientki <stef.mien...@gmail.comwrote:
>Guilherme Polo wrote:
On 10/29/08, Stef Mientki <stef.mien...@gmail.comwrote:
>hello,
>*Why gives "k = 09" *a syntax error ?
09 is not a valid octal number. Instead use 011.
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.
thanks guys, I didn't realize there were still people using octal notation ;-)
Windows users don't have much need for it, but it's still popular with the 'Nix crowd.
On Oct 29, 4:17�pm, cla...@lairds.us (Cameron Laird) wrote:
In article <6772c5db-cdcc-4f79-9a24-1da8e849c...@34g2000hsh.googlegroups.com>,
Mensanator �<mensana...@aol.comwrote:
On Oct 29, 2:44�pm, Stef Mientki <stef.mien...@gmail.comwrote:
Guilherme Polo wrote:
On 10/29/08, Stef Mientki <stef.mien...@gmail.comwrote:
hello,
�Why gives "k = 09" �a syntax error ?
09 is not a valid octal number. Instead use 011.
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.
thanks guys,
I didn't realize there were still people using octal notation ;-)
Windows users don't have much need for it, but it's still
popular with the 'Nix crowd.
� � � � � � � � � � � � .
� � � � � � � � � � � � .
� � � � � � � � � � � � .
I contest that; my observation is that it's entirely an artifact
of legacy software,
Really? Don't they still use octal for this stuff?
$ ls -l
total 1717
-r-xr-x---+ 1 mensanator Users 57 Mar 29 2008 Cygwin.bat
-r-xr-x---+ 1 mensanator Users 7022 Mar 29 2008 Cygwin.ico
d---------+ 5 mensanator None 0 Apr 21 2008 Seed7
-rwxr-xr-x 1 mensanator None 15870 Apr 11 2008 a.exe
|
This would be 0755, wouldn't it? You certainly wouldn't want
to try to figure out the decimal equivalent.
? and regarded as no better than a distraction
by even the most narrow human 'Nixers,
Appears necessary to me.
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 meant popular as in ubiquitous, not that I imagined there was
anybody who liked to use it.
I agree with you that
Unix people are at least more likely to recognize the 0-prefix.
Cameron Laird wrote:
In article <67**********************************@34g2000hsh.g ooglegroups.com>,
Mensanator <me********@aol.comwrote:
>On Oct 29, 2:44 pm, Stef Mientki <stef.mien...@gmail.comwrote:
>>Guilherme Polo wrote: On 10/29/08, Stef Mientki <stef.mien...@gmail.comwrote: hello, Why gives "k = 09" a syntax error ? 09 is not a valid octal number. Instead use 011. 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. thanks guys, I didn't realize there were still people using octal notation ;-)
Windows users don't have much need for it, but it's still 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.
They are also more likely to write
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/
Mensanator wrote:
On Oct 29, 4:17�pm, cla...@lairds.us (Cameron Laird) wrote:
>I contest that; my observation is that it's entirely an artifact of legacy software,
Really? Don't they still use octal for this stuff?
$ ls -l
total 1717
-r-xr-x---+ 1 mensanator Users 57 Mar 29 2008 Cygwin.bat
-r-xr-x---+ 1 mensanator Users 7022 Mar 29 2008 Cygwin.ico
d---------+ 5 mensanator None 0 Apr 21 2008 Seed7
-rwxr-xr-x 1 mensanator None 15870 Apr 11 2008 a.exe
|
This would be 0755, wouldn't it? You certainly wouldn't want
to try to figure out the decimal equivalent.
There was a suggestion to dump octal literals. The above is why they
were not. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: eje |
last post by:
IsNumeric(value) should return false if value "can not be
successfully converted to a Double." Instead I get the
following error message: "Input string was not in a
correct format."
I use the...
|
by: vips |
last post by:
Page_Load
datagrid1.datasource=dataset1
//I am filling the datagrid and it works fine when page is displayed
end
---------------
|
by: Pixie |
last post by:
We are successfully getting a handle to a drive using createfile then using that handle to query the change journal using DeviceIOControl with the paramter FSCTL_QUERY_USN_DATA. However when we try...
|
by: arnuld |
last post by:
in C++ Primer 4/3 Lippman says in chapter 3, section 3.3.1:
vector<stringsvec(10);
// 10 elements, each an empty string
here is the the code output & output from my Debian box running "gcc...
|
by: rukkie |
last post by:
Hi,
I have some problems with a PHP reference in a <SCRIPTtag, but only
with the Internet Explorer, which gives a "Error on page" message in
the Status Bar.
The code is as follows :
<script>...
| |
by: mohammadazim |
last post by:
Hi guys I wrote a socket program in c++ and used blocking system call read () for receiving data on socket. But it gives following error while compilation
g++ -Wall -g -I`pwd`/../include...
|
by: ranesmitas |
last post by:
Hi ,I am using Visual Basic Backend SQL
I create form in which i create Command button
NEW ,MODIFY, VIEW,SAVE,EXIT
all my programme is running but when i add new record and save and then
i...
|
by: Stef Mientki |
last post by:
hello,
Why gives "k = 09" a syntax error ?
thanks,
Stef Mientki
|
by: Guilherme Polo |
last post by:
On 10/29/08, Stef Mientki <stef.mientki@gmail.comwrote:
09 is not a valid octal number. Instead use 011.
Ok, I guess you were not aware that prefixing a number with a '0'
would cause python to...
|
by: Terry Reedy |
last post by:
Stef Mientki wrote:
You have gotten the 2.x answer. In 3.0, 0b,0o,0x prefixes are valid and
required for binary, octal, and hexadecimal literals. 0digits is invalid.
tjr
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |