February 28, 2017 by
Mike People who are new to the Python programming language can get a bit confused about the difference between "==" (equality) and Python's keyword "is" (identity). I have even seen experienced programmers who will find the difference subtle enough that they will introduce logic errors in their code do to a misunderstanding between the two. In […]
February 27, 2017 by
Mike This week we welcome Victor Stinner as our PyDev of the Week! Victor is quite active in the Python community and is a core Python developer. You can see some of his contributions here. He is the author of eight accepted PEPs which you can also read about at the previous link. If you're interested […]
February 21, 2017 by
Mike Python 3.5 added more support for Unpacking Generalizations in PEP 448. According to the PEP, it added extended usages of the * iterable unpacking operator and ** dictionary unpacking operators to allow unpacking in more positions, an arbitrary number of times, and in additional circumstances. What this means is that we can now make calls […]
February 20, 2017 by
Mike This week our PyDev of the Week is Petr Viktorin (@EnCuKou). Petr is the author of PEP 489 -- Multi-phase extension module initialization and teaches Python for the local PyLadies in Czech Republic. You can some of what he's up to via his Github page or on his website. Let's take some time to get […]
February 16, 2017 by
Mike Python 3.6 added a new module called secrets that is designed "to provide an obvious way to reliably generate cryptographically strong pseudo-random values suitable for managing secrets, such as account authentication, tokens, and similar". Python's random module was never designed for cryptographic use but for modeling and simulation. Of course, you could always use the […]
February 14, 2017 by
Mike Python 3.6 added the ability to create Asynchronous Comprehensions and Asynchronous Generators. You can read about asynchronous comprehension in PEP 530 while the asynchronous generators are described in PEP 525. The documentation states that you can now create asynchronous list, set and dict comprehensions and generator expressions. Their example looks like this: result = [i […]