Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-2283

Python bindings for svn_fs_set_warning_func fails with TypeError

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: trunk
    • Fix Version/s: nonblocking
    • Component/s: bindings_swig_python
    • Labels:
      None

      Description

      It is not possible to use svn_fs_set_warning_func from Python as it expects an argument of type 
      svn_fs_warning_callback_t which is not yet wrapped.  When calling it as:
      
        svn.fs.set_warning_func(fs_ptr, my_warning_func, None)
      
      I receive an exception of:
      
      TypeError: argument number 2: a 'svn_fs_warning_callback_t' is expected, 'function(<function 
      my_warning_func at 0x1342970>)' is received
      
      It is very desirable to be able to specify a custom warning function as the default (which delegates to 
      abort) is less than perfect in many situations.
      

      Original issue reported by bdash

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              subversion-importer Subversion Importer
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: