[Python-Dev] bsddb: Test failures on windows (HELP!)

2008-07-23 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Trent, I was wondering if you could look at some test failures in MS Windows builds. I can't debug Windows issues myself :-(. This is a MS free environment... Details: http://www.python.org/dev/buildbot/all/x86%20XP-4%20trunk/builds/1364/step-test/0

[Python-Dev] Infix operators

2008-07-23 Thread Sebastien Loisel
Dear Pythonistas, I've googled for this but I wasn't able to find anything definitive. I was recently looking at scipy to see if I could use it in stead of MATLAB for my class on numerical PDEs, but I noticed that there's some difficulty related to the notation; mainly, the matrix multiplication,

Re: [Python-Dev] Infix operators

2008-07-23 Thread Josiah Carlson
On Wed, Jul 23, 2008 at 2:14 PM, Sebastien Loisel [EMAIL PROTECTED] wrote: Dear Pythonistas, I've googled for this but I wasn't able to find anything definitive. I was recently looking at scipy to see if I could use it in stead of MATLAB for my class on numerical PDEs, but I noticed that

Re: [Python-Dev] Infix operators

2008-07-23 Thread Sebastien Loisel
Dear Josiah, Thank you for your email. On Wed, Jul 23, 2008 at 7:11 PM, Josiah Carlson [EMAIL PROTECTED] wrote: What the heck does 'x = 4 $ 6' mean in Python? Oh, that's right, it's a custom infix operator. But where is it defined? In the module? In some other module that is imported?

Re: [Python-Dev] Any PEP about 2.6 - 3000 code transition?

2008-07-23 Thread Anthony Baxter
As a data point, I just presented a tutorial here at OSCON on Python 3 Porting, and had a number of people asking about C API changes. I punted for my talk (*) because things are still in flux. Plus I only had 3 hours. I did suggest that if your extension is just glue to a C library, you should

Re: [Python-Dev] Infix operators

2008-07-23 Thread Curt Hagenlocher
On Wed, Jul 23, 2008 at 4:48 PM, Sebastien Loisel [EMAIL PROTECTED] wrote: On Wed, Jul 23, 2008 at 7:11 PM, Josiah Carlson [EMAIL PROTECTED] wrote: language, I would ask you if logix (http://www.livelogix.net/logix/intro.html) would suit you better. It seems to allow you to use arbitrary

Re: [Python-Dev] Infix operators

2008-07-23 Thread Sebastien Loisel
Dear Curt, Thank you for your email. Have you considered OCaml? (http://en.wikipedia.org/wiki/Ocaml) It's I have. I've considered a lot of languages, but OCaml isn't for me. My current language is MATLAB. Python is pretty close in syntax, and it's widely accepted, so you can teach students

Re: [Python-Dev] Any PEP about 2.6 - 3000 code transition?

2008-07-23 Thread Kirk McDonald
On Mon, Jul 21, 2008 at 2:37 PM, Lennart Regebro [EMAIL PROTECTED] wrote: On Mon, Jul 21, 2008 at 20:16, Brett Cannon [EMAIL PROTECTED] wrote: But waiting until all the betas have gone out totally defeats the purpose of the betas! I agree. Writing an actual *guide* can wait, but documenting

Re: [Python-Dev] Infix operators

2008-07-23 Thread Greg Ewing
Sebastien Loisel wrote: Essentially, in almost all applications, inv(A) is entirely wrong. You can ask any numerical analyst who works with large problems, and they will confirm it. One of the main reason is that, even if A is sparse, inv(A) is full. This argues for a function such as

Re: [Python-Dev] Infix operators

2008-07-23 Thread Sebastien Loisel
Dear Greg, Thanks for your email. Guido is on record as opposing any kind of macros or other extensible syntax, and this probably comes under the same heading. Thanks, that's exactly what I was looking for when I asked: Now since this is such a simple idea, I'm guessing it occured to

[Python-Dev] Close PEP 211? (was Re: Infix operators)

2008-07-23 Thread Terry Reedy
Sebastien Loisel wrote: The one thing which I found was PEP 211 http://www.python.org/dev/peps/pep-0211/ This now has a status of deferred. Given that itertools.product(A,B) == ((x,y) for x in A for y in B) == the proposed 'A @ B' and given Guido's pronounced distaste for new infix,

Re: [Python-Dev] Infix operators

2008-07-23 Thread Greg Ewing
Josiah Carlson wrote: What the heck does 'x = 4 $ 6' mean in Python? Oh, that's right, it's a custom infix operator. But where is it defined? It's not quite as bad as that -- it would be defined by the relevant operator method on one of the operands. But a convention would be needed for

Re: [Python-Dev] Close PEP 211? (was Re: Infix operators)

2008-07-23 Thread Greg Ewing
Terry Reedy wrote: Given that itertools.product(A,B) == ((x,y) for x in A for y in B) == the proposed 'A @ B' and given Guido's pronounced distaste for new infix, should this be closed? Would there likely be any support for an alternative PEP defining @ as matrix multiplication in both

Re: [Python-Dev] Infix operators

2008-07-23 Thread Aahz
On Wed, Jul 23, 2008, Sebastien Loisel wrote: [...] I was thinking that it would be simpler to have a way for defining new infix operators, [...] python-dev is the wrong place for this discussion. Please use either comp.lang.python or python-ideas. -- Aahz ([EMAIL PROTECTED]) *

Re: [Python-Dev] bsddb: Test failures on windows (HELP!)

2008-07-23 Thread Mark Hammond
Trent, I was wondering if you could look at some test failures in MS Windows builds. I can't debug Windows issues myself :-(. This is a MS free environment... In these errors I see lots of bsdbd errors, many of the form: | DBFileExistsError: (17, 'File exists -- __fop_file_setup: Retry limit