Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Use attrgetter if all other ways did not worked (in getitem) #9
This is supposed to allow the groupby to group by more precisely.
Maybe that's not the way to go, and if not, please tell me what's the right way :)
When you're saying this function should be called for each dot, maybe can I split on . then and call this function recursively ?
Please let me know, this is a bit obscure by now.
Can you open an issue for groupby not supporting more than one dot? That should be fixed there, not in the getattr function on the environment. Reasoning: this has specific requirements and must not change in a backwards incompatible way because people subclass this. Jinja2 already has the sandbox which also subclasses this.