[issue33359] curses.has_key failure

2018-04-25 Thread Uzume

New submission from Uzume <uz...@users.sourceforge.net>:

The following change is broken and should be reverted (for the one file anyway):

https://github.com/python/cpython/commit/6e3dbbdf39f3b4eb6f18c0165e446df17218b7dc#diff-c322497c7350a91fc1d78da0bb76b5b5

This does not seem to affect master but I did not check every Python version.

This causes the following broken behavior (as found on Python 2.7):
$ python -m curses.has_key
yields the exception
"TypeError: argument of type 'module' is not iterable"

--
components: Library (Lib)
messages: 315752
nosy: benjamin.peterson, uzume
priority: normal
severity: normal
status: open
title: curses.has_key failure
type: behavior
versions: Python 2.7

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33359>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2012-09-12 Thread Uzume

Uzume added the comment:

Many have chimed in on this topic but I thought I would lend my stance--for 
whatever it is worth.

I also believe most of these do not fit concept of a character codec and some 
sort of transforms would likely be useful, however most are sort of specialized 
(e.g., there should probably be a generalized compression library interface al 
la hashlib):

rot13: a (albeit simplistic) text cipher (str to str; though bytes to bytes 
could be argued since since many crypto functions do that)

zlib, bz2, etc. (lzma/xz should also be here): all bytes to bytes compression 
transforms

hex(adecimal) uu, base64, etc.: these more or less fit the description of a 
character codec as they map between bytes and str, however, I am not sure they 
are really the same thing as these are basically doing a radix transformation 
to character symbols and the mapping it not strictly from bytes to a single 
character and back as a true character codec seems to imply. As evidenced by by 
int() format() and bytes.fromhex(), float.hex(), float.fromhex(), etc., these 
are more generalized conversions for serializing strings of bits into a textual 
representation (possibly for human consumption).

I personally feel any type/class.hex(), etc. method would be better off as a 
format() style formatter if they are to exist in such a space at all (i.e., not 
some more generalized conversion library--which we have but since 3.x could 
probably use to be updated and cleaned up).

--
nosy: +uzume

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7475
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2012-09-12 Thread Uzume

Changes by Uzume uz...@users.sourceforge.net:


--
nosy:  -uzume

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7475
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com