Skip to content

Commit

Permalink
Fix Seq usage (OCaml<4.07) and dependency to unix package (OCaml>=5)
Browse files Browse the repository at this point in the history
  • Loading branch information
thierry-martinez committed Sep 5, 2022
1 parent d9d4045 commit 60ef460
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
(modules numpy py pyops pycaml pyml_arch pytypes pywrappers pyutils)
(foreign_stubs (language c) (names numpy_stubs pyml_stubs))
(wrapped false)
(libraries bigarray stdcompat))
(libraries unix bigarray stdcompat))

(executables
(names generate)
Expand Down
6 changes: 3 additions & 3 deletions py.mli
Original file line number Diff line number Diff line change
Expand Up @@ -723,16 +723,16 @@ module Dict: sig
(** [to_bindings_string o] returns all the pairs [(key, value)] in the Python
dictionary [o]. *)

val to_bindings_seq: Object.t -> (Object.t * Object.t) Seq.t
val to_bindings_seq: Object.t -> (Object.t * Object.t) Stdcompat.Seq.t
(** [to_bindings_seq o] returns the ephemeral sequence of all the pairs
(key, value) in the Python dictionary [o]. *)

val to_bindings_seq_map: (Object.t -> 'a) -> (Object.t -> 'b) -> Object.t ->
('a * 'b) Seq.t
('a * 'b) Stdcompat.Seq.t
(** [to_bindings_seq_map fkey fvalue o] returns the ephemeral sequence of all
the pairs (fkey key, fvalue value) in the Python dictionary [o]. *)

val to_bindings_string_seq: Object.t -> (string * Object.t) Seq.t
val to_bindings_string_seq: Object.t -> (string * Object.t) Stdcompat.Seq.t
(** [to_bindings_string_seq o] returns the ephemeral sequence of all the pairs
(key, value) in the Python dictionary [o]. *)

Expand Down
1 change: 0 additions & 1 deletion pyml.opam
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ build: [
]
]
dev-repo: "git+https://github.com/thierry-martinez/pyml.git"
version: "20220615"

0 comments on commit 60ef460

Please sign in to comment.