[Zope-dev] Re: Removing whrandom in Zope 2.9 (was Re: New
testrunner on the Zope 2 trunk.)
Jim Fulton
jim at zope.com
Thu Oct 27 14:41:31 EDT 2005
Tres Seaver wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> FWIW:
Alot. :)
> $ pwd
> /home/tseaver/projects/Zope-CVS/Zope-2_8-branch
> $ find . -name "*.py" | grep -v "build-base" | xargs grep -l whrandom
> ./lib/python/AccessControl/DTML.py
> ./lib/python/Products/PythonScripts/help/PythonScript.py
> ./lib/python/Products/ZCatalog/regressiontests/regressionCatalog.py
> ./lib/python/Products/ZCatalog/regressiontests/loadmail.py
> ./lib/python/RestrictedPython/Utilities.py
> ./lib/python/DocumentTemplate/DT_Util.py
> ./lib/python/zope/security/examples/sandbox.py
> ./lib/python/zope/security/examples/sandbox_security.py
Sigh.
...
> Hmm, I see that RestrictedPython/Utilities.py on the Z3 trunk aliases
> 'random' as 'whrandom' -- could we use that strategy for 2.8 etc.?
Yes. random has the same documented functions and signatures as whrandon.
> We could remove them for 2.9, I guess, and just make people fix their
> applications.
I suggest we make aliases and generate deprecation warnings if
whrandom is used. (The later may be tricky, I realize.)
Maybe for now, just make aliases and move on. :)
Jim
--
Jim Fulton mailto:jim at zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
More information about the Zope-Dev
mailing list