[issue5675] string module requires bytes type for maketrans, but calling method on regular string does not

2009-05-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: The bytearray.maketrans() method isn't documented yet. -- components: +Documentation -Interpreter Core nosy: +rhettinger status: closed -> open ___ Python tracker __

[issue5675] string module requires bytes type for maketrans, but calling method on regular string does not

2009-05-31 Thread Georg Brandl
Georg Brandl added the comment: Should be fixed in r73086. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue5675] string module requires bytes type for maketrans, but calling method on regular string does not

2009-04-02 Thread MechPaul
New submission from MechPaul : I was making a simple Caesarian cipher when this issue came up. #Following code here >>> import string >>> CAESER_SHIFT = 13 >>> TranslationTableUpper = [string.ascii_uppercase[(index + CAESER_SHIFT) % 26] for index in range(26)] >>> TranslationTableLower = [strin

[issue5675] string module requires bytes type for maketrans, but calling method on regular string does not

2009-04-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue5675] string module requires bytes type for maketrans, but calling method on regular string does not

2009-04-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: This seems to have been intentional. I'm assigning it to Georg since he made the commit. -- assignee: -> georg.brandl nosy: +benjamin.peterson, georg.brandl ___ Python tracker

[issue5675] string module requires bytes type for maketrans, but calling method on regular string does not

2009-04-12 Thread Georg Brandl
Georg Brandl added the comment: This is (kind of) intentional. string.maketrans operates on bytes, not string objects. However, this is quite confusing, so I added bytes.maketrans() now in py3k, and deprecated string.maketrans(). (r71521) -- resolution: -> works for me status: open -