Re: [BangPypers] Extracting zipfile

2010-05-31 Thread S.Ramaswamy
Not by default but you need to stick 2 or 3 lines into your startup file to get it going. -- Tab completion with the standard interpreter doesn't work on Windows even with those 2-3 lines in the startup file - GNU Readline doesn't work on Windows AFAIK. With IPython you can get it working

Re: [BangPypers] Simple python database library

2010-03-03 Thread S.Ramaswamy
Am explicitly looking for lightweight libraries, not heavy weight ORM solutions. AntiORM: http://furius.ca/antiorm/ . Not sure if this an active project. Ramaswamy ___ BangPypers mailing list BangPypers@python.org

Re: [BangPypers] import module error

2009-11-16 Thread S.Ramaswamy
import dbf Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named dbf from dbf import * Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named dbf The example on the project page

Re: [BangPypers] [OT] Guido's Tweet on Top Posting

2009-09-11 Thread S.Ramaswamy
who knows what the context is - the OP did not provide the link The in reply to link in the tweet provides the context. I am using the Twitter web ui, not sure how it works with various Twitter clients. Context: = http://twitter.com/jtauber/status/2403953604

Re: [BangPypers] HTML Parsing in python

2009-09-10 Thread S.Ramaswamy
On Thu, Sep 10, 2009 at 2:29 PM, Puneet Aggarwal look4pun...@gmail.comwrote: Hi BangPypers, Can anyone suggest me a good library for html parsing in python ? I googled a found few libararies BeautifulSoup, HTMLParser, SGMLParser etc. Can anyone suggest me which should I go for from your

[BangPypers] [OT] Guido's Tweet on Top Posting

2009-09-10 Thread S.Ramaswamy
Top-posting complaints is the old timers trying to assert their power over the newer generation who takes everything for granted. http://twitter.com/gvanrossum/status/2403974538 ___ BangPypers mailing list BangPypers@python.org

Re: [BangPypers] Issue with CherryPy

2009-04-27 Thread S.Ramaswamy
I am trying to use the CherryPy webserver to serve a simple application on the localhost. When I start the sever from command line using: python my_app.py I am getting the following error in the browser: Traceback (most recent call last): File

Re: [BangPypers] py2exe

2008-09-20 Thread S.Ramaswamy
we can install py2exe only in windows, it's not available for Linux . meaning we can't install py2exe in Linux any other alternatives? PyInstaller ( http://pyinstaller.python-hosting.com/ ) seems to be one option. Not sure if it works with ver 2.5 and up. Ramaswamy

Re: [BangPypers] Redirection of standard output to a variable

2008-05-12 Thread S.Ramaswamy
I am trying to find a way from which I could redirect standard output to a variable. You can redirect stdout and stderr to a file. Check out the following section from Dive into Python, that has sample code: http://www.diveintopython.org/scripts_and_streams/stdin_stdout_stderr.html Ramaswamy

Re: [BangPypers] How to check file size before downloading it

2008-05-08 Thread S.Ramaswamy
On Thu, May 8, 2008 at 11:15 AM, Gurpreet Sachdeva [EMAIL PROTECTED] wrote: Yeah thats what I found. Any idea what settings need to be done in the webserver (Apache) to report content-length header? Or any other alternative? Thanks for your help, Gurpreet AFAIK, Apache 2 reports

Re: [BangPypers] How to check file size before downloading it

2008-05-07 Thread S.Ramaswamy
On Wed, May 7, 2008 at 4:49 PM, Gurpreet Sachdeva [EMAIL PROTECTED] wrote: Is there a way in urllib to check file size (from the webserver) before downloading it? Or any other python module from this? Just a nit. It might be a good idea to check for the existence of the Content-Length header