Showing results for Python - Microsoft for Python Developers Blog

Sep 27, 2016
Post comments count0
Post likes count0

Microsoft’s participation in the 2016 Python core sprint

Brett Cannon
Brett Cannon

From September 5th to the 9th a group of Python core developers gathered for a sprint hosted at Instagram and sponsored by Instagram, Microsoft, and the Python Software Foundation. The goal was to spend a week working towards the Python 3.6.0b1 release, just in time for the Python 3.6 feature freeze on Monday, September 12, 2016. The inspiration fo...

pythoncpython
Aug 4, 2016
Post comments count0
Post likes count0

Upgrading Python on Azure App Service

Steve Dower
Steve Dower

App Service is Microsoft Azure's platform-as-a-service offering for web apps, whether they are sites accessed through a browser, REST APIs used by your own clients, or event-triggered processing. Many of you are already using Python to implement your apps on App Service (and rightly so!). When we first enabled Python on App Service we wanted to ma...

Jun 29, 2016
Post comments count0
Post likes count1

Idiomatic Python: EAFP versus LBYL

Brett Cannon
Brett Cannon

One idiomatic practice in Python that often surprises people coming from programming languages where exceptions are considered, well, exceptional, is EAFP: "it's easier to ask for forgiveness than permission". Quickly, EAFP means that you should just do what you expect to work and if an exception might be thrown from the operation then catch it and...

code-styleidioms
Jun 20, 2016
Post comments count0
Post likes count0

Python and Django on Nano Server

Steve Dower
Steve Dower

This post is contributed by Refaat Issa from the Nano Server team, and was originally posted on their blog. Nano Server has also blogged about their support for MySQL and Node.js. One of Nano Server’s core scenarios is to serve as a lightweight OS for born-in-the-cloud applications running in a VM or a container. Nano Server already supports ASP...

Jun 7, 2016
Post comments count0
Post likes count1

Python lambda expressions unleashed

CarlKadie
CarlKadie

Carl Kadie, Ph.D., is a research developer in Microsoft Research/TnR working on Genomics. Lambda expressions provide a way to pass functionality into a function. Sadly, Python puts two annoying restrictions on lambda expressions. First, lambdas can only contain an expression, not statements. Second, lambdas can't be serialized to disk. T...

pythonJupyter
May 25, 2016
Post comments count0
Post likes count0

Microsoft at PyCon US 2016

Steve Dower
Steve Dower

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 have booths set up to tell you about...

pycon
May 10, 2016
Post comments count0
Post likes count0

How to debug Python Azure Worker Roles

Christopher Wilcox
Christopher Wilcox

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 performance a bit? You'll recall that I used a worker role on Azure to process incom...

Apr 26, 2016
Post comments count0
Post likes count1

Using CPython’s Embeddable Zip File

Steve Dower
Steve Dower

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: As is fairly common with installers these days, you have the choice to download everything in advan...

cpython
Apr 18, 2016
Post comments count0
Post likes count0

Idiomatic Python: boolean expressions

Brett Cannon
Brett Cannon

You might think that boolean expressions -- most frequently used as conditional guards which are the the bit of code that tests whether an or 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 are some idiomatic practices to f...

code-styleidioms
Apr 11, 2016
Post comments count2
Post likes count0

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

Steve Dower
Steve Dower

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 I need it? Where can I get it? H...

cpython