Microsoft at PyCon US 2016

This coming weekend is the start of PyCon US 2016 in Portland, USA. And as usual, we’ve sponsored the conference and will be bringing some of our engineering team. Here’s where you’ll be able to find us: Booth For many people, the main attraction is the Expo Hall. Here most of the sponsoring organizations will…


How to debug Python Azure Worker Roles

Two months ago I wrote a blog post on Python 3 Adoption. If you want to read the first post you can find it here. In the two months since that blog post was written we have more data to process and I got to thinking: why shouldn’t we scale this up and increase the…


Using CPython’s Embeddable Zip File

On the download page for CPython 3.5.1, you’ll see a wide range of options. Not all of these are well explained, especially for Windows users who have seven (seven!) choices. Let me restructure the Windows items into a more feature-focused table: Installer Initial download size Installer requires internet? Compatibility x86 web-based installer Very small Yes…


Idiomatic Python: boolean expressions

You might think that boolean expressions — most frequently used as conditional guards which are the the bit of code that tests whether an if or while statement should execute — are a fairly straight-forward concept and that there isn’t really anything subtle to them at all. And while the general concept is simple, there…

3

How to deal with the pain of “unable to find vcvarsall.bat”

Python’s packaging ecosystem is one of its biggest strengths, but Windows users are often frustrated by packages that do not install properly. One of the most common errors you’ll see is this one: As far as errors go, “unable to find vcvarsall.bat” is not the most helpful. What is this mythical batch file? Why do…


Implementing a code of conduct for all of our open source work

When working in the open source world it is very important that everyone feels welcome and safe. External contributors to a project need to feel welcome so that they want to contribute to the project. Since contributing to open source is an inherently social event due to the fact that there will be interactions through issues,…


What do your users really think? Using Text Analytics to understand GitHub Issue Sentiment

Ever get the feeling your users aren’t that happy with your project? We all get those issues that are real downers on our repository. So I thought, let’s take these issues and make something fun. Using the Text Analytics Service and the WordCloud Python package, we can make some pretty pictures out of otherwise negative…


Idiomatic Python: comprehensions

We’re lucky to have a few people on our team who have been programming in Python for quite a while (I myself have been using the language now for over 15 years). Over the course of time we have picked up various idioms for programming in Python that may not be obvious or widely known…

4

Python 3 is Winning Library Developer Support

https://notebooks.azure.com/library/rJUgQ81mnpo In 3 months, Python 3 will be better supported than Python 2. Are you using Python 3 for your development? It has been out for 7+ years at this point. So, if you aren’t using it, why not? Since December of 2008, the initial release of Python 3, it seems the new version of…