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

Python: Understanding Iterators And `join()` Better

The join() function accepts an iterable as parameter. However, I was wondering why having: text = &… Read more Python: Understanding Iterators And `join()` Better

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

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

How Does __slots__ Avoid A Dictionary Lookup?

I've heard that __slots__ makes objects faster by avoiding a dictionary lookup. My confusion co… Read more How Does __slots__ Avoid A Dictionary Lookup?

What Makes Lists Unhashable?

So lists are unhashable: >>> { [1,2]:3 } TypeError: unhashable type: 'list' The f… Read more What Makes Lists Unhashable?

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