Difference between revisions of "My Python Network Programming Notes"

From Got Opinion Wiki
Jump to navigation Jump to search
m (added random)
Line 8: Line 8:


[https://www.amazon.com/Foundations-Python-Network-Programming-Brandon/dp/1430258543/ Foundations of Python Network Programming 3rd ed. Edition] by Brandon Rhodes and associated [https://github.com/brandon-rhodes/fopnp/tree/m/py3 scripts and examples] on [https://github.com/ github]
[https://www.amazon.com/Foundations-Python-Network-Programming-Brandon/dp/1430258543/ Foundations of Python Network Programming 3rd ed. Edition] by Brandon Rhodes and associated [https://github.com/brandon-rhodes/fopnp/tree/m/py3 scripts and examples] on [https://github.com/ github]
== Playground ==
Create some bytes to send over socket.
<pre>>> b = bytes('bearerModification'* 10, 'ascii')
>>>> b  
b'bearerModificationbearerModificationbearerModificationbearerModificationbearerModificationbearerModificationbearerModificationbearerModificationbearerModificationbearerModification'
>>></pre>


<center>[[Python programming|To Python programming]]</center>
<center>[[Python programming|To Python programming]]</center>

Revision as of 17:48, 31 March 2019

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