This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients ezio.melotti, rhettinger, yuriy_levchenko
Date 2011-07-14.11:24:14
SpamBayes Score 1.1159314e-05
Marked as misclassified No
Message-id <1310642655.55.0.44434320621.issue12548@psf.upfronthosting.co.za>
In-reply-to
Content
Using the func%(args) syntax is not possible because
fab = foo%(1,2)
is equivalent to
fab = foo.__mod__((1,2))

It might actually be possible to overload the % operator to make something that looks like your proposed syntax (without changing the actual Python syntax), but it still look hackish to me.
(We are also moving away from the % overload used by strings for the formatting in favor of the .format() method.)
History
Date User Action Args
2011-07-14 11:24:15ezio.melottisetrecipients: + ezio.melotti, rhettinger, yuriy_levchenko
2011-07-14 11:24:15ezio.melottisetmessageid: <1310642655.55.0.44434320621.issue12548@psf.upfronthosting.co.za>
2011-07-14 11:24:15ezio.melottilinkissue12548 messages
2011-07-14 11:24:14ezio.melotticreate