Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cgriswald
on Nov 1, 2018
|
parent
|
context
|
favorite
| on:
A Gentle Visual Intro to Data Analysis in Python U...
var['string'] means get the item of object var with key 'string'. Any Python class can define the magic method __getitem__ to define the behavior of/overload the [] operator.
NightlyDev
on Nov 1, 2018
[–]
Thanks! Didn't know python had magic functions so I was really confused.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: