Hola everyone,
I'm working on creating a webpage in which a user can submit data into
fields to be held in a database (there are other details, but this is
the gist of the idea), and I need to use python. I am unfamiliar with
manipulating data and web apps as a whole (and new to python), so I h
Hi friends,
I am learning Python and relating to my knowledge of Java... What is (Is
there?) the equivalent of Java interfaces in Python? How could I write
my own?
Emily
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/t
Hi Matti!
Chances are you may have already seen this, but here are a list of the
different Python errors you can catch:
http://www.python.org/doc/1.5.2p2/api/standardExceptions.html
> Just started learning Python, and I was wondering if there is a way to
> catch an error or errors (like EOFError
I feel like there should be a better way to do this process:
Can you please help?
(This is trivial example code I created off the top of my head, but the
same concept that I am trying to do elsewhere.)
class Person(object):
def __init__(self, first_name, age, fav_color):
s
If I understand what you're asking (forgive me if I misunderstood), you
need to create a file in the mymodules directory and call it __init__.py
(even if you don't put anything in this file). This tells Python that
it is a package containing modules. Then, in your program myprogram.py,
you ca
> That is close but not quite right. The correct import will be
> from mymodules import mymodule1
>
> Kent
My apologies for misleading instructions.
Emily
>
>>
>>
>> Laszlo Antal wrote:
>>> Hi,
>>>
>>> This is how my directory looks
>>> myprogram(this is the main folder for my program)
>>>
Hello all,
I am experiementing in storing Python objects in a SQLite databse using
SQLOjbect. I want to store dicts and tuples in the databse, but as far
as I can tell the only way to do this is to create a PickleCol. Is
there some other better way to store this data? EnumCol? Would a
diffe
> The question is one of balance: are you more concerned with
> easily getting your dicts and tuples back intact, or with executing
> queries on the *contents* of those dicts and tuples?
Ideally, I'd like to be able to search the data in these dicts. Is
there a way to do this? If not, PickleCo
Hello all,
I am writing a function in which (in its simplified form) I am trying to
return a list of a specified attribute, given a list of objects. It is
best if I write some hypothetical code to explain:
class foo:
def __init__(self, name, data):
self.name = name