Re: [Python-Dev] Order of operations

2007-08-30 Thread Jason Orendorff
On 8/29/07, Dirkjan Ochtman <[EMAIL PROTECTED]> wrote:
> Alexandre Vassalotti wrote:
> > C doesn't have an exponentiation operator. You use the pow() function, 
> > instead:
>
> Wouldn't it make more sense, then, to have unary +/- have higher
> precedence than the ** operator, so that -3**2 == 9?

No, that would have been really bad.  Anyone who's had high school
algebra expects -x**2 to be -(x**2) and not (-x)**2.

I think the weirdness comes from parsing -a/b as (-a)/b rather than
-(a/b).  It should be the latter, if compatibility with math notation
is more important than compatibility with C.   Oh well.  Maybe in
Python 4.  :)

-j
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] HAVE_DECL_TZNAME in pyconfig.h.in, but no test for it ?

2007-08-30 Thread Alexander Neundorf
Hi,

in current python svn there is a 
#undef HAVE_DECL_TZNAME
but I can't find a configure test for it.
Did I miss something ?

Bye
Alex
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] HAVE_DECL_TZNAME in pyconfig.h.in, but no test for it ?

2007-08-30 Thread Martin v. Löwis
> in current python svn there is a 
> #undef HAVE_DECL_TZNAME
> but I can't find a configure test for it.
> Did I miss something ?

Perhaps that it is generated through autoheader?

pyconfig.h.in was last generated by autoconf 2.61,
and configure by autoconf 2.59. I have now made
sure that the trunk will always use autoconf 2.61.

Regards,
Martin
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Building Python with CMake

2007-08-30 Thread Alexander Neundorf
On Friday 13 July 2007 16:11, Giovanni Bajo wrote:
> On 13/07/2007 20.53, Facundo Batista wrote:
> >> as I wrote in my previous email, I'm currently porting Python to some
> >> more unusual platforms, namely to a super computer
> >> (http://www.research.ibm.com/bluegene/) and a tiny embedded operating
> >> system (http://ecos.sourceware.org), which have more or less
> >> surprisingly quite similar properties.
> >
> > Sorry, missed the previous mail. Have two questions for you:
> >
> > - Why?
>
> Because it would be a single unified build system instead of having two
> build systems like we have one (UNIX and Windows).
>
> Also, it would be much easier to maintain because Visual Studio projects
> are generated from a simple description, while right now if you want to
> change something you need to go through the hassle of defining it within
> the Visual Studio GUI.
>
> Consider for instance if you want to change the Windows build so that a
> builtin module is compiled as an external .pyd instead. Right now, you need
> to go through the hassle of manually defining a new project, setting all
> the include/libraries dependencies correctly, ecc. ecc. With CMake or a
> similar tool, it would be a matter of a couple of textual line changes.
>
> [ I'll also remember that "ease of maintanance for developers" is the #1
> reason for having a 2.1Mb python25.dll under Windows, which I would really
> love to reduce. ]

The cmake files for building python are now in a cvs repository:
http://www.cmake.org/cgi-bin/viewcvs.cgi/Utilities/CMakeBuildForPython/?root=ParaView3

This is inside the ParaView3 repository:
http://www.paraview.org/New/download.html

I used them today to build Python from svn trunk.

I'll add some documentation how to use them, how to get them and what works 
and what doesn't work tomorrow.

Bye
Alex
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] Notification of assignment in new tracker

2007-08-30 Thread Martin v. Löwis
Erik just fixed the tracker so that the Assigned-to person
gets email for any message added to an issue.

However, *no* email is sent if one merely changes the
Assigned-to field. Sending a message for every status change
would cause significant amounts of spam, so mere status
changes are performed "silently".

So if you assign an issue to somebody but yourself, you
should leave a message also so that this person actually
learns about the assignment. Doing so is probably a good
idea, anyway, as you should explain why you did this
assignment.

Regards,
Martin
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Order of operations

2007-08-30 Thread Greg Ewing
Jason Orendorff wrote:
> I think the weirdness comes from parsing -a/b as (-a)/b rather than
> -(a/b).

This will sort of be fixed in 3.0, at least for /, because
it will always mean float division, for which -(a/b) == (-a)/b.

You'll have to use // to get weirdness, then. :-)

-- 
Greg Ewing, Computer Science Dept, +--+
University of Canterbury,  | Carpe post meridiem! |
Christchurch, New Zealand  | (I'm not a morning person.)  |
[EMAIL PROTECTED]  +--+
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com