RSSAmplifier

Blog

For Some Value of "Magic"

"Any sufficiently advanced technology is indistinguishable from magic" -- Arthur C Clarke Musings from the technological frontier

holdenweb.blogspot.comRSS feed ↗25 posts

Latest posts

I want to bang some heads together!

It's frustrating when useful tools refuse to work together nicely. In the past I've experienced conflicts between black and flake8 that made it impossible to commit via my default commit hooks. Now I'm seeing the same behaviour with black and reorder-python-imports . In short, almost a year ago now github user maxwell-k reported that black release 24.1.0 had introduced an incompatibility with…

Understanding Python Descriptors

Understanding Descriptors This is the HTML rendering of the Jupyter notebook that can be found in this repository . Understanding Descriptors ¶ This notebook introduces the concepts behind descriptors. The descriptor underlies much of the Python language's sophistication but the mechanism behind it remains little known. If you install the RISE extension it also displays as slides. Unqualified name…

Type Annotations in Python

This is an edited live blog of a Python London presentation by Bernat Gabor of Bloomberg. Sorry it's taken so long to prepare. A great talk, very well presented. Thanks Bernat! Many thanks to Babylon Health for being a welcoming host. PEP 484 introduced type hinting. Function annotations from PEP 3172 and variable annotations from PEP 526 have come together, and are supported by mypy. Why?…

What's In a Namespace?

Python programmers talk about namespaces a lot. The Zen of Python* ends with Namespaces are one honking great idea—let’s do more of those! and if Tim Peters thinks namespaces are such a good idea, who am I to disagree? Resolution of Unqualified Names Python programmers learned at their mothers' knees that Python looks up unqualified names in three namespaces—first, the local namespace of the…

Carl Trachte: Mining Engineer Turned Geek

Another #LABHR post. I first met Carl when he came to a training session for new PyCon speakers. He was very nervous, and concerned that his topic would not be of sufficient interest to his audience. I made a point of attending the beginning of his talk, and by the time I left there was no doubt in my mind that Carl would do well in the Python community. Over the years he has done invaluable work…

Building a Hat Rack

Leslie Hawthorn, Elastic Search’s enthusiastic communities manager, has been involved with open source for quite a while, and has come up with what seems to be a good idea . She's trying to get public acknowledgment for services to open source that often go unsung, and I recommend that you read her blog post and take action on it yourself under hashtag #LABHR (Let's all build a hat rack). I…

How to Get the Bits of Python You Need Where You Want Them

Following up my recent short video on installing Anaconda I now introduce miniconda , which is a distribution that contains only Python and the conda software on which Anaconda is based. The remainder of the Python packages you need can be installed in virtual environments managed by conda . When you are building Python systems with mundane requirements this is a great way to put your environments…

How to Get Almost All the Python You Might Need

I am often asked what is the easiest way to build Python environments. For development purposes it's most convenient to have a "batteries included" environment that can be pared down once development is over. Continuum Analytics have for a while offered an open source project called Anaconda to provide easy access to both Python and the batteries. If you are a Python professional and you get…

Puget Sound Python User Group, Jan 14, 2015

The meeting started with one of the meeting's organizers, Tammy Lee, welcoming us to Dice Cabana. Alan Besner then took the MC slot to introduce tonight's speakers after a word from OfferUp's Arean, who explained that as the largest local mobile marketplace in the US they have collected some high volume data, and will be listening attentively to the talks. Unsurprisingly, OfferUp are hiring (their…

PyData London, January 2015

[EDIT: Updates talk with additional background and slide links] Tonight I'm attending the PyData London Meetup group for the first time. The meeting began with a short "What's New in the Python World," from the joint organizers, who assumed the audience was mainly here for the invited presentations. That's true -- like many others I find it interesting to learn what other Pythonistas are doing…

Python Training Day Feedback

After a day at The Church House I am happy to say that the Intermediate Python repository is in much better shape to move forwards. Work on the Repository About eight people turned up throughout the day, with the stalwarts being Kevin Dwyer and João Miguel Neves. With their help I investigated some thorny problems I had created for myself in the area of git filtering. It turns out that there is a…

Python Dev of the Week

I'd like to thank Mike Driscoll for running his Python Dev of the Week series of blog posts. I was fortunate enough to be featured a while ago, and previous victims include Carl Trachte , Michael Herman , Brian Curtin , Luciano Ramalho , Werner Bruhin , Facundo Batista and Ben Rousch . I hope Mike keeps going with this series. There are many interesting personalities in the Python world, and this…

UK Python Training Open Day and Lunch

Regular readers (both?) know that I live in the USA but hail from the UK, where I still return regularly to stay in touch with family and friends. So to dip a toe in the UK training waters I booked a room (rather a nice one, as those who have attended other events I organized will not be surprised to learn) and put out an announcement that I was running a Python Programming Skills Lab . You could…

“Rock Star” Programmers

I've finally realized just what, exactly, so gets up my nose when I see organizations advertising for “rock star” programmers. To understand you need to cast your mind back (assuming it then existed) to 1971 (when I was in my first decade as a programmer) and Gerald Weinberg had just produced The Psychology of Computer Programming , in which he concluded that over-identification with the code one…

Is Python Under Threat from the IRS?

Readers should remember that I no longer have any official standing in the Foundation other than my long-standing membership, but this post is informed by eight years on the board, over three of them as its chair. Nicholas Tollervey ( author and performer of A Programmer Pythonical ) asked an interesting question on the Python Software Foundation's membership list today. Despite his misgivings it…

Closures Aren't Easy

Edit: This issue was reported ( http://bugs.python.org/issue21904 ) and closed as "not a bug" This blog was written as an IPython Notebook. Some of the implementation details it discusses are specific to CPython, the default implementation, and may work differently in other implementations. To keep the code clean, all necessary imports are made immediately below. I habitually import print_function…

Neat Notebook Trick

I'm still trying to digest the little I saw of PyCon. Sadly I was pretty wiped out by the three-day recording session for Intermediate Python in California and then the intensive editing work that followed to help the amazing O'Reilly team get the whole thing ready a day before PyCon officially opened. I also made the tactical (and, as it turned out, strategic) mistake of choosing to stay at the…

Intermediate Python: An Open Source Documentation Project

There is a huge demand for Python training materials, and there are many people who just don't have the spare cash to buy books or videos. That's one reason why, in conjunction with a new Intermediate Python video series I have just recorded for O'Reilly Media I am launching a new, open source, documentation project. My intention in recording the videos was to produce a broad set of materials (the…

Practical Python (1)

Note: this blog post is the first I am undertaking with the IPython Notebook. I am still playing with formatting and so on, so please bear with me if the content doesn't seem as easy to read as it should. The notebook itself can be found as a gist file on Github and you can alternatively view it using the online Notebook viewer . I want to discuss a typical bit of Python, taken from a program sent…

Blip.tv Deletes Python Content

There's been some disturbance in the Python ecosphere because Blip.tv has removed a lot of Python content - for a long time, Next Day Video used Blip as their preferred hosting service (I don't know whether they still do or not, but after this I should hope not) and PyCon video was hosted there by default. According to their announcement After many years of being an open platform, we’re now taking…

Open Source and Money

David Heinemeier Hansson, a name well-known in the Ruby on Rails world, recently wrote a blog post entitled “ The perils of mixing open source and money .” In it he argues that the ability of open source contributors to raise funding through sources like Kickstarter threatens open source, though I find his arguments unpersuasive. First he suggests that fundraising represents a one-time “cashing in…

MacOS Migration: If I Have to Shave One More Yak ...

So I decided it was time to update my laptop, the current Macbook Air being three years old and having a tendency to forget that the screen is present. The triggering event was a minor spillage which stopped several crucial keys from working as the beer dried out (yes, I know ...). Clearly the first thing to do was take the Air off the 'Net and back it up. Connecting the backup disk and starting a…

Getting Back to IT

Life has become much more interesting of late. With two or three interns in The Open Bastion office periodically I am revisiting basic software development practices to try and explain them. I am using it as an opportunity to bring my own skill-set up to date, and it's immense fun to actually get to grips with, even though quite a challenge in the face of intelligent (and sometimes daunting)…

OSCON Community Leadership Summit

I've just come back enthused from having spent my entire weekend working. Of course anyone who works in open source will recognize the effect: someone gives you a chance to learn from and inform a couple of hundred like-minded individuals and there goes the weekend. Didn't even go to the PyLadies informal Saturday gathering, normally a fixed point of the weekend when I'm at home (a sadly somewhat…

A Statement from Adria Richards

Having remained silent since PyCon, Adria Richards has now published a statement reflecting on those events, though sensibly without going into specifics. I think it's important that her retrospective view gets some air, so I am reproducing it here with my own comments. Those who know me well in the the developer and tech community recognize that I have always tried to conduct myself in a way that…