> On 8 Oct 2019, at 18:27, Todd <toddr...@gmail.com> wrote:
> 
> 
> On Mon, Oct 7, 2019 at 11:19 AM Anders Hovmöller <bo...@killingar.net 
> <mailto:bo...@killingar.net>> wrote:
> 
> 
>> On 7 Oct 2019, at 16:36, Batuhan Taskaya <isidenti...@gmail.com 
>> <mailto:isidenti...@gmail.com>> wrote:
>> 
>> 
>> In fact, that would be a cool feature for ORMs. IMHO instead of ugly call 
>> chain with filters, slicing is a better option (on `__class_getattr__`). As 
>> said there are some disadvantages but i think this proposal deserves a PEP.
> 
> I really don't see why. Is () so much different than [] to you? Because that 
> seems like the only difference here. 
> 
> You can't assign to function calls.  So:
> 
> x(b=1) = 5 
> 
> won't work, but
> 
> x[b=1] = 5 
> 
> could work

Ah. That's a strong argument I can get behind!

_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/Y5JVGFAE5DKDX7BXF5UVSIAUMXTZY43L/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to