python needs leaning stuff from other language

Luis Alberto Zarrabeitia Gomez kyrie at uh.cu
Fri Apr 3 00:56:02 CEST 2009


Quoting online.service at ymail.com:

> python's list needs a thing  list.clear()  like c# arraylist

It has:

 >>> l[:] = []

> python needs a writeline() method

Now, that could be useful, a writeline method that knew the EOL convention for
the OS and were not as deceiving as the current .writelines(). 

BTW, check out the print statement from python2, and the print function in python3:

 >>> print >>fileobj, "this will print with an eol" # python2
 >>> print("this will print with an eol", file=fileobj)

-- 
Luis Zarrabeitia
Facultad de Matemática y Computación, UH
http://profesores.matcom.uh.cu/~kyrie

-- 
Participe en Universidad 2010, del 8 al 12 de febrero de 2010
La Habana, Cuba 
http://www.universidad2010.cu




More information about the Python-list mailing list