Python pocket reference

This is the book to reach for when you're coding on the fly and need an answer now. It's an easy-to-use reference to the core language, with descriptions of commonly used modules and toolkits, and a guide to recent changes, new features, and upgraded built-ins -- all updated to cover Pytho...

Descripción completa

Detalles Bibliográficos
Autor principal: Lutz, Mark (-)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Bejing ; Sebastopol, California : O'Reilly 2012.
Edición:4th ed
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009628446506719
Tabla de Contenidos:
  • Table of Contents; Python Pocket Reference; Introduction; Conventions; Using Code Examples; Safari® Books Online; Command-Line Options; Python Options; Program Specification; Environment Variables; Operational Variables; Command-Line Option Variables; Built-in Types and Operators; Operators and Precedence; Operator Usage Notes; Operations by Category; Sequence Operation Notes; Indexing: S[i]; Slicing: S[i:j]; Slicing: S[i:j:k]; Other; Specific Built-in Types; Numbers; Literals and creation; Operations; Decimal and fraction; Other numeric types; Strings; Literals and creation; Operations
  • String formattingString formatting expression; String formatting method; Template string substitution; String methods; byte and bytearray methods; Searching; Splitting and joining; Formatting; Content tests; The original string module; Unicode Strings; Unicode support in Python 3.0; byte and bytearray strings; Unicode support in Python 2.X; Lists; Literals and creation; Operations; List comprehension expressions; Generator expressions; Other generators and comprehensions; Dictionaries; Literals and creation; Operations; Tuples; Literals; Operations; Files; Input files; Output files; Any files
  • Attributes (all read-only)File context managers; Notes; Sets; Literals and creation; Operations; Other Common Types; Boolean; Type Conversions; Statements and Syntax; Syntax Rules; Name Rules; Name format; Name conventions; Specific Statements; The Assignment Statement; Augmented assignment; Normal and extended sequence assignment; The Expression Statement; Call syntax; Arbitrary arguments call syntax; The print Statement; Python 2.X print statements; The if Statement; The while Statement; The for Statement; The pass Statement; The break Statement; The continue Statement; The del Statement
  • The def StatementPython 3.0 keyword-only arguments; Python 3.0 function annotations; lambda expressions; Defaults and attributes; Function and method decorators; The return Statement; The yield Statement; Generators and iterators; The global Statement; The nonlocal Statement; The import Statement; Package imports; The from Statement; Package relative import syntax; The class Statement; Class decorators in Python 2.6 and 3.0; Metaclasses; The try Statement; Python 2.X try statement forms; The raise Statement; Class exceptions; Python 2.X raise statement forms; The assert Statement
  • The with StatementMultiple context managers in Python 3.1; Python 2.X Statements; Namespace and Scope Rules; Qualified Names: Object Namespaces; Unqualified Names: Lexical Scopes; Statically Nested Scopes; Object-Oriented Programming; Classes and Instances; Class objects provide default behavior; Instance objects are generated from classes; Inheritance rules; Pseudoprivate Attributes; Module privates; Class privates; New Style Classes; Operator Overloading Methods; For All Types; For Collections (Sequences, Mappings); For Numbers (Binary Operators); Basic binary methods
  • Right-side binary methods