Re: del() function - cannot find documentation

2010-10-11 Thread Lawrence D'Oliveiro
In message mailman.1449.1286482348.29448.python-l...@python.org, mafeu...@gmail.com wrote: the problem is I cannot find any information about del() function in python 2.7 documentation. Try the Python language reference. -- http://mail.python.org/mailman/listinfo/python-list

Re: del() function - cannot find documentation

2010-10-11 Thread Lawrence D'Oliveiro
In message vedta6d9i8no1h6cmkb5nl7np5lfov1...@4ax.com, Tim Roberts wrote: This kind of confusion is, in my opinion, the primary reason why parentheses should never be used with del and return, as we so commonly see. It’s the kind of “confusion” that could be cleared up with 30 seconds’

Re: del() function - cannot find documentation

2010-10-08 Thread Tim Roberts
Chris Rebert c...@rebertia.com wrote: On Thu, Oct 7, 2010 at 1:12 PM, mafeu...@gmail.com wrote: there is following python script: mine = { 1: sd, 2: mk } del(mine[1]) print mine the problem is I cannot find any information about del() function in python 2.7 documentation

Re: del() function - cannot find documentation

2010-10-07 Thread Chris Rebert
On Thu, Oct 7, 2010 at 1:12 PM, mafeu...@gmail.com wrote: Hallo ML. there is following python script: mine = { 1: sd, 2: mk } del(mine[1]) print mine the problem is I cannot find any information about del() function in python 2.7 documentation. is it a documentation bug or I

Re: 'del' function for Dictionary

2009-07-17 Thread Michiel Overtoom
mayank gupta wrote: after analyzing the time taken by the code, What code? -- http://mail.python.org/mailman/listinfo/python-list

Re: 'del' function for Dictionary

2009-07-17 Thread Terry Reedy
mayank gupta wrote: Hi all, I wanted to know whether there is a more efficient way to delete an entry from a dictionary (instead of using the 'del' function), because after analyzing the time taken by the code, it seems to me that the 'del' function takes most of the time. That is hard

Re: the del function

2007-08-27 Thread Matt McCredie
, 2, 2, 4, 4, 4, 3, 3, 3, 3] [2, 2, 4, 4] The _red function is fine, but the del function isn't working. What did I do wrong? The code is doing what you told it to: [code] while x 4: array = single_players[4:17] # -- you are re-creating `array' in every loop length = len(array) - 1

the del function

2007-08-26 Thread Lamonte Harris
, 3, 3, 3] [2, 2, 4, 4] The _red function is fine, but the del function isn't working. What did I do wrong? -- http://mail.python.org/mailman/listinfo/python-list