[issue18997] Crash when using pickle and ElementTree

2013-09-10 Thread Germán M . Bravo
New submission from Germán M. Bravo: On the tip of 3.3, I've found `Element.__getstate__` doesn't work and neither as `pickle.dumps(Element)` under certain circumstances. This crashes: e1 = ElementTree().parse('houses.xml') e1.__getstate__() This doesn't crash:

[issue18998] iter() not working in ElementTree

2013-09-10 Thread Germán M . Bravo
New submission from Germán M. Bravo: The added iter/itertext methods in Element are not working under certain circumstances (crashes): This crashes: e = ElementTree().parse('/Users/kronuz/Desktop/tests/houses.xml') e.iter() But the problem is not there if I use bootstrapped

[issue18997] Crash when using pickle and ElementTree

2013-09-10 Thread Germán M . Bravo
Germán M. Bravo added the comment: The attached patch fixes the problem (there were some missing JOIN_OBJ()) -- keywords: +patch Added file: http://bugs.python.org/file31723/join_obj.diff ___ Python tracker <http://bugs.python.org/issue18

[issue18998] iter() not working in ElementTree

2013-09-10 Thread Germán M . Bravo
Germán M. Bravo added the comment: It crashes when I run that code snippet I posted (using the attached xml file) The problem was introduced by the commit that added iterator support. -- ___ Python tracker <http://bugs.python.org/issue18

[issue18997] Crash when using pickle and ElementTree

2013-09-10 Thread Germán M . Bravo
Changes by Germán M. Bravo : Removed file: http://bugs.python.org/file31723/join_obj.diff ___ Python tracker <http://bugs.python.org/issue18997> ___ ___ Python-bugs-list m

[issue18997] Crash when using pickle and ElementTree

2013-09-10 Thread Germán M . Bravo
Changes by Germán M. Bravo : Added file: http://bugs.python.org/file31725/join_obj.diff ___ Python tracker <http://bugs.python.org/issue18997> ___ ___ Python-bugs-list m

[issue17155] Logging throwing UnicodeEncodeError exception

2013-02-07 Thread Germán M . Bravo
New submission from Germán M. Bravo: I've seen *a lot* of people using `logging.exception(exc)` to log exceptions. It all seems okay, until the exc object contains unicode strings, at which point logging throes a UnicodeEncodeError exception. Example: `exc = Exception(u'op