The only implementation I could find is mangled with Zope. Anyone has
any resources handy on the subject?
Thank you in advanced,
Sia
--
http://mail.python.org/mailman/listinfo/python-list
> I hope you don't use Python to access the database, get a tuple back,
> convert it to a string and then try to break up that string into a list!?
Sadly, that is the case. Well, kinda. I'm using psycopg2 to access
postgresql, which is great. Though postgres has more features than
psycopg2 support
Thanks Mr. Edwards, I went ahead and started using the csv reader.
Sia
--
http://mail.python.org/mailman/listinfo/python-list
I've come so far, but it needs much work:
re.compile('"*,"*').split(x[1:-1])
Thanks for your help,
Sia
On Nov 29, 3:24 pm, Bjoern Schliessmann wrote:
> Siah wrote:
> > I need to convert the string: '(a, b, "c", d, "e")' into the
>
Hi,
I need to convert the string: '(a, b, "c", d, "e")' into the following
list ['a', 'b', 'c', 'd', 'e']. Much like a csv reader does. I usually
use the split function, but this mini-monster wouldn't properly get
split up due to those random quotations postgresql returns to me.
Please help me wi
Bruno,
I got my lesson today, first get your morning coffee before posting
and of course avoid mutable objects as default arguments. Silly post,
perhaps. Good to hear universe is in place. I should have rtffaq,
though that's not why she left...
Sia
--
http://mail.python.org/mailman/listinfo/pyt
I think that's because:
>>> [] is []
False
>>> () is ()
True
--
Sia
--
http://mail.python.org/mailman/listinfo/python-list
Ready to go insane here. Class A, taking on a default value for a
variable. Instantiating two separate objects of A() gives me a shared
val list object. Just see the example bellow:
class A(object):
def __init__(self, val=[]):
self.val=val
obj1 = A()
obj2 = A()
print obj1 is obj2
Helpful Hints Ivan. Thanks for the points.
Sia
--
http://mail.python.org/mailman/listinfo/python-list
Sorry, this post had to go on Django Users group. I'll post it there.
You may ignore this post here.
Sia
--
http://mail.python.org/mailman/listinfo/python-list
I just launched my django site for a client. My problem is something
is caching my db data in a bizzar way. Here are some of the behaviours
I get:
- I login, and every other page it makes me login again for a 5 minutes
or so and then it remembers that I am logged in.
- I add a record, it reflect
Problem Solved. The problem was with psycopg.Binary whose mere job is
to convert bytes into clear text for sql statement. I'll be filing a
bug.
Thanks everyone,
Sia
--
http://mail.python.org/mailman/listinfo/python-list
12 matches
Mail list logo