TheRenegadeCoder / subete

The Sample Programs API in Python
https://subete.therenegadecoder.com
MIT License
2 stars 2 forks source link

Make Repo Items Subscriptable #19

Closed jrg94 closed 3 years ago

jrg94 commented 3 years ago

I am not sure what to do about this yet, but I was thinking about subclassing dictionary OR adding subscript capabilities (if possible).

jrg94 commented 3 years ago

Seems subclassing dict is a pain. I'm going to just implement getitem: https://blog.finxter.com/python-typeerror-nonetype-object-is-not-subscriptable/