aspose file tools*
The moose likes Jython/Python and the fly likes lists in python Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Languages » Jython/Python
Bookmark "lists in python" Watch "lists in python" New topic
Author

lists in python

manuel aldana
Ranch Hand

Joined: Dec 29, 2005
Posts: 308
hey,

i am scripting in python. i am quite annoyed that i can't pop() an list element without removing it.

is there a built-in way to get the last element and still keep it in the list?


aldana software engineering blog & .more
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
akhter wahab
Ranch Hand

Joined: Mar 02, 2009
Posts: 151

manuel aldana wrote:hey,

i am scripting in python. i am quite annoyed that i can't pop() an list element without removing it.

is there a built-in way to get the last element and still keep it in the list?





Start Earning Online||Start Earning Using Java
akhter wahab
Ranch Hand

Joined: Mar 02, 2009
Posts: 151

Lasse Koskela wrote:



list is the language word so i think we should not use it
 
 
subject: lists in python