Book recommendations

2006-12-06 Thread west
Can someone recommend a Python book for a newbie and perhaps you have a used one for sale? Thank you. Cordially, west -- http://mail.python.org/mailman/listinfo/python-list

Re: Create a new class on the fly

2007-06-04 Thread Josh West
Alex Martelli wrote: > > Thanks for snipping all the actual helpful stuff I posted, it makes SO > much easier for me to be snide! > > You can find a few examples of me demonstrating the subject of your > interest by searching for my name e.g. on video.google.com; searching > for my name on Amazon w

Proxying every function in a module

2007-05-25 Thread Josh West
Hello I've got a web application with the following structure: 1) module of 100 functions corresponding to user actions (e.g. "update_profile()", "organisations_list()") 2) a wsgi callable which maps urls to functions eg /organisations/list/?sort=date_created is mapped to organisations_list("date

Proxying every function in a module

2007-05-25 Thread Josh West
Kind and wise fellows, I've got a web application with the following structure: 1) module of 100 functions corresponding to user actions (e.g. "update_profile()", "organisations_list()") 2) a wsgi callable which maps urls to functions eg /organisations/list/?sort=date_created is mapped to orga

Re: Proxying every function in a module

2007-05-25 Thread Josh West
> > First off, don't attempt to start a new thread by replying to a previous > one. Many newsreaders will merge the two, confusing the hell out of > everyone and generally not helping. > Ahh, yes. I see what you mean. Explains why it didn't appear the first time I posted (until later..). So

Finding decorators in a file

2007-10-26 Thread Andrew West
Probably a bit of weird question. I realise decorators shouldn't be executed until the function they are defined with are called, but is there anyway for me to find all the decorates declared in a file when I import it? Or perhaps anyway to find the decorators by loading the file by other methods

SMTPLIB & email.MIMEText : Certain charaters in the body stop mail from arriving. Why?

2007-11-29 Thread West, Harvey
Hello Sending mail with certain characters in the body causes mail never to arrive. Why? e.g if body text has a fullstop "." mail never arrives. I'm using python 4.2 on windows. Harvey # import smtplib

Python trig precision problem

2006-05-18 Thread Cary West
Hello all, having a small problem with a trig routine using python math module. This code is designed to convert geodetic coordinates to lambert conformal conic coordinates. It implements the formulas found at http://mathworld.wolfram.com/LambertConformalConicProjection.html . The problem is t

Recommendation for Web Framework

2008-04-13 Thread James West
Let me explain my situation a bit. I've been contracted to develop an ecommerce site. It's nothing too huge but requires a lot of custom development that's not typical for your run of the mill webstore. I've got about three weeks to get the project delivered and I've written quite a bit of code

CTYPES structure passing

2010-06-03 Thread Peter West
Hi I'm hoping someone here can tell me what I'm doing wrong as I've spent the best part of three days reading docs and trying code. I want to port a windows DLL that controls a USB camera to Python using C types. I've happily converted a lot of the functions but am stuck with one vital function

Python 3.5 Cross Compile for ARM

2016-05-23 Thread billy . t . west
Hi. Can anyone point me to documentation/instructions for cross compiling Python 3.5? I'm trying to compile Python for an ARM processor. It seems like something broke with cross compilation in 3.5 and a patch was created (https://bugs.python.org/issue22359), but I don't even know where to beg

Re: Division issue with 3.8.2 on AIX 7.1

2020-06-03 Thread Sherry L. West
tigate > > > this? > > > > Probably around > > https://github.com/python/cpython/blob/master/Objects/floatobject.c > > Thanks to both of you. I applied some updated OS patches and the > problem went away. > > -- > albert chin (ch...@thewrittenword.com) > -- > https://mail.python.org/mailman/listinfo/python-list > -- Mrs. Sherry West Owens Cross Roads Elementary -- https://mail.python.org/mailman/listinfo/python-list

ooopy: newbie cannot get basic functionality to work

2006-12-09 Thread Andrew Sackville-West
Hi list, I am new to python and old to coding (as in I did it a long time ago). I've got a task that cries out for a scripted solution -- importing chunks of ASCII data dumps from a point-of-sale system into an openoffice.org spreadsheet. What a great chance for me to get my coding skills back an

Re: ooopy: newbie cannot get basic functionality to work

2006-12-09 Thread Andrew Sackville-West
On Sat, Dec 09, 2006 at 09:42:40PM -0600, Paul Watson wrote: > Andrew Sackville-West wrote: > > Hi list, > > > > I am new to python and old to coding (as in I did it a long time > > ago). I've got a task that cries out for a scripted solution -- > > impor

Re: ooopy: newbie cannot get basic functionality to work

2006-12-09 Thread Andrew Sackville-West
On Sat, Dec 09, 2006 at 09:30:32PM -0800, John Machin wrote: > > Andrew Sackville-West wrote: > > > > >>> o = OOoPy (infile='/home/andrew/monthly.ods') > > Traceback (most recent call last): > > File "", line 1, in ? > > TypeErro

Re: speed of python vs matlab.

2006-12-13 Thread Andrew Sackville-West
On Wed, Dec 13, 2006 at 04:07:20PM -0800, Chao wrote: > I've been trying to develop some numerical codes with python, however > got disappointed. > > A very simple test, > > a = 1.0 > > for i in range(1000): > for j in range(1000): >a = a+1 > > unfortunately, it took 4.5 second

Re: automatically grading small programming assignments

2006-12-15 Thread Andrew Sackville-West
On Fri, Dec 15, 2006 at 06:44:37AM +, Dennis Lee Bieber wrote: > On Thu, 14 Dec 2006 12:27:07 -0500, Brian Blais <[EMAIL PROTECTED]> > declaimed the following in gmane.comp.python.general: > > > > I envision a number of possible solutions. In one solution, I provide a > > function > > temp

MySQLdb, lots of columns and newb-ness

2006-12-19 Thread Andrew Sackville-West
Hi list, I've tried, lots of interpreter testing and google grepping to figure this out and I think I'm missing something fundamental. I have an ascii data dump from a POS system that has 131 fields in a single column in a flat file. I can easily open the file, read in the data and assemble it i

Re: MySQLdb, lots of columns and newb-ness

2006-12-19 Thread Andrew Sackville-West
On Tue, Dec 19, 2006 at 07:34:58PM -0800, Todd Neal wrote: > Andrew Sackville-West wrote: > > > > I can successfully connect to mysql and do stuff to my tables my > > specific problem is how to efficiently put those 132 fields into the > > thing. All I have been able t

Re: MySQLdb, lots of columns and newb-ness

2006-12-20 Thread Andrew Sackville-West
On Wed, Dec 20, 2006 at 07:00:38AM -0800, Ant wrote: > > > On Dec 20, 5:20 am, Andrew Sackville-West <[EMAIL PROTECTED]> > wrote: > > > >>> values = ", ".join([escapeAndQuote(f[:-2]) for f in fields]) > > Obviously this is the appropriate c

Re: MySQLdb, lots of columns and newb-ness

2006-12-20 Thread Andrew Sackville-West
On Wed, Dec 20, 2006 at 09:22:59AM +0100, Fredrik Lundh wrote: > Andrew Sackville-West wrote: > > > I've also tried building tuples and lists and then using this > > > > cursor.execute("insert into daily values (%s)", values) > > > > with no l