My Python Network Programming Notes

From Got Opinion Wiki
Revision as of 16:48, 31 March 2019 by Paul (talk | contribs) (→‎Resources)
Jump to navigation Jump to search

Resources

Python random module implements pseudo-random number generators for various distributions.

Python timeit module used to measure execution time of small code snippets

Books

Foundations of Python Network Programming 3rd ed. Edition by Brandon Rhodes and associated scripts and examples on github

Playground

Create some bytes to send over socket.

>> b = bytes('bearerModification'* 10, 'ascii')
>>>> b		  
b'bearerModificationbearerModificationbearerModificationbearerModificationbearerModificationbearerModificationbearerModificationbearerModificationbearerModificationbearerModification'
>>>
To Python programming