[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] Python bindings: ExprTree vs classad.eval



    >>> if int( myjob.eval(["RequestCpus"])) not in cpus: ...
   EXCEPTION [1]

Ah - small syntax error here.  I think you mean instead:


ah, shoot - you are right!

initially, I used in the test the ad's get-shorthand
  myjob["RequestCpus"]

and changing to eval() I missed the square brackets ð
  myjob.eval(["RequestCpus"])

instead of
  mujob.eval("RequestCpus")

sorry for the noise... ð


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature