Pyrex newbie question

2006-06-04 Thread Philip Smith
Just starting to use pyrex on windows. Using pyrex version 0.9.3.1.win32 Using Activestate Python 2.4.3.12 Using Mingw compiler When I try to run the pyrex demo it fails with a message: undefined reference to '_imp__Py_NoneStruct' Anyone know why? --

Multiple Polynomial Quadratic Sieve

2006-05-30 Thread Philip Smith
Just to announce that I have posted an experimental version of MPQS which I am hoping those of a mathematical turn of mind would care to test, comment on and maybe contribute to. There is work to do but it performs very well. The package is available via FTP at

Re: Multiple Polynomial Quadratic Sieve

2006-05-30 Thread Philip Smith
Whoops Should have been http://www.python.pwp.blueyonder.co.uk/ Thanks Phil Philip Smith [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Just to announce that I have posted an experimental version of MPQS which I am hoping those of a mathematical turn of mind would care to test

Beware complexity

2005-03-12 Thread Philip Smith
-- http://mail.python.org/mailman/listinfo/python-list

Beware complexity

2005-03-12 Thread Philip Smith
I wonder if anyone has any thoughts not on where Python should go but where it should stop? One of the faults with langauges like C++ was that so many new features/constructs were added that it became a nightmare right from the design stage of a piece of software deciding which of the almost

Derived class and deepcopy

2005-02-16 Thread Philip Smith
Hi If I derive a class (eg Matrix) from list I presume this implies the classic OOP 'is a' relation between the derived and super class. I therefore presume I can use a derived class in any context that I can use the superclass. In the given example I want to apply deepcopy() to the Matrix

lambda and for that matter goto not forgetting sugar

2005-02-10 Thread Philip Smith
I've read with interest the continuing debate about 'lambda' and its place in Python. Just to say that personally I think its an elegant and useful construct for many types of programming task (particularly number theory/artificial intelligence/genetic algorithms) I can't think why anyone

Re: Multiple constructors

2005-02-06 Thread Philip Smith
Thanks to all of you Some useful ideas in there, even if some of them stretch my current knowledge of the language. C++ to Python is a steep 'unlearning' curve... Phil Philip Smith [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Call this a C++ programmers hang-up if you like. I

Multiple constructors

2005-02-05 Thread Philip Smith
Call this a C++ programmers hang-up if you like. I don't seem to be able to define multiple versions of __init__ in my matrix class (ie to initialise either from a list of values or from 2 dimensions (rows/columns)). Even if Python couldn't resolve the __init__ to use on the basis of argument

Elliptic Code

2005-01-28 Thread Philip Smith
Hi Does anyone have/know of a python implementation of the elliptic curve factoring algorithm (lenstra) which is both: simply and cleanly coded functional I'm aware of William Stein's code (from elementary number theory book) but I don't understand his coding style and the algorithm doesn't

Re: Elliptic Code

2005-01-28 Thread Philip Smith
Quite so - but thanks for your help in any case Paul Rubin http://[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Nick Craig-Wood [EMAIL PROTECTED] writes: I understand the algorithm quite well but how to code the multiplication stage most efficiently in python eludes me.

Re: Help with Threading

2005-01-25 Thread Philip Smith
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I use threading.Thread as outlined in this recipe: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65448 Thanks -- http://mail.python.org/mailman/listinfo/python-list

Help with Threading

2005-01-23 Thread Philip Smith
Hi I am fairly new to Python threading and my needs are simple(!) I want to establish a number of threads each of which work on the same computationally intensive problem in different ways. I am using the thread module rather than the threading module. My problem is I can't see how (when one