Uploaded image for project: 'AMQ Documentation'
  1. AMQ Documentation
  2. AMQDOC-2481

[python] QE Feedback - avoid bad code practices in python examples

XMLWordPrintable

      Products & Services > Product Documentation > Red Hat JBoss AMQ7.0 > Using the AMQ Python Client

      Although the examples provided in the doc works as expected, we should avoid bad coding practices in our examples like:

      • Redefining existing classes
      • Redefining global names
      • Redefining built-in names
      • Wildcard imports
      • Unused imports
      • Missing exception types

      I have proposed updated code examples and patches that avoid it.

        1. receiver_upd.py
          1 kB
          Petr Matousek
        2. receiver_upd.py
          1 kB
          Petr Matousek
        3. receiver.patch
          1 kB
          Petr Matousek
        4. receiver.patch
          1 kB
          Petr Matousek
        5. sender_upd.py
          1 kB
          Petr Matousek
        6. sender.patch
          1 kB
          Petr Matousek

              jross@redhat.com Justin Ross
              pematous Petr Matousek
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: