The moose likes Jython/Python and the fly likes lists in python Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Incubator » Jython/Python
Reply 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: 11945


Author of Test Driven (Manning Publications, 2007) [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

This message was edited 1 time. Last update was at by akhter wahab

 
 
subject: lists in python
 
developer file tools