¡@

Home 

python Programming Glossary: pragma

Compiling python modules whith DEBUG defined on MSVC

http://stackoverflow.com/questions/1236060/compiling-python-modules-whith-debug-defined-on-msvc

whith DEBUG defined on MSVC Python rather stupidly has a pragma directive in its include files that forces a link against python26_d.lib.. complaints about inconsistent DLL linkage. If I change the pragma in pythons include file I get undefined references to various..

How to tell distutils to use gcc?

http://stackoverflow.com/questions/16737260/how-to-tell-distutils-to-use-gcc

compilation ' fopenmp' Parallel.cpp 24 10 warning unknown pragma ignored Wunknown pragmas #pragma omp parallel for ^ 1 warning.. Parallel.cpp 24 10 warning unknown pragma ignored Wunknown pragmas #pragma omp parallel for ^ 1 warning generated. c bundle undefined.. 24 10 warning unknown pragma ignored Wunknown pragmas #pragma omp parallel for ^ 1 warning generated. c bundle undefined..

Return a list of imported Python modules used in a script?

http://stackoverflow.com/questions/2572582/return-a-list-of-imported-python-modules-used-in-a-script

node.level self.recent.append mod def default self node pragma None if self.recent if isinstance node Discard children node.getChildren.. 1 and isinstance children 0 Const const_node children 0 pragma const_node.value self.accept_imports pragma def accept_imports.. children 0 pragma const_node.value self.accept_imports pragma def accept_imports self pragma None self.modules.extend m r..

Why aren't my sqlite3 foreign keys working?

http://stackoverflow.com/questions/3296040/why-arent-my-sqlite3-foreign-keys-working

conn sqlite3.connect test.db conn.executescript ... pragma foreign_keys on ... begin transaction ... create table t1 i..

Is there a need for a “use strict” Python compiler?

http://stackoverflow.com/questions/613364/is-there-a-need-for-a-use-strict-python-compiler

require use strict like constraints you could use a pseudo pragma similar to use strict that would be ignored by the normal interpreter...

SQLite Performance Benchmark — why is :memory: so slow…only 1.5X as fast as disk?

http://stackoverflow.com/questions/764710/sqlite-performance-benchmark-why-is-memory-so-slow-only-1-5x-as-fast-as-d

realistic performance of disk e.g. because the cache_size pragma is too big or because I'm not doing writes . I'll mess around..