Staging
v0.5.1
https://github.com/python/cpython
Revision 05e344954de5f4e55eb49dc44b0f8e1ec272a06c authored by Amaury Forgeot d'Arc on 10 September 2008, 22:04:45 UTC, committed by Amaury Forgeot d'Arc on 10 September 2008, 22:04:45 UTC
PyString_FromFormat which has an independent implementation, and uses "%zd".

This makes a difference on win64, where printf needs "%Id" to display
64bit values. For example, queue.__repr__ was incorrect.

Reviewed by Martin von Loewis.
1 parent 4dd3a50
Raw File
Tip revision: 05e344954de5f4e55eb49dc44b0f8e1ec272a06c authored by Amaury Forgeot d'Arc on 10 September 2008, 22:04:45 UTC
#3743: PY_FORMAT_SIZE_T is designed for the OS "printf" functions, not for
Tip revision: 05e3449
md5.py
# $Id$
#
#  Copyright (C) 2005   Gregory P. Smith (greg@krypto.org)
#  Licensed to PSF under a Contributor Agreement.

import warnings
warnings.warn("the md5 module is deprecated; use hashlib instead",
                DeprecationWarning, 2)

from hashlib import md5
new = md5

blocksize = 1        # legacy value (wrong in any useful sense)
digest_size = 16
back to top