Re: [Python-Dev] Emacs users: hg-tools-grep

2012-12-12 Thread Brandon W Maister
tri Lehtinen wrote: > >> Brandon W Maister wrote: > >>> (defconst git-tools-grep-command > >>> "git ls-files -z | xargs -0 grep -In %s" > >>> "The command used for grepping files using git. See > `git-tools-grep'.") > >>

Re: [Python-Dev] Draft PEP for time zone support.

2012-12-11 Thread Brandon W Maister
Barry you want github raw: https://raw.github.com/regebro/tz-pep/master/pep-04tz.txt On Tue, Dec 11, 2012 at 3:31 PM, Barry Warsaw wrote: > On Dec 11, 2012, at 04:23 PM, Lennart Regebro wrote: > > >This PEP is also available on github: > > > >https://github.com/regebro/tz-pep/blob/master/pep-04

Re: [Python-Dev] Emacs users: hg-tools-grep

2012-12-10 Thread Brandon W Maister
it: https://github.com/quodlibetor/git-tools.el ;; Copyright (c) 2012 Brandon W Maister ;; ;; Permission is hereby granted, free of charge, to any person obtaining ;; a copy of this software and associated documentation files (the ;; "Software"), to deal in the Software without r

Re: [Python-Dev] performance of {} versus dict()

2012-11-14 Thread Brandon W Maister
> > To (mis-)quote Antoine: > >--> d1 = {1:2} > >--> d2 = {'3':4} > >--> dict(d1, **d2) > > {1: 2, '3': 4} > > Apparently it is valid syntax. Just make sure you keys for the ** > operator are valid strings. :) > > or not: >>> dict(**{'not a valid identifier': True, 1: True}) {1: True, 'not a val