2010/7/29 Sergio Fernández <ser...@wikier.org>: > Flame? jajja > > Es lo contrario, que se utilice la palbra reservada 'class' no hace > que sea basado en clases.
No sé si entendemos lo mismo por "Lenguaje basado en prototipos" Prototype-based programming is a style of object-oriented programming in which classes are not present, and behavior reuse (known as inheritance in class-based languages) is performed via a process of cloning existing objects that serve as prototypes. This model can also be known as class-less, prototype-oriented or instance-based programming. Delegation is the language feature that supports prototype-based programming. http://en.wikipedia.org/wiki/Prototype-based http://en.wikipedia.org/wiki/Python_(programming_language) http://en.wikipedia.org/wiki/JavaScript > > 2010/7/29 Pablo Martí Gamboa <pma...@warp.es>: >> 2010/7/29 Sergio Fernández <ser...@wikier.org>: >>> Literatura hay mucha y tutoriales también. Pero si quieres comenzar >>> con unas bases sólidas de concepto, ten ene cuenta que python es un >>> lenguaje orientado a objetos basado en prototipos, no basado en clases >>> como puede ser por ejemplo Java. Así que selecciona bien la literatura >>> no vaya a ser que tomes conceptos erroneos por no tener esto en >>> cuenta. >> >> ¿Perdón? >> >> Lua y Javascript están basado en prototipos, Python no! >> >> Python tiene la keyword 'class' y permite crear clases como en Java... >> Otra cosa es cómo esté hecha la implementación interna (los tres usan >> un dict por debajo, pero eso no hace a Python un lenguaje basado en >> prototipos) >> >> >> -- >> Pablo Martí >> http://minimoesfuerzo.org // http://www.warp.es >> python -c "print '706d617267616d40676d61696c2e636f6d'.decode('hex')" >> _______________________________________________ >> Python-es mailing list >> Python-es@python.org >> http://mail.python.org/mailman/listinfo/python-es >> FAQ: http://python-es-faq.wikidot.com/ >> > > > > -- > __ ___ _ _ > \ \ / (_) |_(_)___ _ _ > \ \/\/ /| | / / / -_) '_| Sergio Fernández > \_/\_/ |_|_\_\_\___|_| http://www.wikier.org/ > _______________________________________________ > Python-es mailing list > Python-es@python.org > http://mail.python.org/mailman/listinfo/python-es > FAQ: http://python-es-faq.wikidot.com/ > -- Pablo Martí http://minimoesfuerzo.org python -c "print '706d617267616d40676d61696c2e636f6d'.decode('hex')" _______________________________________________ Python-es mailing list Python-es@python.org http://mail.python.org/mailman/listinfo/python-es FAQ: http://python-es-faq.wikidot.com/