Pass by reference?

Dale Strickland-Clark dale at
Wed May 24 22:07:17 CEST 2000

How do I pass a value by reference so the called routine can update it?

Here's an extract from a routine that uses ADO on NT to access a database.
ADO will return the number of records deleted in the second parameter but
it's not working like this.

    DBCon.Execute("delete from parts where path='%s' and drive='%s'" %
(drive, path), delcnt)


Dale Strickland-Clark
Out-Think Ltd, UK
Business Technology Consultants

More information about the Python-list mailing list