(Please don't top-post -- fixed)
Kevin Feng wrote:
On 3/14/06 2:12 AM, in article [EMAIL PROTECTED],
Gregor Horvath [EMAIL PROTECTED] wrote:
Kevin Feng schrieb:
More information about this error may be available in the server error log.
Any suggestions? Much thanks.
What does
Michael Ekstrand wrote:
Doxygen has recently added support for Python, [snip]
Didn't know that. Thanks for the heads-up. :)
--
(remove zeez if demunging email address)
--
http://mail.python.org/mailman/listinfo/python-list
Glurt Wuntal wrote:
I am a newbie with Python. It's a great language, but I would like to be
able to present a simple gui menu for some of my scripts; something better
than using 'raw_input' prompts.
Any recommendations for a program that will allow me to create the gui
screens? Something
John M. Gabriele wrote:
There are Python bindings to most GUI toolkits (GTK+, Qt, fltk, wxWindows,
and Tk come to mind).
Whoops. Forgot fltk with the pyFLTK Python binding. fltk
is a fast, light, toolkit that's written in C++ but (again,
IIRC) feels more like C-with-classes (which isn't a bad
kpd wrote:
Hello,
I have written a C++ library that I've then wrapped with Pyrex.
Any suggestions to the best-in-class tool to create documentation for
the libraries?
I would love to document things in one spot (could be the code) and
generate html and PDF from there.
Doxygen
Renato wrote:
If you use vi (vim, I hope), then place something like this in your
.vimrc
set ts=4
set sw=4
set expandtab
set ai
Or, more verbose:
set tabstop=4
set shiftwidth=4
set autoindent
There are a lot more tricks for python in vim (and plugins, and
helpers, and so on), but
[EMAIL PROTECTED] wrote:
[snip] Now I'm
looking to build a GUI in python with the rendering engine as an
integrated window. I will most likely use wxPython for the GUI and I
know it has support for adding an OpenGL canvas.
You might look into PyFLTK (which I think was just recently
Lonnie Princehouse wrote:
I plan on writing some documentation that will consist of blocks of
commentary with interspersed snippets of syntax-colored Python code and
the occaisional image.
Does anyone know of a package that will take a high level description
of what I just described and
Henrique Ferreiro wrote:
O Sáb, 25-02-2006 ás 15:01 -0800, MARK LEEDS escribiu:
i'm pretty much a python beginner so can anyone recommend a plooting
package in python ( simple foating numbers
that makes lines or dots with a yaxis and an an xaxis. i don't need
fancy drawings ) that is a
Mladen Adamovic wrote:
Hi!
I wonder which editor or IDE you can recommend me for writing Python
programs. I tried with jEdit but it isn't perfect.
NEdit
--
(remove zeez if demunging email address)
--
http://mail.python.org/mailman/listinfo/python-list
Jeffrey Schwab wrote:
jkn wrote:
I was wondering about treating it
wilth liberal amounts of Teak Oil or similar...
Some people, when confronted with a problem, think I know, I’ll use
Teak Oil. Now they have two problems.
Quit it! You're making me laugh too much and it's gonna
wake
{fixed top-posting}
george williams wrote:
This is to announce the first official release of pyFltk-1.1,
the Python bindings for the cross platform GUI toolkit fltk-1.1
By god this sounds interesting I wish I
knew what you are talking about
fltk (pronounced full-tick as in Cap'n,
Shalabh Chaturvedi wrote:
[EMAIL PROTECTED] wrote:
A class-to-class and method-to-method rewrite will give some but likely
not the full benefit of moving to Python. A redesign might be necessary
- making it more 'Pythonic' in the process. In my experience, many cruft
classes that exist
[EMAIL PROTECTED] wrote:
To replace a large framework you will probably need a framework.
Well, I'm sure not all web frameworks are created equal, however,
CherryPy does bill itself as a web framework.
Take a
look at http://www.djangoproject.com or http://www.turbogears.org. They
both use
nitro wrote:
Hi,
I am using a Debian system. I installed NumPy and everything works
well. When I try to install SciPy, I get the following error. Any help
would be appreciated.
===
[EMAIL PROTECTED]:~/scipy/scipy-0.4.4$ python setup.py install
import core - failed:
Sean wrote:
I am a newbie in python, and I have a feeling that python provides less
library support than perl www.cpan.org This seems a big discussion
topic.
I want to know if there is extensive algorithm library support in
python. I know there is a pretty neat module in perl to implement
swisscheese wrote:
I have a simple python desktop app with several edit controls and a
couple of buttons. It just does some math. What's the simplest way to
make it a server-side app so visitors to my site can run the app via
their browser?
The *simplest* way is to make it into a CGI
Josh wrote:
We have a program written in VB6 (over 100,000 lines of code and 230 UI
screens) that we want to get out of VB and into a better language. The
program is over 10 years old and has already been ported from VB3 to
VB6, a job which took over two years. We would like to port it to
Luiz Geron wrote:
I don't have experience on this, but I think that you can make the
script return the image contents directly to the img tag, without
passing it to a img file, so you can use something like this:
img src=script_that_return_image_contents
wich saves some processing and
Alex Martelli wrote:
S Borg [EMAIL PROTECTED] wrote:
Hello,
I have been writing very simple Python programs that parse HTML and
such, mainly just to get
a better feel for the language. Here is my question: If I parsed an
HTML page into all of the image
files listed on that page, how could
The following short program fails:
--- code
#!/usr/bin/python
class Parent( object ):
def __init__( self ):
self.x = 9
print Inside Parent.__init__()
class Child( Parent ):
def __init__( self ):
print Inside
David Hirschfield wrote:
Nothing's wrong with python's oop inheritance, you just need to know
that the parent class' __init__ is not automatically called from a
subclass' __init__. Just change your code to do that step, and you'll be
fine:
class Parent( object ):
def __init__( self
John M. Gabriele wrote:
David Hirschfield wrote:
Nothing's wrong with python's oop inheritance, you just need to know
that the parent class' __init__ is not automatically called from a
subclass' __init__. Just change your code to do that step, and you'll
be fine:
class Parent( object
Dan Sommers wrote:
[snip]
How does it help that Parent.__init__ gets called? That call simply
would create a temporary Parent object, right? I don't see how it
should help (even though it *does* indeed work).
The __init__ method is an *initializer*, *not* a constructor. By the
time
Dennis Lee Bieber wrote:
On Sun, 15 Jan 2006 20:50:59 -0500, John M. Gabriele
[EMAIL PROTECTED] declaimed the following in comp.lang.python:
Sorry -- that question I wrote looks a little incomplete: what I meant
to ask was, how does it help this code to work:
code
#!/usr/bin
Consider the following:
#!/usr/bin/python
#-
class Grand_parent( object ):
def speak( self ):
print 'Grand_parent.speak()'
self.advise()
def advise( self ):
print 'Grand_parent.advise()'
Scott David Daniels wrote:
Dustan wrote:
From my experience, the methods are passed
down, not referred to from the parent. That is, Parent does have its
own critique method, not a reference to Grand_parent.critique().
This is typical of static binding as (for example) seen in C++.
Dustan wrote:
[snip] That is, Parent does have its
own critique method, not a reference to Grand_parent.critique().
Interesting. It has its own critique method? Hm. Not quite sure what
that means exactly...
Anyhow, I wasn't suggesting that Parent had a reference to
Grand_parent.critique(),
André wrote:
John M. Gabriele wrote:
Since Child has no advice() method, it inherits the one for Parent.
Thus, Child can be thought of as being defined as follows:
. class Child( Parent ):
.
. def speak( self ):
. print '\t\tChild.speak()'
. self.advise
I'm putting together a small site using Python and cgi.
(I'm pretty new to this, but I've worked a little with
JSP/servlets/Java before.)
Almost all pages on the site will share some common (and
static) html, however, they'll also have dynamic aspects.
I'm guessing that the common way to build
On Thu, 01 Sep 2005 09:20:51 +0200, Diez B. Roggisch wrote:
John M. Gabriele wrote:
I'm putting together a small site using Python and cgi.
(I'm pretty new to this, but I've worked a little with
JSP/servlets/Java before.)
Almost all pages on the site will share some common (and
static
On Thu, 01 Sep 2005 13:12:14 +0100, Fuzzyman wrote:
On Thu, 01 Sep 2005 03:10:07 -0400, John M. Gabriele
[EMAIL PROTECTED] wrote:
I'm putting together a small site using Python and cgi.
(I'm pretty new to this, but I've worked a little with
JSP/servlets/Java before.)
Almost all pages
On Thu, 01 Sep 2005 19:10:14 +0200, Walter Dörwald wrote:
John M. Gabriele wrote:
I'm putting together a small site using Python and cgi.
(I'm pretty new to this, but I've worked a little with
JSP/servlets/Java before.)
Almost all pages on the site will share some common (and
static
On Thu, 01 Sep 2005 20:57:56 -0500, Steve Holden wrote:
John M. Gabriele wrote:
[snip]
Is that how it's usually done? If not, what *is* the
usual way of handling this?
There are a million ways to solve this particular problem, despite
Python's TSBOAPOOOWTDI (see import this) philosophy
I know that Python doesn't do method overloading like
C++ and Java do, but how am I supposed to do something
like this:
- incorrect
#!/usr/bin/python
class Point3d:
pass
class Vector3d:
A vector in three-dimensional cartesian space.
On Wed, 23 Feb 2005 21:32:52 -0700, Steven Bethard wrote:
[snip]
Another possibility is to play around with *args:
class Vector3d(object):
def __init__(self, *args):
if not args:
# constructor with no arguments
elif len(args) == 6:
#
I've done some C++ and Java in the past, and have recently learned
a fair amount of Python. One thing I still really don't get though
is the difference between class methods and instance methods. I
guess I'll try to narrow it down to a few specific questions, but
any further input offered on the
Aahz wrote:
[snip]
Anyway. Have you ever noticed how shell scripts keep getting longer?
Yup.
Ever notice how it gets harder to figure out what the heck any given
script's doing?
Yup.
Well, that's where Python helps you out compared to
Perl. Python can be a bit clumsier than Perl for dirt-simple
I recently posted this sort of question to the c.l.p.m but
didn't get much of a response. I know a little Perl and a
little Python, but master neither at the moment.
I see that Python is a general purpose OO programming language
that finds use among some system administrators, but my guess
is
On Mon, 07 Feb 2005 20:13:30 -0800, beliavsky wrote:
[snip]
I'm a Windows user, not a Unix sysadmin, but I've noticed that
Cameron Laird has written several articles on Python for system
administration in Unix Review and Sys Admin magazine, for example
40 matches
Mail list logo