Skip to content Skip to sidebar Skip to footer
Showing posts with the label Python Internals

How Does Cpython Determine Whether A User Supplied An Optional Argument?

I started wondering how CPython can tell the difference between None as a default argument and None… Read more How Does Cpython Determine Whether A User Supplied An Optional Argument?

Handling Map Function In Python2 & Python3

Recently i came across a question & confused with a possible solution, code part is // code p… Read more Handling Map Function In Python2 & Python3

Python 3.4 Multiprocessing Queue Faster Than Pipe, Unexpected

I am doing an audio player that received samples from an udp socket, and everything was working fin… Read more Python 3.4 Multiprocessing Queue Faster Than Pipe, Unexpected

Writing (and Not) To Global Variable In Python

Coming from much less dynamic C++, I have some trouble understanding the behaviour of this Python (… Read more Writing (and Not) To Global Variable In Python

Python 2 Assumes Different Source Code Encodings

I noticed that without source code encoding declaration, the Python 2 interpreter assumes the sourc… Read more Python 2 Assumes Different Source Code Encodings

Printing Without Parentheses Varying Error Message Using Python 3

When I try to use print without parentheses on a simple name in Python 3.4 I get: >>> prin… Read more Printing Without Parentheses Varying Error Message Using Python 3