Wednesday evening October 15th - 2 great lectures in OBA Amsterdam. Free. No registration required. 10 min walk from Central Station. Meals available in the OBA restaurant. Check the LinkedIn posts or Meetup.
#sensemakersams
`functools.partial()` lets you put a wrapper around an existing function (it “freezes” some portion of a function’s arguments and/or keywords)
To illustrate this we make our own print() function defaulting the `end` keyword to a comma (regular print's default = newline)
#python
🎙️ I sat down with @jhodapp the other day to discuss:
• The benefits of #coaching, also for #developers
• The effectiveness of (real-world) projects-based learning
• How soft skills / #mindset really matter
You can listen to the interview here: https://t.co/KVyOkoAGfw
@s_gruppetta_ct An outstanding book, highly recommended. I use the first chapter in class as a gentle introduction to their first Python program for my freshmen students. They appreciate it. Kudos and thanks to Stephen.
@s_gruppetta_ct An outstanding book, highly recommended. I use the first chapter in class as a gentle introduction to their first Python program for my freshmen students. They appreciate it. Kudos and thanks to Stephen.
My 12th #Python book is now on Kickstarter! This time I am writing about Python Logging
You'll learn everything you need to know about this topic. I'll also introduce you to a couple of other Python logging packages
@driscollis Just finished the book. All you need to know about standard Python logging and more. In Mike's easy-to-follow style. Lots of examples in the book and from the accompanying Github repo. I have learned some new tricks like the built-in log rotation and many more. Thanks Mike."
@s_gruppetta_ct @draftacenter@Xowap Also tried zipfile (it is in the standard library) on my result, but it makes it bigger. Also tried it on a bytes object with 2 bytes per number. No luck either.
Finally, I used a slightly bigger end value in the randint, but that makes no difference.
@s_gruppetta_ct @draftacenter@Xowap We have 1M positive integers between 0 and 300. Each such integer would fit in 9 bits. By packing these 9 bit numbers in a bytes or bytearray object of 8 bit bytes you would need 1M * 9 / 8 = 1_125_000 bytes. Ex overhead I get: