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

2012-12-12 Thread Brandon W Maister
, Petri 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'.) What's wrong with git grep? Or hg grep, for that matter? hg grep searches the history

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 ba...@python.org wrote: On Dec 11, 2012, at 04:23 PM, Lennart Regebro wrote: This PEP is also available on github:

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

2012-12-10 Thread Brandon W Maister
://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 restriction, including ;; without

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 valid identifier':