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

Re: [HTCondor-users] matchmaking with python bindings changes behavior depending on the imports



the question was why the result was different depending on the package
htcondor was imported or not.
Todd explained it very clearly.

Jose
El vie., 16 nov. 2018 a las 10:56, John M Knoeller
(<johnkn@xxxxxxxxxxx>) escribiÃ:
>
> matching is usually that requirements matches both ways.
>
> c['requirements'] is true for req, and req['requirements'] is true for c.
>
> I see only one way matching here, so this would be expected behavior.
> -tj
>
> -----Original Message-----
> From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> On Behalf Of Jose Caballero
> Sent: Thursday, November 15, 2018 2:36 PM
> To: Condor-Users Mail List <condor-users@xxxxxxxxxxx>
> Subject: [HTCondor-users] matchmaking with python bindings changes behavior depending on the imports
>
> Hi,
> is this behavior expected?
>
>
>
> >>> import classad
> >>> c = classad.ClassAd()
> >>> c['foo'] = 5
> >>> req = classad.ClassAd()
> >>> req['Requirements'] = classad.ExprTree('foo > 0')
> >>> c.matches(req)
> False
>
> >>> import htcondor
> >>> c.matches(req)
> True
>
>
>
> The test was done using version 8.7.9
> Cheers,
> Jose
> _______________________________________________
> HTCondor-users mailing list
> To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
>
> The archives can be found at:
> https://lists.cs.wisc.edu/archive/htcondor-users/
>
> _______________________________________________
> HTCondor-users mailing list
> To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
>
> The archives can be found at:
> https://lists.cs.wisc.edu/archive/htcondor-users/