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 

PyCharm: PyCharm 2020.1 EAP starts now

There are two types of people in the world: those who can wait to open a package they’ve received, and people like me, who need to see what’s inside this very second. PyCharm isn’t delivered in the mail though, and that’s why we have something even better for impatient people. The early access program (EAP) shows you what’s in the package a couple months before you get it. Take a sneak peek, and get PyCharm’s first EAP now! New in PyCharm JetBrains Mono We recently announced our font designed especially…

Read More
Programming 

Python GUI Programming With Tkinter

Python has a lot of GUI frameworks, but Tkinter is the only framework that’s built into the Python standard library. Tkinter has several strengths. It’s cross-platform, so the same code works on Windows, macOS, and Linux. Visual elements are rendered using native operating system elements, so applications built with Tkinter look like they belong on the platform where they’re run. Although Tkinter is considered the de-facto Python GUI framework, it’s not without criticism. One notable criticism is that GUIs built with Tkinter look outdated. If you want a shiny, modern…

Read More

Python Community Interview With Kelly and Sean of Teaching Python

This week I’m joined by Kelly Paredes and Sean Tibor, the hosts of the Teaching Python podcast. Join us as we discuss the benefits of learning Python outside of the code itself, and what it’s like to learn Python when you’re not planning to become a professional developer. So, without further ado, let’s meet Kelly and Sean! Ricky: Welcome to Real Python, Kelly and Sean. I’m glad you could join me for this interview. Let’s start the same way we do with all our guests. How’d you get into programming,…

Read More
Programming 

Python Re Dot

You’re about to learn one of the most frequently used regex operators: the dot regex . in Python’s re library. What’s the Dot Regex in Python’s Re Library? The dot regex . matches all characters except the newline character. For example, the regular expression ‘…’ matches strings ‘hey’ and ‘tom’. But it does not match the string ‘yo\ntom’ which contains the newline character ‘\n’. Let’s study some basic examples to help you gain a deeper understanding. >>> import re >>> >>> text = ”’But then I saw no harm, and…

Read More

PyDev of the Week: Thomas Wouters

This week we welcome Thomas Wouters (@Yhg1s) as our PyDev of the Week! Thomas is a core developer of the Python language. He is very active in open source in general and has been a director of the Python Software Foundation in the past. Let’s spend some time getting to know him better! Can you tell us a little about yourself (hobbies, education, etc): I’m a self-taught programmer, a high school dropout, a core CPython developer, and a former PSF Board Director from Amsterdam, The Netherlands. I’ve been playing with…

Read More
Programming 

Python Re ? Quantifier

Congratulations, you’re about to learn one of the most frequently used regex operators: the question mark quantifier A?. In particular, this article is all about the ? quantifier in Python’s re library. What’s the Python Re ? Quantifier When applied to regular expression A, Python’s A? quantifier matches either zero or one occurrences of A. The ? quantifier always applies only to the preceding regular expression. For example, the regular expression ‘hey?’ matches both strings ‘he’ and ‘hey’. But it does not match the empty string because the ? quantifier does…

Read More

Python Regex Sub

Do you want to replace all occurrences of a pattern in a string? You’re in the right place! This article is all about the re.sub(pattern, string) method of Python’s re library. Let’s answer the following question: How Does re.sub() Work in Python? The re.sub(pattern, repl, string, count=0, flags=0) method returns a new string where all occurrences of the pattern in the old string are replaced by repl. Here’s a minimal example: >>> import re >>> text = ‘C++ is the best language. C++ rocks!’ >>> re.sub(‘C\+\+’, ‘Python’, text) ‘Python is the…

Read More
css 

PyDev of the Week: Sebastián Ramírez

This week we welcome Sebastián Ramírez (@tiangolo) as our PyDev of the Week! Sebastián is the creator of the FastAPI Python web framework. He maintains his own website/blog which you should check out if you have some free time. You can also see his open source projects there. You can also see what projects he is contributing to over on Github. Let’s take a few moments to get to know Sebastián better! Can you tell us a little about yourself (hobbies, education, etc): Hey! I’m Sebastián Ramírez, I’m from Colombia,…

Read More
css 

PyDev of the Week: Sebastián Ramírez

This week we welcome Sebastián Ramírez (@tiangolo) as our PyDev of the Week! Sebastián is the creator of the FastAPI Python web framework. He maintains his own website/blog which you should check out if you have some free time. You can also see his open source projects there. You can also see what projects he is contributing to over on Github. Let’s take a few moments to get to know Sebastián better! Can you tell us a little about yourself (hobbies, education, etc): Hey! I’m Sebastián Ramírez, I’m from Colombia,…

Read More