teapawt
TwittingPython
@TwittingPython
Python trivia and all the small things I find interesting. Appreciate comments.
Joined September 2016
Tweets
87
Following
0
Followers
11
Likes
2
Tweets
Tweets & Replies
Reposts
Media
Search
Timeline
Grid
Gallery
TwittingPython
@TwittingPython
16 Feb 2017
Short but amazing (at least for me) intro to network programming. We start by opening two terminals: for python and netcat utility.
#Python
3
TwittingPython
@TwittingPython
20 Jan 2017
Mystery solved. David Beazley on how he did slides for talks like
youtube.com/watch?v=j6VSAsKA…
Answer here:
forum.dabeaz.com/t/how-to-mo…
#Python
TwittingPython
@TwittingPython
21 Nov 2016
visuals:
TwittingPython
@TwittingPython
28 Oct 2016
poem = """My name is Yon Yonson, I come from Wisconsin, ... """ >> ''.join(islice(cycle(poem), 10001))
#Python
TwittingPython
@TwittingPython
25 Oct 2016
The difference between `map` and `itertools.starmap` parallels the distinction betw. func(a,b) and func(*c)
#Python
TwittingPython
@TwittingPython
20 Oct 2016
(enum.Enum) members can be compared by identity, and the enumeration itself can be iterated over
#Python
1
TwittingPython
@TwittingPython
18 Oct 2016
hashes are fast and there are no collisions for 99k string entries
#Python
TwittingPython
@TwittingPython
11 Oct 2016
>> sum([.1, .1, .1, .1, .1, .1, .1, .1, .1, .1]) 0.999(9) >> math.fsum([.1, .1,.1,.1,.1,.1,.1,.1,.1,.1]) 1.0
#Python
Load more