Re: Octal notation: severe deprecation

2005-01-14 Thread Bengt Richter
On Fri, 14 Jan 2005 20:13:48 +0100, Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote: >Bengt Richter wrote: >> On Thu, 13 Jan 2005 08:18:25 -0500, Peter Hansen <[EMAIL PROTECTED]> wrote: >> >>>[EMAIL PROTECTED] wrote: In Mythical Future Python I would like to be able to use any base in in

Re: Octal notation: severe deprecation

2005-01-14 Thread JCM
[EMAIL PROTECTED] wrote: ... > In Mythical Future Python I would like to be able to use any base in > integer literals, which would be better. Example random syntax: > flags= 2x00011010101001 > umask= 8x664 > answer= 10x42 > addr= 16x0E84 # 16x == 0x > gunk= 36x8H6Z9A0X I'd prefer using the

Re: Octal notation: severe deprecation

2005-01-14 Thread Reinhold Birkenfeld
Bengt Richter wrote: > On Thu, 13 Jan 2005 08:18:25 -0500, Peter Hansen <[EMAIL PROTECTED]> wrote: > >>[EMAIL PROTECTED] wrote: >>> In Mythical Future Python I would like to be able to use any base in >>> integer literals, which would be better. Example random syntax: >>> >>> flags= 2x00011010101

Re: Octal notation: severe deprecation

2005-01-14 Thread Reinhold Birkenfeld
Simon Brunning wrote: > On Thu, 13 Jan 2005 16:50:56 -0500, Leif K-Brooks <[EMAIL PROTECTED]> wrote: >> Tim Roberts wrote: >> > Stephen Thorne <[EMAIL PROTECTED]> wrote: >> > >> >>I would actually like to see pychecker pick up conceptual errors like this: >> >> >> >>import datetime >> >>datetime.da

Re: Octal notation: severe deprecation

2005-01-14 Thread Simon Brunning
On Thu, 13 Jan 2005 16:50:56 -0500, Leif K-Brooks <[EMAIL PROTECTED]> wrote: > Tim Roberts wrote: > > Stephen Thorne <[EMAIL PROTECTED]> wrote: > > > >>I would actually like to see pychecker pick up conceptual errors like this: > >> > >>import datetime > >>datetime.datetime(2005, 04,04) > > > > > >

Re: Octal notation: severe deprecation

2005-01-13 Thread Bengt Richter
On Thu, 13 Jan 2005 17:43:01 -0600, Jeff Epler <[EMAIL PROTECTED]> wrote: > >--LQksG6bCIzRHxTLp >Content-Type: text/plain; charset=us-ascii >Content-Disposition: inline >Content-Transfer-Encoding: quoted-printable > >On Thu, Jan 13, 2005 at 11:04:21PM +, Bengt Richter wrote: >> One way to do i

Re: Octal notation: severe deprecation

2005-01-13 Thread Jeff Epler
On Thu, Jan 13, 2005 at 11:04:21PM +, Bengt Richter wrote: > One way to do it consistently is to have a sign digit as the first > digit after the x, which is either 0 or base-1 -- e.g., +3 and -3 would be > > 2x011 2x101 > 8x03 8x75 > 16x03 16xfd > 10x03 10x97 ... so that 0x8

Re: Octal notation: severe deprecation

2005-01-13 Thread Bengt Richter
On Thu, 13 Jan 2005 08:18:25 -0500, Peter Hansen <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] wrote: >> In Mythical Future Python I would like to be able to use any base in >> integer literals, which would be better. Example random syntax: >> >> flags= 2x00011010101001 >> umask= 8x664 >> answer=

Re: Octal notation: severe deprecation

2005-01-13 Thread Leif K-Brooks
Tim Roberts wrote: Stephen Thorne <[EMAIL PROTECTED]> wrote: I would actually like to see pychecker pick up conceptual errors like this: import datetime datetime.datetime(2005, 04,04) Why is that a conceptual error? Syntactically, this could be a valid call to a function. Even if you have parsed

Re: Octal notation: severe deprecation

2005-01-13 Thread Dan Sommers
On Thu, 13 Jan 2005 09:56:15 -0500, Steve Holden <[EMAIL PROTECTED]> wrote: > I remember using a langauge (Icon?) in which arbitrary bases up to 36 > could be used with numeric literals. IIRC, the literals had to begin > with the base in decimnal, folowed by a "b" followed by the digits of > the v

Re: Octal notation: severe deprecation

2005-01-13 Thread Steve Holden
[EMAIL PROTECTED] wrote: John Machin wrote: I regard continued usage of octal as a pox and a pestilence. Quite agree. I was disappointed that it ever made it into Python. Octal's only use is: a) umasks b) confusing the hell out of normal non-programmers for whom a leading zero is in no way magic

Re: Octal notation: severe deprecation

2005-01-13 Thread phil_nospam_schmidt
Peter Hansen wrote: > [EMAIL PROTECTED] wrote: > > In Mythical Future Python I would like to be able to use any base in > > integer literals, which would be better. Example random syntax: > > > > flags= 2x00011010101001 > > umask= 8x664 > > answer= 10x42 > > addr= 16x0E84 # 16x == 0x > > gunk=

Re: Octal notation: severe deprecation

2005-01-13 Thread Peter Hansen
[EMAIL PROTECTED] wrote: In Mythical Future Python I would like to be able to use any base in integer literals, which would be better. Example random syntax: flags= 2x00011010101001 umask= 8x664 answer= 10x42 addr= 16x0E84 # 16x == 0x gunk= 36x8H6Z9A0X I think I kinda like this idea. Allowing

Re: Octal notation: severe deprecation

2005-01-13 Thread Tim Roberts
Stephen Thorne <[EMAIL PROTECTED]> wrote: >On 12 Jan 2005 16:21:29 -0800, PJDM <[EMAIL PROTECTED]> wrote: >> Maybe P3K will have an integer literal like "n_b" for "the integer n in >> base b". > >I would actually like to see pychecker pick up conceptual errors like this: > >import datetime >dateti

Re: Octal notation: severe deprecation

2005-01-12 Thread and-google
John Machin wrote: > I regard continued usage of octal as a pox and a pestilence. Quite agree. I was disappointed that it ever made it into Python. Octal's only use is: a) umasks b) confusing the hell out of normal non-programmers for whom a leading zero is in no way magic (a) does not outweig

Re: Octal notation: severe deprecation

2005-01-12 Thread Stephen Thorne
On 12 Jan 2005 16:21:29 -0800, PJDM <[EMAIL PROTECTED]> wrote: > Maybe P3K will have an integer literal like "n_b" for "the integer n in > base b". I would actually like to see pychecker pick up conceptual errors like this: import datetime datetime.datetime(2005, 04,04) Regards, Stephen Thorne -

Re: Octal notation: severe deprecation

2005-01-12 Thread PJDM
John Machin wrote: > > 1. Octal notation is of use to systems programmers on computers where > the number of bits in a word is a multiple of 3. Are there any still in > production use? AFAIK word sizes were 12, 24, 36, 48, and 60 bits -- > all multiples of 4, so hexadecimal could be used. The PDP-

Octal notation: severe deprecation

2005-01-11 Thread John Machin
Some poster wrote (in connexion with another topic): > ... unicode("\347", "iso-8859-1") ... Well, I haven't had a good rant for quite a while, so here goes: I'm a bit of a retro specimen, being able (inter alia) to recall octal opcodes from the ICT 1900 series (070=call, 072=exit, 074=branch, .