A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/1999-July/000566.html below:

[Python-Dev] I'd like list.pop to accept an optional second

[Python-Dev] I'd like list.pop to accept an optional secondJim Fulton jim@digicool.com
Thu, 22 Jul 1999 15:20:46 -0400
"Barry A. Warsaw" wrote:
> 
> >>>>> "JF" == Jim Fulton <jim@digicool.com> writes:
> 
>     JF> BTW, a good precedent for what I want
>     JF> is getattr.
> 
>     JF>   getattr(None,'spam')
> 
>     JF> raises an error, but:
> 
>     JF>   getattr(None,'spam',1)
> 
>     JF> returns 1
> 
> Okay, how did this one sneak in, huh? 

I don't know.  Someone told me about it. I find it
wildly useful.

> I didn't even realize this had
> been added to getattr()!  CVS reveals it was added b/w 1.5.1 and
> 1.5.2a1, so maybe I just missed the checkin message.
> 
> Fred, the built-in-funcs doc needs updating:
> 
> http://www.python.org/doc/current/lib/built-in-funcs.html
> 
> FWIW, the CVS log message says this feature is experimental too. :)

Eek! I want it to stay!

I also really like list.pop. :)

Jim

--
Jim Fulton           mailto:jim@digicool.com   Python Powered!        
Technical Director   (888) 344-4332            http://www.python.org  
Digital Creations    http://www.digicool.com   http://www.zope.org    

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.



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