TL;DR —
Python is the #1 localization platform for developers. We will be diving into some quirks of Python that might seem a bit weird. In this post, we will be talking about how Python likes to deal with "list-like objects" We will hopefully teach you how to build something that could actually be useful while avoiding common mistakes.Part 1: Making List-Like Objects in Python - The Right Way to Use Python is part 1: Fake lists. Part 1: Def __getitem__(f) is the method you override if you want your instances to respond to the square bracket notation.
[story continues]
Written by
@transifex
The #1 localization platform for developers.
Topics and
tags
tags
python|list-like-objects|code|coding|lists|hackernoon-top-story|python-programming-lists|good-company
This story on HackerNoon has a decentralized backup on Sia.
Transaction ID: wj4LN4YmUBbddhEqIGHzVKZXcte9KCdPdKY3nunQORE
