[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2017-05-30 Thread Jan Hnatek
Jan Hnatek added the comment: Attached an updated patch against 3.7 fixing the remaining mentions of string. -- Added file: http://bugs.python.org/file46914/issue9544.2.patch ___ Python tracker

[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2017-05-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: issue9544.patch LGTM as the first step. There are other mentions of strings in the documentation. -- nosy: +serhiy.storchaka stage: -> needs patch versions: +Python 3.5, Python 3.6, Python 3.7 -Python 3.2, Python 3.3

[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2017-05-29 Thread Jan Hnatek
Changes by Jan Hnatek : -- nosy: +hnhn ___ Python tracker ___ ___ Python-bugs-list

[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2012-06-06 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Attached a patch against 3.2. It reflects the facts that pack_fstring and pack_fopaque are the same methd, and pack_string, pack_opaque and pack_bytes are the same method. -- versions: +Python 3.2, Python 3.3 -Python 3.1

[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2012-06-06 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: Added file: http://bugs.python.org/file25849/issue9544.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9544 ___

[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2012-06-01 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9544 ___ ___ Python-bugs-list

[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2011-04-14 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: Actually documentation doesn't say that it supports only bytes, but: The following methods support packing strings, bytes, and opaque data: Also under python2 you can easily do this: In [1]: import xdrlib In [2]: p = xdrlib.Packer()

[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2011-04-14 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2011/4/14 Filip Gruszczyński rep...@bugs.python.org: Filip Gruszczyński grusz...@gmail.com added the comment: Actually documentation doesn't say that it supports only bytes, but: The following methods support packing strings, bytes,

[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2011-04-14 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: I am well aware of this, Benjamin. I am not trying to force any solution, but rather trying to point out, that current documentation is misleading. There might be no need for patching the code, but rather updating the docs to say, that

[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2011-04-14 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2011/4/14 Filip Gruszczyński rep...@bugs.python.org: Filip Gruszczyński grusz...@gmail.com added the comment: I am well aware of this, Benjamin. I am not trying to force any solution, but rather trying to point out, that current

[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2011-04-14 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: I'll provide docs patch. -- assignee: - docs@python components: +Documentation -None nosy: +docs@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9544

[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2011-04-13 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: This doesn't really make sense, since XDR doesn't seem to say anything about unicode strings, just bytes. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org

[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2011-03-28 Thread Filip Gruszczyński
Changes by Filip Gruszczyński grusz...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9544 ___ ___

[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2011-03-27 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: Here is a simple patch with a test. Depending o bytes in this library seems strange, maybe it should be changed somehow? Anyway, this simple patch should be a quick fix to the problem. -- keywords: +patch nosy: +gruszczy Added

[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2010-08-09 Thread Paul Arnold
Paul Arnold p...@barfoo.net added the comment: It will apply to 3.2 also, checking in SVN there have been no changes to xdrlib.py for a couple of years. The documentation makes no mention of the need to encode strings. -- ___ Python tracker

[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2010-08-08 Thread Paul Arnold
New submission from Paul Arnold p...@barfoo.net: In Python 3.1, xdrlib.Packer().pack_fstring() throws a TypeError if called with a str() (an encoded string bytes() works just fine). xdrlib.Packer().pack_fstring(6, foobar) Traceback (most recent call last): File stdin, line 1, in module

[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2010-08-08 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the report. Can you tell if it applies to 3.2? Also, is the doc unclear on this point? -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9544

[issue9544] xdrlib.Packer().pack_fstring throws a TypeError when called with a str()

2010-08-08 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Editing type. (FYI, you can follow the link to see some descriptions.) -- type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9544