1. 02 May, 2018 10 commits
    • Utkarsh Ayachit's avatar
      avoid segfault during app exit. · 101da2ed
      Utkarsh Ayachit authored
      Since in applications using Python, Python may get finalized before all
      VTK objects are released, we may encounter segfaults during exit. This
      fixes that issue by ensuring that Python interpreter is initialized
      before calling `Py_XDECREF`.
      101da2ed
  2. 13 Mar, 2018 10 commits
  3. 26 Jul, 2017 10 commits
    • Kitware Robot's avatar
      Replace many NULL and 0 occurances with nullptr · a855cab0
      Kitware Robot authored
      This topic is the result of running clang-tidy to
      modernize our usage of NULL and 0 to nullptr. It also
      includes some manual and semi manual changes where
      clang-tidy would not be expected to work (such as in
      comments, or classes not compiled on this build)
      
      There are definitely many comments and occurances that
      this topic misses that we will need to fix over time.
      a855cab0
  4. 23 Sep, 2016 10 commits
    • Kitware Robot's avatar
      Reindent using the reindentation script. · f830ff47
      Kitware Robot authored
      This commit reindents the code with the following utility:
      Utilities/Maintenance/vtk-reindent-code.py
      
      This utility changes the positions of the braces so that they are no
      longer indented relative to the code block they reside in.
      
      The bash command line used was the following:
      
      for d in Charts Common Deprecated Domains Examples Filters GUISupport \
               Geovis IO Imaging Infovis Interaction Parallel Rendering \
               Testing Views Web Wrapping; do
        for e in cxx cxx.in txx txx.in hxx hxx.in h h.in c c.in; do
          find "${d}" -name "*.${e}" -exec \
            python Utilities/Maintenance/vtk_reindent_code.py {} +
        done
      done
      f830ff47
  5. 08 Mar, 2016 10 commits
  6. 06 Aug, 2015 10 commits
    • David Gobbi's avatar
      Python API compatibility for py3k. · d3eb4043
      David Gobbi authored
      This is a large change that adds conditional compilation to support
      both python 2 and python 3.  The header vtkPythonCompatibility.h
      does a lot of the necessary work:
      1) PyInt is redefined to PyLong for py3k
      2) PyString is redefied to PyUnicode for py3k
      3) PyBytes is redefined to PyString for python 2
      d3eb4043
  7. 16 Sep, 2014 10 commits
    • Ben Boeckel's avatar
      vtkPythonAlgorithm: print out all the error information · b0cd19ba
      Ben Boeckel authored
      Unfortunately, Python has this habit of using the name of the
      exception's class for critical information and the stringification of
      the exception itself is useless on its own (e.g., AttributeError's
      string is just the name of the attribute that is missing). To get better
      error information, use traceback.format_exception if it is available.
      
      Change-Id: I7fcbd9a12e505b2e3422c31dcf52055d98144a64
      b0cd19ba
  8. 07 Aug, 2014 10 commits
    • Shawn Waldon's avatar
      Add a smartpointer for PyObjects · f9a208d6
      Shawn Waldon authored
      This refactors the SmartPyObject class from a local class in
      vtkMatplotlibMathTextUtilities.cxx to be externally visible.  This class
      is duplicated several places in Paraview and this refactor will allow
      code to be shared between all places that need it.  It is added to the
      vtkWrappingPythonCore module as the vtkSmartPyObject class.
      
      This commit also refactors the vtkPythonAlgorithm to use the new smart
      pointer.
      
      This commit is part of a change to ParaView and thus the topic name
      reflects that change and not the change to VTK.
      
      Change-Id: If3f0387bb7bb24f823dbe690e64a0a8bb1e0df16
      f9a208d6
  9. 10 Jun, 2014 10 commits
    • Ben Boeckel's avatar
      vtkPythonAlgorithm: support older pythons · 4b74588b
      Ben Boeckel authored
      Older Python's PyObject_GetAttrString did not take a const char*, but
      instead a char*. This disallows using static strings for the attribute
      name.
      
      Change-Id: I349b14f532c34fcc7c2ac6f03e24c171847bc51e
      4b74588b
  10. 06 Jun, 2014 10 commits