Dennis Lee Bieber wrote:
On Fri, 21 Aug 2009 16:52:29 -0700 (PDT), James Harris
<james.harri...@googlemail.com> declaimed the following in
gmane.comp.python.general:

So you are saying that Smalltalk has <base in decimal>r<number> where
r is presumably for radix? That's maybe best of all. It preserves the
syntactic requirement of starting a number with a digit and seems to
have greatest flexibility. Not sure how good it looks but it's
certainly not bad.

  0xff & 0x0e | 0b1101
  16rff & 16r0e | 2r1101

Hmm. Maybe a symbol would be better than a letter.

        Or Ada's        16#FF#, 8#377#...

'#' starts a comment, so that's right out! :-)

        I forget if DEC/VMS FORTRAN or Xerox Sigma FORTRAN used x'FF' or
'FF'x, and o'377' or '377'o

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to