Changeset 31


Ignore:
Timestamp:
01/07/09 12:25:31 (4 years ago)
Author:
GonzaloDelgado
bzr:base-revision:
svn-v4:35130877-2dc0-4e93-869b-628e2b47754a:trunk:30
bzr:committer:
Gonzalo Delgado <gonzalo@bixly.com>
bzr:file-ids:

traducidos/datastructures.rst 4@35130877-2dc0-4e93-869b-628e2b47754a:trunk%2Ftraducidos%2Fdatastructures.rst
bzr:mapping-version:
v4
bzr:repository-uuid:
35130877-2dc0-4e93-869b-628e2b47754a
bzr:revision-id:
gonzalo@bixly.com-20090701142735-zme4zs96fr3xmkv0
bzr:revno:
31
bzr:revprop:branch-nick:
python-tutorial
bzr:revprop:rebase-of:
gonzalo@bixly.com-20090701142735-yuqvrytkue69p428
bzr:root:
trunk
bzr:text-parents:

traducidos/datastructures.rst gonzalodel@gmail.com-20090629205748-7ulcdnplo2mnktk4
bzr:timestamp:
2009-07-01 11:27:35.996999979 -0300
bzr:user-agent:
bzr1.13.1+bzr-svn0.5.3
svn:original-date:
2009-07-01T14:27:35.997000Z
Message:

Traduciendo "The del statement".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/traducidos/datastructures.rst

    r29 r31  
    322322    [(1, 4, 7), (2, 5, 8), (3, 6, 9)] 
    323323 
    324 Ver :ref:`tut-unpacking-arguments` para detalles en el asterisk de esta línea. 
     324Ver :ref:`tut-unpacking-arguments` para detalles en el asterisco de esta línea. 
    325325 
    326326.. _tut-del: 
    327327 
    328 The :keyword:`del` statement 
     328La instrucción :keyword:`del` 
    329329============================ 
    330330 
    331 There is a way to remove an item from a list given its index instead of its 
    332 value: the :keyword:`del` statement.  This differs from the :meth:`pop` method 
    333 which returns a value.  The :keyword:`del` statement can also be used to remove 
    334 slices from a list or clear the entire list (which we did earlier by assignment 
    335 of an empty list to the slice).  For example:: 
     331Hay una manera de quitar un ítem de una lista dado su índice en lugar de su 
     332valor: la instrucción :keyword:`del`. Ésta es diferente del método :meth:`pop`, 
     333el cual devuelve un valor.  La instrucción :keyword:`del` también puede usarse 
     334para quitar secciones de una lista o vaciar la lista completa (lo que hacíamos 
     335antes asignando una lista vacía a la sección).  Por ejemplo:: 
    336336 
    337337   >>> a = [-1, 1, 66.25, 333, 333, 1234.5] 
     
    346346   [] 
    347347 
    348 :keyword:`del` can also be used to delete entire variables:: 
     348:keyword:`del` puede usarse también para eliminar variables:: 
    349349 
    350350   >>> del a 
    351351 
    352 Referencing the name ``a`` hereafter is an error (at least until another value 
    353 is assigned to it).  We'll find other uses for :keyword:`del` later. 
     352Referenciar al nombre ``a`` de aquí en más es un error (al menos hasta que se 
     353le asigne otro valor).  Veremos otros usos para :keyword:`del` más adelante. 
    354354 
    355355 
Note: See TracChangeset for help on using the changeset viewer.