This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Copyright (C) 2011 Vinay Sajip. All Rights Reserved. | |
# | |
# Permission to use, copy, modify, and distribute this software and its | |
# documentation for any purpose and without fee is hereby granted, | |
# provided that the above copyright notice appear in all copies and that | |
# both that copyright notice and this permission notice appear in | |
# supporting documentation, and that the name of Vinay Sajip | |
# not be used in advertising or publicity pertaining to distribution | |
# of the software without specific, written prior permission. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: Doc/library/logging.handlers.rst | |
=================================================================== | |
--- Doc/library/logging.handlers.rst (revision 88415) | |
+++ Doc/library/logging.handlers.rst (working copy) | |
@@ -332,6 +332,27 @@ | |
partial sends which can happen when the network is busy. | |
+ .. method:: createSocket() | |
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ python bbreport.py -b 3.x | |
Selected builders: 22 / 213 (branch: 3.x) | |
3.x.dmg 88574, 88544, 88532, 88500 | |
AMD64 Gentoo Wide 3.x *** , 88639, 88636, 88633 | |
AMD64 Leopard 3.x *** , 88636, 88633, 88632 | |
857 88636: # 1 failed: test_os | |
856 88633: # 2 failed: test_logging test_os | |
855 88632: # 2 failed: test_logging test_os | |
AMD64 OpenIndiana 3.x *** , 88627, 88625, 88622 | |
642 88627: # 2 failed: test_gdb test_os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (C) 2011 Vinay Sajip. | |
# | |
# Poor man's virtualize.py. | |
# | |
# Use with a Python executable built from the Python fork at | |
# | |
# https://bitbucket.org/vinay.sajip/pythonv/ as follows: | |
# | |
# python pmv.py env_dir | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from distutils.sysconfig import get_python_inc, get_python_lib, get_makefile_filename | |
import os | |
import sys | |
import sysconfig | |
def title(s): | |
print('-'*len(s)) | |
print(s) | |
print('-'*len(s)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (C) 2011 Vinay Sajip. | |
# | |
# Poor man's virtualize.py. | |
# | |
# Use with a Python executable built from the Python fork at | |
# | |
# https://bitbucket.org/vinay.sajip/pythonv/ as follows: | |
# | |
# python -m virtualize env_dir | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from cStringIO import StringIO | |
import gnupg | |
import logging | |
import os | |
import shutil | |
def generate_key(gpg, first_name, last_name, domain, passphrase=None): | |
"Generate a key" | |
params = { | |
'Key-Type': 'DSA', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
running test | |
running egg_info | |
writing simplejson.egg-info/PKG-INFO | |
writing top-level names to simplejson.egg-info/top_level.txt | |
writing dependency_links to simplejson.egg-info/dependency_links.txt | |
reading manifest file 'simplejson.egg-info/SOURCES.txt' | |
writing manifest file 'simplejson.egg-info/SOURCES.txt' | |
running build_ext | |
test_circular_composite (simplejson.tests.test_check_circular.TestCheckCircular) ... ok | |
test_circular_default (simplejson.tests.test_check_circular.TestCheckCircular) ... ok |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Python 2.7 | |
========== | |
Python version: 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24) | |
[GCC 4.5.2] | |
11.21484375 KiB read | |
Timing simplejson: | |
0.271898984909 | |
Timing stdlib json: | |
0.338716030121 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Python 3.2 numbers | |
================== | |
(jst3)vinay@eta-natty:~/projects/scratch$ python time_json.py --no-speedups | |
Python version: 3.2 (r32:88445, Mar 25 2011, 19:28:28) | |
[GCC 4.5.2] | |
11.21484375 KiB read | |
Timing simplejson (without speedups): | |
4.585145950317383 | |
Timing stdlib json (without speedups): | |
3.9949100017547607 |