Coder Social home page Coder Social logo

Upgrade to Python 3 about highlighter HOT 4 CLOSED

domenic avatar domenic commented on August 18, 2024 1
Upgrade to Python 3

from highlighter.

Comments (4)

tabatkins avatar tabatkins commented on August 18, 2024

All right, initial commit up. @sideshowbarker, wanna check that it's good for you? As far as I can tell it works for me!

from highlighter.

sideshowbarker avatar sideshowbarker commented on August 18, 2024

OK I did some follow-up in #17, and with the changes from that PR applied, highlighting of the HTML spec works as expected under Python 3.

(Sorry, it took be a little longer than I had expected to get it done; it’s because IDL highlighting was failing completely — but due to the nature of that code, no exceptions get thrown when it’s not actually doing anything. Instead, the important part of it just never gets run. So it took me a while to figure out what needed to get changed to make it work again.)

from highlighter.

sideshowbarker avatar sideshowbarker commented on August 18, 2024

FYI about the cause of the IDL highlighting problem I mentioned in my previous comment here, I filed plinss/widlparser#59. This seems like maybe a good case for using an abstract class — which from https://docs.python.org/3/library/abc.html I notice Python 3 now has.

But maybe (preferably) there’s an existing native Pythonic way I’m so far unaware of that could be used/required by writers of consumer code to avoid the kind of problem I ran into.

from highlighter.

tabatkins avatar tabatkins commented on August 18, 2024

Ugh, sorry about that, I ran into the same confusion when I was porting Bikeshed proper. Luckily plinss is fixing that, nice.

from highlighter.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.