Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Por qu Python?
Ampliadocumentacin.
Cadenas chorizo...
El Zen de Python
Bellomejorquefeo. Explcitoesmejorqueimplcito. Simpleesmejorquecomplejo. Complejoesmejorquecomplicado. Planoesmejorqueanidado. Dispersoesmejorquedenso. Lalegibilidadcuenta. Loscasosespecialesnosontanespecialescomoparaquebrantarlasreglas. Aunqueloprcticoganaalapureza. Loserroresnodeberandejarsenuncapasar.
El Zen de Python
Amenosquehayansidosilenciadosexplcitamente. Frentealaambigedad,rechazalatentacindeadivinar. Deberahaberunaypreferiblementeslounamaneraobviadehacerlo. Aunqueesamanerapuedenoserobviaalprincipioamenosqueustedsea holands. Ahoraesmejorquenunca. Aunquenuncaesamenudomejorqueyamismo. Silaimplementacinesdifcildeexplicar,esunamalaidea. Silaimplementacinesfcildeexplicar,puedequeseaunabuenaidea. Losespaciosdenombres(namespaces)sonunagranideaHagamosmsde esascosas!
Resumiendo...
Python: Historia
Implementaciones de Python
Versiones de Python
Culelegir?Dependedenuestrasexigencias.
El futuro de Python
Lenguajedepropsitogeneral,conmsde20aosdevida. DesarrolloesponsorizadoporGoogle. UtilizadoenIndustrialLight&Magic,Pixar,BitTorrent,U.S.National WeatherService,NASA,NSA,Fermi,Corel,RedHat,Lockheed Martin,Facebook,etc. Conferenciasanualesmundiales(PyCon). Multituddemdulos(libreras)debaseydeterceros,ampliable. Utilizadoenprogramacindesistemas,clculonumrico,web,mviles (Android,Symbian),escritorio,mquinasvirtualesJavay.NET,etc. Casosdexito:GoogleAppEngine(entornodeCloudComputingde Google,quesoportaJavayPython).Msen http://www.python.org/about/success/
Conceptos generales
Altoniveldeabstraccin(usodelistas,tuplas, diccionariostablashashing).
Composicin...
Python:Lenguaje+bibliotecaestndar+mdulosdeextensin
El intrprete Python
Intrprete:probarestructuras,tiposdedatos, rprete mdulos,expresionesregulares,etc. Intrprete+fichero.py:ejecutarenconsolafichero rprete+fichero.py concdigoPython.P.e.:pythonejemplo.py IDE:IDLE,PyScripter(Windows),Stani'sPython IDE Editor,Eclipse(pyDev),NetBeans,Geany,etc. RAD:BOAConstructor,SharpDevelop RAD (IronPython)
Intrpretesmejorados:Shell'sinteractivoscon rpretesmejorados caractersticasmejoradas.P.e.:Dreampie, pyCrust,pyShell. Editores:emacs,vi,Editra,SciTE,NotePad++,etc. Editores GUI's:Creaci n/diseointerfacesgrficas.P.e.: GUI's wxFormBuilder(wx),Glade(wx,GTK),Monkey Studio(Qt),etc.
Listacompletadeeditores,gui'seide'sen http://wiki.python.org/moin/PythonEditors.
PRUEBA,COMPARAYSIENCUENTRASALGO MEJOR,INSTLALO
Tiposdedatos:
Estructurasiterativas:
Saltoscondicionales:
Funciones:
Python: POO
classmi_primera_clase(object):
def__init__(self,param1,param2):
#Constructor. self.atributo1=param1 self.atributo2=param2
defgetAtributos(self):
returnself.atributo1,self.atributo2
defsetAtributos(self,atrib1,atrib2):
self.atributo1=atrib1 self.atributo2=atrib2
Ms Python, ms madera!
PYTHONGUADEREFERENCIA
ALEXMARTELLI EDITORIALO'REILLY
PROGRAMACINPYTHON3
MARKSUMMERFIELD EDITORIALADDISONWESLEY
PYTHON,CREARMODIFICARREUTILIZAR
JIMKNOWLTON EDITORIALWROX
LAGUADEFINITIVADEDJANGO
ADRIANHOLOVATYYJACOBKAPLANMOSS EDITORIALAPRESS
Python en Internet
El framework wxPython
www.wxpython.org(softwareydocumentacin)
El framework wxPython
VersionesaAbril2011(paraPython2.5,2.6y2.7):
ConocimientospreviosparautilizarwxPython:
Porqu?Seutilizanclases,seheredancomponentes ysehaceoverrideensusmtodos.
UnaaplicacinwxPythonsedivideentrespartes:
wxPython Demo, y I
wxPython Demo, y II
widgets... richtextctrl
widgets... toolbook
widgets... listbook
widgets... speedmeter
widgets... flatnotebook
widgets... peakmeter
Widgets... piectrl
widgets... ribbonbar
widgets... aui
Sizers
Sizers
Sizers
Aprenderautilizarsizersmanualmentees:
Algunasolucin?
wxFormBuilder, y 1
wxFormBuilder, y 2
wxFormBuilder, y 3