Python Cookbook, 3rd Edition Recipes for Mastering Python 3, David Beazley

артикул: 1066846743
ЗГІДНО З НАШИМИ ДАНИМИ, ЦЕЙ ПРОДУКТ ЗАРАЗ НЕ ДОСТУПНИЙ
835.00 грн.
Доставка з: Україна
Опис
УВАГА! Якщо Ви шукаєте можливість купити книгу/книги 1000 грн. по программі ЄПідтримка, то така можливість є сайті КупиЧитай. На даний момент на ресурсі Пром ви можете замовити товар із накладним платежем/переводом на карту/оплатою через про-оплату звичайною картою банка (не акційною картою в рамках програми ЄПІдтримка) Комплектация заказа на эту книгу занимает от 1 до 5 рабочих дней. If you need help writing programs inPython 3, or want to update older Python 2 code, this book is just the ticket. Packed with practical recipes written and tested with Python 3.3, this unique cookbook is for experienced Python programmers who want to focus on modern tools and idioms.Inside, you’ll find complete recipes for more than a dozen topics, covering the core Python language as well as tasks common to a wide variety of application domains. Each recipe contains code samples you can use in your projects right away, along with a discussion about how and why the solution works.Topics include:Data Structures and AlgorithmsStrings and TextNumbers, Dates, and TimesIterators and GeneratorsFiles and I/OData Encoding and ProcessingFunctionsClasses and ObjectsMetaprogrammingModules and PackagesNetwork and Web ProgrammingConcurrencyUtility Scripting and System AdministrationTesting, Debugging, and ExceptionsC ExtensionsAbout the AuthorDavid Beazleyis an independent software developer and book author living in the city of Chicago. He primarily works on programming tools, provide custom software development, and teach practical programming courses for software developers, scientists, and engineers. He is best known for his work with the Python programming language, for which he has created several open-source packages (e.g., Swig and PLY) and authored the acclaimed Python Essential Reference. He also has significant experience with systems programming in C, C++, and assembly language.Brian K. Jonesis a system administrator in the department of computer science at Princeton University.Chapter 1 : Data Structures and AlgorithmsUnpacking a Sequence into Separate VariablesUnpacking Elements from Iterables of Arbitrary LengthKeeping the Last N ItemsFinding the Largest or Smallest N ItemsImplementing a Priority QueueMapping Keys to Multiple Values in a DictionaryKeeping Dictionaries in OrderCalculating with DictionariesFinding Commonalities in Two DictionariesRemoving Duplicates from a Sequence while Maintaining OrderNaming a SliceDetermining the Most Frequently Occurring Items in a SequenceSorting a List of Dictionaries by a Common KeySorting Objects Without Native Comparison SupportGrouping Records Together Based on a FieldFiltering Sequence ElementsExtracting a Subset of a DictionaryMapping Names to Sequence ElementsTransforming and Reducing Data at the Same TimeCombining Multiple Mappings into a Single MappingChapter 2 : Strings and TextSplitting Strings on Any of Multiple DelimitersMatching Text at the Start or End of a StringMatching Strings Using Shell Wildcard PatternsMatching and Searching for Text PatternsSearching and Replacing TextSearching and Replacing Case-Insensitive TextSpecifying a Regular Expression for the Shortest MatchWriting a Regular Expression for Multiline PatternsNormalizing Unicode Text to a Standard RepresentationWorking with Unicode Characters in Regular ExpressionsStripping Unwanted Characters from StringsSanitizing and Cleaning Up TextAligning Text StringsCombining and Concatenating StringsInterpolating Variables in StringsReformatting Text to a Fixed Number of ColumnsHandling HTML and XML Entities in TextTokenizing TextWriting a Simple Recursive Descent ParserPerforming Text Operations on Byte StringsChapter 3 : Numbers, Dates, and TimesRounding Numerical ValuesPerforming Accurate Decimal CalculationsFormatting Numbers for OutputWorking with Binary, Octal, and Hexadecimal IntegersPacking and Unpacking Large Integers from BytesPerforming Complex-Valued MathWorking with Infinity and NaNsCalculating with FractionsCalculating with Large Numerical ArraysPerforming Matrix and Linear Algebra CalculationsPicking Things at RandomConverting Days to Seconds, and Other Basic Time ConversionsDetermining Last Friday’s DateFinding the Date Range for the Current MonthConverting Strings into DatetimesManipulating Dates Involving Time ZonesChapter 4 : Iterators and GeneratorsManually Consuming an IteratorDelegating IterationCreating New Iteration Patterns with GeneratorsImplementing the Iterator ProtocolIterating in ReverseDefining Generator Functions with Extra StateTaking a Slice of an IteratorSkipping the First Part of an IterableIterating Over All Possible Combinations or PermutationsIterating Over the Index-Value Pairs of a SequenceIterating Over Multiple Sequences SimultaneouslyIterating on Items in Separate ContainersCreating Data Processing PipelinesFlattening a Nested SequenceIterating in Sorted Order Over Merged Sorted IterablesReplacing Infinite while Loops with an IteratorChapter 5 : Files and I/OReading and Writing Text DataPrinting to a FilePrinting with a Different Separator or Line EndingReading and Writing Binary DataWriting to a File That Doesn’t Already ExistPerforming I/O Operations on a StringReading and Writing Compressed DatafilesIterating Over Fixed-Sized RecordsReading Binary Data into a Mutable BufferMemory Mapping Binary FilesManipulating PathnamesTesting for the Existence of a FileGetting a Directory ListingBypassing Filename EncodingPrinting Bad FilenamesAdding or Changing the Encoding of an Already Open FileWriting Bytes to a Text FileWrapping an Existing File Descriptor As a File ObjectMaking Temporary Files and DirectoriesCommunicating with Serial PortsSerializing Python ObjectsChapter 6 : Data Encoding and ProcessingReading and Writing CSV DataReading and Writing JSON DataParsing Simple XML DataParsing Huge XML Files IncrementallyTurning a Dictionary into XMLParsing, Modifying, and Rewriting XMLParsing XML Documents with NamespacesInteracting with a Relational DatabaseDecoding and Encoding Hexadecimal DigitsDecoding and Encoding Base64Reading and Writing Binary Arrays of StructuresReading Nested and Variable-Sized Binary StructuresSummarizing Data and Performing StatisticsChapter 7 : FunctionsWriting Functions That Accept Any Number of ArgumentsWriting Functions That Only Accept Keyword ArgumentsAttaching Informational Metadata to Function ArgumentsReturning Multiple Values from a FunctionDefining Functions with Default ArgumentsDefining Anonymous or Inline FunctionsCapturing Variables in Anonymous FunctionsMaking an N-Argument Callable Work As a Callable with Fewer ArgumentsReplacing Single Method Classes with FunctionsCarrying Extra State with Callback FunctionsInlining Callback FunctionsAccessing Variables Defined Inside a ClosureChapter 8 : Classes and ObjectsChanging the String Representation of InstancesCustomizing String FormattingMaking Objects Support the Context-Management ProtocolSaving Memory When Creating a Large Number of InstancesEncapsulating Names in a ClassCreating Managed AttributesCalling a Method on a Parent ClassExtending a Property in a SubclassCreating a New Kind of Class or Instance AttributeUsing Lazily Computed PropertiesSimplifying the Initialization of Data StructuresDefining an Interface or Abstract Base ClassImplementing a Data Model or Type SystemImplementing Custom ContainersDelegating Attribute AccessDefining More Than One Constructor in a ClassCreating an Instance Without Invoking initExtending Classes with MixinsImplementing Stateful Objects or State MachinesCalling a Method on an Object Given the Name As a StringImplementing the Visitor PatternImplementing the Visitor Pattern Without RecursionManaging Memory in Cyclic Data StructuresMaking Classes Support Comparison OperationsCreating Cached InstancesChapter 9 : MetaprogrammingPutting a Wrapper Around a FunctionPreserving Function Metadata When Writing DecoratorsUnwrapping a DecoratorDefining a Decorator That Takes ArgumentsDefining a Decorator with User Adjustable AttributesDefining a Decorator That Takes an Optional ArgumentEnforcing Type Checking on a Function Using a DecoratorDefining Decorators As Part of a ClassDefining Decorators As ClassesApplying Decorators to Class and Static MethodsWriting Decorators That Add Arguments to Wrapped FunctionsUsing Decorators to Patch Class DefinitionsUsing a Metaclass to Control Instance CreationCapturing Class Attribute Definition OrderDefining a Metaclass That Takes Optional ArgumentsEnforcing an Argument Signature on *args and **kwargsEnforcing Coding Conventions in ClassesDefining Classes ProgrammaticallyInitializing Class Members at Definition TimeImplementing Multiple Dispatch with Function AnnotationsAvoiding Repetitive Property MethodsDefining Context Managers the Easy WayExecuting Code with Local Side EffectsParsing and Analyzing Python SourceDisassembling Python Byte CodeChapter 10 : Modules and PackagesMaking a Hierarchical Package of ModulesControlling the Import of EverythingImporting Package Submodules Using Relative NamesSplitting a Module into Multiple FilesMaking Separate Directories of Code Import Under a Common NamespaceReloading ModulesMaking a Directory or Zip File Runnable As a Main ScriptReading Datafiles Within a PackageAdding Directories to sys.pathImporting Modules Using a Name Given in a StringLoading Modules from a Remote Machine Using Import HooksPatching Modules on ImportInstalling Packages Just for YourselfCreating a New Python EnvironmentDistributing PackagesChapter 11 : Network and Web ProgrammingInteracting with HTTP Services As a ClientCreating a TCP ServerCreating a UDP ServerGenerating a Range of IP Addresses from a CIDR AddressCreating a Simple REST-Based InterfaceImplementing a Simple Remote Procedure Call with XML-RPCCommunicating Simply Between InterpretersImplementing Remote Procedure CallsAuthenticating Clients SimplyAdding SSL to Network ServicesPassing a Socket File Descriptor Between ProcessesUnderstanding Event-Driven I/OSending and Receiving Large ArraysChapter 12 : ConcurrencyStarting and Stopping ThreadsDetermining If a Thread Has StartedCommunicating Between ThreadsLocking Critical SectionsLocking with Deadlock AvoidanceStoring Thread-Specific StateCreating a Thread PoolPerforming Simple Parallel ProgrammingDealing with the GIL (and How to Stop Worrying About It)Defining an Actor TaskImplementing Publish/Subscribe MessagingUsing Generators As an Alternative to ThreadsPolling Multiple Thread QueuesLaunching a Daemon Process on UnixChapter 13 : Utility Scripting and System AdministrationAccepting Script Input via Redirection, Pipes, or Input FilesTerminating a Program with an Error MessageParsing Command-Line OptionsPrompting for a Password at RuntimeGetting the Terminal SizeExecuting an External Command and Getting Its OutputCopying or Moving Files and DirectoriesCreating and Unpacking ArchivesFinding Files by NameReading Configuration FilesAdding Logging to Simple ScriptsAdding Logging to LibrariesMaking a Stopwatch TimerPutting Limits on Memory and CPU UsageLaunching a Web BrowserChapter 14 : Testing, Debugging, and ExceptionsTesting Output Sent to stdoutPatching Objects in Unit TestsTesting for Exceptional Conditions in Unit TestsLogging Test Output to a FileSkipping or Anticipating Test FailuresHandling Multiple ExceptionsCatching All ExceptionsCreating Custom ExceptionsRaising an Exception in Response to Another ExceptionReraising the Last ExceptionIssuing Warning MessagesDebugging Basic Program CrashesProfiling and Timing Your ProgramMaking Your Programs Run FasterChapter 15 : C ExtensionsAccessing C Code Using ctypesWriting a Simple C Extension ModuleWriting an Extension Function That Operates on ArraysManaging Opaque Pointers in C Extension ModulesDefining and Exporting C APIs from Extension ModulesCalling Python from CReleasing the GIL in C ExtensionsMixing Threads from C and PythonWrapping C Code with SwigWrapping Existing C Code with CythonUsing Cython to Write High-Performance Array OperationsTurning a Function Pointer into a CallablePassing NULL-Terminated Strings to C LibrariesPassing Unicode Strings to C LibrariesConverting C Strings to PythonWorking with C Strings of Dubious EncodingPassing Filenames to C ExtensionsPassing Open Files to C ExtensionsReading File-Like Objects from CConsuming an Iterable from CDiagnosing Segmentation FaultsAppendix : Further ReadingOnline ResourcesBooks for Learning PythonAdvanced BooksIndexColophonТакже купить книгу Python Cookbook, 3rd Edition Recipes for Mastering Python 3, David Beazley можно по ссылке
Характеристики
| Состояние: | Новое |
Графік зміни ціни & курс обміну валют
Користувачі також переглядали

531.71 грн.
Garten of Banban Hot Game Print T-shirt 100% Cotton High Quality Tee-shirt Summer O-neck Tees Boys and Girls Children Tshirts
aliexpress.com
1,503.79 грн.
Для Cadillac CT4 текстурированный центральный контрольный механизм из углеродного волокна Внутренний патч модифицированный руль руля вентиляционного отверстия
aliexpress.ru
5,505.24 грн.
TMC2130 драйвер Einsy rambo1.1a материнская плата + 2004LCD дисплей + Датчик накаливания + PINDA V2 + power panic для Prusa i3 MK3 3d принтер
aliexpress.ru
796.10 грн.
Мужская ветрозащитная куртка с капюшоном, Повседневная ветрозащитная куртка с манжетами и капюшоном, Новинка осени 2021
aliexpress.ru
535.90 грн.
2020 New Style Fashion Women Camouflage Sweatpants Casual Cargo Joggers Military Drawstring Army Harem Pencil Long Trousers D30
aliexpress.com
277.71 грн.
Впитывающая пот спортивная повязка на голову, дышащая, высокая эластичность, охлаждающая повязка на голову для бега, баскетбола, тренажерного зала, йоги, фитнеса, повязка на голову
joom.ru
240.72 грн.
Золото, серебро, десертная посуда для торта, плевалка для костей, металлический обеденный диск, круглая тарелка, мелкий поднос
joom.ru
156.83 грн.
Безопасный скребок для языка. Легко хранить. Удобен. Борется с неприятным запахом изо рта.
joom.ru
374.10 грн.
Аксессуары для кукол, плюшевая одежда для кукол, хлопковая кукла, платья принцессы, хлопковая кукла 20 см
joom.ru
2,315.46 грн.
1 шт., маска для глаз, сублимационные заготовки, шелковые маски для сна с регулируемым ремешком, маска для глаз, белая мягкая маска для глаз для путешествий
joom.ru
106.81 грн.
Мода для кукол 30 см 1/6, игрушки «сделай сам», бейсбольные кепки, ковбойские шляпы Suny, кукольная шляпа, бейсбольная кепка для верховой езды
joom.ru
406.92 грн.
Удобная шапка из флиса ягненка с кошачьими ушками, шерстяные вязаные шапки, модная плюшевая шапка на открытом воздухе
joom.ru
759.66 грн.
Kill Bill Vol 1 Винтажная черно-белая графическая бейсболка Умы Турман из потертого денима, шляпы дальнобойщика Best
joom.ru
469.45 грн.
Мода Контраст Кружево Ручная Работа Женщины Эластичная Рыбацкая Шляпа Вязаная Шапка Ведро Кепка Толстая Теплая
joom.ru
291.26 грн.
Овощ Чеснок Измельчитель Мясорубка Лезвие Мясорубка Запчасти Запасные части Кухонная техника Запчасти
joom.ru
328.25 грн.
High Quality Buoyancy Plastic Cat fish Ball Boia Non Water-absorption Fishing Float Eva Foam
joom.ru
385.56 грн.
Женская двусторонняя солнцезащитная шляпа-ведро на открытом воздухе Шляпы для бассейна Шляпа рыбака Защита от солнца
joom.ru
230.03 грн.
Women Gloves Stylish Hand Warm Winter Fingerless Mitten Ladies Faux Woolen Crochet Knitted Wrist Warmer Gloves Hot Sale
aliexpress.com
1,660.69 грн.
chest bag crossbody bag women's new men's bag bag shoulder bag dumpling bag minimalism nylon bag all-match casual
fordeal.com
928.16 грн.
platform slippers 2021new women's summer indoor foam increased home non-slip cute home slippers outer wear
fordeal.com
1,350.00 грн.
Кроссовки мужские Adidas красные, Адидас, дышащий материал, прошиты. Код SD-10314 42, Красный
prom.ua
1,235.63 грн.
Dark Spark Lighter Bad JK Uniform College Short-Sleeved Student Sailor Suit School Uniform womens clothing sailor uniform
aliexpress.com










