From: Guy K. K. <g....@ma...> - 2009-10-22 02:14:01
|
On Thu, 22 Oct 2009 14:47:09 Bruce Sherwood wrote: > Here's an idea about how to unpollute in a way that wouldn't break > existing programs. Suppose one said "from visual2 import *" to get just > the visual objects? Hmmm, to have a "shadow package" that is unpolluted. Might be an idea. Make it API identical ... Another option to have a "vidual_" package that actually implements all the stuff, and then have a "visual" package (for backward compatibility) that imports "from visual_ import *" as well as does the other wild imports from NumPy and math. That might do the trick ... while trying to keep the implementation as clean as possible. Guy -- Guy K. Kloss Institute of Information and Mathematical Sciences Te Kura Pūtaiao o Mōhiohio me Pāngarau Massey University, Albany (North Shore City, Auckland) 473 State Highway 17, Gate 1, Mailroom, Quad B Building voice: +64 9 414-0800 ext. 9585 fax: +64 9 441-8181 G....@ma... http://www.massey.ac.nz/~gkloss |