[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Bug in python bindings

From: Max Bowsher <maxb1_at_ukf.net>
Date: 2005-12-29 18:21:15 CET

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Collin Winter wrote:
> Before posting a bug report, I thought I'd ask for some confirmation
> of what I perceive to be a flaw in SVN's python bindings:
...
>>>>import svn.client
>>>>svn.client.import()
>
> File "<stdin>", line 1
> svn.client.import
> ^
> SyntaxError: invalid syntax
...
> The reason for this is that "import" is a keyword in python.
...
> Short of renaming the C function in libsvn_client/commit.c, the only
> solution I see is special-casing this function in the SWIG-generated
> bindings, perhaps renaming its python-side version to 'client_import'
> or something.

>>> import svn.client
>>> svn.client.svn_client_import
<built-in function svn_client_import>

Max.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)

iD8DBQFDtBsLfFNSmcDyxYARAragAJ497yYLH4c+HiYXzE8XtKMZ425jWACgyBbS
drxMU1um1+IgwYBdRy4vWDA=
=0xDR
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Dec 29 18:23:44 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.