Hi, I can't figure out how can I change the variable type in function.
In C I could do that easily by changing pointer.
Code:
def add(b):
b = {}
print type(b)
a = []
print type(a)
add(a)
print type(a)
Output:
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 31, 11:29 am, Michael Ricordeau
wrote:
> Hi
>
> You cannot add 'NOW() - '29 days'::INTERVAL' as a query because
> cursor.execute() will try to mogrify it.
>
> You can do :
> import datetime
> idays = psycopg2.extensions.adapt(datetime.timedelta(days=29))
> self.dyndb.orderdb.query('u
On Mar 31, 3:10 am, "D'Arcy J.M. Cain" wrote:
> On Tue, 30 Mar 2010 15:46:12 -0700 (PDT)
>
> ASh wrote:
> > > > new_start_date = "NOW() - '29 days'::INTERVAL"
> > > > self.dyndb.orderdb.query('''update set creation_date
> > > > = %s
> > > > where id_order