question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Python Modernization

See original GitHub issue

What 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:closed
  • Created 6 years ago
  • Comments:47 (23 by maintainers)

github_iconTop GitHub Comments

5reactions
owockicommented, Dec 1, 2017

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 😂

3reactions
owockicommented, Nov 30, 2017

have not heard anything from anyone. payout imminent (est in ahour or two)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found