importlib: what is it, and why is it important?

2009-01-31 Thread excord80
Regarding this blog post: http://sayspy.blogspot.com/2009/01/importlib-is-now-in-python-31.html When I use the ``import foo`` statement at the top of my program, I get a module imported. python has a search path it follows, finds the module, and makes it available to my program. Works nice. :) S

Re: Recommendation for a small web framework like Perl's CGI::Application to run as CGI?

2009-01-28 Thread excord80
On Jan 28, 3:10 pm, Fred Pacquier wrote: > > That would be something close to Karrigell... You know, I stumbled across Karrigell while looking around but was initially uninterested because of what initially seems like a lack of direction. That is, they tell you that you can use it any way you lik

Re: Recommendation for a small web framework like Perl's CGI::Application to run as CGI?

2009-01-28 Thread excord80
On Jan 28, 1:33 pm, Jeroen Ruigrok van der Werven wrote: > -On [20090128 19:01], excord80 (excor...@gmail.com) wrote: > > >Again, the solution must work for plain vanilla CGI. I don't have WSGI > >available. But thank you. > > It works for plain CGI. I myself use

Re: small python-cgi wiki?

2009-01-28 Thread excord80
On Jan 28, 12:02 pm, Bernard Rankin wrote: > > I'm looking to set up a small private wiki, and am looking for > recommendations. > > Some sort of CGI based package that I could just untar somewhere web > accessable via Apache would be great. There are a number of them listed at http://wiki.pyt

Re: Recommendation for a small web framework like Perl's CGI::Application to run as CGI?

2009-01-28 Thread excord80
On Jan 28, 5:05 am, Jeroen Ruigrok van der Werven wrote: > > Werkzeug[1] should be in your line, I think. > > [1]http://werkzeug.pocoo.org/ > Again, the solution must work for plain vanilla CGI. I don't have WSGI available. But thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: Recommendation for a small web framework like Perl's CGI::Application to run as CGI?

2009-01-28 Thread excord80
On Jan 28, 4:57 am, Bruno Desthuilliers wrote: > > What about:http://thraxil.org/code/cgi_app/ > > (yes, it is a port of CGI::Application, and FWIW it's mentionned on the > CGI::Application's wiki). > Nice find. Thank you. Interesting project. It seems to be only one fairly short file (perhaps t

Re: Recommendation for a small web framework like Perl's CGI::Application to run as CGI?

2009-01-27 Thread excord80
On Jan 27, 7:28 pm, James Mills wrote: > > One option is to configure Apache with mod_wsgi and just > use WSGI. Fairly simple really and much like CGI. This is a shared hosting arrangement, so I don't have the option of adding an apache module. Also, if it's much like CGI, I don't see what benef

Re: Recommendation for a small web framework like Perl's CGI::Application to run as CGI?

2009-01-27 Thread excord80
On Jan 27, 4:52 pm, Tim Chase wrote: > > I need to make a small, relatively low-traffic site that users can > > create accounts on and log into. Scripts must run as cgi (no > > mod_python or FastCGI is available). Can anyone recommend a small and > > simple web framework for Python, maybe similar

Re: Recommendation for a small web framework like Perl's CGI::Application to run as CGI?

2009-01-27 Thread excord80
On Jan 27, 4:52 pm, Tim Chase wrote: > > I need to make a small, relatively low-traffic site that users can > > create accounts on and log into. Scripts must run as cgi (no > > mod_python or FastCGI is available). Can anyone recommend a small and > > simple web framework for Python, maybe similar

Recommendation for a small web framework like Perl's CGI::Application to run as CGI?

2009-01-27 Thread excord80
I need to make a small, relatively low-traffic site that users can create accounts on and log into. Scripts must run as cgi (no mod_python or FastCGI is available). Can anyone recommend a small and simple web framework for Python, maybe similar to Perl's CGI::Application? Or would it just be bette

Re: Need help with os.system in linux

2009-01-16 Thread excord80
On Jan 16, 7:05 pm, akshay bhat wrote: > Hello > i am calling a program using os.system in python on Linux. > However in i found that program being executed and soon returned 256. > but when i ran it using terminal i got proper results. > Now in case of windows, python waits till the process is fi

Re: LGPL license for Qt 4.5

2009-01-14 Thread excord80
On Jan 14, 9:20 am, sturlamolden wrote: > > In either case, Qt will be available under the same licensing terms as > wxWidgets. > > As of today, the main reason to prefer wxPython over PyQt is the > license. With an LGPL'd Qt, I'd rather ask what this will mean for > wxPython. wx has a nice commu

Re: Egg deinstallation

2009-01-12 Thread excord80
On Jan 12, 9:36 am, mk wrote: > Hello everyone, > > I googled and googled and can't seem to find the definitive answer: how > to *properly* deinstall egg? Just delete the folder and/or .py and .pyc > files from Lib/site-packages? Would that break anything in Python > installation or not? As an as

Re: State of the art: Tkinter, Tk 8.5, Tix?

2009-01-10 Thread excord80
On Jan 10, 11:45 am, r wrote: > We need TK 8.5's themes. This will bring Tkinter out of the dark ages > and into the 21st Century! And improve the shine of the Python base > distro. Python could use a good boost right now! Could someone please explain what Tix provides compared to what the new st

Re: Printed Documentation

2009-01-07 Thread excord80
On Jan 7, 5:14 pm, floob wrote: > On Jan 7, 1:39 pm, excord80 wrote: > > > > > On Jan 7, 4:00 pm, floob wrote: > > > > I have been searching for a way to print the official Python > > > documentation into some kind of book (for my own uses). >

Re: Printed Documentation

2009-01-07 Thread excord80
On Jan 7, 4:00 pm, floob wrote: > I have been searching for a way to print the official Python > documentation into some kind of book (for my own uses).  I don't > really care if it's printed on newspaper and bound with elmer's > glue ... any way I can get relatively recent _official documentation

State of the art: Tkinter, Tk 8.5, Tix?

2009-01-07 Thread excord80
Does Python work with Tk 8.5? I'm manually installing my own Python 2.6.1 (separate from my system's Python 2.5.2), and am about to install my own Tcl/Tk 8.5 but am unsure how to make them talk to eachother. Should I install Tk first? If I put Tk into my home directory (under "~/opt" most likely),

Re: Creating an application for Linux

2009-01-06 Thread excord80
You might find this recent blog post interesting: http://www.mechanicalcat.net/richard/log/Python/Sane_Python_application_packaging__initial_solution -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_pylite?

2009-01-02 Thread excord80
On Jan 1, 11:40 pm, Graham Dumpleton wrote: > On Jan 2, 2:28 pm, excord80 wrote: > > > > > On Jan 1, 9:12 pm, s...@pobox.com wrote: > > > >     > > > >>http://broadcast.oreilly.com/2008/12/five-features-perl-5-needs-now.html > > >

Re: mod_pylite?

2009-01-01 Thread excord80
On Jan 1, 9:12 pm, s...@pobox.com wrote: >     >>http://broadcast.oreilly.com/2008/12/five-features-perl-5-needs-now.html > >     >> and he mentions a neat-looking project called ``mod_perlite``. It >     >> sounds like it will be very handy. Anyone working on a >     >> ``mod_pylite``?  Has it bee

mod_pylite?

2009-01-01 Thread excord80
Just read this interesting post by chromatic on what features Perl 5 needs right now http://broadcast.oreilly.com/2008/12/five-features-perl-5-needs-now.html and he mentions a neat-looking project called ``mod_perlite``. It sounds like it will be very handy. Anyone working on a ``mod_pylite``? Ha

Re: Chart libs for python

2009-01-01 Thread excord80
You might start by having a look at the wiki: http://wiki.python.org/moin/NumericAndScientific/Plotting -- http://mail.python.org/mailman/listinfo/python-list

Re: If your were going to program a game...

2009-01-01 Thread excord80
On Jan 1, 2:37 pm, Kay Schluehr wrote: > There is no solution to this problem from a Python perspective. Do > what everyone does right now: [snip] It still surprises me that no one has implemented the solution for this yet. Maybe it's harder than it seems, but it *seeems* like it's just a matte

Re: Building a web questionnaire, can it be done in Python ?

2008-12-19 Thread excord80
On Dec 19, 11:58 am, Stef Mientki wrote: > hello, > > I'm considering building a web questionnaire in Python. > I've made several desktop applications in Python /  wxPython, > but I've no experience in using Python on a webserver, > and I don't have much knowledge about web applications in general

Re: ANN: New Book: Programming in Python 3

2008-12-19 Thread excord80
On Dec 4, 2:42 pm, Alan G Isaac wrote: > Mark Summerfield wrote: > > "Programming in Python 3: > > A Complete Introduction to the Python Language" > > ISBN 0137129297 > >http://www.qtrac.eu/py3book.html > > OMG, you really wrote it in Lout? > I wish you would add to http://www.qtrac.eu/lout.html >

Re: New Python 3.0 string formatting - really necessary?

2008-12-19 Thread excord80
On Dec 19, 11:01 am, walterbyrd wrote: > > To me, it seems that this: > > print "%s=%d" % ('this',99) > > Is much easier, and faster, to type, and is also easier to read and > understand. [snip] > > This (if it's right) is much longer, and requires more special > characters. > > print( "{0}={1}".f

Re: How do I manually uninstall setuptools (installed by egg)?

2008-12-14 Thread excord80
On Dec 9, 10:48 pm, excor...@gmail.com wrote: > > Anyway, the direction I'm heading is to try and use setuptools *less*. > It seems like it might be too complicated for me. And, I notice that > the mailing list for it (distutils-sig, if that's the right one) is > loaded with questions on how to use

Re: How do I manually uninstall setuptools (installed by egg)?

2008-12-11 Thread excord80
On Dec 10, 7:45 am, "Diez B. Roggisch" wrote: > excor...@gmail.com wrote: > > > As an aside, I'm a bit struck by how long the setuptools/easy_install > > manuals are, and a bit dismayed at the lack of an easy_install > > uninstall command. Thinking of trying life for a while without > > setuptools

Re: How do I manually uninstall setuptools (installed by egg)?

2008-12-09 Thread excord80
On Dec 9, 10:29 pm, "Chris Rebert" <[EMAIL PROTECTED]> wrote: > On Tue, Dec 9, 2008 at 7:16 PM,  <[EMAIL PROTECTED]> wrote: > > On Dec 9, 10:04 pm, "Chris Rebert" <[EMAIL PROTECTED]> wrote: > >> So, why do you think apt and not setuptools is The Right Way(tm)? > > > I like to keep > 1 Python on my

Re: How do I manually uninstall setuptools (installed by egg)?

2008-12-09 Thread excord80
On Dec 9, 10:15 pm, [EMAIL PROTECTED] wrote: > On Tue, 9 Dec 2008 at 18:49, [EMAIL PROTECTED] wrote: > > On Ubuntu, I accidentally manually installed setuptools > >http://pypi.python.org/pypi/setuptools/0.6c9(by running the .egg file > > as a shell script via sudo), and now realize I should just be

Re: How do I manually uninstall setuptools (installed by egg)?

2008-12-09 Thread excord80
On Dec 9, 10:04 pm, "Chris Rebert" <[EMAIL PROTECTED]> wrote: > So, why do you think apt and not setuptools is The Right Way(tm)? I like to keep > 1 Python on my computer. 1. First, there's the system Python, which is installed by my OS and which I try not to mess with too much. I'm guessing Ubun

How do I manually uninstall setuptools (installed by egg)?

2008-12-09 Thread excord80
On Ubuntu, I accidentally manually installed setuptools http://pypi.python.org/pypi/setuptools/0.6c9 (by running the .egg file as a shell script via sudo), and now realize I should just be using apt to take care of my system Python packages. I also installed one or two packages using its ``easy_ins

Re: Strengths and weaknesses of Pygame vs. pyglet vs. PyOpenGL?

2008-12-07 Thread excord80
On Dec 7, 8:17 pm, "Patrick Mullen" <[EMAIL PROTECTED]> wrote: > On Sun, Dec 7, 2008 at 4:43 PM,  <[EMAIL PROTECTED]> wrote: > > [snip] > PyOpengl - an opengl wrapper.  Version 2 is written in c, version 3 > instead uses ctypes > Pyglet - an opengl + events/sound/etc wrapper written in ctypes Does

Strengths and weaknesses of Pygame vs. pyglet vs. PyOpenGL?

2008-12-07 Thread excord80
Trying to decide which to get started with. Can anyone suggest some pros and cons to each of them? Would PyOpenGL be in the same camp as Pygame and pyglet? Do either of Pygame or pyglet make use of PyOpenGL behind the scenes? -- http://mail.python.org/mailman/listinfo/python-list

Re: Number of Python 3.x packages at the PyPI

2008-12-07 Thread excord80
On Dec 7, 12:21 pm, [EMAIL PROTECTED] wrote: >     Martin>http://pypi.python.org/pypi?:action=browse&c=533 > >     Martin> It seems that some package authors only classify with > >     Martin>   Programming Language :: Python :: 3 > > I did a release for lockfile yesterday which supports 3.0.  I ad

Number of Python 3.x packages at the PyPI

2008-12-06 Thread excord80
Is there an easy way to see the number of PyPI packages which have been ported to Python 3? Are there any special arrangements necessary for PyPI packages which have both a Python 2.x version and a Python 3.x version? -- http://mail.python.org/mailman/listinfo/python-list

How can I do this (from Perl) in Python? (closures)

2008-12-03 Thread excord80
I just came across http://www.perl.com/pub/a/2002/05/29/closure.html and wanted to try the "canonical example of closures" in Python. I came up with the following, but it fails: ### #!/usr/bin/env python def make_counter(start_num): start = start_num def counter():