Genesys Cloud - Developer Community!

 View Only

Sign Up

Python SDK: "site" model may shadow standard library

  • 1.  Python SDK: "site" model may shadow standard library

    Posted 07-16-2025 07:44

    Hello

    I have a suggestion for the Python SDK. Currently, in the models, there is one called site.py, which is a bad practice, as it may shadow the built-in site module of the standard library.

    That could cause problems in some edge cases, and so Python recommends not using those names.

    One of the edge cases I've encountered: Using Nuitka to compile Python to binary, it collides and crashes. (I already opened a GitHub issue in the Nuitka repo, but still, this is a bad practice anyway.)

    #Python #PureCloudSDKs #GenesysSDKs #SDKs #PlatformSDK


    #PlatformSDK

    ------------------------------
    Adrián Santamaría
    ------------------------------