Skip to content

Instantly share code, notes, and snippets.

Avatar

Brett Cannon brettcannon

View GitHub Profile
View An unscientific survey of Python interpreters.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Porting Python 2 code to Python 3.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@brettcannon
brettcannon / gist:a9c9a5989dc383ed73b4
Last active Sep 19, 2017
Initial email about Python development process and proposed improvements
View gist:a9c9a5989dc383ed73b4

This was posted as an email to python-dev.

History lesson

Since I signed up for the python-dev mailing list way back in June 2002, there seems to be a cycle where we as a group come to a realization that our current software development process has not kept up with modern practices and could stand for an update. For me this was first shown when we moved from SourceForge to our own infrastructure, then again when we moved from Subversion to Mercurial (I led both of these initiatives, so it's somewhat a tradition/curse I find myself in this position yet again). And so we again find ourselves at the point of realizing that we are not keeping up with current practices and thus need to evaluate how we can improve our situation.

Where we are now

Now it should be realized that we have to sets of users of our development process: contributors and core developers (the latter whom can play both roles). If you take a rough outline of our cur

View keybase.md

Keybase proof

I hereby claim:

  • I am brettcannon on github.
  • I am brettcannon (https://keybase.io/brettcannon) on keybase.
  • I have a public key whose fingerprint is D78A 1843 8650 EA2D FE58 817F 9668 94F3 4B4E ABA8

To claim this, I am signing this object:

View designer.html
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-input/core-input.html">
<polymer-element name="my-element">
<template>
<style>
:host {
View designer.html
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
@brettcannon
brettcannon / config.fish
Created Aug 8, 2014
My fish configuration
View config.fish
function fish_prompt
set_color -o red
echo -n "> "
set_color normal
end
# From https://github.com/mduvall/dotfiles/blob/master/fish_prompt.fish.
function fuller_prompt_cwd --description 'Print the current working directory, NOT shortened to fit the prompt'
if test "$PWD" != "$HOME"
printf "%s" (echo $PWD|sed -e 's|/private||' -e "s|^$HOME|~|")
View gist:834b73c40055c249eb9f
import io
import tokenize
from astroid import test_utils
from pylint import testutils
import py6_checker
class SixCheckerTest(testutils.CheckerTestCase):
View gist:40af38646cdc959dffbf
from __future__ import print_function
import symbol
import token
import astroid
from pylint import checkers, interfaces
from pylint.checkers import utils
# http://python3porting.com/differences.html
View openstack-py2-only-deps.txt
66 total dependencies need to be ported to Python 3.
63 dependencies have no other dependencies blocking a port to Python 3:
boto
cmd2
pulp <- coinor.pulp
ddt
diskimage-builder
django-bootstrap-form
django-compressor
django-openstack-auth