Skip to content

py-dot is not supported with --compile=full #301

@ngeiswei

Description

@ngeiswei

What is your problem?

Call a Python method via py-dot does not work with --compile=full flag.

How to reproduce your problem?

Run the following MeTTa code with MeTTaLog with --compile=full flag

;; Compare two string in lexical order
(: String.lt (-> String String Bool))
(= (String.lt $x $y) ((py-dot $x __lt__ (-> String String Bool)) $y))

;; Test String.lt
!(String.lt "abc" "def")

What should you normal expect?

[True]

What do you get instead?

[(<method-wrapper '__lt__' of str object at 0x7fbb27ed47b0> "def")]

What else do you have to say?

Metadata

Metadata

Assignees

Labels

bugIssues that represent errors in the code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions