Re: error on building 2.6.1. (_ctypes)

2009-02-01 Thread Bernard Rankin
> > >> > I am trying to build python 2.6 on a machine (web server) that I do not > have > >> root access to. (has 2.4 installed) > >> > > >> > Python 2.5 builds fine, but I am getting an error when I run "make" for > 2.6.1. > > >> Mmm... my 2.6.1 source show different line numbers, maybe you

Re: error on building 2.6.1. (_ctypes)

2009-01-30 Thread Bernard Rankin
> > > I am trying to build python 2.6 on a machine (web server) that I do not > > have > root access to. (has 2.4 installed) > > > > Python 2.5 builds fine, but I am getting an error when I run "make" for > > 2.6.1. > > > > > > /home/username/local-src/

error on building 2.6.1. (_ctypes)

2009-01-29 Thread Bernard Rankin
Hello, I am trying to build python 2.6 on a machine (web server) that I do not have root access to. (has 2.4 installed) Python 2.5 builds fine, but I am getting an error when I run "make" for 2.6.1. Here is the command line I am using: ../configure -prefix=/home/username/local-python/ --enable

Re: Python Package Managment

2009-01-28 Thread Bernard Rankin
> > [extracted from pylons-discuss] > > > > > >> >> I hate to pass the buck, but this is Python's fault for not having > >> >> reliable package management built in. There's nothing Pylons can do > >> >> about it except switch to another programming language. > >> > [SNIP] > >> > >> Without Setu

small python-cgi wiki?

2009-01-28 Thread Bernard Rankin
Hello, 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. Any ideas? Thanks, :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Best/better way? (histogram)

2009-01-28 Thread Bernard Rankin
> > The simplest. That would be #3, cleaned up a bit: > > from collections import defaultdict > from csv import DictReader > from pprint import pprint > from operator import itemgetter > > def rows(filename): > infile = open(filename, "rb") > for row in DictReader(infile): > yi

Best/better way? (histogram)

2009-01-27 Thread Bernard Rankin
Hello, I've got several versions of code to here to generate a histogram-esque structure from rows in a CSV file. The basic approach is to use a Dict as a bucket collection to count instances of data items. Other than the try/except(KeyError) idiom for dealing with new bucket names, which I d

Python Package Managment

2009-01-27 Thread Bernard Rankin
[extracted from pylons-discuss] > >> I hate to pass the buck, but this is Python's fault for not having > >> reliable package management built in. There's nothing Pylons can do > >> about it except switch to another programming language. > > [SNIP] > > Without Setuptools, > Pylons and TurboGear

Library for extracting new content from email reply messages?

2009-01-15 Thread Bernard Rankin
Hello, I'm looking to build a simple mostly email-based trouble ticket system. (I've yet to find a ready-made python solution that is both simple and well designed) Is there a Python email parsing library that can assist in extracting new content from messages that have been sent in reply