Developers have to make decisions all the time. How do you approach this problem? Do you use technology X or technology Y? Which programming language(s) can you use to solve this? Your code also sometimes needs to make a decision. Here are some common things that code checks every day: Are you authorized to do […]
A set data type is defined as an "unordered collection of distinct hashable objects" according to the Python 3 documentation. You can use a set for membership testing, removing duplicates from a sequence and computing mathematical operations, like intersection, union, difference, and symmetric difference. Due to the fact that they are unordered collections, a set […]
This week we welcome Gaetan Delannay as our PyDev of the Week! Gaetan is the creator of Appy, a Python web framework and an entrepreneur. Let's spend some time getting to know Gaetan better! Can you tell us a little about yourself (hobbies, education, etc): It is quite unusual for me to talk about myself, […]
This week we welcome Cheukting Ho (@cheukting_ho) as our PyDev of the Week. Cheuk is an organizer for EuroPython and various Python sprints. You can find our more about her accomplishments on her website or see what open source projects she is a part of over on Github. Let's take some time to get to […]
Type checking or hinting is a newer feature of Python that was added in Python 3.5. Type hinting is also known as type annotation. Type hinting is adding special syntax to functions and variable declarations that tell the developer what type the argument or variable is. Python does not enforce the type hints. You can […]
What does it mean to profile ones code? The main idea behind benchmarking or profiling is to figure out how fast your code executes and where the bottlenecks are. The main reason to do this sort of thing is for optimization. You will run into situations where you need your code to run faster because […]