[Python-Dev] adding a bytes sequence type to Python (original) (raw)
Guido van Rossum guido at python.org
Thu Aug 12 22:56:07 CEST 2004
- Previous message: [Python-Dev] adding a bytes sequence type to Python
- Next message: [Python-Dev] adding a bytes sequence type to Python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Wouldn't the compiler be able to tell it was to be treated specially if it saw b"GET"? In that case, the code generated for
x = b"GET" would be something like LOADCONST "GET" LOADNAME bytes CALLFUNCTION 1 STOREFAST x
This is actually an illustration of what I meant: a performance-aware person might want to move that CALL_FUNCTION out of an inner loop if they knew the result was never modified inside the loop.
--Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] adding a bytes sequence type to Python
- Next message: [Python-Dev] adding a bytes sequence type to Python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]