Skip to main content
added 7 characters in body
Source Link

When there are two modules in the standard lib with the same name, what often has happened is that the original module was written in Python. That's because it is a lot easier to prototype and get it working quickly than in lower-level languages.

Later, once a reasonable design has been found and bugs fixed etc, performance may become a focus. It's a good time to write the slow parts in Cython or the C API and speed them up through compilation to machine code. Typically the additions are placed in a _module.so or a DLL and imported from within the original module.py.

This avoids the work of writingprototyping/writing the entire thing in the C API, which is relativelyquite tedious.

When there are two modules in the standard lib with the same name, what often has happened is that the original module was written in Python. That's because it is a lot easier to prototype and get it working quickly than in lower-level languages.

Later, once a reasonable design has been found and bugs fixed etc, performance may become a focus. It's a good time to write the slow parts in Cython or the C API and speed them up through compilation to machine code. Typically the additions are placed in _module.so or a DLL and imported from within the original module.py.

This avoids the work of writing the entire thing in the C API, which is relatively tedious.

When there are two modules in the standard lib with the same name, what often has happened is that the original module was written in Python. That's because it is a lot easier to prototype and get it working quickly than in lower-level languages.

Later, once a reasonable design has been found and bugs fixed etc, performance may become a focus. It's a good time to write the slow parts in Cython or the C API and speed them up through compilation to machine code. Typically the additions are placed in a _module.so or DLL and imported from within the original module.py.

This avoids the work of prototyping/writing the entire thing in the C API, which is quite tedious.

added 50 characters in body
Source Link

When there are two modules in the standard lib with the same name, what often has happened is that the original module was written in Python. That's because it is a lot easier to prototype and get it working quickly than in lower-level languages.

Later, once a reasonable design has been found and bugs fixed etc, performance may become a focus. It's a good time to write the slow parts in Cython or the C API toand speed them up through compilation to machine code. Typically the additions are placed in _module.so or a DLL and loadedimported from within the original module.py.

This avoids the work of writing the entire thing in the C API, which is relatively tedious.

When there are two modules in the standard lib with the same name, what often has happened is that the original module was written in Python. That's because it is a lot easier to prototype and get it working quickly.

Later, once a reasonable design has been found and bugs fixed etc, performance may become a focus. It's a good time to write the slow parts in Cython or C API to speed them up. Typically the additions are placed in _module.so and loaded from within the original module.py.

This avoids the work of writing the entire thing in the C API, which is relatively tedious.

When there are two modules in the standard lib with the same name, what often has happened is that the original module was written in Python. That's because it is a lot easier to prototype and get it working quickly than in lower-level languages.

Later, once a reasonable design has been found and bugs fixed etc, performance may become a focus. It's a good time to write the slow parts in Cython or the C API and speed them up through compilation to machine code. Typically the additions are placed in _module.so or a DLL and imported from within the original module.py.

This avoids the work of writing the entire thing in the C API, which is relatively tedious.

Source Link

When there are two modules in the standard lib with the same name, what often has happened is that the original module was written in Python. That's because it is a lot easier to prototype and get it working quickly.

Later, once a reasonable design has been found and bugs fixed etc, performance may become a focus. It's a good time to write the slow parts in Cython or C API to speed them up. Typically the additions are placed in _module.so and loaded from within the original module.py.

This avoids the work of writing the entire thing in the C API, which is relatively tedious.