By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,310 Members | 1,951 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,310 IT Pros & Developers. It's quick & easy.

When was extended call syntax introduced?

P: n/a
Various documentation pages, e.g.
http://www.python.org/doc/2.3.3/lib/...-in-funcs.html
state that the apply function has been deprecated since 2.3.

Can anyone tell me when extended call syntax was actually introduced?
Neither googling nor brief checks of the 'What's new in Python' or the pep's
has turned up this information. Thanks.

Edward
--------------------------------------------------------------------
Edward K. Ream email: ed*******@charter.net
Leo: Literate Editor with Outlines
Leo: http://webpages.charter.net/edreamleo/front.html
--------------------------------------------------------------------
Jul 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Edward K. Ream wrote:
Various documentation pages, e.g.
http://www.python.org/doc/2.3.3/lib/...-in-funcs.html
state that the apply function has been deprecated since 2.3.

Can anyone tell me when extended call syntax was actually introduced?


That was in Python 2.0, see

http://www.python.org/2.0/new-python...00000000000000

Regards,
Martin
Jul 18 '05 #2

P: n/a
Edward K. Ream wrote:
Various documentation pages, e.g.
http://www.python.org/doc/2.3.3/lib/...-in-funcs.html
state that the apply function has been deprecated since 2.3.

Can anyone tell me when extended call syntax was actually introduced?
Neither googling nor brief checks of the 'What's new in Python' or the pep's
has turned up this information. Thanks.

Edward
--------------------------------------------------------------------
Edward K. Ream email: ed*******@charter.net
Leo: Literate Editor with Outlines
Leo: http://webpages.charter.net/edreamleo/front.html
--------------------------------------------------------------------


It looks like the extended call syntax was added in Python 2.0. See
"What's New in Python 2.0, 9.1 Minor Langage Changes" at
http://www.amk.ca/python/2.0/new-python.html

Jim
Jul 18 '05 #3

P: n/a
Edward K. Ream wrote:
Various documentation pages, e.g.
http://www.python.org/doc/2.3.3/lib/...-in-funcs.html
state that the apply function has been deprecated since 2.3.

Can anyone tell me when extended call syntax was actually introduced? Neither googling nor brief
checks of the 'What's new in Python' or the pep's has turned up this information.


$ python1.5 -c "print max(*(1, 2))"
File "<string>", line 1
print max(*(1, 2))
^
SyntaxError: invalid syntax
$ python2.0 -c "print max(*(1, 2))"
2
$ python2.1 -c "print max(*(1, 2))"
2
$ python2.2 -c "print max(*(1, 2))"
2
$ python2.3 -c "print max(*(1, 2))"
2
$ python2.4 -c "print max(*(1, 2))"
2

</F>

Jul 18 '05 #4

P: n/a
> > That was in Python 2.0, see

Thanks very much, Martin.
Jul 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.