-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dot-notation for __getitem__ is not supported #35
Comments
Kajiki isn't supposed to implement everything that Genshi had. Kajiki is glad to drop a few of the misfeatures, especially those that made Genshi slow. Now this feature here can be very convenient for the programmer, but the implementation would certainly cost something. I am not sure what is more valuable here. I don't have the answer, I am just commenting like, don't expect Kajiki to be a clone of Genshi. |
I certainly don't, but re: cost, well, even Jinja (which is universally considered a fast templating engine) supports this, so I thought this is the feature that's worth porting.
|
Uhm, I'm vaguely against this proposal for the reason that Kajiki maps your code to pure python code, which I like as it guarantees me that the code I wrote will be the resulting code. Providing this would mean injecting a call in every attribute access (which apart slowing down things) would break the guarantee that we don't inject additional behaviours in user code. |
I don't like this feature neither, getitem and getattr are two separate things in python
You may be intrested in https://stackoverflow.com/a/23689767 anyway. It's not about kajiki |
The text was updated successfully, but these errors were encountered: