Programming 

PyCoder’s Weekly: Issue #411 (March 10, 2020)

#411 – MARCH 10, 2020 View in Browser » Post-Mortem Python Plotting Who loves debugging things that only fail occasionally? Just me? Maybe you need to check out Andy Jones’ extract() function that “magically” extracts a caller’s environment into an IPython interpreter session. Mix in a little post-mortem debugging with Jupyter’s %debug magic command, and you’ll be painlessly debugging finicky code in no time. ANDY JONES How to Use Jupyter Notebooks in 2020 In this first of a three-part blog post, LJ Miranda surveys the data science landscape and discusses…

Read More
Programming 

PyCoder’s Weekly: Issue #410 (March 3, 2020)

#410 – MARCH 3, 2020 View in Browser » Advanced Usage of Python Requests “While it’s easy to immediately be productive with requests because of the simple API, the library also offers extensibility for advanced use cases. If you’re writing an API-heavy client or a web scraper you’ll probably need tolerance for network failures, helpful debugging traces and syntactic sugar.” DANI HODOVIC EOF Is Not a Character Do you know how an application knows when a read operation reaches the end of a file? In this interesting read, explore what…

Read More
Programming 

PyCoder’s Weekly: Issue #408 (Feb. 18, 2020)

#408 – FEBRUARY 18, 2020 View in Browser » Finding the Perfect Python Code Editor Find your perfect Python development setup with this review of Python IDEs and code editors. Writing Python using IDLE or the Python REPL is great for simple things, but not ideal for larger programming projects. With this course you’ll get an overview of the most common Python coding environments to help you make an informed decision. REAL PYTHON video Overloading Functions in Python Python does not natively support function overloading (having multiple functions with the…

Read More
Programming 

PyCoder’s Weekly: Issue #407 (Feb. 11, 2020)

#407 – FEBRUARY 11, 2020 View in Browser » Understanding Best-Practice Python Tooling by Comparing Popular Project Templates “Use Flake8, pytest, and Sphinx in your current Python project. Also evaluate pre-commit, black, and Pylint. For your next project, consider adding poetry and Dependabot.” JONAS KEMPER Playing and Recording Sound in Python Learn about libraries that can be used for playing and recording sound in Python, such as PyAudio and python-sounddevice. You’ll also see code snippets for playing and recording sound files and arrays, as well as for converting between different…

Read More
Programming 

PyCoder’s Weekly: Issue #405 (Jan. 28, 2020)

#405 – JANUARY 28, 2020 View in Browser » Python GUI Programming With Tkinter In this article, you’ll learn the basics of GUI programming with Tkinter, the de-facto Python GUI framework. Master GUI programming concepts such as widgets, geometry managers, and event handlers. Then, put it all together by building two applications: a temperature converter and a text editor. REAL PYTHON Pythonic Code Review [2016] “In this article I’ll focus on my personal experience in authoring and reviewing Python code from both psychological and technical perspectives. And I’ll do so…

Read More
Programming 

PyCoder’s Weekly: Issue #403 (Jan. 14, 2020)

#403 – JANUARY 14, 2020 View in Browser » A coverage.py Debugging Story Ned was getting reports for a mysterious disk I/O bug in the latest coverage.py release and asked the community for help. Read the crowd-sourced diagnosis on Hacker News and Ned’s follow-up post next. What a journey… NED BATCHELDER The “No Code” Delusion “2020 is going to be the year of ‘no code’: the movement that say you can write business logic and even entire applications without having the training of a software developer. I empathise with people…

Read More
Programming 

PyCoder’s Weekly: Issue #400 (Dec. 24, 2019)

#400 – DECEMBER 24, 2019 View in Browser » Python Dictionary Iteration: Advanced Tips & Tricks In this intermediate-level course, you’ll take a deep dive into how to iterate through a dictionary in Python. Dictionaries are a fundamental data structure, and you’ll be able to solve a wide variety of programming problems by iterating through them. REAL PYTHON video Introduction to ASGI: Emergence of an Async Python Web Ecosystem “If you were thinking Python had been getting locked into data science, think again! Python web development is back with an…

Read More

PyCoder’s Weekly: Issue #398 (Dec. 10, 2019)

#398 – DECEMBER 10, 2019 View in Browser » MicroPython: An Intro to Programming Hardware in Python Are you interested in the Internet of Things, home automation, and connected devices? In this tutorial, you’ll learn about MicroPython and the world of electronics hardware. You’ll set up your board, write your code, and deploy a MicroPython project to your own device. REAL PYTHON PEP 591: Adding a final Qualifier to Typing This PEP proposes a final qualifier to be added to the typing module—in the form of a final decorator and…

Read More
Programming 

PyCoder’s Weekly: Issue #397 (Dec. 3, 2019)

#397 – DECEMBER 3, 2019 View in Browser » Guido van Rossum Withdraws From the Python Steering Council “Part of my reason is that in the end, SC duty feels more like a chore to me than fun, and one of the things I’m trying to accomplish in my life post Dropbox retirement is to have more fun. To me, fun includes programming in and contributing to Python, for example the PEG parser project.” PYTHON.ORG Python Descriptors: An Introduction Learn what Python descriptors are and how they’re used in Python’s…

Read More
Programming 

PyCoder’s Weekly: Issue #396 (Nov. 26, 2019)

#396 – NOVEMBER 26, 2019 View in Browser » PyCon 2020 Registration Is Now Open PyCon is the largest annual gathering for the community that uses and develops the open-source Python programming language. April 15–23 in Pittsburgh. Pro-tip: Get your early bird tickets today. PYCON.ORG Python KeyError Exceptions and How to Handle Them KeyError exceptions are often caused by a bad key lookup in a dictionary, but there are a few other situations when a KeyError can be raised as well. Knowing how to handle these exceptions is essential to…

Read More