- Ocena:
- Bądź pierwszym, który oceni tę książkę
- Stron:
- 738
- Dostępne formaty:
-
ePubMobi
Opis ebooka: Python in a Nutshell. 2nd Edition
This book offers Python programmers one place to look when they needhelp remembering or deciphering the syntax of this open source languageand its many powerful but scantily documented modules. Thiscomprehensive reference guide makes it easy to look up the mostfrequently needed information--not just about the Python languageitself, but also the most frequently used parts of the standard libraryand the most important third-party extensions.
Ask any Python aficionado and you'll hear that Python programmers haveit all: an elegant object-oriented language with readable andmaintainable syntax, that allows for easy integration with componentsin C, C++, Java, or C#, and an enormous collection of precoded standardlibrary and third-party extension modules. Moreover, Python is easy tolearn, yet powerful enough to take on the most ambitious programmingchallenges. But what Python programmers used to lack is a concise andclear reference resource, with the appropriate measure of guidance inhow best to use Python's great power. Python in aNutshell fills this need.
Python in a Nutshell, Second Edition covers morethan the language itself; it also deals with the mostfrequently used parts of the standard library, and the most popular andimportant third party extensions. Revised and expanded forPython 2.5, this book now contains the gory details of Python's newsubprocess module and breaking news about Microsoft's newIronPython project. Our "Nutshell" format fits Python perfectly bypresenting the highlights of the most important modules and functionsin its standard library, which cover over 90% of your practicalprogramming needs. This book includes:
- A fast-paced tutorial on the syntax of the Python language
- An explanation of object-oriented programming in Python
- Coverage of iterators, generators, exceptions, modules,packages, strings, and regular expressions
- A quick reference for Python's built-in types and functionsand key modules
- Reference material on important third-party extensions,such as Numeric and Tkinter
- Information about extending and embedding Python
Python in a Nutshell provides a solid,no-nonsense quick reference to information that programmers rely on themost. This book will immediately earn its place in any Pythonprogrammer's library.
Praise for the First Edition:
"In a nutshell, Python in a Nutshell serves oneprimary goal: to act as an immediately accessible goal for the Pythonlanguage. True, you can get most of the same core information that ispresented within the covers of this volume online, but this willinvariably be broken into multiple files, and in all likelihood lackingthe examples or the exact syntax description necessary to trulyunderstand a command."
--Richard Cobbett, Linux Format
"O'Reilly has several good books, of which Python in aNutshell by Alex Martelli is probably the best for giving yousome idea of what Python is about and how to do useful things with it."
--Jerry Pournelle, Byte Magazine
Wybrane bestsellery
-
Język Python został ostatnio sklasyfikowany w indeksie TIOBE jako najpopularniejszy obecnie język programowania, co zawdzięcza szerokim możliwościom stosowania go w projektowaniu, prototypowaniu, testach, wdrażaniu i konserwacji oprogramowania. To zaktualizowane i rozszerzone czwarte wydanie poka...
Python w pigułce. Podręczny przewodnik po wersjach 3.10 i 3.11 Python w pigułce. Podręczny przewodnik po wersjach 3.10 i 3.11
Alex Martelli, Anna Martelli Ravenscroft, Steve Holden, Paul McGuire
(152.10 zł najniższa cena z 30 dni)152.10 zł
169.00 zł(-10%) -
Python was recently ranked as today's most popular programming language on the TIOBE index, thanks to its broad applicability to design and prototyping to testing, deployment, and maintenance. With this updated fourth edition, you'll learn how to get the most out of Python, whether you're a profe...(271.15 zł najniższa cena z 30 dni)
275.61 zł
329.00 zł(-16%) -
Dzięki tej książce dowiesz się, jak pozyskiwać, analizować i wizualizować dane, a potem używać ich do rozwiązywania problemów biznesowych. Wystarczy, że znasz podstawy Pythona i matematyki na poziomie liceum, aby zacząć stosować naukę o danych w codziennej pracy. Znajdziesz tu szereg praktycznych...
Data science i Python. Stawianie czoła najtrudniejszym wyzwaniom biznesowym Data science i Python. Stawianie czoła najtrudniejszym wyzwaniom biznesowym
(55.20 zł najniższa cena z 30 dni)48.30 zł
69.00 zł(-30%) -
Pytest – nowoczesny framework do uruchamiania testów automatycznych w języku Python. Można używać tej platformy do przeprowadzania testów jednostkowych, ale sprawdzi się świetnie także podczas konstruowania rozbudowanych testów wyższego poziomu (integracyjnych, end-to-end) dla całych aplika...
Pytest. Kurs video. Automatyzacja testów w Pythonie Pytest. Kurs video. Automatyzacja testów w Pythonie
(44.70 zł najniższa cena z 30 dni)96.85 zł
149.00 zł(-35%) -
Oto zaktualizowane wydanie popularnego przewodnika, dzięki któremu skorzystasz z ponad dwustu sprawdzonych receptur bazujących na najnowszych wydaniach bibliotek Pythona. Wystarczy, że skopiujesz i dostosujesz kod do swoich potrzeb. Możesz też go uruchamiać i testować za pomocą przykładowego zbio...
Uczenie maszynowe w Pythonie. Receptury. Od przygotowania danych do deep learningu. Wydanie II Uczenie maszynowe w Pythonie. Receptury. Od przygotowania danych do deep learningu. Wydanie II
(53.40 zł najniższa cena z 30 dni)62.30 zł
89.00 zł(-30%) -
Sposobów na naukę Pythona jest sporo i powstało na ten temat mnóstwo publikacji. Jeżeli ten wybór jest właśnie przed Tobą, rozważ naukę Pythona poprzez tworzenie prostych gier. Ich programowanie to nie tylko świetna zabawa, ale też doskonała metoda rozwijania umiejętności algorytmicznych, kreatyw...
Python od podstaw. Kurs video. Tworzenie pierwszych gier w PyCharm Python od podstaw. Kurs video. Tworzenie pierwszych gier w PyCharm
(51.60 zł najniższa cena z 30 dni)64.50 zł
129.00 zł(-50%) -
To trzecie, zaktualizowane i uzupełnione wydanie bestsellerowego podręcznika programowania w Pythonie. Naukę rozpoczniesz od podstawowych koncepcji programowania. Poznasz takie pojęcia jak zmienne, listy, klasy i pętle, a następnie utrwalisz je dzięki praktycznym ćwiczeniom. Dowiesz się, jak zape...(71.40 zł najniższa cena z 30 dni)
83.30 zł
119.00 zł(-30%) -
Głębokie sieci neuronowe mają niesamowity potencjał. Osiągnięcia ostatnich lat nadały procesom uczenia głębokiego zupełnie nową jakość. Obecnie nawet programiści niezaznajomieni z tą technologią mogą korzystać z prostych i niezwykle skutecznych narzędzi, pozwalających na sprawne implementowanie p...
Uczenie maszynowe z użyciem Scikit-Learn, Keras i TensorFlow. Wydanie III Uczenie maszynowe z użyciem Scikit-Learn, Keras i TensorFlow. Wydanie III
(107.40 zł najniższa cena z 30 dni)125.30 zł
179.00 zł(-30%) -
Ta książka stanowi przystępne wprowadzenie do świata projektantów i budowniczych robotów. Dzięki niej dowiesz się, jak wybrać potrzebne podzespoły, jak je ze sobą połączyć i jak wykorzystywać poszczególne urządzenia wejścia i wyjścia. Posłużysz się w tym celu płytką Raspberry Pi i kompatybilnymi ...
Jak zaprogramować robota. Zastosowanie Raspberry Pi i Pythona w tworzeniu autonomicznych robotów. Wydanie II Jak zaprogramować robota. Zastosowanie Raspberry Pi i Pythona w tworzeniu autonomicznych robotów. Wydanie II
(59.40 zł najniższa cena z 30 dni)69.30 zł
99.00 zł(-30%) -
Fachowcy z branży IT, by dobrze wykonywać swoją pracę, muszą w niej zwykle używać od kilku do kilkunastu narzędzi. Z drugiej strony nikt nie jest w stanie dobrze poznać nawet wycinka wszystkich technologii, języków programowania czy aplikacji, które powstają każdego roku. Czy wśród tego bogactwa,...
Receptura na Python. Kurs Video. 54 praktyczne porady dla programistów Receptura na Python. Kurs Video. 54 praktyczne porady dla programistów
(39.90 zł najniższa cena z 30 dni)129.35 zł
199.00 zł(-35%)
Ebooka "Python in a Nutshell. 2nd Edition" przeczytasz na:
-
czytnikach Inkbook, Kindle, Pocketbook, Onyx Boox i innych
-
systemach Windows, MacOS i innych
-
systemach Windows, Android, iOS, HarmonyOS
-
na dowolnych urządzeniach i aplikacjach obsługujących formaty: PDF, EPub, Mobi
Masz pytania? Zajrzyj do zakładki Pomoc »
Audiobooka "Python in a Nutshell. 2nd Edition" posłuchasz:
-
w aplikacji Ebookpoint na Android, iOS, HarmonyOs
-
na systemach Windows, MacOS i innych
-
na dowolnych urządzeniach i aplikacjach obsługujących format MP3 (pliki spakowane w ZIP)
Masz pytania? Zajrzyj do zakładki Pomoc »
Kurs Video "Python in a Nutshell. 2nd Edition" zobaczysz:
-
w aplikacjach Ebookpoint i Videopoint na Android, iOS, HarmonyOs
-
na systemach Windows, MacOS i innych z dostępem do najnowszej wersji Twojej przeglądarki internetowej
Szczegóły ebooka
- ISBN Ebooka:
- 978-14-493-7910-0, 9781449379100
- Data wydania ebooka:
- 2006-07-14 Data wydania ebooka często jest dniem wprowadzenia tytułu do sprzedaży i może nie być równoznaczna z datą wydania książki papierowej. Dodatkowe informacje możesz znaleźć w darmowym fragmencie. Jeśli masz wątpliwości skontaktuj się z nami sklep@ebookpoint.pl.
- Język publikacji:
- angielski
- Rozmiar pliku ePub:
- 2.8MB
- Rozmiar pliku Mobi:
- 2.8MB
Spis treści ebooka
- Python in a Nutshell
- Preface
- How This Book Is Organized
- Part I, Getting Started with Python
- Part II, Core Python Language and Built-ins
- Part III, Python Library and Extension Modules
- Part IV, Network and Web Programming
- Part V, Extending and Embedding
- How This Book Is Organized
- Conventions Used in This Book
- Reference Conventions
- Typographic Conventions
- Using Code Examples
- How to Contact Us
- Safari Enabled
- Acknowledgments
- I. Getting Started with Python
- 1. Introduction to Python
- The Python Language
- The Python Standard Library and Extension Modules
- Python Implementations
- CPython
- Jython
- IronPython
- Choosing Between CPython, Jython, and IronPython
- PyPy and Other Experimental Versions
- Licensing and Price Issues
- Python Development and Versions
- Python Resources
- Documentation
- Newsgroups and Mailing Lists
- Special-Interest Groups
- Python Business Forum
- Python Journal
- Extension Modules and Python Sources
- The Python Cookbook
- Books and Magazines
- 1. Introduction to Python
- 2. Installation
- Installing Python from Source Code
- Windows
- Uncompressing and unpacking the Python source code
- Building the Python source code with Microsoft Visual Studio 2003
- Building Python for debugging
- Installing after the build
- Building Python for Cygwin
- Windows
- Unix-Like Platforms
- Uncompressing and unpacking the Python source code
- Configuring, building, and testing
- Installing after the build
- Installing Python from Source Code
- Installing Python from Binaries
- Apple Macintosh
- Installing Jython
- Installing IronPython
- 3. The Python Interpreter
- The python Program
- Environment Variables
- Command-Line Syntax and Options
- Interactive Sessions
- The python Program
- Python Development Environments
- IDLE
- Other Free Cross-Platform Python IDEs
- Platform-Specific Free Python IDEs
- Commercial Python IDEs
- Free Text Editors with Python Support
- Tools for Checking Python Programs
- Running Python Programs
- The jython Interpreter
- The IronPython Interpreter
- II. Core Python Language and Built-ins
- 4. The Python Language
- Lexical Structure
- Lines and Indentation
- Character Sets
- Tokens
- Identifiers
- Keywords
- Operators
- Delimiters
- Literals
- Statements
- Simple statements
- Compound statements
- Lexical Structure
- 4. The Python Language
- Data Types
- Numbers
- Integer numbers
- Floating-point numbers
- Complex numbers
- Numbers
- Sequences
- Iterables
- Strings
- Tuples
- Lists
- Sets
- Dictionaries
- None
- Callables
- Boolean Values
- Variables and Other References
- Variables
- Object attributes and items
- Accessing nonexistent references
- Variables
- Assignment Statements
- Plain assignment
- Augmented assignment
- del Statements
- Expressions and Operators
- Comparison Chaining
- Short-Circuiting Operators
- The Python 2.5 ternary operator
- Numeric Operations
- Numeric Conversions
- Arithmetic Operations
- Division
- Exponentiation
- Comparisons
- Bitwise Operations on Integers
- Sequence Operations
- Sequences in General
- Sequence conversions
- Concatenation and repetition
- Membership testing
- Indexing a sequence
- Slicing a sequence
- Sequences in General
- Strings
- Tuples
- Lists
- Modifying a list
- In-place operations on a list
- List methods
- Sorting a list
- Set Operations
- Set Membership
- Set Methods
- Dictionary Operations
- Dictionary Membership
- Indexing a Dictionary
- Dictionary Methods
- The print Statement
- Control Flow Statements
- The if Statement
- The while Statement
- The for Statement
- Iterators
- range and xrange
- List comprehensions
- The break Statement
- The continue Statement
- The else Clause on Loop Statements
- The pass Statement
- The try and raise Statements
- The with Statement
- Functions
- The def Statement
- Parameters
- Attributes of Function Objects
- Docstrings
- Other attributes of function objects
- The return Statement
- Calling Functions
- The semantics of argument passing
- Kinds of arguments
- Namespaces
- The global statement
- Nested functions and nested scopes
- lambda Expressions
- Generators
- Generator expressions
- Generators in Python 2.5
- Recursion
- 5. Object-Oriented Python
- Classes and Instances
- Python Classes
- The class Statement
- The Class Body
- Attributes of class objects
- Function definitions in a class body
- Class-private variables
- Class documentation strings
- Descriptors
- Overriding and nonoverriding descriptors
- Classes and Instances
- Instances
- _ _init_ _
- Attributes of instance objects
- The factory-function idiom
- _ _new_ _
- Attribute Reference Basics
- Getting an attribute from a class
- Getting an attribute from an instance
- Setting an attribute
- Bound and Unbound Methods
- Unbound method details
- Bound method details
- Inheritance
- Method resolution order
- Overriding attributes
- Delegating to superclass methods
- Cooperative superclass method calling
- Deleting class attributes
- The Built-in object Type
- Class-Level Methods
- Static methods
- Class methods
- Properties
- Why properties are important
- Properties and inheritance
- _ _slots_ _
- _ _getattribute_ _
- Per-Instance Methods
- Inheritance from Built-in Types
- Special Methods
- General-Purpose Special Methods
- Special Methods for Containers
- Sequences
- Mappings
- Sets
- Container slicing
- Container methods
- Special Methods for Numeric Objects
- Decorators
- Metaclasses
- How Python Determines a Classs Metaclass
- How a Metaclass Creates a Class
- Defining and using your own metaclasses
- A substantial custom metaclass example
- 6. Exceptions
- The try Statement
- try/except
- try/finally
- Python 2.5 Exception-Related Enhancements
- The try/except/finally statement
- The with statement
- Generator enhancements
- The try Statement
- Exception Propagation
- The raise Statement
- Exception Objects
- The Hierarchy of Standard Exceptions
- Standard Exception Classes
- Custom Exception Classes
- Custom Exceptions and Multiple Inheritance
- Other Exceptions Used in the Standard Library
- Error-Checking Strategies
- LBYL Versus EAFP
- Proper usage of EAFP
- LBYL Versus EAFP
- Handling Errors in Large Programs
- Logging Errors
- The logging module
- The assert Statement
- The _ _debug_ _ built-in variable
- 7. Modules
- Module Objects
- The import Statement
- Module body
- Attributes of module objects
- Python built-ins
- Module documentation strings
- Module-private variables
- The import Statement
- The from Statement
- The from ... import * statement
- from versus import
- Module Objects
- Module Loading
- Built-in Modules
- Searching the Filesystem for a Module
- The Main Program
- The reload Function
- Circular Imports
- sys.modules Entries
- Custom Importers
- Rebinding _ _import_ _
- Import hooks
- Packages
- Special attributes of package objects
- Absolute Versus Relative Imports
- The Distribution Utilities (distutils)
- Python Eggs
- 8. Core Built-ins
- Built-in Types
- Built-in Functions
- The sys Module
- The copy Module
- The collections Module
- deque
- defaultdict
- The functional Module
- The bisect Module
- The heapq Module
- The UserDict Module
- The optparse Module
- The itertools Module
- 9. Strings and Regular Expressions
- Methods of String Objects
- The string Module
- Locale Sensitivity
- The maketrans Function
- String Formatting
- Format Specifier Syntax
- Common String-Formatting Idioms
- Template Strings
- Text Wrapping and Filling
- The pprint Module
- The repr Module
- Unicode
- The codecs Module
- The unicodedata Module
- Regular Expressions and the re Module
- Pattern-String Syntax
- Common Regular Expression Idioms
- Sets of Characters
- Alternatives
- Groups
- Optional Flags
- Match Versus Search
- Anchoring at String Start and End
- Regular Expression Objects
- Match Objects
- Functions of Module re
- III. Python Library and Extension Modules
- 10. File and Text Operations
- Other Chapters That Also Deal with Files
- Organization of This Chapter
- File Objects
- Creating a File Object with open
- File mode
- Binary and text modes
- Buffering
- Sequential and nonsequential access
- Creating a File Object with open
- Attributes and Methods of File Objects
- Iteration on File Objects
- File-Like Objects and Polymorphism
- The tempfile Module
- 10. File and Text Operations
- Auxiliary Modules for File I/O
- The fileinput Module
- The linecache Module
- The struct Module
- The StringIO and cStringIO Modules
- Compressed Files
- The gzip Module
- The bz2 Module
- The tarfile Module
- The zipfile Module
- The zlib Module
- The os Module
- OSError Exceptions
- The errno Module
- Filesystem Operations
- Path-String Attributes of the os Module
- Permissions
- File and Directory Functions of the os Module
- The os.path Module
- The stat Module
- The filecmp Module
- The shutil Module
- File Descriptor Operations
- Text Input and Output
- Standard Output and Standard Error
- The print Statement
- Standard Input
- The getpass Module
- Richer-Text I/O
- The readline Module
- Console I/O
- The curses package
- The msvcrt Module
- The WConio and Console modules
- Interactive Command Sessions
- Initializing a Cmd Instance
- Methods of Cmd Instances
- Attributes of Cmd Instances
- A Cmd Example
- Internationalization
- The locale Module
- The gettext Module
- Using gettext for localization
- Essential gettext functions
- More Internationalization Resources
- 11. Persistence and Databases
- Serialization
- The marshal Module
- A marshaling example
- The marshal Module
- The pickle and cPickle Modules
- Functions of pickle and cPickle
- A pickling example
- Pickling instances
- Pickling customization with the copy_reg module
- Serialization
- The shelve Module
- A shelving example
- DBM Modules
- The anydbm Module
- The dumbdbm Module
- The dbm, gdbm, and dbhash Modules
- The whichdb Module
- Examples of DBM-Like File Use
- Berkeley DB Interfacing
- Simplified and Complete BSD DB Python Interfaces
- Module bsddb
- Examples of Berkeley DB Use
- The Python Database API (DBAPI) 2.0
- Exception Classes
- Thread Safety
- Parameter Style
- Factory Functions
- Type Description Attributes
- The connect Function
- Connection Objects
- Cursor Objects
- DBAPI-Compliant Modules
- Gadfly
- SQLite
- 12. Time Operations
- The time Module
- The datetime Module
- Class date
- Class time
- Class datetime
- Class timedelta
- The pytz Module
- The dateutil Module
- The sched Module
- The calendar Module
- The mx.DateTime Module
- Date and Time Types
- The DateTime Type
- Factory functions for DateTime
- Methods of DateTime instances
- Attributes of DateTime instances
- Arithmetic on DateTime instances
- The DateTimeDelta Type
- Factory functions for DateTimeDelta
- Methods of DateTimeDelta instances
- Attributes of DateTimeDelta instances
- Arithmetic on DateTimeDelta instances
- Other Attributes
- Submodules
- 13. Controlling Execution
- Dynamic Execution and the exec Statement
- Avoiding exec
- Expressions
- Compile and Code Objects
- Never exec nor eval Untrusted Code
- Dynamic Execution and the exec Statement
- Internal Types
- Type Objects
- The Code Object Type
- The frame Type
- Garbage Collection
- The gc Module
- The weakref Module
- Termination Functions
- Site and User Customization
- The site and sitecustomize Modules
- User Customization
- 14. Threads and Processes
- Threads in Python
- The thread Module
- The Queue Module
- Methods of Queue Instances
- Customizing Class Queue by Subclassing
- The threading Module
- Thread Objects
- Thread Synchronization Objects
- Timeout parameters
- Lock and RLock objects
- Condition objects
- Event objects
- Semaphore objects
- Thread Local Storage
- Threaded Program Architecture
- Process Environment
- Running Other Programs
- Running Other Programs with the os Module
- The Subprocess Module
- What to run, and how: args, executable, shell
- Subprocess files: stdin, stdout, stderr, bufsize, universal_newlines, close_fds
- Other arguments: preexec_fn, cwd, env, startupinfo, creationflags
- Attributes of subprocess.Popen instances
- Methods of subprocess.Popen instances
- The mmap Module
- Methods of mmap Objects
- Using mmap Objects for IPC
- 15. Numeric Processing
- The math and cmath Modules
- The operator Module
- Random and Pseudorandom Numbers
- Physically random and cryptographically strong random numbers
- The random module
- The decimal Module
- The gmpy Module
- 16. Array Processing
- The array Module
- Extensions for Numeric Array Computation
- The Numeric Package
- Array Objects
- Typecodes
- Shape and Indexing
- Storage
- Slicing
- Slicing examples
- Assigning to array slices
- Truth Values and Comparisons of Arrays
- Factory Functions
- Attributes and Methods
- Operations on Arrays
- Broadcasting
- In-place operations
- Functions
- Universal Functions (ufuncs)
- The Optional output Argument
- Callable Attributes
- ufunc Objects Supplied by Numeric
- Shorthand for Commonly Used ufunc Methods
- Auxiliary Numeric Modules
- 17. Tkinter GUIs
- Tkinter Fundamentals
- Dialogs
- The tkMessageBox module
- The tkSimpleDialog module
- The tkFileDialog module
- The tkColorChooser module
- Dialogs
- Tkinter Fundamentals
- Widget Fundamentals
- Common Widget Options
- Color options
- Length options
- Options expressing numbers of characters
- Other common options
- Common Widget Options
- Common Widget Methods
- Tkinter Variable Objects
- Tkinter Images
- Commonly Used Simple Widgets
- Button
- Checkbutton
- Entry
- Label
- Listbox
- Radiobutton
- Scale
- Scrollbar
- Container Widgets
- Frame
- Toplevel
- Menus
- Menu-Specific Methods
- Menu Entries
- Menu Example
- The Text Widget
- The ScrolledText Module
- Text Widget Methods
- Marks
- Tags
- Indices
- Fonts
- Text Example
- The Canvas Widget
- Canvas Methods on Items
- The Line Canvas Item
- The Polygon Canvas Item
- The Rectangle Canvas Item
- The Text Canvas Item
- A Simple Plotting Example
- Layout Management
- The Packer
- The Gridder
- The Placer
- Tkinter Events
- The Event Object
- Binding Callbacks to Events
- Event Names
- Keyboard events
- Mouse events
- Event-Related Methods
- An Events Example
- Other Callback-Related Methods
- 18. Testing, Debugging, and Optimizing
- Testing
- Unit Testing and System Testing
- The doctest Module
- The unittest Module
- The TestCase class
- Unit tests dealing with large amounts of data
- Testing
- Debugging
- Before You Debug
- The inspect Module
- An example of using inspect
- The traceback Module
- The pdb Module
- Debugging in IDLE
- The warnings Module
- Classes
- Objects
- Filters
- Functions
- Optimization
- Developing a Fast-Enough Python Application
- Benchmarking
- Large-Scale Optimization
- List operations
- String operations
- Dictionary operations
- Set operations
- Summary of big-O times for operations on Python built-in types
- Profiling
- The profile module
- Calibration
- The pstats module
- Small-Scale Optimization
- Module timeit
- Building up a string from pieces
- Searching and sorting
- Avoiding exec and from...import *
- Optimizing loops
- Optimizing I/O
- IV. Network and Web Programming
- 19. Client-Side Network Protocol Modules
- URL Access
- The urlparse Module
- The urllib Module
- Functions
- The FancyURLopener class
- The urllib2 Module
- Functions
- The Request class
- The OpenerDirector class
- Handler classes
- Handling authentication
- URL Access
- 19. Client-Side Network Protocol Modules
- Email Protocols
- The poplib Module
- The smtplib Module
- The HTTP and FTP Protocols
- The httplib Module
- The ftplib Module
- Network News
- Response Strings
- Methods
- Example
- Telnet
- Distributed Computing
- Other Protocols
- 20. Sockets and Server-Side Network Protocol Modules
- The socket Module
- socket Functions
- The socket Class
- Echo Server and Client Using TCP Sockets
- Echo Server and Client Using UDP Sockets
- Socket Timeout Behavior
- The socket Module
- The SocketServer Module
- The BaseRequestHandler Class
- HTTP Servers
- The BaseHTTPServer module
- The SimpleHTTPServer module
- The CGIHTTPServer module
- The SimpleXMLRPCServer module
- Event-Driven Socket Programs
- The select Module
- The asyncore and asynchat Modules
- The asyncore module
- The asynchat module
- The Twisted Framework
- The twisted.internet and twisted.protocols packages
- Reactors
- Transports
- Protocol handlers and factories
- Echo server using Twisted
- 21. CGI Scripting and Alternatives
- CGI in Python
- Form Submission Methods
- The cgi Module
- CGI Output and Errors
- Error messages
- The cgitb module
- Installing Python CGI Scripts
- Python CGI scripts on Microsoft web servers
- Python CGI scripts on Apache
- Python CGI scripts on Xitami
- CGI in Python
- Cookies
- The Cookie Module
- Cookie methods
- Morsel attributes and methods
- Using module Cookie
- The Cookie Module
- Other Server-Side Approaches
- FastCGI
- WSGI
- mod_python
- Custom Pure Python Servers
- Other Higher-Level-of-Abstraction Frameworks
- Webware
- Quixote
- web.py
- 22. MIME and Network Encodings
- Encoding Binary Data as Text
- The base64 Module
- The quopri Module
- The uu Module
- Encoding Binary Data as Text
- MIME and Email Format Handling
- Functions in Package email
- The email.Message Module
- The email.Generator Module
- Creating Messages
- The email.Encoders Module
- The email.Utils Module
- Example Uses of the email Package
- The Message Classes of the rfc822 and mimetools Modules
- 23. Structured Text: HTML
- The sgmllib Module
- Parsing HTML with sgmllib
- The sgmllib Module
- The htmllib Module
- The htmlentitydefs Module
- Parsing HTML with htmllib
- The HTMLParser Module
- Parsing HTML with HTMLParser
- The BeautifulSoup Extension
- Parsing HTML with BeautifulSoup
- Generating HTML
- Embedding
- Templating
- The Cheetah Package
- The Cheetah templating language
- The Template class
- A Cheetah example
- 24. Structured Text: XML
- An Overview of XML Parsing
- Parsing XML with SAX
- The xml.sax Package
- Attributes
- Incremental parsing
- The xml.sax.saxutils module
- The xml.sax Package
- Parsing XHTML with xml.sax
- Parsing XML with DOM
- The xml.dom Package
- The xml.dom.minidom Module
- Node objects
- Attr objects
- Document objects
- Element objects
- Parsing XHTML with xml.dom.minidom
- The xml.dom.pulldom Module
- Parsing XHTML with xml.dom.pulldom
- Changing and Generating XML
- Factory Methods of a Document Object
- Mutating Methods of an Element Object
- Mutating Methods of a Node Object
- Output Methods of a Node Object
- Changing and Outputting XHTML with xml.dom.minidom
- V. Extending and Embedding
- 25. Extending and Embedding Classic Python
- Extending Python with Pythons C API
- Building and Installing C-Coded Python Extensions
- The C compiler you need
- Compatibility of C-coded extensions among Python versions
- Building and Installing C-Coded Python Extensions
- Overview of C-Coded Python Extension Modules
- Return Values of Pythons C API Functions
- Module Initialization
- The PyMethodDef structure
- Extending Python with Pythons C API
- Reference Counting
- Accessing Arguments
- Creating Python Values
- Exceptions
- Abstract Layer Functions
- Concrete Layer Functions
- A Simple Extension Example
- Defining New Types
- Per-instance data
- The PyTypeObject definition
- Instance initialization and finalization
- Attribute access
- Type definition example
- 25. Extending and Embedding Classic Python
- Extending Python Without Pythons C API
- Embedding Python
- Installing Resident Extension Modules
- Setting Arguments
- Python Initialization and Finalization
- Running Python Code
- Pyrex
- The cdef Statement and Function Parameters
- External declarations
- cdef classes
- The cdef Statement and Function Parameters
- The ctypedef Statement
- The for...from Statement
- Pyrex Expressions
- A Pyrex Example: Greatest Common Divisor
- 26. Extending and Embedding Jython
- Importing Java Packages in Jython
- The Jython Registry
- Accessibility
- Type Conversions
- Calling overloaded Java methods
- The jarray module
- The java.util collection classes
- Subclassing a Java Class
- JavaBeans
- Importing Java Packages in Jython
- Embedding Jython in Java
- The PythonInterpreter Class
- The _ _builtin_ _ class
- The PythonInterpreter Class
- The PyObject Class
- The Py Class
- Compiling Python into Java
- The jythonc Command
- Adding Java-Visible Methods
- Python Applets and Servlets
- Python applets
- Python servlets
- 27. Distributing Extensions and Programs
- Pythons distutils
- The Distribution and Its Root
- The setup.py Script
- Metadata About the Distribution
- Distribution Contents
- Python source files
- Datafiles
- C-coded extensions
- The setup.cfg File
- The MANIFEST.in and MANIFEST Files
- Creating Prebuilt Distributions with distutils
- Pythons distutils
- py2exe
- py2app
- cx_Freeze
- PyInstaller
- A. About the Author
- Index
- About the Author
- Colophon
- Copyright
O'Reilly Media - inne książki
-
Keeping up with the Python ecosystem can be daunting. Its developer tooling doesn't provide the out-of-the-box experience native to languages like Rust and Go. When it comes to long-term project maintenance or collaborating with others, every Python project faces the same problem: how to build re...(203.15 zł najniższa cena z 30 dni)
207.64 zł
239.00 zł(-13%) -
Bringing a deep-learning project into production at scale is quite challenging. To successfully scale your project, a foundational understanding of full stack deep learning, including the knowledge that lies at the intersection of hardware, software, data, and algorithms, is required.This book il...(237.15 zł najniższa cena z 30 dni)
249.75 zł
289.00 zł(-14%) -
Frontend developers have to consider many things: browser compatibility, usability, performance, scalability, SEO, and other best practices. But the most fundamental aspect of creating websites is one that often falls short: accessibility. Accessibility is the cornerstone of any website, and if a...(194.65 zł najniższa cena z 30 dni)
207.20 zł
239.00 zł(-13%) -
In this insightful and comprehensive guide, Addy Osmani shares more than a decade of experience working on the Chrome team at Google, uncovering secrets to engineering effectiveness, efficiency, and team success. Engineers and engineering leaders looking to scale their effectiveness and drive tra...(118.15 zł najniższa cena z 30 dni)
121.29 zł
149.00 zł(-19%) -
Data modeling is the single most overlooked feature in Power BI Desktop, yet it's what sets Power BI apart from other tools on the market. This practical book serves as your fast-forward button for data modeling with Power BI, Analysis Services tabular, and SQL databases. It serves as a starting ...(194.65 zł najniższa cena z 30 dni)
206.44 zł
239.00 zł(-14%) -
C# is undeniably one of the most versatile programming languages available to engineers today. With this comprehensive guide, you'll learn just how powerful the combination of C# and .NET can be. Author Ian Griffiths guides you through C# 12.0 and .NET 8 fundamentals and techniques for building c...(228.65 zł najniższa cena z 30 dni)
249.84 zł
289.00 zł(-14%) -
Learn how to get started with Futures Thinking. With this practical guide, Phil Balagtas, founder of the Design Futures Initiative and the global Speculative Futures network, shows you how designers and futurists have made futures work at companies such as Atari, IBM, Apple, Disney, Autodesk, Luf...(152.15 zł najniższa cena z 30 dni)
155.30 zł
179.00 zł(-13%) -
Augmented Analytics isn't just another book on data and analytics; it's a holistic resource for reimagining the way your entire organization interacts with information to become insight-driven.Moving beyond traditional, limited ways of making sense of data, Augmented Analytics provides a dynamic,...(181.25 zł najniższa cena z 30 dni)
181.15 zł
219.00 zł(-17%) -
Learn how to prepare for—and pass—the Kubernetes and Cloud Native Associate (KCNA) certification exam. This practical guide serves as both a study guide and point of entry for practitioners looking to explore and adopt cloud native technologies. Adrián González Sánchez ...
Kubernetes and Cloud Native Associate (KCNA) Study Guide Kubernetes and Cloud Native Associate (KCNA) Study Guide
(169.14 zł najniższa cena z 30 dni)177.65 zł
209.00 zł(-15%) -
Python is an excellent way to get started in programming, and this clear, concise guide walks you through Python a step at a time—beginning with basic programming concepts before moving on to functions, data structures, and object-oriented design. This revised third edition reflects the gro...(148.67 zł najniższa cena z 30 dni)
148.56 zł
179.00 zł(-17%)
Dzieki opcji "Druk na żądanie" do sprzedaży wracają tytuły Grupy Helion, które cieszyły sie dużym zainteresowaniem, a których nakład został wyprzedany.
Dla naszych Czytelników wydrukowaliśmy dodatkową pulę egzemplarzy w technice druku cyfrowego.
Co powinieneś wiedzieć o usłudze "Druk na żądanie":
- usługa obejmuje tylko widoczną poniżej listę tytułów, którą na bieżąco aktualizujemy;
- cena książki może być wyższa od początkowej ceny detalicznej, co jest spowodowane kosztami druku cyfrowego (wyższymi niż koszty tradycyjnego druku offsetowego). Obowiązująca cena jest zawsze podawana na stronie WWW książki;
- zawartość książki wraz z dodatkami (płyta CD, DVD) odpowiada jej pierwotnemu wydaniu i jest w pełni komplementarna;
- usługa nie obejmuje książek w kolorze.
Masz pytanie o konkretny tytuł? Napisz do nas: sklep[at]helion.pl.
Książka, którą chcesz zamówić pochodzi z końcówki nakładu. Oznacza to, że mogą się pojawić drobne defekty (otarcia, rysy, zagięcia).
Co powinieneś wiedzieć o usłudze "Końcówka nakładu":
- usługa obejmuje tylko książki oznaczone tagiem "Końcówka nakładu";
- wady o których mowa powyżej nie podlegają reklamacji;
Masz pytanie o konkretny tytuł? Napisz do nas: sklep[at]helion.pl.
Książka drukowana
Oceny i opinie klientów: Python in a Nutshell. 2nd Edition Alex Martelli (0) Weryfikacja opinii następuję na podstawie historii zamówień na koncie Użytkownika umieszczającego opinię. Użytkownik mógł otrzymać punkty za opublikowanie opinii uprawniające do uzyskania rabatu w ramach Programu Punktowego.