dgilland / pydash

The kitchen sink of Python utility libraries for doing "stuff" in a functional way. Based on the Lo-Dash Javascript library.

Home Page:http://pydash.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pydash 4.9.1 can no longer get value on a dict object with int key using string notation

lephuongbg opened this issue · comments

Following no longer works in pydash 4.9.1:

assert pydash.get({1: {'name': 'John Doe'}}, '1.name') == 'John Doe'

This is most likely due to this commit that fixes #156 , due to the check with dict.get that doesn't preserve current behavior of pydash.

Thanks for reporting this!

Should be fixed in v4.9.2.