[sage-devel] Python Quick Reference...

2008-06-14 Thread Glenn H Tarbox, PhD
This is one of the better all-in-one references to Python. I recommend grabbing the one big single page and saving it locally. http://rgruet.free.fr/#QuickRef -glenn -- Glenn H. Tarbox, PhD || 206-494-0819 || [EMAIL PROTECTED] "Don't worry about people stealing your ideas. If your ideas are a

[sage-devel] Re: Pickling functions

2008-06-14 Thread Gary Furnish
This code pickles and unpickles functions. Note it is simi-hackish and I make no guarentee about it working in python 3.0 (but I'll be maintaining a copy for distributed stuff I'm working on for dev1. import new, types, copy_reg, cPickle #See python cookbook for more details def code_ctor(*args)

[sage-devel] Re: Pickling functions

2008-06-14 Thread David Roe
One way to get around this limitation in python is to use callable classes instead of functions. David On Sat, Jun 14, 2008 at 10:42 AM, David Harvey <[EMAIL PROTECTED]> wrote: > > On Jun 14, 2008, at 1:25 PM, Daniel Bump wrote: > > > Some code that has been proposed by Nicolas Thiery > for sage/

[sage-devel] Alex Martelli giving the SciPy 2008 Keynote

2008-06-14 Thread Harald Schilly
forwarding this announcement: -- Forwarded message -- From: Gael Varoquaux <[EMAIL PROTECTED]> Date: Sat, Jun 14, 2008 at 19:40 Subject: Alex Martelli giving the SciPy 2008 Keynote To: [EMAIL PROTECTED] On behalf of the SciPy2008 organizing committee, I am happy to announce tha

[sage-devel] Re: Pickling functions

2008-06-14 Thread David Harvey
On Jun 14, 2008, at 1:25 PM, Daniel Bump wrote: > > > Some code that has been proposed by Nicolas Thiery > for sage/combinat/families.py would create classes > that have as attributes dictionaries of functions. > > However dumps(s) will raise an exception if s is > such a class instance. > > Exam

[sage-devel] Pickling functions

2008-06-14 Thread Daniel Bump
Some code that has been proposed by Nicolas Thiery for sage/combinat/families.py would create classes that have as attributes dictionaries of functions. However dumps(s) will raise an exception if s is such a class instance. Example: the simple reflections in a Weyl group. See: http://groups.g

[sage-devel] Re: how to recognize integers from floats

2008-06-14 Thread Ondrej Certik
On Sat, Jun 14, 2008 at 6:25 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > On Sat, Jun 14, 2008 at 5:44 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: >> Hi, >> >> how can I distinguish Sage Integers and Floats without knowing >> anything about Sage? Originally I thought just by checking for __int_

[sage-devel] Re: how to recognize integers from floats

2008-06-14 Thread Ondrej Certik
On Sat, Jun 14, 2008 at 5:44 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > Hi, > > how can I distinguish Sage Integers and Floats without knowing > anything about Sage? Originally I thought just by checking for __int__ > and __float__ methods, > but both Sage Integers and Floats define both __int

[sage-devel] how to recognize integers from floats

2008-06-14 Thread Ondrej Certik
Hi, how can I distinguish Sage Integers and Floats without knowing anything about Sage? Originally I thought just by checking for __int__ and __float__ methods, but both Sage Integers and Floats define both __int__ and __float__. (Python ints and floats do that too.) So one can use some other me

[sage-devel] Re: BLAS routines required by linbox are not installed

2008-06-14 Thread eduardo
thanks!! it works now very well! On Jun 14, 12:01 am, mabshoff <[EMAIL PROTECTED]> wrote: > On Jun 13, 6:01 am, Harald Schilly <[EMAIL PROTECTED]> wrote: > > > On Jun 13, 1:24 pm, eduardo <[EMAIL PROTECTED]> wrote: > > Hi, > > > > SAGE in "/home/SAGE/sage-3.0.2" (as root) > > > IOError: [Errno 13