Automatic Python import mechanism: autoimp initial release

2006-06-11 Thread Connelly Barnes

Author:  Connelly Barnes
License: Public domain.

I got sick of writing import X in Python. So, I created the module autoimp,
which imports all modules automatically:

   from autoimp import *
   os.stat('.')
   Image.open('test.bmp')
   pylab.plot([1,2],[3,4])
   scipy.linalg.eig([[1,2],[3,4]])
   ...

Thus one no longer needs to write import X.  It would take too long to load
every module when one writes from autoimp import *, so the imported modules
are actually proxy objects which lazily load when they are first used.  The
modules are found by searching sys.path.  This module will probably save me
a lot of keystrokes; I hope you enjoy it.

Blog post, with source code link:

  http://barnesc.blogspot.com/2006/06/automatic-python-imports-with-autoimp.html

Comments, bugs, patches to: connellybarnes at domain yahoo.com.

Thanks,
Connelly


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations.html


[ANN] clnum-1.2.1 Class Library For Numbers Python Binding

2006-06-11 Thread Raymond L. Buvel
The clnum package adds rational numbers and arbitrary precision floating
point numbers in real and complex form to Python. Also provides
arbitrary precision floating point replacements for the functions in the
math and cmath standard library modules.

Home page: http://calcrpnpy.sourceforge.net/clnum.html

Changes in 1.2.1

Updated the unit test so it works on both 32 and 64 bit platforms.  Only
the source package was updated since there are no other changes.
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations.html