Git Product home page Git Product logo

Comments (6)

hugovk avatar hugovk commented on June 3, 2024 1

Thanks for testing the beta!

Perhaps related to #118888?

from cpython.

terryjreedy avatar terryjreedy commented on June 3, 2024 1

I am rather sure this is a duplicate.
@gaogaotiantian

from cpython.

stonebig avatar stonebig commented on June 3, 2024

I had read PEP 667, looks logically nice until that effect, but how to rewrite my code ?`

ha, this way:

d={}

a="""def py_helloa():
    "hello world"
    return ("Hello, a World !");""";

exec(a, globals(), locals());
ae=eval('py_helloa');
print(ae())

def test():
    b="""def py_hellob():
    "hello world"
    return ("Hello, b World !");""";
    exec(b, globals(), d);
    be=eval('py_hellob', d);
    print(be())
test()

from cpython.

stonebig avatar stonebig commented on June 3, 2024

seems to work in Python-3.12 too...

from cpython.

stonebig avatar stonebig commented on June 3, 2024

so I did a fix to work on Python-3.13.0b1 for my package, but it's not clear if I should have done it now, with #118921

from cpython.

terryjreedy avatar terryjreedy commented on June 3, 2024

Further discussion should be on the original issue #118888.

from cpython.

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.