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.

diamond is not py3k ready

See original GitHub issue

python3 setup.py build works fine but then running the result:

$ PYTHONPATH=build/lib/ python3 build/scripts-3.5/diamond
  File "build/scripts-3.5/diamond", line 112
    print "Diamond version %s" % (get_diamond_version())
                             ^
SyntaxError: invalid syntax

this is likely just the tip of the iceberg, and there is more work to do to make diamond really py3k ready

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:19 (12 by maintainers)

github_iconTop GitHub Comments

9reactions
jantmancommented, Jan 5, 2020

Python 2.7 is now EOL as well. I’m not sure if Diamond is even still maintained, but it seems like if this project is going to continue than py3 support is pretty much a necessity…

6reactions
sandrotosicommented, Feb 15, 2016

python 2.5/2.6 are dead, so keeping their compatibility (and doing so preventing “progress”) seems the wrong way for a python project.

other than then usual boilerplate of the advantage of py3k, it is anyway the future of the language and a huge amount of work has been done to allow developers to write code that could be executed -without any change- both in 2.7 and 3.3+

There might be also people that would like to only run python3 on their machine (Arch switched /usr/bin/python to python3 long time ago), and given it’s possible to extend with additional collectors, those might be easier written with a py3k-friendly syntax and/or you could gather more collaborations not closing that door in the code.

I wont use expressions like “0 value”/ no value, as it is discouraging and shortsighted.

thanks anyway for your attention

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the Diamond Problem in Python and why its not ...
This is not the diamond problem! The diamond problem occurs when two classes have a common ancestor, and another class has both those ......
Read more >
[cctbxbb] Scons for python3 released
I am not sure why it would be a waste of time to use SCons3.0 with python3 as I think you are suggesting....
Read more >
Diamond Price Regression Analysis
This Python 3 environment comes with many helpful analytics libraries ... 53940 non-null float64 6 price 53940 non-null int64 7 x 53940 non-null...
Read more >
How to Print Diamond Pattern in Python
CODING CONCEPT (IN PYTHON 3) ... We will follow the following steps to make the diamond pattern : ... When done both we...
Read more >
Load testing with Python. Locust for testing and Bokeh for ...
No need for clunky UIs or bloated XML, just plain code. LOCUST INSTALLATION. Locust requires Python 2.6+. It is not currently compatible with...
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