Ir al contenido principal

E.4. Modifications

You may copy and distribute a Modi¯ed Version of the Document under the
conditions of Sections 2 and 3 above, provided that you release the Modi¯ed
Version under precisely this License, with the Modi¯ed Version ¯lling the role
of the Document, thus licensing distribution and modi¯cation of the Modi¯ed
Version to whoever possesses a copy of it. In addition, you must do these things
in the Modi¯ed Version:
Use in the Title Page (and on the covers, if any) a title distinct from that
of the Document, and from those of previous versions (which should, if
there were any, be listed in the History section of the Document). You
may use the same title as a previous version if the original publisher of
that version gives permission.
List on the Title Page, as authors, one or more persons or entities respon-
sible for authorship of the modi¯cations in the Modi¯ed Version, together
with at least ¯ve of the principal authors of the Document (all of its prin-
cipal authors, if it has less than ¯ve).
State on the Title page the name of the publisher of the Modi¯ed Version,
as the publisher.
Preserve all the copyright notices of the Document.
E.4 Modi¯cations 267
Add an appropriate copyright notice for your modi¯cations adjacent to
the other copyright notices.
Include, immediately after the copyright notices, a license notice giving
the public permission to use the Modi¯ed Version under the terms of this
License, in the form shown in the Addendum below.
Preserve in that license notice the full lists of Invariant Sections and re-
quired Cover Texts given in the Document's license notice.
Include an unaltered copy of this License.
Preserve the section entitled \History," and its title, and add to it an item
stating at least the title, year, new authors, and publisher of the Modi¯ed
Version as given on the Title Page. If there is no section entitled \History"
in the Document, create one stating the title, year, authors, and publisher
of the Document as given on its Title Page, then add an item describing
the Modi¯ed Version as stated in the previous sentence.
Preserve the network location, if any, given in the Document for public
access to a Transparent copy of the Document, and likewise the network
locations given in the Document for previous versions it was based on.
These may be placed in the \History" section. You may omit a network
location for a work that was published at least four years before the Do-
cument itself, or if the original publisher of the version it refers to gives
permission.
In any section entitled \Acknowledgements" or \Dedications," preserve
the section's title, and preserve in the section all the substance and tone
of each of the contributor acknowledgements and/or dedications given
therein.
Preserve all the Invariant Sections of the Document, unaltered in their text
and in their titles. Section numbers or the equivalent are not considered
part of the section titles.
Delete any section entitled \Endorsements." Such a section may not be
included in the Modi¯ed Version.
Do not retitle any existing section as \Endorsements" or to con°ict in title
with any Invariant Section.
If the Modi¯ed Version includes new front-matter sections or appendices that
qualify as Secondary Sections and contain no material copied from the Docu-
ment, you may at your option designate some or all of these sections as invariant.

Comentarios

Entradas populares de este blog

C.3. Cartas, mazos y juegos Python

1: import random 2: class Carta: 3: listaDePalos = [ "Tr¶eboles" , "Diamantes" , "Corazones" , 4: "Picas" ] 5: listaDeValores = [ "nada" , "As" , "2" , "3" , "4" , "5" , "6" , "7" , 6: "8" , "9" , "10" , "Sota" , "Reina" , "Rey" ] 7: 8: def __init__(self, palo=0, valor=0): 9: self.palo = palo 10: self.valor = valor 11: def __str__(self): 12: return (self.listaDeValores[self.valor] + " de " +\ 13: self.listaDePalos[self.palo]) 14: def __cmp__(self, otro): 15: # controlar el palo 16: if self.palo > otro.palo: return 1 17: if self.palo < otro.palo: return -1 18: # si son del mismo palo, controlar el valor 19...

Capítulo 1

  El Camino del Programa El objetivo de este libro es enseñarle a pensar como lo hacen los científicos informáticos. Esta manera de pensar combina las mejores características de la matemática, la ingeniería, y las ciencias naturales. Como los matemáticos, los científicos informáticos usan lenguajes formales para designar ideas (específicamente, computaciones). Como los ingenieros, ellos diseñan cosas, ensamblando sistemas a partir de componentes y evaluando ventajas y desventajas de cada una de las alternativas. Como los científicos, ellos observan el comportamiento de sistemas complejos, forman hipótesis, y prueban sus predicciones. La habilidad más importante del científico informático es la soluciún de problemas. La soluciún de problemas incluye poder formular problemas, pensar en la solución de manera creativa, y expresar una solución con claridad y precisión. Como se verá, el proceso de aprender a programar es la oportunidad perfecta para desarrollar la habilidad de resolv...

1.3.1. Errores sintácticos

Python solo puede ejecutar un programa si el programa es correcto sintácticamente. En caso contrario, es decir si el programa no es correcto sintácticamente, el proceso falla y devuelve un mensaje de error. El término sintaxis se refiere a la estructura de cualquier programa y a las reglas de esa estructura. Por ejemplo, en español la primera letra de toda oración debe ser mayúscula, y todas las oraciones deben terminar con un punto. esta oración tiene un error sintáctico. Esta oración también para la mayoría de lectores, unos pocos errores sintácticos no son significativos, y por eso pueden leer la poesía de e. e. cummings sin anunciar errores de sintaxis. Python no es tan permisivo. Si hay aunque sea un solo error sintáctico en el programa, Python mostrará un mensaje de error y abortará la ejecución del programa. Durante las primeras semanas de su carrera como programador pasará, seguramente, mucho tiempo buscando errores sintácticos. Sin embargo, tal como adquiera experiencia tendr...