Giter Club home page Giter Club logo

Comments (5)

ncoghlan avatar ncoghlan commented on August 20, 2024

Checking the test, I think this test failure is likely to go away in 3.7.0b5 - there was a planned change to the way docstrings were handled which we ended up reverting after we realised that it was affecting more than just functions and classes.

That said, switching to a non-docstring expression-as-statement in the example would make this test resilient against any future changes in this area (e.g. making it a numeric literal, like 0x_CAFE_F00D).

from mccabe.

sigmavirus24 avatar sigmavirus24 commented on August 20, 2024

@hroncok @ncoghlan I'd accept a PR that changes the test to using a literal like that for future-proofing purposes. (Although I'm certain whoever wrote this test thought that docstrings were future-proof too 😄 )

from mccabe.

hroncok avatar hroncok commented on August 20, 2024

On it.

from mccabe.

hroncok avatar hroncok commented on August 20, 2024

I've just spent a minute trying to figure out why 0x_CAFE_F00D doesn't work on Python 3.5 🙄

from mccabe.

ncoghlan avatar ncoghlan commented on August 20, 2024

D'oh! And I almost left the underscores out of the suggestion, too :)

from mccabe.

Related Issues (20)

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.