Python for Scientists and Engineers

Python for Scientists and Engineers is now free to read online. The table of contents is below, but please read this important info before. Python for Scientists and Engineers was the first book I … Read more

Similar

Python Circular Imports

What is a Circular Dependency? A circular dependency occurs when two or more modules depend on each other. This is due to the fact that each module is defined in terms of the other (See Figure 1). For example: functionA(): functionB() And functionB(... (more…)

Read more »

Be Careful with Python’s New-Style String Format

This should have been obvious to me for a longer time, but until earlier today I did not really realize the severity of the issues caused by str.format on untrusted user input. It came up as a way to bypass the Jinja2 Sandbox in a way that would permit r...

Read more »