Re: RSS feed creation?

2011-11-06 Thread Stefan Behnel
Dan Stromberg, 06.11.2011 21:00: Is there an opensource Python tool for creating RSS feeds, that doesn't require large dependencies? I found feedformatter.py on pypi, but it seems a little old, and its sole automated test gives a traceback. Is there a better starting point? (I'd of course pref

Re: How to undo a Python setuptools --prefix path blunder

2011-11-06 Thread Matej Cepl
Dne 6.11.2011 14:18, Kev napsal(a): Again the wrong path is being used to create the symbolic link to where virtualenv is installed: http://packages.python.org/distribute/easy_install.html#administrator-installation for list of additional configuration files which might go wrong (namely *.pth

Re: Question about 'iterable cursors'

2011-11-06 Thread John Nagle
On 11/6/2011 12:04 PM, Dennis Lee Bieber wrote: On Sun, 6 Nov 2011 11:39:56 +0200, "Frank Millman" declaimed the following in gmane.comp.python.general: So my analysis of the problem is correct, but my solution is wrong. Instead of executing fetchall() and returning the connection, I should r

[ANN] Oktest.py 0.10.0 released - a new-style testing library

2011-11-06 Thread Makoto Kuwata
Hi, I released Oktest.py 0.10.0. http://packages.python.org/Oktest/ http://www.kuwata-lab.com/oktest/ Oktest.py is a new-style testing library for Python. :: from oktest import ok, NG ok (x) > 0 # same as assertTrue(x > 0) ok (s) == 'foo'# same as assertEq

Re: Python lesson please

2011-11-06 Thread Steven D'Aprano
On Sun, 06 Nov 2011 13:14:43 -0500, gene heskett wrote: > I just dl'd the duqu driver finder script from a link to NSS on /., and > fixed enough of the tabs in it to make it run error-free. At least > python isn't having a litter of cows over the indentation now. Presumably the script should

question about Tkinter delete

2011-11-06 Thread Kristen Aw
Hi all I don't understand why I get this error. I'm trying to delete the existing points, then redraw them after this bit of code to 'animate' my simulation. def update(self, point1, point2):         # Deletes existing points         if self.point1:             self.w.delete(point1)            

Re: Python lesson please

2011-11-06 Thread David Riley
On Nov 6, 2011, at 3:34 PM, Cameron Simpson wrote: > Perhaps more relevantly: > > If you have unmangled a lot of tabs, remember that control flow is > indentation based in python, and you may have broken some logic. > (For this reason a number of us set our editors to work only in spaces). I wou

Re: Python lesson please

2011-11-06 Thread Dave Angel
On 11/06/2011 06:10 PM, gene heskett wrote: On Sunday, November 06, 2011 06:07:36 PM Dave Angel did opine: On 11/06/2011 01:14 PM, gene heskett wrote: Greetings experts: I just dl'd the duqu driver finder script from a link to NSS on /., and fixed enough of the tabs in it to make it run error

Re: Usefulness of the "not in" operator

2011-11-06 Thread DevPlayer
On Oct 16, 12:05 am, Steven D'Aprano wrote: > On Sat, 15 Oct 2011 15:04:24 -0700, DevPlayer wrote: > > I thought "x not in y" was later added as syntax sugar for "not x in y" > > meaning they used the same set of tokens. (Too lazy to check the actual > > tokens) Stated in response to OP wanting a

Re: Python lesson please

2011-11-06 Thread gene heskett
On Sunday, November 06, 2011 06:07:36 PM Dave Angel did opine: > On 11/06/2011 01:14 PM, gene heskett wrote: > > Greetings experts: > > > > I just dl'd the duqu driver finder script from a link to NSS on /., > > and fixed enough of the tabs in it to make it run error-free. At > > least python is

Re: Python lesson please

2011-11-06 Thread Cameron Simpson
On 06Nov2011 13:14, gene heskett wrote: | Greetings experts: | | I just dl'd the duqu driver finder script from a link to NSS on /., and | fixed enough of the tabs in it to make it run error-free. At least python | isn't having a litter of cows over the indentation now. | | But it also runs i

Re: A Python script to put CTAN into git (from DVDs)

2011-11-06 Thread Jakub Narebski
The following message is a courtesy copy of an article that has been posted to comp.lang.python,comp.text.tex as well. Jonathan Fine writes: > On 06/11/11 16:42, Jakub Narebski wrote: >> Jonathan Fine writes: >> >>> This it to let you know that I'm writing (in Python) a script that >>> places th

Re: Python lesson please

2011-11-06 Thread Dave Angel
On 11/06/2011 01:14 PM, gene heskett wrote: Greetings experts: I just dl'd the duqu driver finder script from a link to NSS on /., and fixed enough of the tabs in it to make it run error-free. At least python isn't having a litter of cows over the indentation now. But it also runs instantly on

RSS feed creation?

2011-11-06 Thread Dan Stromberg
Is there an opensource Python tool for creating RSS feeds, that doesn't require large dependencies? I found feedformatter.py on pypi, but it seems a little old, and its sole automated test gives a traceback. Is there a better starting point? (I'd of course prefer something that'll run on 3.x and

Re: A Python script to put CTAN into git (from DVDs)

2011-11-06 Thread Jonathan Fine
On 06/11/11 16:42, Jakub Narebski wrote: Jonathan Fine writes: Hi This it to let you know that I'm writing (in Python) a script that places the content of CTAN into a git repository. https://bitbucket.org/jfine/python-ctantools I hope that you meant "repositories" (plural) here, one p

Python lesson please

2011-11-06 Thread gene heskett
Greetings experts: I just dl'd the duqu driver finder script from a link to NSS on /., and fixed enough of the tabs in it to make it run error-free. At least python isn't having a litter of cows over the indentation now. But it also runs instantly on linux. This line looks suspect to me: roo

Re: A Python script to put CTAN into git (from DVDs)

2011-11-06 Thread Jakub Narebski
Jonathan Fine writes: > Hi > > This it to let you know that I'm writing (in Python) a script that > places the content of CTAN into a git repository. > https://bitbucket.org/jfine/python-ctantools I hope that you meant "repositories" (plural) here, one per tool, rather than putting all of

A Python script to put CTAN into git (from DVDs)

2011-11-06 Thread Jonathan Fine
Hi This it to let you know that I'm writing (in Python) a script that places the content of CTAN into a git repository. https://bitbucket.org/jfine/python-ctantools I'm working from the TeX Collection DVDs that are published each year by the TeX user groups, which contain a snapshot of CT

How to undo a Python setuptools --prefix path blunder

2011-11-06 Thread Kev
When I installed Python's setuptools I absent mindedly tacked on a -- prefix path I had been using on another machine: sh setuptools-0.6c11-py2.7.egg --prefix=/opt/python2.7.2 Now after this blunder when I try to install pip I get the following error: [root@kkdev src]# easy_install pip Searching

Question about 'iterable cursors'

2011-11-06 Thread Frank Millman
Hi all I am using a few DB_API adaptors - ceODBC for Sql Server, psycopg2 for PostgreSQL, and sqlite3 for sqlite3. They all offer the feature that if a cursor executes a SELECT, the cursor returns an iterator which can be used to fetch one row at a time. I have been using this feature for a

SQLAlchemy DB Migration

2011-11-06 Thread Merwin
Hi everybody, I'm looking for a way to migrate SQLAlchemy based database easily. I found Migrate, but finally it's almost the same as doing the migration by hand. If this doesn't exists, do you think that it would be hard to do a simple migration tool which would : - Add/Delete columns

Re: Question about 'iterable cursors'

2011-11-06 Thread Frank Millman
"Alain Ketterlin" wrote "Frank Millman" writes: I am using a few DB_API adaptors - ceODBC for Sql Server, psycopg2 for PostgreSQL, and sqlite3 for sqlite3. They all offer the feature that if a cursor executes a SELECT, the cursor returns an iterator which can be used to fetch one row at a t

Re: Question about 'iterable cursors'

2011-11-06 Thread Alain Ketterlin
"Frank Millman" writes: > I am using a few DB_API adaptors - ceODBC for Sql Server, psycopg2 for > PostgreSQL, and sqlite3 for sqlite3. > > They all offer the feature that if a cursor executes a SELECT, the > cursor returns an iterator which can be used to fetch one row at a > time. I have been u