Python Modernization
See original GitHub issueWhat was wrong?
A lot of code cruft exists to support versions of Python before 3.5. It complicates the implementation, and requires more time to test.
How can it be fixed?
In v4, as part of dropping support for Python 2 and Python <=3.4, we can remove this cruft. Also, let’s drop test environments for python 2.7 and 3.4, and add one for 3.6.
- Remove Python 2.7 and 3.4 tests #349
- Add Python 3.6 test environment
- Remove all
sys.version_info
checks, presuming Python 3.5+ - Remove all
bytes == str
checks, presuming Python 3.5+ - Remove the
web3.utils.compat
module, and replace all usages with native calls #251 - Bonus: Convert logic, where appropriate, to use native methods in 3.5+ (like
b'\xbe\xef'.hex()
, etc.)
Issue Analytics
- State:
- Created 6 years ago
- Comments:47 (23 by maintainers)
Top Results From Across the Web
Python-Modernize — modernize 0.6.1 documentation
The python-modernize command works like 2to3. Here's how you'd rewrite a single file: python-modernize -w example.py. See the LICENSE file for the license ......
Read more >modernize · PyPI
The python -m modernize command works like python -m fissix, see fissix. Here's how you'd rewrite a single file: python -m modernize -w...
Read more >GitHub - mitsuhiko/python-modernize
Modernizes Python code for eventual Python 3 migration. Build on top of 2to3 - GitHub - mitsuhiko/python-modernize: Modernizes Python code for eventual ...
Read more >python-modernize - Read the Docs
Description. Modernizes Python code for eventual Python 3 migration. Build on top of 2to3. Repository. https://github.com/python-modernize/python-modernize ...
Read more >[Data Sheet] Python Modernization: 2 to 3 - ActiveState
Python 2 is now unsupported. This paper discusses your options for moving your existing packages and applications from Python 2 to 3, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
btw, the OG bounty was for 0.95, but i tip’d you all a % of 1 ETH because you’ve been good sports. also i’m lazy and didnt want to do the
* 0.95
math 😂have not heard anything from anyone. payout imminent (est in ahour or two)