Package: python-vobject Version: 0.8.1c-3 Severity: wishlist python-vobject makes vCard/iCalendar properties available as object attributes. It knows that while e.g. X-SIP might hold a contact's SIP address and X-SIP is valid IANA syntax, the Python attributes must be named x_sip, because the dash is not a valid character for a Python identifier. It does this by mapping '_' to '-' in __getattr__/__setattr__, so the attribute name inside the instance (__dict__) actually contains a '-'.
There are tools in the Python universe that (rightfully) access e.g. __dict__ directly (e.g. ipython's tab completion, among others). Those tools see the '-', which is not proper Python syntax. I would think it were better if vobjects stored properties/attributes using Pythonic names and converted them from and to IANA rules on input and output respectively. -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.37-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_NZ, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages ipython depends on: ii python 2.6.6-3+squeeze5 interactive high-level object-orie ii python-pexpect 2.3-1 Python module for automating inter ii python2.6 2.6.6-8+b1 An interactive high-level object-o Versions of packages ipython recommends: pn global <none> (no description available) pn python-foolscap <none> (no description available) pn python-openssl <none> (no description available) pn python-twisted-core <none> (no description available) ii python-wxgtk2.8 2.8.10.1-3+b1 wxWidgets Cross-platform C++ GUI t pn python-zope.interface <none> (no description available) Versions of packages ipython suggests: ii libjs-jquery 1.5.1-1 JavaScript library for dynamic web ii python-gobject 2.21.4+is.2.21.3-1 Python bindings for the GObject li ii python-gtk2 2.17.0-4 Python bindings for the GTK+ widge pn python-matplotlib <none> (no description available) ii python-numpy 1:1.4.1-5 Numerical Python adds a fast array pn python-profiler <none> (no description available) pn python-qt3 | python-q <none> (no description available) -- debconf-show failed -- .''`. martin f. krafft <madduck@d.o> Related projects: : :' : proud Debian developer http://debiansystem.info `. `'` http://people.debian.org/~madduck http://vcs-pkg.org `- Debian - when you have better things to do than fixing systems
digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)