[Tutor] ifdef in python

2009-10-21 Thread Lizhi Yang
Is there anything similar to ifdef statement in C or C++ in python? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Detect duplicate object names

2009-10-21 Thread Lizhi Yang
Hi, When I define functions in a Module, how to avoid override the name of existing functions? For example: define func1(): define func2(): define func1(): Is there anyway to pop up the warnings? ___ Tutor maillist - Tutor@python.org To unsubscribe o

[Tutor] Wrapper of C++

2009-10-08 Thread Lizhi Yang
Since the memory usage for saving huge data using python is not efficent at all(12 bytes per int). if I want to implement algorithms and load the huge amount of data using C++, but using Python as the glue language to implement other functionality such as Gui and txt processing, you think Boost.pyt

[Tutor] Memory usage (Lizhi Yang)

2009-10-08 Thread Lizhi Yang
question: Lizhi Yang wrote: > Confused. If I create some functions using C++ to load the data into > memory and use python to call those functions, what is the memory > usage then? First (obvious) question: how do you call those functions? Do you use ctypes? Cython? Some other way? Pr

[Tutor] Memory usage

2009-10-07 Thread Lizhi Yang
Hi, Confused. If I create some functions using C++ to load the data into memory and use python to call those functions, what is the memory usage then? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.pytho