Drawing charts and graphs.

2006-04-25 Thread Jonathan Daugherty
Hello,

I'm looking at a number of chart-drawing libraries and modules for
Python and I'd like to know which one people tend to consider the
best.

I've tried gdchart2 but its interface seems somewhat limited, and
pychart looks nice.  I'd like to find something that will let me draw
graphs similar to those created by RRDtool.

Thanks!

-- 
  Jonathan Daugherty
  http://www.parsed.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: 345 free programming books

2006-04-25 Thread Jonathan Daugherty
# http://ttcom.blogspot.com/2006/04/345-free-online-programming-books.html

It seems this has been making the rounds today.  The Practical
PostgreSQL link is also broken; OpenDocs Publishing ceased to exist
starting several months ago.

-- 
  Jonathan Daugherty
  http://www.parsed.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Missing interfaces in Python...

2006-04-18 Thread Jonathan Daugherty
# All interfaces (as implemented by Java) prove is that your class has
# a bunch of methods with the right names and signatures.  It doesn't
# prove that those methods do the right things.

I don't think anyone is suggesting that interfaces do (or should)
prove that the implemented methods actually do the right thing.

-- 
  Jonathan Daugherty
  http://www.parsed.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Missing interfaces in Python...

2006-04-17 Thread Jonathan Daugherty
# In Python, you would simply call the functions you need. No need to
# make things that rigidly defined.

Except when you need to handle exceptions when those methods don't
exist.  I think interfaces can definitely be useful.

-- 
  Jonathan Daugherty
  http://www.parsed.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Missing interfaces in Python...

2006-04-17 Thread Jonathan Daugherty
# so with interfaces, missing methods will suddenly appear out of thin
# air ?

With interfaces, the idea is that they're enforced; so, they'll appear
because someone implements them.

-- 
  Jonathan Daugherty
  http://www.parsed.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Missing interfaces in Python...

2006-04-17 Thread Jonathan Daugherty
# enforced by whom, at what point ?

In the case of Java, I think the JVM enforces interface implementation
(probably at the parser level).

-- 
  Jonathan Daugherty
  http://www.parsed.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Missing interfaces in Python...

2006-04-17 Thread Jonathan Daugherty
# Thanks for the responses...Looks like I might have opened Pandora's
# box here. Could I accomplish the above with an abstract class?

Zope 3 has an interface system which is good.  I recommend you look at
that.

-- 
  Jonathan Daugherty
  http://www.parsed.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Missing interfaces in Python...

2006-04-17 Thread Jonathan Daugherty
# parser...?!  If you have an 'Object o', say one just received as an
# argument, and cast it to IBlahble, a la
# 
# IBlahble blah = (IBlahble) o;
# 
# ...what can the parser ever say about it?

Maybe you didn't read the I think in my OP.  Anyway, you clearly
know more about (or have more recent experience with) Java than I do.

-- 
  Jonathan Daugherty
  http://www.parsed.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Missing interfaces in Python...

2006-04-17 Thread Jonathan Daugherty
# My real-world experience with Java is very dated -- nowadays, I'm
# told, the NEED to cast is vastly reduced by Java 1.5's generics (I
# haven't yet written one line of Java 1.5, not even for play
# purposes, much less real world ones;-).

Interesting; thanks.

# So much for compiler enforcement, hm?-)

Yes, indeed. :)

-- 
  Jonathan Daugherty
  http://www.parsed.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: editor for Python on Linux

2006-02-19 Thread Jonathan Daugherty
# I wonder which editor or IDE you can recommend me for writing Python
# programs. I tried with jEdit but it isn't perfect.

It depends on what you need; what don't you like about JEdit?  What do
you think a good editor or IDE should provide?

-- 
  Jonathan Daugherty
  http://www.parsed.org
-- 
http://mail.python.org/mailman/listinfo/python-list