[Python-Dev] Backward-incompatible change to random.randrange in 2.7.6
Guido van Rossum
guido at python.org
Tue Dec 17 19:40:35 CET 2013
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...
On Tue, Dec 17, 2013 at 10:18 AM, Tres Seaver <tseaver at palladion.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> http://hg.python.org/cpython/rev/b1e94e332ec8
>
>
> Do we really want to change an undocumented-but-effectively-public API in
> a late-in-the-release-cycle third dot release? It caused, ZODB's tests
> to fail, for instance.
>
> While the docstring said, "Don't use the 'int', 'default', and 'maxwidth'
> arguments", their names were not intrinsically private. In particular,
> passing in the 'int' argument was a strategy for generating compatible
> long values when straddling Python 2.x / Python 3.x.
>
>
>
>
> Tres.
> - --
> ===================================================================
> Tres Seaver +1 540-429-0999 tseaver at 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/
>
> iEYEARECAAYFAlKwlXAACgkQ+gerLs4ltQ60DQCgzlO8mHMXQ0vsHNpS9GKwjpmD
> G6oAoMIjtrKkGTlFj0b9Tfdj5BCu1rYS
> =GxuS
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: https://mail.python.org/mailman/options/python-dev/guido%40python.org
--
--Guido van Rossum (python.org/~guido)
More information about the Python-Dev
mailing list