The Hacker's Guide to Python

上传:mingo_敏 浏览: 69 推荐: 0 文件:pdf 大小:500kb 上传时间:2019-09-28 21:41:28 版权申诉
比较好的一本关于Python的书,英文文字版。CONTENTS3.2 Sphinx modules鲁····音433.3 Extending Sphinx474 Distribution504.1 A bit of history504.2 Packaging with pbr534.3 The Wheel format554.4 Package installation574.5 Sharing your work with the world594.6 Interview with Nick Coghlan,,,,,,644.7 Entry points664.7.1 Visualising entry points674.7.2 Using console scripts684.7.3 Using plugins and drivers715 Virtual environments756 Unit testing826.1 The basics826.2 Fixtures916. 3 Mocking鲁鲁····鲁番鲁鲁鲁鲁926.4 Scenarios,,,,,986.5 Test streaming and parallelism1026.6 Coverage1076.7 Using virtualeny with tox..........,,,111CONTENTS6.8 Testing policy......,.1166.9 Interview with robert collins.,..1177 Methods and decorators1217.1 Creating decorators,,,1217.2 How methods work in Python1287.3 Static methods,,,,1317. 4 Class method.,,,,,1327.5 Abstract methods,,,,,,,,,,1337.6 Mixing static, class, and abstract methods,,,1357.7 The truth about super1388 Functional programming1438.1 Generators.,,,,,,,,,,,,,···········鲁1448.2 List comprehensions,,,,,,,,1508. 3 Functional functions functioning1519 The ast1619.1 Hy春·香,.,,,1659.2 Interview with Paul tagliamonte···音16710 Performances and optimizations17310.1 Data structures17310.2 Profiling,,,,,17510.3 Ordered list and bisect182CONTENTS10.4 Namedtuple and slots18410.5 Memoization.....19110.6 PyPy19310.7 Achieving zero copy with the buffer proto col,,,19510. 8 Interview with victor stinger20211 Scaling and architecture20511 A note on multi- threading.··.,,,,.20511.2 Multiprocessing vs multithreading20811. 3 Asynchronous and event-driven architecture,,,21011.4 Service-oriented architecture21512 RDBMS and oRM21912.1 Streaming data with Flask and PostgreSQL22312.2 Interview with Dimitri Fontaine,..,,,,, 23013 Python 3 support strategies24113. 1 Language and standard library,,,24313.2 External libraries24613. 3 Using six···音24714 Write less code more25114.1 Single dispatcher25114.2 Context managers,,,,,257List of Figures1 Standard package directory6.1 Coverage of ceilometer. publisher,,,11010.1 CAche grind example,.17710.2 Using slice on memoryview objects19813.1 Python 2 base classes24413.2 Python 3 base classes,,,,,245List of Examples1.1 A pep& run81.2 Running pep8 with -ignore2.1 Hy module importer132.2 A documented aPi change322.3 a documented API change with warning332. 4 Running python -W error343.1 Code from sphinxcontrib pecanwsme. rest. setup484.1 setup. py using distutils·······.·········504.2 setup. py using setuptools514.3 Using setup. py sdist594.4 Result of epi group list674.5 Result of epi group show console_scripts674.6 Result of epi ep show console_ scripts coverage684.7 A console script generated by setuptools704.8 Running pytimed聊看鲁,,,735.1 Automatic virtual environment creation ..................775.2 Boostraping a venv environment786.1 A really simple test in test true. py836.2 Failing a test886.3 Skipping tests......88LIST OF EXAMPLES6.4 Using setUp with unittest906.5 Using fixtures. EnvironmentVariable926.6 Basic mock usage936.7 Checking method calls946.8 Using mock patch956.9 Using mock patch to test a set of behaviour956.10 testscenarios basic usage996.11 Using testscenarios to test drivers1016.12 Using subunit2pyunit··········1026.13A test conf file1056. 14 Running test runparallel1066.15 Using nosetests --with-coverage,,,1086. 16 Using coverage with testrepository,,,1116.17 A. travis yml example file1177.1 A registering decorator1227.2 Source code of functools update wrapper in Python 3.3,,,1257.3 Using functoolswraps,,,1267.4 Retrieving function arguments using inspect1277.5 A Python 2 method1287.6 A Python 3 method,,,,1287.7 Calling unbound get_size in Python 21297.8 Calling unbound get_size in Python 31297.9 Calling bound get size····章1307.10 @staticmethod usage......,,,1317.11 Implementing an abstract method..1347.12 Implementing an abstract method using abc1347. 13 Mixing @clas method and @abstractmethod1367. 14 USing super()with abstract methods.......... 137LIST OF EXAMPLES8.1 yield returning a value1488.2 filter usage in Python 3,,,,,,1528.3 Using first1568.4 Using the operator module with itertools groupby,,,1609.1 Parsing Python code to AST春·鲁自···,,,1619.2 Hello world using Python AST......1639.3 Changing all binary operation to addition16410.1 Using the pRofile module17510.2 Using cAche Grind to visualize Python profiling data17610.3 A function defined in a function disassembled18010.4 Disassembling a closure18110.5 Usage of bisect,,,18210.6 Usage of bisectinsort,,,18310.7 A SortedList implementation18310. 8 A class declaration using slots,18810.9 Memory usage of objects using slots18810. 10 Declaring a class using namedtuple18910.11 Memory usage of a class built from collections. namedtuple.... 19010.12A basic memoization technique,,,19110.13 Using functools. lru cache,,,19211.1 Result of time python worker. py20911.2 Worker using multiprocessing.,.2091. 3 Result of time python worker. py····章20911. 4 Basic example of using select,,,21111.5 Example with pyev21412. 1 Creating the message table22312.2 The notify _on_insert function22412. 3 The trigger for notify_on_insert,,,225LIST OF EXAMPLES12. 4 Receiving notifications in Python22512.5 Flask streamer application,,,,,,22714.1 Simple implementation of a context object25714.2 Simplest usage of contextlib. contextmanager,,,25814.3 Using a context manager on a pipeline object25914.4 Opening two files at the same time26014.5 Opening two files at the same time with one with statement260
上传资源
用户评论

Delude 2019-09-28 21:41:28

非常不错的资源,感谢分享。

lynn_8698 2019-09-28 21:41:28

还可以,感谢分享

inject_9490 2019-09-28 21:41:28

非常不错的资源,感谢分享

especially5013 2019-09-28 21:41:28

该资源还是可以的,就是是英文的看的费劲啊!