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. sender.patch
          1 kB
        2. receiver.patch
          1 kB
        3. sender_upd.py
          1 kB
        4. receiver_upd.py
          1 kB
        5. receiver_upd.py
          1 kB
        6. receiver.patch
          1 kB

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

                Created:
                Updated:
                Resolved: