Skip to content

Remove 'global' Variables from Python Code #1428

Open
@DavidMansolino

Description

@DavidMansolino

Describe the Bug
Some of our python script are usign the global keyword, this is known as a bad practice (see for example: https://docs.quantifiedcode.com/python-anti-patterns/maintainability/using_the_global_statement.html) and can be avoided in 99% of the cases (personally I have never used it and never felt the need to use it):

  • projects/languages/ros/controllers/ros_python/ros_controller.py
  • resources/web/server/session_server.py
  • resources/web/server/simulation_server.py
  • tests/test_suite.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementImplementation of a minor featuregood first issueCould be addressed by a newbee contributor

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions