Yeah, I like turbogears as well. I was using cherrypy before turbogears
borrowed it, and have a hard time remembering that turbogears has more than
just cherrypy (pretty much just use cherrypy still, even though it's called
tg). It's a bit weird with TG2 now moving to pylons - which is not
cherry
I'm currently working on a research project where we'll be developing
a moderately complex piece of software. We're designing with
extensibility in mind. One of the problems I can see right now is that
our program can potentially create a large number of very different
errors, some fatal, some not.
On Thu, Jun 5, 2008 at 1:56 PM, James <[EMAIL PROTECTED]> wrote:
> I want to write a program that will update the 'last updated' field on
> *every* item. This will require some sort of 'post' to the web server
> and interaction with the existing web tools and its back-end. I can
> probably whip up
"Blaise Morose" <[EMAIL PROTECTED]> wrote
I have this silly piece of code that I am experimenting with:
I'm not certain but... based on this quote from the Python docs:
--
Warning: Due to the precarious circumstances under which __del__()
methods are invoked, exceptions that occur during
There is no remaining referent to your class at the point when the
last instance has started to be deleted. This allows the class itself
to be garbage collected. Changing the code to the following will
prevent this.
#!/usr/bin/python
class Person:
population = 0
def __init__(self
> class Person:
> population = 0
>
> def __init__(self, name):
> self.name = name
> print '%s has been added' %self.name
> Person.population += 1
>
> def __del__(self):
> print '%s is leaving' % self.name
>
"James" <[EMAIL PROTECTED]> wrote
I want to write a program that will update the 'last updated' field
on
*every* item. This will require some sort of 'post' to the web
server
Have you considered doing it in JavaScript on the client.
You could esily do this in the onSubmit handler function.
T
Hi,
I have this silly piece of code that I am experimenting with:
#!/usr/bin/python
class Person:
population = 0
def __init__(self, name):
self.name = name
print '%s has been added' %self.name
Person.population += 1
def _
--
>
> Message: 4
> Date: Wed, 4 Jun 2008 10:00:46 -0400
> From: James <[EMAIL PROTECTED]>
> Subject: [Tutor] Grabbing data from changing website
> To: tutor@python.org
> Message-ID:
><[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1
>
>
> >>urll
All,
I'm helping a buddy write a program and could use a few pointers. :) I
know this is a bit 'off-topic,' but hopefully someone can shed some
light on how to go about doing this.
First some background information: there's a web tool which keeps
track of a 'to do' list. The to-do list has a data
On Thursday 05 June 2008 00:18:55 Marilyn Davis wrote:
>
> You listed __init__ and I'm not sure I know what you mean.
>
Well, __init__ can assign attributes to the instance that are callable.
Andreas
signature.asc
Description: This is a digitally signed message part.
___
"OkaMthembo" <[EMAIL PROTECTED]> wrote
Could someone please explain whether or not using
Stackless Python with CPython affects compatibility across
code versions? e.g. if one wanted Stackless for web development,
would Cheetah, Django, Zope, Plone et al play
nicely with it?
I've never tried
But i only play with Lisp these days so am well out of date.
The best Lisp tutorial IMHO is the How To Design Programs
web site/book (htdp.org?)
Yes, HTDP is one of the very good ones. I'd strongly recommend it. As a
full disclosure thing: I'm involved with the folks doing HTDP: I'm not a
n
On Thu, Jun 5, 2008 at 8:06 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
import os
from BeautifulSoup import BeautifulSoup
file = '/home/david/test/stack.html'
html = open(file, 'r')
soup = BeautifulSoup(html)
table = soup.find('table', {'class': 'order_tbl'})
>>>
Hi guys,
Could someone please explain whether or not using Stackless Python with
CPython affects compatibility across
code versions? e.g. if one wanted Stackless for web development, would
Cheetah, Django, Zope, Plone et al play
nicely with it?
Regards,
--
Lloyd Dube
___
See this is of any help!
http://www.devshed.com/c/a/Python/Bluetooth-Programming-using-Python/
Evans
http://www.javawug.org
On Thu, Jun 5, 2008 at 3:45 PM, Ricardo Dueñas Parada <[EMAIL PROTECTED]>
wrote:
> Hi all,
>
> I want to write an script to send messages from my phone (Nokia E50) to my
>
Hi all,
I want to write an script to send messages from my phone (Nokia E50) to my
computer
via bluetooth, i'm kind of new in bluetooth applications in phones, so, can
you recommend
some document, web page, script, something to start?
Thanks,
_Ricardo
Hello,
I am still fighting with parsing out the html text and this is what I
have so far, but seems I keep hitting my head against a barrier.
>>> import os
>>> from BeautifulSoup import BeautifulSoup
>>> file = '/home/david/test/stack.html'
>>> html = open(file, 'r')
>>> soup = BeautifulSoup(html
On Thursday 05 June 2008 12:31:56 you wrote:
> On Jun 5, 2008, at 6:06 PM, Andreas Kostyrka wrote:
> > well, don't return a string :-P
> >
> > class CallableString(str):
> > def __call__(self, *args, **kw):
> > return self
> >
> > And now instead of return '', write return CallableString('')
On Wednesday 04 June 2008 18:18:04 you wrote:
> > Well, let's start the ball rolling then.
> >
> > __getattribute__
> > __getattr__
> > Metaclasses
> > decorators
> > properties
> > __init__
>
> Okay, I'll bite. I asked here a week or two ago about creating a
> custom dummy object that returns a bl
<[EMAIL PROTECTED]> wrote
Well, my desire to extend emacs has made me want to get more
serious about it.
The emacs community is pretty good for supporting elispers but
I don't know of any tutor style lists. ( So far as I know this list is
fairly
unique! There is something like it for PHP b
Hi all,
I've an off-topic query; hope no one minds.
I've poked into the lisp world a bit before (started SICP, etc., but
never used it in anger), and put it on my `when I've more time' shelf.
Well, my desire to extend emacs has made me want to get more serious
about it.
Does anyone kno
It wasn't me asked the question so I've forwarded the message
to the tutor list.
Please use ReplyAll when responding.
- Forwarded Message
From: Laureano Arcanio <[EMAIL PROTECTED]>
To: Alan Gauld <[EMAIL PROTECTED]>
Sent: Thursday, 5 June, 2008 5:07:49 AM
Subject: Re: [Tutor] turbo gear
23 matches
Mail list logo