osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Python 3.2 has some deadly infection


Steven D'Aprano <steve+comp.lang.python at pearwood.info>:

> In any case, I reject your premise. ALL data types are constructed on
> top of bytes,

Only in a very dull sense.

> and so long as you allow applications *any way* to coerce data types
> to different data types, you allow them to see "inside the black box".

I can't see the bytes inside Python objects, including strings, and
that's how it is supposed to be.

Similarly, I can't (easily) see how files are laid out on hard disks.
That's a true abstraction. Nothing in linux presents data, though,
except through bytes.


Marko