On Thu, Dec 13, 2007 at 03:14:23PM -0800, Christopher Barker wrote:
> I'm not up on the details of this specific issue, but in general, the
> idea that:
> __repr__ is precise and complete
> __str__ is pretty and readable
> is a good one.
Guys, I agree with all this. It's not about the theory, b
On Dec 13, 2007 4:14 PM, Christopher Barker <[EMAIL PROTECTED]> wrote:
> I'm not up on the details of this specific issue, but in general, the
> idea that:
>
> __repr__ is precise and complete
> __str__ is pretty and readable
>
> is a good one
+1
For a while I've toyed with the idea of adding an
Gael Varoquaux wrote:
>> x == eval(repr(x))
>
>> That is true for many of the builtin data types of the language.
And the really the whole point of having __repr__, in addition to __str__
> I totally agree. However if a user types:
> pylab.rcParams
> in IPython, or the Python interpreter, she ge
John Hunter wrote:
> Do we need namespace packages in toolkits? I recently added gtktools
> and exceltools to toolkits, and got a very hard to debug error:
>
> In [1]: import matplotlib
>
> In [2]: matplotlib.__file__
> Out[2]:
> '/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/__i
On Dec 13, 2007 11:47 AM, Eric Firing <[EMAIL PROTECTED]> wrote:
>
> Fernando Perez wrote:
> > On Dec 13, 2007 11:18 AM, John Hunter <[EMAIL PROTECTED]> wrote:
> >> Do we need namespace packages in toolkits? I recently added gtktools
> >> and exceltools to toolkits, and got a very hard to debug er
Fernando Perez wrote:
> On Dec 13, 2007 11:18 AM, John Hunter <[EMAIL PROTECTED]> wrote:
>> Do we need namespace packages in toolkits? I recently added gtktools
>> and exceltools to toolkits, and got a very hard to debug error:
>
> Welcome to the wonderful world of setuptools' under-the-covers ma
On Dec 13, 2007 11:18 AM, John Hunter <[EMAIL PROTECTED]> wrote:
> Do we need namespace packages in toolkits? I recently added gtktools
> and exceltools to toolkits, and got a very hard to debug error:
Welcome to the wonderful world of setuptools' under-the-covers magic :)
Cheers,
f
--
Do we need namespace packages in toolkits? I recently added gtktools
and exceltools to toolkits, and got a very hard to debug error:
In [1]: import matplotlib
In [2]: matplotlib.__file__
Out[2]:
'/home/titan/johnh/dev/lib/python2.4/site-packages/matplotlib/__init__.pyc'
In [3]: matplotlib.rcPa
I moved the tools in mlab that did optional imports (the rec2gtk and
rec2excel functions and their dependencies) out of mlab into
toolkits.gtktools and toolkits.exceltools. As Michael noted, these
imports can be expensive for users with gtk on their system and do not
belong in mlab. In some cases
On Thursday 13 December 2007 10:05:22 am Gael Varoquaux wrote:
> On Thu, Dec 13, 2007 at 09:31:03AM -0500, Darren Dale wrote:
> > It is possible to save the current settings to a file, so only those that
> > deviate from the default are written to the file. By putting the comments
> > on the same l
On Thu, Dec 13, 2007 at 09:31:03AM -0500, Darren Dale wrote:
> It is possible to save the current settings to a file, so only those that
> deviate from the default are written to the file. By putting the comments on
> the same line as the data, you encourage users to comment their config files
>
On Thursday 13 December 2007 04:24:21 am Gael Varoquaux wrote:
> On Thu, Dec 13, 2007 at 09:30:44AM +0100, Gael Varoquaux wrote:
> > On Wed, Dec 12, 2007 at 06:39:02PM -0700, Fernando Perez wrote:
> > > On second thought though: __str__ is the one meant for 'human
> > > consumption', while __repr__
Thanks for finding these. I suspect that is related to the migration
from numarray to numpy.
I have fixed logo.py and mri_demo.py. I believe the rc_traits.py is
correct (that "Float" is from traits, not numpy).
Cheers,
Mike
Nils Wagner wrote:
> On Thu, 13 Dec 2007 09:07:42 +0100
> "Nils Wa
On Wed, Dec 12, 2007 at 06:39:02PM -0700, Fernando Perez wrote:
> On second thought though: __str__ is the one meant for 'human
> consumption', while __repr__ is deliberately meant to be much more
> machine-like. Basically the idea is that, whenever possible, one can
> do
> x == eval(repr(x))
> T
On Thu, Dec 13, 2007 at 09:30:44AM +0100, Gael Varoquaux wrote:
> On Wed, Dec 12, 2007 at 06:39:02PM -0700, Fernando Perez wrote:
> > On second thought though: __str__ is the one meant for 'human
> > consumption', while __repr__ is deliberately meant to be much more
> > machine-like. Basically the
On Thu, 13 Dec 2007 09:07:42 +0100
"Nils Wagner" <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> It should be float32 instead of Float32.
>
> python logo.py
> Traceback (most recent call last):
> File "logo.py", line 7, in ?
> x = 1000*0.1*fromstring(
> NameError: name 'Float32' is not defined
>
Hi all,
It should be float32 instead of Float32.
python logo.py
Traceback (most recent call last):
File "logo.py", line 7, in ?
x = 1000*0.1*fromstring(
NameError: name 'Float32' is not defined
Nils
-
SF.Net email i
17 matches
Mail list logo