A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/1999-June/095393.html below:

[Python-Dev] Aside: apply syntax

[Python-Dev] Aside: apply syntaxDavid Ascher da at ski.org
Fri Jun 11 19:02:49 CEST 1999
On Fri, 11 Jun 1999, Jack Jansen wrote:

> What exactly would the semantics be? While I hate the apply() loops you have 
> to jump through nowadays to get this behaviour I don't funny understand how 
> this would work in general (as opposed to in this case). For instance, would
>     Foo(self, 12, *args, **kw)
> be allowed? And
>     Foo(self, *args, x=12, **kw)

Following the rule used for argument processing now, if it's unambiguous,
it should be allowed, and not otherwise.  So, IMHO, the above two should
be allowed, and I suspect 

  Foo.__init__(self, *args, *args2)

could be too, but

  Foo.__init__(self, **kw, **kw2)

should not, as dictionary addition is not allowed.

However, I could live with the more restricted version as well.  

--david



More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4