[issue11694] xdrlib raises ConversionError in inconsistent way

2014-10-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9cee201388c9 by Petri Lehtinen in branch '2.7': Issue #11694: Raise ConversionError in xdrlib as documented https://hg.python.org/cpython/rev/9cee201388c9 New changeset 7ef6e5f53418 by Petri Lehtinen in branch '3.4': Issue #11694: Raise

[issue11694] xdrlib raises ConversionError in inconsistent way

2014-10-10 Thread Petri Lehtinen
Petri Lehtinen added the comment: Applied, thanks! -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11694 ___

[issue11694] xdrlib raises ConversionError in inconsistent way

2014-10-09 Thread Claudiu Popa
Claudiu Popa added the comment: Here's a refreshed patch: - raising_conversion_error is now raise_conversion_error - the decorator uses functools.wraps - the ConversionError is instantiated with the first argument of the caught expression - the reraising of ConversionError has the exception

[issue11694] xdrlib raises ConversionError in inconsistent way

2014-10-09 Thread Petri Lehtinen
Petri Lehtinen added the comment: LGTM -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11694 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11694] xdrlib raises ConversionError in inconsistent way

2014-10-04 Thread Claudiu Popa
Changes by Claudiu Popa pcmantic...@gmail.com: -- nosy: +Claudiu.Popa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11694 ___ ___ Python-bugs-list

[issue11694] xdrlib raises ConversionError in inconsistent way

2012-06-05 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: I see one obvious issue with the patch: The ConversionErrors it creates are passed the struct.error or TypeError instance as a parameter. The first argument of these exceptions would be better, i.e. try: ... except struct.error as e:

[issue11694] xdrlib raises ConversionError in inconsistent way

2012-01-15 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: Bump! It's almost 3 months since I posted the patch, so I would like to remind about this bug. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11694

[issue11694] xdrlib raises ConversionError in inconsistent way

2012-01-15 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Looks good to me. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11694 ___

[issue11694] xdrlib raises ConversionError in inconsistent way

2012-01-15 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- stage: test needed - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11694 ___ ___

[issue11694] xdrlib raises ConversionError in inconsistent way

2011-09-17 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: Patch with tests. -- keywords: +patch Added file: http://bugs.python.org/file23178/11694.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11694

[issue11694] xdrlib raises ConversionError in inconsistent way

2011-07-24 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- stage: - test needed versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11694 ___

[issue11694] xdrlib raises ConversionError in inconsistent way

2011-06-21 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: This seems like a bug worth fixing. The ConversionError exception has been documented, an there's an example in the docs that suggest that at least all packing fails with a ConversionError. -- nosy: +petri.lehtinen

[issue11694] xdrlib raises ConversionError in inconsistent way

2011-03-27 Thread Filip Gruszczyński
New submission from Filip Gruszczyński grusz...@gmail.com: xdrlib defines ConversionError, but very seldom uses it. For example: def pack_float(self, x): try: self.__buf.write(struct.pack('f', x)) except struct.error as msg: raise ConversionError(msg) But it