User: Password:
|
|
Subscribe / Log in / New account

Re: Backward-incompatible change to random.randrange in 2.7.6

From:  Tres Seaver <tseaver-AT-palladion.com>
To:  python-dev-AT-python.org
Subject:  Re: Backward-incompatible change to random.randrange in 2.7.6
Date:  Tue, 17 Dec 2013 14:02:12 -0500
Message-ID:  <l8q739$ubb$1@ger.gmane.org>
Archive-link:  Article

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/17/2013 01:40 PM, Guido van Rossum wrote:
> This really seems a case of ZODB depending on internals where it 
> really, really should have known better. Calling this "a de-facto 
> public interface" seems way too far a stretch of the intention. And 
> please don't fix it by version-testing and using a different argument 
> name...

The usage is *ancient*:  Jeremy checked it in 2001-10-05:


https://github.com/zopefoundation/ZODB/commit/fd1653580ca...

The comment about "do not pass the 'int' or 'default' arguments" goes
back to at least the 'whrandom.py' module in 1.5.2. ;)



Tres.
- -- 
===================================================================
Tres Seaver          +1 540-429-0999          tseaver@palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlKwn7QACgkQ+gerLs4ltQ4WzACeOMXqg5Jg8ck3vK3cCDuTgKSS
8GwAn0yR8ukdQTh5Wo0jGDHq/AIgu+Yg
=fTUf
-----END PGP SIGNATURE-----



(Log in to post comments)


Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds