Python slang

Rustom Mody rustompmody at gmail.com
Fri Aug 5 22:51:15 EDT 2016


On Saturday, August 6, 2016 at 8:16:36 AM UTC+5:30, Random832 wrote:
> On Fri, Aug 5, 2016, at 20:14, Dennis Lee Bieber wrote:
> > 	.push() tends to make this one think "stack" and not general purpose
> > list.
> 
> It's a bit unusual to have .pop() without a matching .push().

True…
OTOH I tend to think of push (and pop) imperatively
Whereas append (and maybe relatives starting cdr) are declarative
[But that’s just me]



More information about the Python-list mailing list