i18n conflicts with pdb debugging
John Arbash Meinel
john at arbash-meinel.com
Tue Oct 30 21:47:06 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've been working with bzr-gtk recently, and I came across an unexpected problem.
Specifically, bzr-gtk makes use of the underscore operator "_()" to allow
translations of strings. Which is what I would expect us to move towards in Bazaar.
However, it seems that when you are using "PDB" it sets the "_" value to the
value of the previous command. So doing something like:
(pdb) var
Value of variable
(pdb) _
Value of variable
Anyway, it means that after dropping into PDB, if you use "var" to inspect a
variable (rather than 'p var') it starts to break the rest of bzr-gtk.
(Whenever it goes to translate a string, it instead is trying to call some
random object.)
Because of this behavior, and our desire to use PDB, maybe we should consider
following a different convention for translating strings.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHJ6ZaJdeBCYSNAAMRAl/OAJ9V12A1vEa+Q8DNOpStka10SoYpAgCfdo95
CcjFR/kBd1BDBXOuge3WaFU=
=1OAC
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list