Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
CountHackulus
on Oct 25, 2011
|
parent
|
context
|
favorite
| on:
A Python Optimization Anecdote
Sure, that works for ASCII and UTF-8, but what if I'm on an IBM System Z machine? Then everything's in EBCDIC, and that's just a nightmare.
ori_b
on Oct 25, 2011
|
next
[–]
Then you read in ASCII or UTF-8, and don't do your I/O in EBCDIC. Also, you run Z/Linux.
maximilianburke
on Oct 25, 2011
|
prev
[–]
Then you write your own optimization for that case -- for most people assuming that 0-9, A-Z, and a-z will work just fine. Chances are slim that you're running on a system using EBCDIC without knowing it.
beej71
on Oct 25, 2011
|
parent
[–]
Or, as was said, use ctypes.h, which is the Right Thing.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: