On Sun, Nov 24, 2013 at 4:52 AM, Marc Aymerich <glicer...@gmail.com> wrote:
> Hi,
> I'm playing with python internals to make objects behave like this:
>
> if I access to "object.attribute" I want to return the result of an
> HTTP GET request. However if i call "object.attribute()" I want an
> HTTP POST request to be executed.

Uh oh. What you want is impossible. You cannot call an attribute
without first accessing it. :(

-- Devin
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to