Is this a true statement?
Andrew Dalke
dalke at acm.org
Tue Jun 26 17:02:13 EDT 2001
More information about the Python-list mailing list
Tue Jun 26 17:02:13 EDT 2001
- Previous message (by thread): Is this a true statement?
- Next message (by thread): Is this a true statement?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Tim Daneliuk wrote:
>What prevents me from writing out a byte string from Python which is a set
>of primitives for accessing the SM hardware and then building up higher
>level Python interfaces from these primitives?
Nothing. But it wouldn't be Pythonic -- you would no longer
be using Python.
What's to prevent you from doing something like
import c_compile
func = c_compile.function(params = ("i", "j"),
defaults = {"j": 10},
returns = types.IntegerType,
code = """
return i + j;
""")
>>> func(i = 3)
13
>>>
Again, nothing. But few would say this should be considered
a Python program.
Whereas in C++ using special per-class allocators is very
C++-ic.
Andrew
- Previous message (by thread): Is this a true statement?
- Next message (by thread): Is this a true statement?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list