<!-- If you're new to Python and you're not sure whether what you're experiencing is a bug, the CPython issue tracker is not the right place to seek help. Consider the following options instead: - reading the Python tutorial: https://docs.python.org/3/tutorial/ - posting in the "Users" category on discuss.python.org: https://discuss.python.org/c/users/7 - emailing the Python-list mailing list: https://mail.python.org/mailman/listinfo/python-list - searching our issue tracker (https://github.com/python/cpython/issues) to see if your problem has already been reported --> # Bug report Python removes negative ranges from dictionaries Example to reproduce: ```Python print({range(16, 1): 0.5, range(32, 16): 0.5}) ``` The expected output: > {range(16, 1): 0.5, range(32, 16): 0.5} The actual output: > {range(16, 1): 0.5} # Your environment <!-- Include as many relevant details as possible about the environment you experienced the bug in --> - CPython versions tested on: 3.10, 3.7.6 - Operating system and architecture: WIN11+linux