|
|
Subscribe / Log in / New account

The Grumpy Editor's Python 3 experience

The Grumpy Editor's Python 3 experience

Posted Aug 2, 2018 16:22 UTC (Thu) by MatyasSelmeci (guest, #86151)
In reply to: The Grumpy Editor's Python 3 experience by lsl
Parent article: The Grumpy Editor's Python 3 experience

This makes me wonder, is there _any_ use these days for octal at all, other than Unix file permissions? (And the COBOL software on the 3270 in the basement that everybody's too afraid to touch because it runs payroll (just kidding... I hope))

When wrote code that I wanted to make compatible with both Python 3 and Python 2.4 (which did not support the 0o syntax), I had to write "int('0755', 8)".


to post comments

The Grumpy Editor's Python 3 experience

Posted Aug 2, 2018 16:46 UTC (Thu) by jwilk (subscriber, #63328) [Link]

POSIX printf(1) supports octal escapes (\377), but not hex escapes (\xFF).


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds