Print

Print


Hi Adrian,

The third argument is the object this method is being called on (
self.handler).
I think the example is wrong and the function signature should actually be:

def end(self, jobId, results):

Cheers,

Chris

On Thu, 28 Mar 2019 at 10:08, Adrian Sevcenco <[log in to unmask]>
wrote:

> Hi! I am trying to use the xrootd python bindings as show in the example
> http://xrootd.org/doc/python/xrootd-python/examples/copyprocess.html
>
> my implementation looks like this :
> https://github.com/adriansev/jalien_py/blob/master/alien.py#L27
> and actual usage :
> https://github.com/adriansev/jalien_py/blob/master/alien.py#L335
>
> but i get :
> Traceback (most recent call last):
>    File
> "/usr/lib64/python3.6/site-packages/XRootD/client/copyprocess.py", line
> 44, in end
>      self.handler.end(jobId, results)
> TypeError: end() takes 2 positional arguments but 3 were given
>
> Does anyone have an idea how i get 3 positional arguments when i define 2?
>
> Thank you!!
> Adrian
>
>
> ########################################################################
> Use REPLY-ALL to reply to list
>
> To unsubscribe from the XROOTD-L list, click the following link:
> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-L&A=1
>

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-L&A=1