[ANN] Numpy 1.3.0 released

2009-04-05 Thread David Cournapeau
Hi,

I am pleased to announce the release of numpy 1.3.0. You can find source 
tarballs and binary installers for
both Mac OS X and Windows on the sourceforge page:

https://sourceforge.net/projects/numpy/

The release note for the 1.3.0 release are below. There are no changes compared 
to the release candidate 2. Thank you to everyone involved in this release, 
developers, users who reported bugs,

enjoy,

the numpy developers.




=
NumPy 1.3.0 Release Notes
=

This minor includes numerous bug fixes, official python 2.6 support, and
several new features such as generalized ufuncs.

Highlights
==

Python 2.6 support
~~

Python 2.6 is now supported on all previously supported platforms, including
windows.

http://www.python.org/dev/peps/pep-0361/

Generalized ufuncs
~~

There is a general need for looping over not only functions on scalars but also
over functions on vectors (or arrays), as explained on
http://scipy.org/scipy/numpy/wiki/GeneralLoopingFunctions. We propose to
realize this concept by generalizing the universal functions (ufuncs), and
provide a C implementation that adds ~500 lines to the numpy code base. In
current (specialized) ufuncs, the elementary function is limited to
element-by-element operations, whereas the generalized version supports
"sub-array" by "sub-array" operations. The Perl vector library PDL provides a
similar functionality and its terms are re-used in the following.

Each generalized ufunc has information associated with it that states what the
"core" dimensionality of the inputs is, as well as the corresponding
dimensionality of the outputs (the element-wise ufuncs have zero core
dimensions). The list of the core dimensions for all arguments is called the
"signature" of a ufunc. For example, the ufunc numpy.add has signature
"(),()->()" defining two scalar inputs and one scalar output.

Another example is (see the GeneralLoopingFunctions page) the function
inner1d(a,b) with a signature of "(i),(i)->()". This applies the inner product
along the last axis of each input, but keeps the remaining indices intact. For
example, where a is of shape (3,5,N) and b is of shape (5,N), this will return
an output of shape (3,5). The underlying elementary function is called 3*5
times. In the signature, we specify one core dimension "(i)" for each input and
zero core dimensions "()" for the output, since it takes two 1-d arrays and
returns a scalar. By using the same name "i", we specify that the two
corresponding dimensions should be of the same size (or one of them is of size
1 and will be broadcasted).

The dimensions beyond the core dimensions are called "loop" dimensions. In the
above example, this corresponds to (3,5).

The usual numpy "broadcasting" rules apply, where the signature determines how
the dimensions of each input/output object are split into core and loop
dimensions:

While an input array has a smaller dimensionality than the corresponding number
of core dimensions, 1's are pre-pended to its shape.  The core dimensions are
removed from all inputs and the remaining dimensions are broadcasted; defining
the loop dimensions.  The output is given by the loop dimensions plus the
output core dimensions.

Experimental Windows 64 bits support


Numpy can now be built on windows 64 bits (amd64 only, not IA64), with both MS
compilers and mingw-w64 compilers:

This is *highly experimental*: DO NOT USE FOR PRODUCTION USE. See INSTALL.txt,
Windows 64 bits section for more information on limitations and how to build it
by yourself.

New features


Formatting issues
~

Float formatting is now handled by numpy instead of the C runtime: this enables
locale independent formatting, more robust fromstring and related methods.
Special values (inf and nan) are also more consistent across platforms (nan vs
IND/NaN, etc...), and more consistent with recent python formatting work (in
2.6 and later).

Nan handling in max/min
~~~

The maximum/minimum ufuncs now reliably propagate nans. If one of the
arguments is a nan, then nan is retured. This affects np.min/np.max, amin/amax
and the array methods max/min. New ufuncs fmax and fmin have been added to deal
with non-propagating nans.

Nan handling in sign


The ufunc sign now returns nan for the sign of anan.


New ufuncs
~~

#. fmax - same as maximum for integer types and non-nan floats. Returns the
   non-nan argument if one argument is nan and returns nan if both arguments
   are nan.
#. fmin - same as minimum for integer types and non-nan floats. Returns the
   non-nan argument if one argument is nan and returns nan if both arguments
   are nan.
#. deg2rad - converts degrees to radians, same as the radians ufunc.
#. rad2deg - converts radians to degrees, same as the degrees ufunc.
#. log2 - base 2 logarithm.
#. exp2 - base 2 exponential.
#. trun

ANN: poster-0.4 - Streaming HTTP uploads and multipart/form-data encoding

2009-04-05 Thread chris
poster 0.4 is available:



The modules in the Python standard library don't provide a way to upload large
files via HTTP without having to load the entire file into memory first.

poster provides support for both streaming POST requests as well as
multipart/form-data encoding of string or file parameters

For more information, visit the poster project site:


Chris AtLee

--
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations.html


[ANN] PyGtkImageView 1.2.0 -- Image viewer widget for PyGTK

2009-04-05 Thread BJörn Lindqvist
I'm pleased to finally announce PyGtkImageView 1.2.0!

Description
---
GtkImageView is a simple image viewer widget for GTK+. Similar to the
image viewer panes in gThumb or Eye of Gnome. It makes writing image
viewing and editing applications easy. Among its features are:

* Mouse and keyboard zooming.
* Scrolling and dragging.
* Adjustable interpolation.
* Fullscreen mode.
* GIF animation support.
* Ability to make selections.
* Extensible using a tool system.

PyGtkImageView is the Python bindings for GtkImageView.

PyGtkImageView Download
---
Subversion: svn co http://publicsvn.bjourne.webfactional.com/pygtkimageview
Tarball:
http://trac.bjourne.webfactional.com/chrome/common/releases/pygtkimageview-1.2.0.tar.gz
API doc:
http://trac.bjourne.webfactional.com/chrome/common/pygtkimageview-docs/
PDF:
http://trac.bjourne.webfactional.com/chrome/common/releases/pygtkimageview-1.2.0.pdf

Project website: http://trac.bjourne.webfactional.com

Examples

Here is the canonical example for using the widget:

   import gtk
   import gtk.gdk
   import gtkimageview

   view = gtkimageview.ImageView()
   scroll = gtkimageview.ImageScrollWin(view)

   # Where "box" is a gtk.Box already part of your layout.
   box.pack_start(scroll)
   pixbuf = gtk.gdk.pixbuf_new_from_file("someimage.png")
   view.set_pixbuf(pixbuf)


-- 
mvh Björn
--
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations.html


[ANN] Leipzig Python User Group - Meeting, April 7, 2009, 08:00pm

2009-04-05 Thread Mike Müller

=== Leipzig Python User Group ===

We will meet on Tuesday, April 7 at 8:00 pm at the training
center of Python Academy in Leipzig, Germany
( http://www.python-academy.com/center/find.html ).

Notice: This meeting is one week earlier than usual.

Out topics include our booth at the Chemnitzer Linux-Tage and
PyCon 2009.

Food and soft drinks are provided. Please send a short
confirmation mail to i...@python-academy.de, so we can prepare
appropriately.

Everybody who uses Python, plans to do so or is interested in
learning more about the language is encouraged to participate.

While the meeting language will be mainly German, we will provide
English translation if needed.

Current information about the meetings are at
http://www.python-academy.com/user-group .

Mike



== Leipzig Python User Group ===

Wir treffen uns am Dienstag, 07.04.2009 um 20:00 Uhr
im Schulungszentrum der Python Academy in Leipzig
( http://www.python-academy.de/Schulungszentrum/anfahrt.html ).

Achtung: Wegen Ostern haben wir den Stammtisch eine Woche
vorgezogen.

Wir werden unseren Auftritt auf den Chemnitzer Linux-Tagen
auswerten und über die PyCon 2009 sprechen.

Für das leibliche Wohl wird gesorgt. Eine Anmeldung unter
i...@python-academy.de wäre nett, damit wir genug Essen
besorgen können.

Willkommen ist jeder, der Interesse an Python hat, die Sprache
bereits nutzt oder nutzen möchte.

Aktuelle Informationen zu den Treffen sind unter
http://www.python-academy.de/User-Group zu finden.

Viele Grüße
Mike













--
http://mail.python.org/mailman/listinfo/python-announce-list

   Support the Python Software Foundation:
   http://www.python.org/psf/donations.html


Fwd: Python Ireland presents - April Talks @ The Vaults

2009-04-05 Thread Vicky Lee
-- Forwarded message --
From: Vicky Lee 
Date: Fri, Apr 3, 2009 at 10:47 PM
Subject: Python Ireland presents - April Talks @ The Vaults
To: pythonirel...@googlegroups.com


Hi All,
There will be talks this month. Just double-checking that the talk by Alan
is ok, so that's subject to change (I will update and let everyone know).

When: Wed, 8th April 2009 @ 7pm
Where: The Vaults (http://www.thevaults.ie/location.php) Also last orders
for food is 8pm.
What's on:

   -
   Introduction to unicode talk AKA everything a programmer who
doesn't care needs to know about international text in python.
(AlanKennedy)
   - Mick's build tool (ports in python). (MichaelTwomey)
   -
   Talk and demonstration of the barter exchange with Appengine. (PJ
Fitzpatrick)
   - Lightning talks (if we have time)

More information:-
http://wiki.python.ie/moin.cgi/PythonMeetup/April2009


Don't forget, I'll be bringing along the Python Ireland tees as well. A
tenner donation would be appreciated to cover its printing costs.


Cheers,

/// Vicky

~~
~~ http://irishbornchinese.com   ~~
~~   http://www.python.ie   ~~
~~
--
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations.html