diff --git a/Lib/_._/builtins/asciiImpl.html b/Lib/_._/builtins/asciiImpl.html index f5d011922..e38cdfc21 100644 --- a/Lib/_._/builtins/asciiImpl.html +++ b/Lib/_._/builtins/asciiImpl.html @@ -98,7 +98,7 @@
func getsize[T](filename: PathLike[T]): int
proc getsize[T](filename: PathLike[T]): int
(In Python, you can custom formatting via defining subclass of Template and overwrite some attributes).
+Currently inheriting Template is not supported. (In Python, you can custom formatting via defining subclass of Template and overwrite some attributes).Currently substitute is implemented via % in std/strutils, in which there are two different behaviors from Python's Template:
1. the variables are compared with cmpIgnoreStyle, whereas in Python they are compared in 'ignorecase' flag by default.
@@ -328,7 +327,7 @@Lib/sys
and haiku/netbsd appended with major version instead of "unknown". In short, this won't be "unknown" as Python does.
- Source -Edit + Source +Editwhich differs Python's
+this does not raise SystemExit, which differs Python's - Source -Edit + Source +EditReturn the current default encoding used by the Unicode implementation.
Always "utf-8" in Nim
- Source -Edit + Source +Edit + + + + + +proc getfilesystemencoding(): PyStr {....raises: [], tags: [], forbids: [].}
otherwise, it's the path of current app/exe.
- Source -Edit + Source +Edit @@ -391,8 +409,8 @@template read[IO](self`gensym5: TemporaryFileWrapper[IO]; +
template read[IO](self: TemporaryFileWrapper[IO]; args`gensym5: varargs[typed]): untyped
template readline[IO](self`gensym6: TemporaryFileWrapper[IO]; +
template readline[IO](self: TemporaryFileWrapper[IO]; args`gensym6: varargs[typed]): untyped
template seek[IO](self`gensym7: TemporaryFileWrapper[IO]; +
template seek[IO](self: TemporaryFileWrapper[IO]; args`gensym7: varargs[typed]): untyped
template tell[IO](self`gensym8: TemporaryFileWrapper[IO]; +
template tell[IO](self: TemporaryFileWrapper[IO]; args`gensym8: varargs[typed]): untyped
template write[IO](self`gensym4: TemporaryFileWrapper[IO]; +
template write[IO](self: TemporaryFileWrapper[IO]; args`gensym4: varargs[typed]): untyped
docTable = (module: ".. warning:: A few of the format directives for `strftime`/`strptime` are not supported,\r\n and using them causes `AssertDefect`. They are listed in\r\n `nstrfptime.NotImplDirectives<time_impl/nstrpftime.html#NotImplDirectives>`_", api: (data: [ - (0, "", ""), (0, "", ""), (0, "", ""), (505641947, "strptime", ".. warning:: In current implementation,\r\n whitespace in format string means itself AS-IS, unlike C or Python,\r\n where any whitespace means a serial of any whitespaces. If really\r\n wanting the behavior of C\'s, consider use `std/strscan`.\r\n\r\n.. warning:: Current `strptime`\r\n is just locale-unaware, when it comes to \r\n \"the locale\'s format\", like `\"%x\"`, it always uses the format of\r\n `\"C\" locale`, no matter what the locale is. a.k.a. Changing\r\n locale via C\'s api in `<locale.h>` doesn\'t affect this function.\r\n"), + (0, "", ""), (0, "", ""), (0, "", ""), (505641947, "strptime", ".. warning:: In current implementation,\r\n whitespace in format string means itself AS-IS, unlike C or Python,\r\n where any whitespace means a serial of any whitespaces. If really\r\n wanting the behavior of C\'s, consider using `std/strscan`.\r\n\r\n.. warning:: Current `strptime`\r\n is just locale-unaware, when it comes to \r\n \"the locale\'s format\", like `\"%x\"`, it always uses the format of\r\n `\"C\" locale`, no matter what the locale is. a.k.a. Changing\r\n locale via C\'s api in `<locale.h>` doesn\'t affect this function.\r\n"), (0, "", ""), (0, "", ""), (0, "", ""), (0, "", "")], counter: 1))
is dict itself, i.e. modifiable
+currently mapping attr is dict itself, i.e. modifiable Source Edit @@ -672,8 +671,7 @@so beware to always write iter for dict in for loop
+Nim's for stmt calls items implicitly, instead of iter so beware to always write iter for dict in for loopExample:
let d = dict(a=1) @@ -880,7 +878,7 @@Exports
diff --git a/pylib/builtins/dict_decl.html b/pylib/builtins/dict_decl.html index 53f61a1f7..927cf6fb3 100644 --- a/pylib/builtins/dict_decl.html +++ b/pylib/builtins/dict_decl.html @@ -209,7 +209,7 @@Templates
diff --git a/pylib/builtins/input.html b/pylib/builtins/input.html index 9a6f2b76c..7dea68aac 100644 --- a/pylib/builtins/input.html +++ b/pylib/builtins/input.html @@ -107,7 +107,7 @@Procs
diff --git a/pylib/builtins/iter_next.html b/pylib/builtins/iter_next.html index f19b6e43d..e52f65147 100644 --- a/pylib/builtins/iter_next.html +++ b/pylib/builtins/iter_next.html @@ -218,7 +218,7 @@Iterators
diff --git a/pylib/builtins/iters.html b/pylib/builtins/iters.html index ad0461bb2..c620f2657 100644 --- a/pylib/builtins/iters.html +++ b/pylib/builtins/iters.html @@ -393,7 +393,7 @@Exports
diff --git a/pylib/builtins/list.html b/pylib/builtins/list.html index 80bf7145f..0ab05b888 100644 --- a/pylib/builtins/list.html +++ b/pylib/builtins/list.html @@ -798,7 +798,7 @@Exports
diff --git a/pylib/builtins/list_decl.html b/pylib/builtins/list_decl.html index 6e6865c98..00c105f3e 100644 --- a/pylib/builtins/list_decl.html +++ b/pylib/builtins/list_decl.html @@ -330,7 +330,7 @@Converters
diff --git a/pylib/builtins/mathfunc.html b/pylib/builtins/mathfunc.html index c8c3ec7ec..3ef8faf8d 100644 --- a/pylib/builtins/mathfunc.html +++ b/pylib/builtins/mathfunc.html @@ -128,7 +128,7 @@Exports
diff --git a/pylib/builtins/misc.html b/pylib/builtins/misc.html index 9070bac6e..6b7cbefc6 100644 --- a/pylib/builtins/misc.html +++ b/pylib/builtins/misc.html @@ -104,7 +104,7 @@Templates
diff --git a/pylib/builtins/modPow.html b/pylib/builtins/modPow.html index 61913251e..244f73985 100644 --- a/pylib/builtins/modPow.html +++ b/pylib/builtins/modPow.html @@ -105,7 +105,7 @@Procs
diff --git a/pylib/builtins/oopFuncs.html b/pylib/builtins/oopFuncs.html index d340cae3b..639c7b1f1 100644 --- a/pylib/builtins/oopFuncs.html +++ b/pylib/builtins/oopFuncs.html @@ -117,7 +117,7 @@Templates
diff --git a/pylib/builtins/print.html b/pylib/builtins/print.html index db64ff884..d8b3a89e8 100644 --- a/pylib/builtins/print.html +++ b/pylib/builtins/print.html @@ -96,7 +96,7 @@Macros
diff --git a/pylib/builtins/private/iterGen.html b/pylib/builtins/private/iterGen.html index 110241d68..91f852088 100644 --- a/pylib/builtins/private/iterGen.html +++ b/pylib/builtins/private/iterGen.html @@ -129,7 +129,7 @@Templates
diff --git a/pylib/builtins/private/mathutils.html b/pylib/builtins/private/mathutils.html index 439745662..4e3d5494f 100644 --- a/pylib/builtins/private/mathutils.html +++ b/pylib/builtins/private/mathutils.html @@ -113,7 +113,7 @@Procs
diff --git a/pylib/builtins/pyhashes.html b/pylib/builtins/pyhashes.html index e9b4e00d6..992121925 100644 --- a/pylib/builtins/pyhashes.html +++ b/pylib/builtins/pyhashes.html @@ -204,7 +204,7 @@Procs
diff --git a/pylib/builtins/pyrange.html b/pylib/builtins/pyrange.html index cd7f2e043..3130a393e 100644 --- a/pylib/builtins/pyrange.html +++ b/pylib/builtins/pyrange.html @@ -361,7 +361,7 @@Templates
diff --git a/pylib/builtins/pyslice.html b/pylib/builtins/pyslice.html index 9fe91cd5f..697a57a9d 100644 --- a/pylib/builtins/pyslice.html +++ b/pylib/builtins/pyslice.html @@ -281,7 +281,7 @@Converters
diff --git a/pylib/builtins/reprImpl.html b/pylib/builtins/reprImpl.html index 5fe386950..7bcd88517 100644 --- a/pylib/builtins/reprImpl.html +++ b/pylib/builtins/reprImpl.html @@ -120,7 +120,7 @@Procs
diff --git a/pylib/builtins/set.html b/pylib/builtins/set.html index de22772d6..92ea47d84 100644 --- a/pylib/builtins/set.html +++ b/pylib/builtins/set.html @@ -56,7 +56,7 @@src/pylib/builtins/set
@@ -65,39 +65,33 @@src/pylib/builtins/set
Procs
- -
&= -
- `&=`[H; S: SomeSet[H]](self: var PySet[H]; s: S)
+-
- `-`[H](self, o: PySet[H]): PySet[H]
+- `-`[H](self: PyFrozenSet[H]; o: SomePySet[H]): PyFrozenSet[H]
+- `-`[H](self: PySet[H]; o: PyFrozenSet[H]): PyFrozenSet[H]
-= -
- `-=`[H; S: SomeSet[H]](self: var PySet[H]; s: S)
+- `-=`[H; S: SomeSet[H]](self: var SomePySet[H]; s: S)
< -
- `<`[H](s`gensym11: set[H]; self`gensym11: PySet[H]): bool
-- `<`[H](self`gensym11: PySet[H]; s`gensym11: set[H]): bool
+- `<`[H](s: set[H]; self: SomePySet[H]): bool
+- `<`[H](self: SomePySet[H]; s: set[H]): bool
<= -
- `<=`[H](s`gensym9: set[H]; self`gensym9: PySet[H]): bool
-- `<=`[H](self`gensym9: PySet[H]; s`gensym9: set[H]): bool
+- `<=`[H](s: set[H]; self: SomePySet[H]): bool
+- `<=`[H](self: SomePySet[H]; s: set[H]): bool
== -
-- `==`[H](s`gensym7: set[H]; self`gensym7: PySet[H]): bool
-- `==`[H](self`gensym7: PySet[H]; s`gensym7: set[H]): bool
- -^ -
- `^`[H; S: SomeSet[H]](self`gensym12: PySet[H]; s`gensym12: S): PySet[H]
+- `==`[H](s: set[H]; self: SomePySet[H]): bool
+- `==`[H](self: SomePySet[H]; s: set[H]): bool
add @@ -105,39 +99,55 @@
src/pylib/builtins/set
difference -
- difference[H, S](self: PySet[H]; s1: auto; s2: auto; x: varargs[S]): PySet[H]
-- difference[H; S: not PySet[H]](self: PySet[H]; s: S): PySet[H]
+- difference[H; Self: SomePySet[H]; S: not PySet[H]](self: Self; s: S): Self
+- difference[H; Self: SomePySet[H]; S](self: Self; s1: auto; s2: auto; + x: varargs[S]): Self
- difference[H](self, o: PySet[H]): PySet[H]
+- difference[H](self: PyFrozenSet[H]; o: SomePySet[H]): PyFrozenSet[H]
+- difference[H](self: PySet[H]; o: PyFrozenSet[H]): PyFrozenSet[H]
difference_update -
- difference_update[H; I: Iterable[H]](self: var PySet[H]; i: I)
+- difference_update[H; I: Iterable[H]](self: var SomePySet[H]; i: I)
discard
+- `discard`[H](self: var PySet[H]; ele: H)
+frozenset +
- frozenset[H](): PyFrozenSet[H]
+- frozenset[H](arr: openArray[H]): PyFrozenSet[H]
+- frozenset[H](it: Iterable[H]): PyFrozenSet[H]
+- frozenset[H](s: HashSet[H]): PyFrozenSet[H]
+- frozenset[H](s: SomePySet[H]): PyFrozenSet[H]
+intersection -
- intersection[H, S](self: PySet[H]; s1: auto; s2: auto; x: varargs[S]): PySet[H]
-- intersection[H; S: not PySet[H]](self: PySet[H]; s: S): PySet[H]
+- intersection[H; Self: SomePySet[H]; S: not PySet[H]](self: Self; s: S): Self
+- intersection[H; Self: SomePySet[H]; S](self: Self; s1: auto; s2: auto; + x: varargs[S]): Self
- intersection[H](self, o: PySet[H]): PySet[H]
+- intersection[H](self: PyFrozenSet[H]; o: SomePySet[H]): PyFrozenSet[H]
+- intersection[H](self: PySet[H]; o: PyFrozenSet[H]): PyFrozenSet[H]
intersection_update -
- intersection_update[H; I: Iterable[H]](self: var PySet[H]; i: I)
+- intersection_update[H; I: Iterable[H]](self: var SomePySet[H]; i: I)
isdisjoint -
- isdisjoint[H, S](self: PySet[H]; s: S): bool
+- isdisjoint[H, S](self: SomePySet[H]; s: S): bool
issubset -
- issubset[H, S](self`gensym17: PySet[H]; s`gensym17: S): bool
+- issubset[H, S](self, o: SomePySet[H]; s: S): bool
issuperset -
- issuperset[H, S](self`gensym15: PySet[H]; s`gensym15: S): bool
+- issuperset[H, S](self, o: SomePySet[H]; s: S): bool
pydiscard @@ -149,7 +159,7 @@
src/pylib/builtins/set
- pyset[H](arr: openArray[H]): PySet[H]
- pyset[H](iterable: Iterable[H]): PySet[H]
- pyset[H](s: HashSet[H]): PySet[H]
-- pyset[H](s: PySet[H]): PySet[H]
+- pyset[H](s: SomePySet[H]): PySet[H]
remove @@ -161,33 +171,33 @@
src/pylib/builtins/set
- set[H](arr: openArray[H]): PySet[H]
- set[H](iterable: Iterable[H]): PySet[H]
- set[H](s: HashSet[H]): PySet[H]
-- set[H](s: PySet[H]): PySet[H]
+- set[H](s: SomePySet[H]): PySet[H]
symmetric_difference -
- symmetric_difference[H, S](self: PySet[H]; s1: auto; s2: auto; x: varargs[S]): PySet[ - H]
-- symmetric_difference[H; S: not PySet[H]](self: PySet[H]; s: S): PySet[H]
+- symmetric_difference[H; Self: SomePySet[H]; S: not PySet[H]](self: Self; s: S): Self
+- symmetric_difference[H; Self: SomePySet[H]; S](self: Self; s1: auto; s2: auto; + x: varargs[S]): Self
- symmetric_difference[H](self, o: PySet[H]): PySet[H]
+- symmetric_difference[H](self: PyFrozenSet[H]; o: SomePySet[H]): PyFrozenSet[H]
+- symmetric_difference[H](self: PySet[H]; o: PyFrozenSet[H]): PyFrozenSet[H]
union -
- union[H, S](self: PySet[H]; s1: auto; s2: auto; x: varargs[S]): PySet[H]
-- union[H; S: not PySet[H]](self: PySet[H]; s: S): PySet[H]
+- union[H; Self: SomePySet[H]; S: not PySet[H]](self: Self; s: S): Self
+- union[H; Self: SomePySet[H]; S](self: Self; s1: auto; s2: auto; x: varargs[S]): Self
- union[H](self, o: PySet[H]): PySet[H]
+- union[H](self: PyFrozenSet[H]; o: SomePySet[H]): PyFrozenSet[H]
+- union[H](self: PySet[H]; o: PyFrozenSet[H]): PyFrozenSet[H]
update -
-- update[H; I: Iterable[H]](self: var PySet[H]; i: I)
- -| -
- `|`[H; S: SomeSet[H]](self`gensym14: PySet[H]; s`gensym14: S): PySet[H]
+- update[H; I: Iterable[H]](self: var SomePySet[H]; i: I)
|= -
@@ -210,8 +220,20 @@- `|=`[H; S: SomeSet[H]](self: var PySet[H]; s: S)
+- `|=`[H; S: SomeSet[H]](self: var SomePySet[H]; s: S)
src/pylib/builtins/set
Templates
-
copy -
- copy[H](self: PySet[H]): PySet[H]
+ + +copy +
+ @@ -246,7 +268,7 @@- copy[H; S: SomePySet[H]](self): S
+ +Imports
Types
-diff --git a/pylib/pybytes/translate.html b/pylib/pybytes/translate.html index f3c09fc49..433434069 100644 --- a/pylib/pybytes/translate.html +++ b/pylib/pybytes/translate.html @@ -147,7 +147,7 @@- +
SomeSet[H] = PySet[H] or HashSet[H] or OrderedSet[H] or set[H] SomeSet[H] = SomePySet[H] or HashSet[H] or OrderedSet[H] or set[H]- @@ -261,195 +283,209 @@
Types
diff --git a/pylib/pybytes/strip.html b/pylib/pybytes/strip.html index 95a665a30..20339491e 100644 --- a/pylib/pybytes/strip.html +++ b/pylib/pybytes/strip.html @@ -175,7 +175,7 @@Procs
-
--diff --git a/pylib/pybytes/split/splitlinesIter.html b/pylib/pybytes/split/splitlinesIter.html index 018336c60..e4cbfa3f8 100644 --- a/pylib/pybytes/split/splitlinesIter.html +++ b/pylib/pybytes/split/splitlinesIter.html @@ -106,7 +106,7 @@- + -
proc `&`[H; S: SomeSet[H]](self`gensym13: PySet[H]; s`gensym13: S): PySet[H]--diff --git a/pylib/pybytes/split/split_whitespace.html b/pylib/pybytes/split/split_whitespace.html index c44ff818e..b9caa17ae 100644 --- a/pylib/pybytes/split/split_whitespace.html +++ b/pylib/pybytes/split/split_whitespace.html @@ -138,7 +138,7 @@- +
proc `&=`[H; S: SomeSet[H]](self: var PySet[H]; s: S)+ ++-- +
proc `-`[H](self: PyFrozenSet[H]; o: SomePySet[H]): PyFrozenSet[H]- + + + Source +Edit +
-diff --git a/pylib/pybytes/split/split.html b/pylib/pybytes/split/split.html index 7edfe05b3..d1d0d9a23 100644 --- a/pylib/pybytes/split/split.html +++ b/pylib/pybytes/split/split.html @@ -189,7 +189,7 @@-- +
proc `-`[H](self, o: PySet[H]): PySet[H]+ proc `-`[H](self: PySet[H]; o: PyFrozenSet[H]): PyFrozenSet[H]- - Source -Edit + Source +Edit
--diff --git a/pylib/pybytes/split/rsplit_whitespace.html b/pylib/pybytes/split/rsplit_whitespace.html index ae2a276ce..3b0eb747b 100644 --- a/pylib/pybytes/split/rsplit_whitespace.html +++ b/pylib/pybytes/split/rsplit_whitespace.html @@ -106,7 +106,7 @@-- +
proc `<`[H](s`gensym11: set[H]; self`gensym11: PySet[H]): bool {.error: "When used, Nim compiler(at least 2.0.0-2.1.2) will complain:\n\'Error: unhandled exception: ccgexprs.nim(1994, 9) `setType.kind == tySet`\', \nConsider use `pyset` instead of set literal.".}+- proc `<`[H](s: set[H]; self: SomePySet[H]): bool {.error: "When used, Nim compiler(at least 2.0.0-2.1.2) will complain:\n\'Error: unhandled exception: ccgexprs.nim(1994, 9) `setType.kind == tySet`\', \nConsider using `pyset` instead of set literal.".}- - Source -Edit + Source +Edit
-- +
proc `<`[H](self`gensym11: PySet[H]; s`gensym11: set[H]): bool {.error: "When used, Nim compiler(at least 2.0.0-2.1.2) will complain:\n\'Error: unhandled exception: ccgexprs.nim(1994, 9) `setType.kind == tySet`\', \nConsider use `pyset` instead of set literal.".}-diff --git a/pylib/pybytes/split/rsplit.html b/pylib/pybytes/split/rsplit.html index 4230f1e90..76f4cbcec 100644 --- a/pylib/pybytes/split/rsplit.html +++ b/pylib/pybytes/split/rsplit.html @@ -151,7 +151,7 @@-- +
proc `<=`[H](s`gensym9: set[H]; self`gensym9: PySet[H]): bool {.error: "When used, Nim compiler(at least 2.0.0-2.1.2) will complain:\n\'Error: unhandled exception: ccgexprs.nim(1994, 9) `setType.kind == tySet`\', \nConsider use `pyset` instead of set literal.".}+- proc `<=`[H](s: set[H]; self: SomePySet[H]): bool {.error: "When used, Nim compiler(at least 2.0.0-2.1.2) will complain:\n\'Error: unhandled exception: ccgexprs.nim(1994, 9) `setType.kind == tySet`\', \nConsider using `pyset` instead of set literal.".}- - Source -Edit + Source +Edit
-- +
proc `<=`[H](self`gensym9: PySet[H]; s`gensym9: set[H]): bool {.error: "When used, Nim compiler(at least 2.0.0-2.1.2) will complain:\n\'Error: unhandled exception: ccgexprs.nim(1994, 9) `setType.kind == tySet`\', \nConsider use `pyset` instead of set literal.".}-diff --git a/pylib/pybytes/split/reimporter.html b/pylib/pybytes/split/reimporter.html index 457a900fe..def3068c0 100644 --- a/pylib/pybytes/split/reimporter.html +++ b/pylib/pybytes/split/reimporter.html @@ -83,7 +83,7 @@-- +
proc `==`[H](s`gensym7: set[H]; self`gensym7: PySet[H]): bool {.error: "When used, Nim compiler(at least 2.0.0-2.1.2) will complain:\n\'Error: unhandled exception: ccgexprs.nim(1994, 9) `setType.kind == tySet`\', \nConsider use `pyset` instead of set literal.".}+- proc `==`[H](s: set[H]; self: SomePySet[H]): bool {.error: "When used, Nim compiler(at least 2.0.0-2.1.2) will complain:\n\'Error: unhandled exception: ccgexprs.nim(1994, 9) `setType.kind == tySet`\', \nConsider using `pyset` instead of set literal.".}- - Source -Edit + Source +Edit
--- +
proc `==`[H](self`gensym7: PySet[H]; s`gensym7: set[H]): bool {.error: "When used, Nim compiler(at least 2.0.0-2.1.2) will complain:\n\'Error: unhandled exception: ccgexprs.nim(1994, 9) `setType.kind == tySet`\', \nConsider use `pyset` instead of set literal.".}-diff --git a/pylib/pybytes/split/common.html b/pylib/pybytes/split/common.html index efcdac2a3..5cb507971 100644 --- a/pylib/pybytes/split/common.html +++ b/pylib/pybytes/split/common.html @@ -114,7 +114,7 @@-- + -
proc `^`[H; S: SomeSet[H]](self`gensym12: PySet[H]; s`gensym12: S): PySet[H]-diff --git a/pylib/pybytes/hex.html b/pylib/pybytes/hex.html index 3a13eb4a6..0096ba48e 100644 --- a/pylib/pybytes/hex.html +++ b/pylib/pybytes/hex.html @@ -157,7 +157,7 @@-- +
proc add[H](self: var PySet[H]; x: H)+diff --git a/pylib/pybytes/bytesprefix.html b/pylib/pybytes/bytesprefix.html index 081daaf0c..983b5a0f2 100644 --- a/pylib/pybytes/bytesprefix.html +++ b/pylib/pybytes/bytesprefix.html @@ -198,7 +198,7 @@++ proc difference[H; Self: SomePySet[H]; S: not PySet[H]](self: Self; s: S): Self- - Source -Edit + Source +Edit
+-- +
proc difference[H; Self: SomePySet[H]; S](self: Self; s1: auto; s2: auto; + x: varargs[S]): Self- + + + Source +Edit +
--diff --git a/pylib/pybytes/bytesmeth.html b/pylib/pybytes/bytesmeth.html index 44571f775..ac9d5951a 100644 --- a/pylib/pybytes/bytesmeth.html +++ b/pylib/pybytes/bytesmeth.html @@ -922,7 +922,7 @@- + -
proc difference[H, S](self: PySet[H]; s1: auto; s2: auto; x: varargs[S]): PySet[ - H]-- +
proc difference[H; S: not PySet[H]](self: PySet[H]; s: S): PySet[H]+- proc difference[H](self: PyFrozenSet[H]; o: SomePySet[H]): PyFrozenSet[H]- - Source -Edit + Source +Edit
-- +
proc difference[H](self, o: PySet[H]): PySet[H]+ proc difference[H](self: PySet[H]; o: PyFrozenSet[H]): PyFrozenSet[H]- - Source -Edit + Source +Edit
-+-+ +- +
proc difference_update[H; I: Iterable[H]](self: var PySet[H]; i: I)+@@ -461,32 +497,85 @@ proc difference_update[H; I: Iterable[H]](self: var SomePySet[H]; i: I)- - Source -Edit + Source +Edit
Procs
- discard is keyword of Nim, consider use `discard` or pydiscard - Source -Edit + Source +Edit + +
++++- +
proc frozenset[H](): PyFrozenSet[H]- + + + Source +Edit + +
+++- +
proc frozenset[H](arr: openArray[H]): PyFrozenSet[H]- + + + Source +Edit + +
+++- +
proc frozenset[H](it: Iterable[H]): PyFrozenSet[H]- + + + Source +Edit + +
+++- +
proc frozenset[H](s: HashSet[H]): PyFrozenSet[H]- + + + Source +Edit + +
++- +
proc frozenset[H](s: SomePySet[H]): PyFrozenSet[H]- + + + Source +Edit
--- +
proc intersection[H, S](self: PySet[H]; s1: auto; s2: auto; x: varargs[S]): PySet[ - H]+- proc intersection[H; Self: SomePySet[H]; S: not PySet[H]](self: Self; s: S): Self- - Source -Edit + Source +Edit
-+- +
proc intersection[H; S: not PySet[H]](self: PySet[H]; s: S): PySet[H]+@@ -495,60 +584,80 @@ proc intersection[H; Self: SomePySet[H]; S](self: Self; s1: auto; s2: auto; + x: varargs[S]): Self- - Source -Edit + Source +Edit
Procs
- - Source -Edit + Source +Edit + +
+++- +
proc intersection[H](self: PyFrozenSet[H]; o: SomePySet[H]): PyFrozenSet[H]- + + + Source +Edit + +
++- +
proc intersection[H](self: PySet[H]; o: PyFrozenSet[H]): PyFrozenSet[H]- + + + Source +Edit
-diff --git a/pylib/pybytes/bytesimpl.html b/pylib/pybytes/bytesimpl.html index 4f3394539..28caf83d3 100644 --- a/pylib/pybytes/bytesimpl.html +++ b/pylib/pybytes/bytesimpl.html @@ -684,7 +684,7 @@-- +
proc intersection_update[H; I: Iterable[H]](self: var PySet[H]; i: I)--- +
func isdisjoint[H, S](self: PySet[H]; s: S): bool-diff --git a/pylib/pybytes/bytesbltins.html b/pylib/pybytes/bytesbltins.html index 7990d3002..33582ed84 100644 --- a/pylib/pybytes/bytesbltins.html +++ b/pylib/pybytes/bytesbltins.html @@ -141,7 +141,7 @@-- --@@ -608,8 +717,8 @@- + @@ -560,8 +669,8 @@
proc issuperset[H, S](self`gensym15: PySet[H]; s`gensym15: S): boolProcs
- set.discard(ele) - Source -Edit + Source +Edit
Procs
-- +
proc set[H](s: PySet[H]): PySet[H]-diff --git a/pylib/pybytes.html b/pylib/pybytes.html index 2459fda13..34e32f072 100644 --- a/pylib/pybytes.html +++ b/pylib/pybytes.html @@ -83,7 +83,7 @@-- +
proc symmetric_difference[H, S](self: PySet[H]; s1: auto; s2: auto; - x: varargs[S]): PySet[H]+- proc symmetric_difference[H; Self: SomePySet[H]; S: not PySet[H]](self: Self; + s: S): Self- - Source -Edit + Source +Edit
-+- +
proc symmetric_difference[H; S: not PySet[H]](self: PySet[H]; s: S): PySet[H]+@@ -713,31 +823,53 @@ proc symmetric_difference[H; Self: SomePySet[H]; S](self: Self; s1: auto; + s2: auto; x: varargs[S]): Self- - Source -Edit + Source +Edit
Procs
- - Source -Edit + Source +Edit + +
+++- +
proc symmetric_difference[H](self: PyFrozenSet[H]; o: SomePySet[H]): PyFrozenSet[ + H]- + + + Source +Edit + +
++- +
proc symmetric_difference[H](self: PySet[H]; o: PyFrozenSet[H]): PyFrozenSet[H]- + + + Source +Edit
--diff --git a/pylib/pybytearray.html b/pylib/pybytearray.html index 9593fd15c..95432461c 100644 --- a/pylib/pybytearray.html +++ b/pylib/pybytearray.html @@ -778,7 +778,7 @@- +
proc union[H, S](self: PySet[H]; s1: auto; s2: auto; x: varargs[S]): PySet[H]+- proc union[H; Self: SomePySet[H]; S: not PySet[H]](self: Self; s: S): Self- - Source -Edit + Source +Edit
-+- +
proc union[H; S: not PySet[H]](self: PySet[H]; s: S): PySet[H]+@@ -746,47 +878,54 @@ proc union[H; Self: SomePySet[H]; S](self: Self; s1: auto; s2: auto; + x: varargs[S]): Self- - Source -Edit + Source +Edit
Procs
- - Source -Edit + Source +Edit
+-- +
proc union[H](self: PyFrozenSet[H]; o: SomePySet[H]): PyFrozenSet[H]- + + + Source +Edit +
---- +
proc update[H; I: Iterable[H]](self: var PySet[H]; i: I)+ proc union[H](self: PySet[H]; o: PyFrozenSet[H]): PyFrozenSet[H]- - Source -Edit + Source +Edit
-diff --git a/pylib/pybool.html b/pylib/pybool.html index 48113a78f..11b34fb22 100644 --- a/pylib/pybool.html +++ b/pylib/pybool.html @@ -490,7 +490,7 @@-- +
proc `|`[H; S: SomeSet[H]](self`gensym14: PySet[H]; s`gensym14: S): PySet[H]-diff --git a/pylib/private/trans_imp.html b/pylib/private/trans_imp.html index 4d1f8db23..11e0454f1 100644 --- a/pylib/private/trans_imp.html +++ b/pylib/private/trans_imp.html @@ -96,7 +96,7 @@-@@ -817,14 +956,53 @@- + @@ -804,8 +943,8 @@
proc `|=`[H; S: SomeSet[H]](self: var PySet[H]; s: S)Macros
- To solve: pyset({1,2,3}) is invalid - Source -Edit + Source +Edit
Macros
Templates
-
-diff --git a/pylib/private/backendMark.html b/pylib/private/backendMark.html index 8cefc67f1..43215cc1d 100644 --- a/pylib/private/backendMark.html +++ b/pylib/private/backendMark.html @@ -193,7 +193,7 @@-diff --git a/pylib/builtins/set.idx b/pylib/builtins/set.idx index b0b821cd1..65f3a6da8 100644 --- a/pylib/builtins/set.idx +++ b/pylib/builtins/set.idx @@ -4,57 +4,74 @@ nim set pylib/builtins/set.html#set_2 proc set[H](): PySet[H] 29 nim pyset pylib/builtins/set.html#pyset_2 proc pyset[H](): PySet[H] 29 nim set pylib/builtins/set.html#set,HashSet[H] proc set[H](s: HashSet[H]): PySet[H] 31 nim pyset pylib/builtins/set.html#pyset,HashSet[H] proc pyset[H](s: HashSet[H]): PySet[H] 31 -nim set pylib/builtins/set.html#set,PySet[H] proc set[H](s: PySet[H]): PySet[H] 33 -nim pyset pylib/builtins/set.html#pyset,PySet[H] proc pyset[H](s: PySet[H]): PySet[H] 33 +nim set pylib/builtins/set.html#set,SomePySet[H] proc set[H](s: SomePySet[H]): PySet[H] 33 +nim pyset pylib/builtins/set.html#pyset,SomePySet[H] proc pyset[H](s: SomePySet[H]): PySet[H] 33 nim set pylib/builtins/set.html#set,openArray[H] proc set[H](arr: openArray[H]): PySet[H] 34 nim pyset pylib/builtins/set.html#pyset,openArray[H] proc pyset[H](arr: openArray[H]): PySet[H] 34 nim set pylib/builtins/set.html#set,Iterable[H] proc set[H](iterable: Iterable[H]): PySet[H] 35 nim pyset pylib/builtins/set.html#pyset,Iterable[H] proc pyset[H](iterable: Iterable[H]): PySet[H] 28 -nim pysetLit pylib/builtins/set.html#pysetLit.m macro pysetLit(lit): PySet 42 -nim copy pylib/builtins/set.html#copy.t,PySet[H] template copy[H](self: PySet[H]): PySet[H] 50 -nim `-` pylib/builtins/set.html#-,PySet[H],PySet[H] proc `-`[H](self, o: PySet[H]): PySet[H] 59 -nim intersection pylib/builtins/set.html#intersection,PySet[H],PySet[H] proc intersection[H](self, o: PySet[H]): PySet[H] 59 -nim union pylib/builtins/set.html#union,PySet[H],PySet[H] proc union[H](self, o: PySet[H]): PySet[H] 59 -nim difference pylib/builtins/set.html#difference,PySet[H],PySet[H] proc difference[H](self, o: PySet[H]): PySet[H] 59 -nim symmetric_difference pylib/builtins/set.html#symmetric_difference,PySet[H],PySet[H] proc symmetric_difference[H](self, o: PySet[H]): PySet[H] 61 -nim `==` pylib/builtins/set.html#==,, proc `==`[H](self`gensym7: PySet[H]; s`gensym7: set[H]): bool 68 -nim `==` pylib/builtins/set.html#==,,_2 proc `==`[H](s`gensym7: set[H]; self`gensym7: PySet[H]): bool 73 -nim `<=` pylib/builtins/set.html#<=,, proc `<=`[H](self`gensym9: PySet[H]; s`gensym9: set[H]): bool 68 -nim `<=` pylib/builtins/set.html#<=,,_2 proc `<=`[H](s`gensym9: set[H]; self`gensym9: PySet[H]): bool 74 -nim `<` pylib/builtins/set.html#<,, proc `<`[H](self`gensym11: PySet[H]; s`gensym11: set[H]): bool 68 -nim `<` pylib/builtins/set.html#<,,_2 proc `<`[H](s`gensym11: set[H]; self`gensym11: PySet[H]): bool 75 -nim `^` pylib/builtins/set.html#^,,S proc `^`[H; S: SomeSet[H]](self`gensym12: PySet[H]; s`gensym12: S): PySet[H] 82 -nim `&` pylib/builtins/set.html#&,,S proc `&`[H; S: SomeSet[H]](self`gensym13: PySet[H]; s`gensym13: S): PySet[H] 83 -nim `|` pylib/builtins/set.html#|,,S proc `|`[H; S: SomeSet[H]](self`gensym14: PySet[H]; s`gensym14: S): PySet[H] 84 -nim issuperset pylib/builtins/set.html#issuperset,,S proc issuperset[H, S](self`gensym15: PySet[H]; s`gensym15: S): bool 89 -nim issubset pylib/builtins/set.html#issubset,,S proc issubset[H, S](self`gensym17: PySet[H]; s`gensym17: S): bool 90 -nim intersection pylib/builtins/set.html#intersection,PySet[H],S proc intersection[H; S: not PySet[H]](self: PySet[H]; s: S): PySet[H] 94 -nim intersection pylib/builtins/set.html#intersection,PySet[H],auto,auto,varargs[S] proc intersection[H, S](self: PySet[H]; s1: auto; s2: auto; x: varargs[S]): PySet[H] 103 -nim union pylib/builtins/set.html#union,PySet[H],S proc union[H; S: not PySet[H]](self: PySet[H]; s: S): PySet[H] 94 -nim union pylib/builtins/set.html#union,PySet[H],auto,auto,varargs[S] proc union[H, S](self: PySet[H]; s1: auto; s2: auto; x: varargs[S]): PySet[H] 104 -nim difference pylib/builtins/set.html#difference,PySet[H],S proc difference[H; S: not PySet[H]](self: PySet[H]; s: S): PySet[H] 94 -nim difference pylib/builtins/set.html#difference,PySet[H],auto,auto,varargs[S] proc difference[H, S](self: PySet[H]; s1: auto; s2: auto; x: varargs[S]): PySet[H] 105 -nim symmetric_difference pylib/builtins/set.html#symmetric_difference,PySet[H],S proc symmetric_difference[H; S: not PySet[H]](self: PySet[H]; s: S): PySet[H] 94 -nim symmetric_difference pylib/builtins/set.html#symmetric_difference,PySet[H],auto,auto,varargs[S] proc symmetric_difference[H, S](self: PySet[H]; s1: auto; s2: auto; x: varargs[S]): PySet[\n H] 106 -nim isdisjoint pylib/builtins/set.html#isdisjoint,PySet[H],S proc isdisjoint[H, S](self: PySet[H]; s: S): bool 108 -nim add pylib/builtins/set.html#add,PySet[H],H proc add[H](self: var PySet[H]; x: H) 112 -nim `discard` pylib/builtins/set.html#discard,PySet[H],H proc `discard`[H](self: var PySet[H]; ele: H) 113 -nim pydiscard pylib/builtins/set.html#pydiscard,PySet[H],H proc pydiscard[H](self: var PySet[H]; ele: H) 116 -nim remove pylib/builtins/set.html#remove,PySet[H],H proc remove[H](self: var PySet[H]; ele: H) 120 -nim `-=` pylib/builtins/set.html#-=,PySet[H],S proc `-=`[H; S: SomeSet[H]](self: var PySet[H]; s: S) 126 -nim difference_update pylib/builtins/set.html#difference_update,PySet[H],I proc difference_update[H; I: Iterable[H]](self: var PySet[H]; i: I) 129 -nim `|=` pylib/builtins/set.html#|=,PySet[H],S proc `|=`[H; S: SomeSet[H]](self: var PySet[H]; s: S) 126 -nim update pylib/builtins/set.html#update,PySet[H],I proc update[H; I: Iterable[H]](self: var PySet[H]; i: I) 130 -nim `&=` pylib/builtins/set.html#&=,PySet[H],S proc `&=`[H; S: SomeSet[H]](self: var PySet[H]; s: S) 126 -nim intersection_update pylib/builtins/set.html#intersection_update,PySet[H],I proc intersection_update[H; I: Iterable[H]](self: var PySet[H]; i: I) 133 -nimgrp <= pylib/builtins/set.html#<=-procs-all proc 74 -nimgrp < pylib/builtins/set.html#<-procs-all proc 75 -nimgrp symmetricdifference pylib/builtins/set.html#symmetric_difference-procs-all proc 61 -nimgrp union pylib/builtins/set.html#union-procs-all proc 61 +nim frozenset pylib/builtins/set.html#frozenset_2 proc frozenset[H](): PyFrozenSet[H] 40 +nim frozenset pylib/builtins/set.html#frozenset,HashSet[H] proc frozenset[H](s: HashSet[H]): PyFrozenSet[H] 42 +nim frozenset pylib/builtins/set.html#frozenset,SomePySet[H] proc frozenset[H](s: SomePySet[H]): PyFrozenSet[H] 44 +nim frozenset pylib/builtins/set.html#frozenset,openArray[H] proc frozenset[H](arr: openArray[H]): PyFrozenSet[H] 45 +nim frozenset pylib/builtins/set.html#frozenset,Iterable[H] proc frozenset[H](it: Iterable[H]): PyFrozenSet[H] 46 +nim pysetLit pylib/builtins/set.html#pysetLit.m macro pysetLit(lit): PySet 56 +nim copy pylib/builtins/set.html#copy.t template copy[H; S: SomePySet[H]](self): S 67 +nim `-` pylib/builtins/set.html#-,PySet[H],PySet[H] proc `-`[H](self, o: PySet[H]): PySet[H] 71 +nim `-` pylib/builtins/set.html#-,PyFrozenSet[H],SomePySet[H] proc `-`[H](self: PyFrozenSet[H]; o: SomePySet[H]): PyFrozenSet[H] 73 +nim `-` pylib/builtins/set.html#-,PySet[H],PyFrozenSet[H] proc `-`[H](self: PySet[H]; o: PyFrozenSet[H]): PyFrozenSet[H] 83 +nim intersection pylib/builtins/set.html#intersection,PySet[H],PySet[H] proc intersection[H](self, o: PySet[H]): PySet[H] 71 +nim intersection pylib/builtins/set.html#intersection,PyFrozenSet[H],SomePySet[H] proc intersection[H](self: PyFrozenSet[H]; o: SomePySet[H]): PyFrozenSet[H] 73 +nim intersection pylib/builtins/set.html#intersection,PySet[H],PyFrozenSet[H] proc intersection[H](self: PySet[H]; o: PyFrozenSet[H]): PyFrozenSet[H] 83 +nim union pylib/builtins/set.html#union,PySet[H],PySet[H] proc union[H](self, o: PySet[H]): PySet[H] 71 +nim union pylib/builtins/set.html#union,PyFrozenSet[H],SomePySet[H] proc union[H](self: PyFrozenSet[H]; o: SomePySet[H]): PyFrozenSet[H] 73 +nim union pylib/builtins/set.html#union,PySet[H],PyFrozenSet[H] proc union[H](self: PySet[H]; o: PyFrozenSet[H]): PyFrozenSet[H] 83 +nim difference pylib/builtins/set.html#difference,PySet[H],PySet[H] proc difference[H](self, o: PySet[H]): PySet[H] 71 +nim difference pylib/builtins/set.html#difference,PyFrozenSet[H],SomePySet[H] proc difference[H](self: PyFrozenSet[H]; o: SomePySet[H]): PyFrozenSet[H] 73 +nim difference pylib/builtins/set.html#difference,PySet[H],PyFrozenSet[H] proc difference[H](self: PySet[H]; o: PyFrozenSet[H]): PyFrozenSet[H] 83 +nim symmetric_difference pylib/builtins/set.html#symmetric_difference,PySet[H],PySet[H] proc symmetric_difference[H](self, o: PySet[H]): PySet[H] 71 +nim symmetric_difference pylib/builtins/set.html#symmetric_difference,PyFrozenSet[H],SomePySet[H] proc symmetric_difference[H](self: PyFrozenSet[H]; o: SomePySet[H]): PyFrozenSet[H] 73 +nim symmetric_difference pylib/builtins/set.html#symmetric_difference,PySet[H],PyFrozenSet[H] proc symmetric_difference[H](self: PySet[H]; o: PyFrozenSet[H]): PyFrozenSet[H] 83 +nim `==` pylib/builtins/set.html#==,SomePySet[H],set[H] proc `==`[H](self: SomePySet[H]; s: set[H]): bool 90 +nim `==` pylib/builtins/set.html#==,set[H],SomePySet[H] proc `==`[H](s: set[H]; self: SomePySet[H]): bool 95 +nim `<=` pylib/builtins/set.html#<=,SomePySet[H],set[H] proc `<=`[H](self: SomePySet[H]; s: set[H]): bool 90 +nim `<=` pylib/builtins/set.html#<=,set[H],SomePySet[H] proc `<=`[H](s: set[H]; self: SomePySet[H]): bool 96 +nim `<` pylib/builtins/set.html#<,SomePySet[H],set[H] proc `<`[H](self: SomePySet[H]; s: set[H]): bool 90 +nim `<` pylib/builtins/set.html#<,set[H],SomePySet[H] proc `<`[H](s: set[H]; self: SomePySet[H]): bool 97 +nim `^` pylib/builtins/set.html#^.t,M,S template `^`[H; M: SomePySet[H]; S: SomePySet[H]](self: M; s: S): M | S 105 +nim `&` pylib/builtins/set.html#&.t,M,S template `&`[H; M: SomePySet[H]; S: SomePySet[H]](self: M; s: S): M | S 106 +nim `|` pylib/builtins/set.html#|.t,M,S template `|`[H; M: SomePySet[H]; S: SomePySet[H]](self: M; s: S): M | S 107 +nim issuperset pylib/builtins/set.html#issuperset,SomePySet[H],SomePySet[H],S proc issuperset[H, S](self, o: SomePySet[H]; s: S): bool 112 +nim issubset pylib/builtins/set.html#issubset,SomePySet[H],SomePySet[H],S proc issubset[H, S](self, o: SomePySet[H]; s: S): bool 113 +nim intersection pylib/builtins/set.html#intersection,Self,S proc intersection[H; Self: SomePySet[H]; S: not PySet[H]](self: Self; s: S): Self 117 +nim intersection pylib/builtins/set.html#intersection,Self,auto,auto,varargs[S] proc intersection[H; Self: SomePySet[H]; S](self: Self; s1: auto; s2: auto;\n x: varargs[S]): Self 127 +nim union pylib/builtins/set.html#union,Self,S proc union[H; Self: SomePySet[H]; S: not PySet[H]](self: Self; s: S): Self 117 +nim union pylib/builtins/set.html#union,Self,auto,auto,varargs[S] proc union[H; Self: SomePySet[H]; S](self: Self; s1: auto; s2: auto; x: varargs[S]): Self 128 +nim difference pylib/builtins/set.html#difference,Self,S proc difference[H; Self: SomePySet[H]; S: not PySet[H]](self: Self; s: S): Self 117 +nim difference pylib/builtins/set.html#difference,Self,auto,auto,varargs[S] proc difference[H; Self: SomePySet[H]; S](self: Self; s1: auto; s2: auto;\n x: varargs[S]): Self 129 +nim symmetric_difference pylib/builtins/set.html#symmetric_difference,Self,S proc symmetric_difference[H; Self: SomePySet[H]; S: not PySet[H]](self: Self; s: S): Self 117 +nim symmetric_difference pylib/builtins/set.html#symmetric_difference,Self,auto,auto,varargs[S] proc symmetric_difference[H; Self: SomePySet[H]; S](self: Self; s1: auto; s2: auto;\n x: varargs[S]): Self 130 +nim isdisjoint pylib/builtins/set.html#isdisjoint,SomePySet[H],S proc isdisjoint[H, S](self: SomePySet[H]; s: S): bool 132 +nim add pylib/builtins/set.html#add,PySet[H],H proc add[H](self: var PySet[H]; x: H) 135 +nim `discard` pylib/builtins/set.html#discard,PySet[H],H proc `discard`[H](self: var PySet[H]; ele: H) 136 +nim pydiscard pylib/builtins/set.html#pydiscard,PySet[H],H proc pydiscard[H](self: var PySet[H]; ele: H) 139 +nim remove pylib/builtins/set.html#remove,PySet[H],H proc remove[H](self: var PySet[H]; ele: H) 143 +nim `-=` pylib/builtins/set.html#-=,SomePySet[H],S proc `-=`[H; S: SomeSet[H]](self: var SomePySet[H]; s: S) 149 +nim difference_update pylib/builtins/set.html#difference_update,SomePySet[H],I proc difference_update[H; I: Iterable[H]](self: var SomePySet[H]; i: I) 152 +nim `|=` pylib/builtins/set.html#|=,SomePySet[H],S proc `|=`[H; S: SomeSet[H]](self: var SomePySet[H]; s: S) 149 +nim update pylib/builtins/set.html#update,SomePySet[H],I proc update[H; I: Iterable[H]](self: var SomePySet[H]; i: I) 153 +nim `&=` pylib/builtins/set.html#&=,SomePySet[H],S proc `&=`[H; S: SomeSet[H]](self: var SomePySet[H]; s: S) 149 +nim intersection_update pylib/builtins/set.html#intersection_update,SomePySet[H],I proc intersection_update[H; I: Iterable[H]](self: var SomePySet[H]; i: I) 156 +nimgrp frozenset pylib/builtins/set.html#frozenset-procs-all proc 40 +nimgrp <= pylib/builtins/set.html#<=-procs-all proc 96 +nimgrp < pylib/builtins/set.html#<-procs-all proc 97 +nimgrp symmetricdifference pylib/builtins/set.html#symmetric_difference-procs-all proc 83 +nimgrp union pylib/builtins/set.html#union-procs-all proc 83 +nimgrp - pylib/builtins/set.html#--procs-all proc 83 nimgrp set pylib/builtins/set.html#set-procs-all proc 29 -nimgrp intersection pylib/builtins/set.html#intersection-procs-all proc 61 -nimgrp == pylib/builtins/set.html#==-procs-all proc 73 +nimgrp intersection pylib/builtins/set.html#intersection-procs-all proc 83 +nimgrp == pylib/builtins/set.html#==-procs-all proc 95 nimgrp pyset pylib/builtins/set.html#pyset-procs-all proc 21 -nimgrp difference pylib/builtins/set.html#difference-procs-all proc 61 +nimgrp difference pylib/builtins/set.html#difference-procs-all proc 83 heading set type pylib/builtins/set.html#set-type set type 0 heading Literal pylib/builtins/set.html#literal Literal 0 diff --git a/pylib/builtins/set_decl.html b/pylib/builtins/set_decl.html index ac70ffbf9..a2eb0e4a6 100644 --- a/pylib/builtins/set_decl.html +++ b/pylib/builtins/set_decl.html @@ -51,8 +51,11 @@- +
template copy[H](self: PySet[H]): PySet[H]+ + +++ + ++ +src/pylib/builtins/set_decl
@@ -62,24 +65,25 @@src/pylib/builtins/set_decl
Procs
asHashSet -
- asHashSet[H](self: PySet[H]): HashSet[H]
-- asHashSet[H](self: var PySet[H]): var HashSet[H]
+- asHashSet[H](self: SomePySet[H]): HashSet[H]
+- asHashSet[H](self: var SomePySet[H]): var HashSet[H]
clear @@ -87,23 +91,37 @@
+ +src/pylib/builtins/set_decl
inner_incl +
- inner_incl[H](self: var PyFrozenSet[H]; x: H)
len -
+- len(self: PySet): int
+- len(self: SomePySet): int
+ +newPyFrozenSet +
- newPyFrozenSet[H](h: HashSet[H]): PyFrozenSet[H]
+- newPyFrozenSet[H](initialSize = defaultInitialSize): PyFrozenSet[H]
newPySet
- newPySet[H](h: HashSet[H]): PySet[H]
+- newPySet[H](initialSize = defaultInitialSize): PySet[H]
pop @@ -111,7 +129,8 @@
@@ -123,7 +142,7 @@src/pylib/builtins/set_decl
src/pylib/builtins/set_decl
Iterators
@@ -144,13 +163,34 @@
src/pylib/builtins/set_decl
Types
-
+ ++ @@ -172,75 +222,85 @@++ @@ -160,8 +200,18 @@- +
PyFrozenSet[H] = frozenset[H]- + + + Source +Edit + +
+Types
- - Source -Edit + Source +Edit + +
+Types
Procs
-diff --git a/pylib/ops.html b/pylib/ops.html index 91e8e8ceb..82b9a4576 100644 --- a/pylib/ops.html +++ b/pylib/ops.html @@ -525,7 +525,7 @@+++- +
func `$`(self: PyFrozenSet): string- + + + Source +Edit + +
+--diff --git a/pylib/numTypes.html b/pylib/numTypes.html index bd8351856..9c9576501 100644 --- a/pylib/numTypes.html +++ b/pylib/numTypes.html @@ -420,7 +420,7 @@--diff --git a/pylib/noneType.html b/pylib/noneType.html index 3180332cf..56d95c379 100644 --- a/pylib/noneType.html +++ b/pylib/noneType.html @@ -115,7 +115,7 @@-- +diff --git a/pylib/io_abc.html b/pylib/io_abc.html index 8bfd4d666..028dc64c9 100644 --- a/pylib/io_abc.html +++ b/pylib/io_abc.html @@ -254,7 +254,7 @@++ func hash[H](self: PyFrozenSet[H]): int- @@ -286,26 +359,62 @@
Procs
- +++ proc inner_incl[H](self: var PyFrozenSet[H]; x: H)- - Source -Edit + Source +Edit
- +++ @@ -330,21 +449,31 @@++- +
func newPyFrozenSet[H](h: HashSet[H]): PyFrozenSet[H]- + + + Source +Edit + +
++@@ -317,8 +426,18 @@- +
func newPyFrozenSet[H](initialSize = defaultInitialSize): PyFrozenSet[H]- + + + Source +Edit
Procs
- - Source -Edit + Source +Edit + +
+Procs
- - Source -Edit + Source +Edit
-diff --git a/pylib/io.html b/pylib/io.html index 09b5a001d..0755fe4a6 100644 --- a/pylib/io.html +++ b/pylib/io.html @@ -94,7 +94,7 @@+++ @@ -357,13 +486,13 @@- +
func repr(self: PyFrozenSet): string- + + + Source +Edit + +
+Procs
Iterators
-diff --git a/pylib/builtins/set_decl.idx b/pylib/builtins/set_decl.idx index ed64907f0..89ff31dec 100644 --- a/pylib/builtins/set_decl.idx +++ b/pylib/builtins/set_decl.idx @@ -1,19 +1,33 @@ nimTitle set_decl pylib/builtins/set_decl.html module src/pylib/builtins/set_decl 0 -nim set pylib/builtins/set_decl.html#set type set 5 -nim PySet pylib/builtins/set_decl.html#PySet type PySet 7 -nim asHashSet pylib/builtins/set_decl.html#asHashSet,PySet[H] proc asHashSet[H](self: PySet[H]): HashSet[H] 9 -nim asHashSet pylib/builtins/set_decl.html#asHashSet,PySet[H]_2 proc asHashSet[H](self: var PySet[H]): var HashSet[H] 10 -nim newPySet pylib/builtins/set_decl.html#newPySet,HashSet[H] proc newPySet[H](h: HashSet[H]): PySet[H] 11 -nim incl pylib/builtins/set_decl.html#incl,PySet[H],H proc incl[H](self: var PySet[H]; x: H) 13 -nim excl pylib/builtins/set_decl.html#excl,PySet[H],H proc excl[H](self: var PySet[H]; x: H) 14 -nim len pylib/builtins/set_decl.html#len,PySet proc len(self: PySet): int 16 -nim `$` pylib/builtins/set_decl.html#$,PySet proc `$`(self: PySet): string 17 -nim repr pylib/builtins/set_decl.html#repr,PySet proc repr(self: PySet): string 18 -nim clear pylib/builtins/set_decl.html#clear,PySet proc clear(self: var PySet): int 19 -nim `==` pylib/builtins/set_decl.html#==,PySet,PySet proc `==`(self, o: PySet): int 20 -nim `<=` pylib/builtins/set_decl.html#<=,PySet,PySet proc `<=`(self, o: PySet): int 21 -nim `<` pylib/builtins/set_decl.html#<,PySet,PySet proc `<`(self, o: PySet): int 22 -nim contains pylib/builtins/set_decl.html#contains,PySet[H],H proc contains[H](self: PySet[H]; x: H): bool 23 -nim pop pylib/builtins/set_decl.html#pop,PySet[H] proc pop[H](self: var PySet[H]): H 24 -nim items pylib/builtins/set_decl.html#items.i,PySet[H] iterator items[H](self: PySet[H]): H 25 -nimgrp ashashset pylib/builtins/set_decl.html#asHashSet-procs-all proc 9 +nim frozenset pylib/builtins/set_decl.html#frozenset type frozenset 6 +nim PyFrozenSet pylib/builtins/set_decl.html#PyFrozenSet type PyFrozenSet 8 +nim set pylib/builtins/set_decl.html#set type set 9 +nim PySet pylib/builtins/set_decl.html#PySet type PySet 11 +nim SomePySet pylib/builtins/set_decl.html#SomePySet type SomePySet 12 +nim hash pylib/builtins/set_decl.html#hash,PyFrozenSet[H] proc hash[H](self: PyFrozenSet[H]): int 14 +nim asHashSet pylib/builtins/set_decl.html#asHashSet,SomePySet[H] proc asHashSet[H](self: SomePySet[H]): HashSet[H] 16 +nim asHashSet pylib/builtins/set_decl.html#asHashSet,SomePySet[H]_2 proc asHashSet[H](self: var SomePySet[H]): var HashSet[H] 17 +nim newPySet pylib/builtins/set_decl.html#newPySet,HashSet[H] proc newPySet[H](h: HashSet[H]): PySet[H] 18 +nim newPyFrozenSet pylib/builtins/set_decl.html#newPyFrozenSet,HashSet[H] proc newPyFrozenSet[H](h: HashSet[H]): PyFrozenSet[H] 19 +nim newPySet pylib/builtins/set_decl.html#newPySet proc newPySet[H](initialSize = defaultInitialSize): PySet[H] 20 +nim newPyFrozenSet pylib/builtins/set_decl.html#newPyFrozenSet proc newPyFrozenSet[H](initialSize = defaultInitialSize): PyFrozenSet[H] 22 +nim inner_incl pylib/builtins/set_decl.html#inner_incl,PyFrozenSet[H],H proc inner_incl[H](self: var PyFrozenSet[H]; x: H) 25 +nim incl pylib/builtins/set_decl.html#incl,SomePySet[H],H proc incl[H](self: var SomePySet[H]; x: H) 27 +nim excl pylib/builtins/set_decl.html#excl,SomePySet[H],H proc excl[H](self: var SomePySet[H]; x: H) 28 +nim len pylib/builtins/set_decl.html#len,SomePySet proc len(self: SomePySet): int 30 +nim `$` pylib/builtins/set_decl.html#$,PySet proc `$`(self: PySet): string 31 +nim `$` pylib/builtins/set_decl.html#$,PyFrozenSet proc `$`(self: PyFrozenSet): string 32 +nim repr pylib/builtins/set_decl.html#repr,PySet proc repr(self: PySet): string 33 +nim repr pylib/builtins/set_decl.html#repr,PyFrozenSet proc repr(self: PyFrozenSet): string 34 +nim clear pylib/builtins/set_decl.html#clear,PySet proc clear(self: var PySet): int 35 +nim `==` pylib/builtins/set_decl.html#==,SomePySet,SomePySet proc `==`(self, o: SomePySet): int 36 +nim `<=` pylib/builtins/set_decl.html#<=,SomePySet,SomePySet proc `<=`(self, o: SomePySet): int 37 +nim `<` pylib/builtins/set_decl.html#<,SomePySet,SomePySet proc `<`(self, o: SomePySet): int 38 +nim contains pylib/builtins/set_decl.html#contains,SomePySet[H],H proc contains[H](self: SomePySet[H]; x: H): bool 39 +nim pop pylib/builtins/set_decl.html#pop,PySet[H] proc pop[H](self: var PySet[H]): H 40 +nim items pylib/builtins/set_decl.html#items.i,SomePySet[H] iterator items[H](self: SomePySet[H]): H 41 +nimgrp $ pylib/builtins/set_decl.html#$-procs-all proc 31 +nimgrp newpyfrozenset pylib/builtins/set_decl.html#newPyFrozenSet-procs-all proc 19 +nimgrp repr pylib/builtins/set_decl.html#repr-procs-all proc 33 +nimgrp ashashset pylib/builtins/set_decl.html#asHashSet-procs-all proc 16 +nimgrp newpyset pylib/builtins/set_decl.html#newPySet-procs-all proc 18 diff --git a/pylib/collections_abc.html b/pylib/collections_abc.html index 34d2e6d6c..b518f3afa 100644 --- a/pylib/collections_abc.html +++ b/pylib/collections_abc.html @@ -515,7 +515,7 @@Templates
Exports
Templates
Consts
Templates
Templates
Templates
Macros
Templates
Exports
Exports
Procs
- Made with Nim. Generated: 2024-06-29 04:46:37 UTC + Made with Nim. Generated: 2024-06-30 16:23:04 UTCExports
Templates
Procs
Exports
Exports
Iterators
Procs
Exports
Iterators
Iterators
Procs
Procs
diff --git a/pylib/pyerrors.html b/pylib/pyerrors.html index f12eb98d6..198e22334 100644 --- a/pylib/pyerrors.html +++ b/pylib/pyerrors.html @@ -83,7 +83,7 @@Exports
diff --git a/pylib/pyerrors/lkuperr.html b/pylib/pyerrors/lkuperr.html index 3224ccbb7..a0be52aa1 100644 --- a/pylib/pyerrors/lkuperr.html +++ b/pylib/pyerrors/lkuperr.html @@ -93,7 +93,7 @@Types
diff --git a/pylib/pyerrors/oserr.html b/pylib/pyerrors/oserr.html index 5dc10e195..8e3479b12 100644 --- a/pylib/pyerrors/oserr.html +++ b/pylib/pyerrors/oserr.html @@ -422,7 +422,7 @@Templates
diff --git a/pylib/pyerrors/rterr.html b/pylib/pyerrors/rterr.html index b79d67aaf..d414ef8fa 100644 --- a/pylib/pyerrors/rterr.html +++ b/pylib/pyerrors/rterr.html @@ -101,7 +101,7 @@Types
diff --git a/pylib/pyerrors/simperr.html b/pylib/pyerrors/simperr.html index 275265129..ecc1dc342 100644 --- a/pylib/pyerrors/simperr.html +++ b/pylib/pyerrors/simperr.html @@ -101,7 +101,7 @@Types
diff --git a/pylib/pystring.html b/pylib/pystring.html index 1cdfd3fb3..09231fc7d 100644 --- a/pylib/pystring.html +++ b/pylib/pystring.html @@ -83,7 +83,7 @@Exports
diff --git a/pylib/pystring/consts.html b/pylib/pystring/consts.html index 38e2aaeb0..6c7d86365 100644 --- a/pylib/pystring/consts.html +++ b/pylib/pystring/consts.html @@ -96,7 +96,7 @@Consts
diff --git a/pylib/pystring/format.html b/pylib/pystring/format.html index 62e4843ae..8235b48e2 100644 --- a/pylib/pystring/format.html +++ b/pylib/pystring/format.html @@ -118,7 +118,7 @@Templates
diff --git a/pylib/pystring/fstring.html b/pylib/pystring/fstring.html index 0add47e28..1fb0af303 100644 --- a/pylib/pystring/fstring.html +++ b/pylib/pystring/fstring.html @@ -229,7 +229,7 @@multiline
Exports
diff --git a/pylib/pystring/split/reimporter.html b/pylib/pystring/split/reimporter.html index 1af8ad4a6..c2d86fc3e 100644 --- a/pylib/pystring/split/reimporter.html +++ b/pylib/pystring/split/reimporter.html @@ -83,7 +83,7 @@Exports
diff --git a/pylib/pystring/split/rsplit.html b/pylib/pystring/split/rsplit.html index 3cf8e79da..42cbdcb53 100644 --- a/pylib/pystring/split/rsplit.html +++ b/pylib/pystring/split/rsplit.html @@ -151,7 +151,7 @@Iterators
diff --git a/pylib/pystring/split/rsplit_whitespace.html b/pylib/pystring/split/rsplit_whitespace.html index 8f8f3398e..17c8dde1f 100644 --- a/pylib/pystring/split/rsplit_whitespace.html +++ b/pylib/pystring/split/rsplit_whitespace.html @@ -106,7 +106,7 @@Procs
diff --git a/pylib/pystring/split/split.html b/pylib/pystring/split/split.html index d4422cdf8..ead4e7e59 100644 --- a/pylib/pystring/split/split.html +++ b/pylib/pystring/split/split.html @@ -189,7 +189,7 @@Exports
diff --git a/pylib/pystring/split/split_whitespace.html b/pylib/pystring/split/split_whitespace.html index 23a33ee7d..383947e8d 100644 --- a/pylib/pystring/split/split_whitespace.html +++ b/pylib/pystring/split/split_whitespace.html @@ -138,7 +138,7 @@Iterators
diff --git a/pylib/pystring/split/splitlinesIter.html b/pylib/pystring/split/splitlinesIter.html index 065d80049..614ad152d 100644 --- a/pylib/pystring/split/splitlinesIter.html +++ b/pylib/pystring/split/splitlinesIter.html @@ -106,7 +106,7 @@Iterators
diff --git a/pylib/pystring/strbltins.html b/pylib/pystring/strbltins.html index 052fec5ed..c3322e7ba 100644 --- a/pylib/pystring/strbltins.html +++ b/pylib/pystring/strbltins.html @@ -344,7 +344,7 @@Templates
diff --git a/pylib/pystring/strimpl.html b/pylib/pystring/strimpl.html index f14e7abf9..08ef40627 100644 --- a/pylib/pystring/strimpl.html +++ b/pylib/pystring/strimpl.html @@ -764,7 +764,7 @@
- Made with Nim. Generated: 2024-06-29 04:46:37 UTC + Made with Nim. Generated: 2024-06-30 16:23:04 UTC diff --git a/pylib/pystring/strip.html b/pylib/pystring/strip.html index ca2824995..758f1049a 100644 --- a/pylib/pystring/strip.html +++ b/pylib/pystring/strip.html @@ -174,7 +174,7 @@Procs
diff --git a/pylib/pystring/strmeth.html b/pylib/pystring/strmeth.html index 2d6ae8912..4f8532b21 100644 --- a/pylib/pystring/strmeth.html +++ b/pylib/pystring/strmeth.html @@ -847,7 +847,7 @@Exports
diff --git a/pylib/pystring/strops.html b/pylib/pystring/strops.html index 3272ecb0f..2a7471dc5 100644 --- a/pylib/pystring/strops.html +++ b/pylib/pystring/strops.html @@ -105,7 +105,7 @@Templates
diff --git a/pylib/pystring/strprefix.html b/pylib/pystring/strprefix.html index 591c9c249..791ec26c9 100644 --- a/pylib/pystring/strprefix.html +++ b/pylib/pystring/strprefix.html @@ -116,7 +116,7 @@Procs
diff --git a/pylib/pystring/translate.html b/pylib/pystring/translate.html index cf496c967..6842cfb6b 100644 --- a/pylib/pystring/translate.html +++ b/pylib/pystring/translate.html @@ -384,7 +384,7 @@Exports
diff --git a/pylib/pysugar.html b/pylib/pysugar.html index 00ff28184..811fa33f9 100644 --- a/pylib/pysugar.html +++ b/pylib/pysugar.html @@ -185,7 +185,7 @@Exports
diff --git a/pylib/pysugar/class.html b/pylib/pysugar/class.html index 72d39ce0c..9d5c0979f 100644 --- a/pylib/pysugar/class.html +++ b/pylib/pysugar/class.html @@ -130,7 +130,7 @@Macros
diff --git a/pylib/pysugar/pydef.html b/pylib/pysugar/pydef.html index 81ac1c1cf..9d9b314bf 100644 --- a/pylib/pysugar/pydef.html +++ b/pylib/pysugar/pydef.html @@ -198,7 +198,7 @@Macros
diff --git a/pylib/pysugar/pywith.html b/pylib/pysugar/pywith.html index 66b9bfa37..126e6000b 100644 --- a/pylib/pysugar/pywith.html +++ b/pylib/pysugar/pywith.html @@ -96,7 +96,7 @@Macros
diff --git a/pylib/pysugar/stmt/class.html b/pylib/pysugar/stmt/class.html index 51e7b9dcf..bc8f69590 100644 --- a/pylib/pysugar/stmt/class.html +++ b/pylib/pysugar/stmt/class.html @@ -188,7 +188,7 @@
- Made with Nim. Generated: 2024-06-29 04:46:48 UTC + Made with Nim. Generated: 2024-06-30 16:23:16 UTC diff --git a/pylib/pysugar/stmt/decorator.html b/pylib/pysugar/stmt/decorator.html index f5fdec0c6..9da1caf78 100644 --- a/pylib/pysugar/stmt/decorator.html +++ b/pylib/pysugar/stmt/decorator.html @@ -146,7 +146,7 @@Procs
diff --git a/pylib/pysugar/stmt/frame.html b/pylib/pysugar/stmt/frame.html index 7d08328b5..db396bc33 100644 --- a/pylib/pysugar/stmt/frame.html +++ b/pylib/pysugar/stmt/frame.html @@ -319,7 +319,7 @@Procs
diff --git a/pylib/pysugar/stmt/funcSignature.html b/pylib/pysugar/stmt/funcSignature.html index 105d9d856..90d2b91eb 100644 --- a/pylib/pysugar/stmt/funcSignature.html +++ b/pylib/pysugar/stmt/funcSignature.html @@ -99,7 +99,7 @@Procs
diff --git a/pylib/pysugar/stmt/pydef.html b/pylib/pysugar/stmt/pydef.html index feef10976..501628b8c 100644 --- a/pylib/pysugar/stmt/pydef.html +++ b/pylib/pysugar/stmt/pydef.html @@ -160,7 +160,7 @@Exports
diff --git a/pylib/pysugar/stmt/pyraise.html b/pylib/pysugar/stmt/pyraise.html index 5fdb31f70..09d0534b5 100644 --- a/pylib/pysugar/stmt/pyraise.html +++ b/pylib/pysugar/stmt/pyraise.html @@ -98,7 +98,7 @@Procs
diff --git a/pylib/pysugar/stmt/tonim.html b/pylib/pysugar/stmt/tonim.html index be6d3ce03..54b52645c 100644 --- a/pylib/pysugar/stmt/tonim.html +++ b/pylib/pysugar/stmt/tonim.html @@ -200,7 +200,7 @@Templates
diff --git a/pylib/pysugar/stmt/unpack.html b/pylib/pysugar/stmt/unpack.html index d600e7003..b2f1d7a4e 100644 --- a/pylib/pysugar/stmt/unpack.html +++ b/pylib/pysugar/stmt/unpack.html @@ -147,7 +147,7 @@Templates
diff --git a/pylib/pysugar/tonim.html b/pylib/pysugar/tonim.html index 50d10555a..9ee15203d 100644 --- a/pylib/pysugar/tonim.html +++ b/pylib/pysugar/tonim.html @@ -126,7 +126,7 @@Macros
diff --git a/pylib/pysugar/unpack.html b/pylib/pysugar/unpack.html index ccb183494..e650aa1bf 100644 --- a/pylib/pysugar/unpack.html +++ b/pylib/pysugar/unpack.html @@ -147,7 +147,7 @@Macros
diff --git a/pylib/stringlib/errHandle.html b/pylib/stringlib/errHandle.html index 8d3c5602c..de2965877 100644 --- a/pylib/stringlib/errHandle.html +++ b/pylib/stringlib/errHandle.html @@ -96,7 +96,7 @@Templates
diff --git a/pylib/stringlib/format.html b/pylib/stringlib/format.html index 0d98cf0b2..eb3dae8c2 100644 --- a/pylib/stringlib/format.html +++ b/pylib/stringlib/format.html @@ -150,7 +150,7 @@Exports
diff --git a/pylib/stringlib/formats.html b/pylib/stringlib/formats.html index af7933f34..e9ece386b 100644 --- a/pylib/stringlib/formats.html +++ b/pylib/stringlib/formats.html @@ -128,7 +128,7 @@Templates
diff --git a/pylib/stringlib/meth.html b/pylib/stringlib/meth.html index 1533e7531..b98e2a365 100644 --- a/pylib/stringlib/meth.html +++ b/pylib/stringlib/meth.html @@ -950,7 +950,7 @@Templates
diff --git a/pylib/stringlib/replaceWithCount.html b/pylib/stringlib/replaceWithCount.html index 7e2cd1015..97b6721a6 100644 --- a/pylib/stringlib/replaceWithCount.html +++ b/pylib/stringlib/replaceWithCount.html @@ -109,7 +109,7 @@Procs
diff --git a/pylib/stringlib/split/common.html b/pylib/stringlib/split/common.html index b42536718..2a3733cc6 100644 --- a/pylib/stringlib/split/common.html +++ b/pylib/stringlib/split/common.html @@ -223,7 +223,7 @@Templates
diff --git a/pylib/stringlib/split/reimporter.html b/pylib/stringlib/split/reimporter.html index 97627b6e7..5313fa96a 100644 --- a/pylib/stringlib/split/reimporter.html +++ b/pylib/stringlib/split/reimporter.html @@ -83,7 +83,7 @@Exports
diff --git a/pylib/stringlib/split/rsplit_whitespace.html b/pylib/stringlib/split/rsplit_whitespace.html index 4008617ff..bac776ac5 100644 --- a/pylib/stringlib/split/rsplit_whitespace.html +++ b/pylib/stringlib/split/rsplit_whitespace.html @@ -105,7 +105,7 @@Procs
diff --git a/pylib/stringlib/split/split_whitespace.html b/pylib/stringlib/split/split_whitespace.html index 8a7cd6be6..e0783f9a8 100644 --- a/pylib/stringlib/split/split_whitespace.html +++ b/pylib/stringlib/split/split_whitespace.html @@ -136,7 +136,7 @@Iterators
diff --git a/pylib/stringlib/split/splitlinesIter.html b/pylib/stringlib/split/splitlinesIter.html index 317b87226..74cd8a892 100644 --- a/pylib/stringlib/split/splitlinesIter.html +++ b/pylib/stringlib/split/splitlinesIter.html @@ -108,7 +108,7 @@Iterators
diff --git a/pylib/translateEscape.html b/pylib/translateEscape.html index 5452b12d2..c96f22893 100644 --- a/pylib/translateEscape.html +++ b/pylib/translateEscape.html @@ -128,7 +128,7 @@Macros
diff --git a/pylib/version.html b/pylib/version.html index c485cc949..10d921c8d 100644 --- a/pylib/version.html +++ b/pylib/version.html @@ -242,7 +242,7 @@Templates
diff --git a/theindex.html b/theindex.html index c5024d31b..033dc527e 100644 --- a/theindex.html +++ b/theindex.html @@ -38,6 +38,8 @@Index
- pyrange: proc `$`[T](rng: PyRange[T]): string
- set_decl: proc `$`(self: PyFrozenSet): string
+- set_decl: proc `$`(self: PySet): string
- io_abc: proc `$`(p: CanIOOpenT): string
@@ -68,11 +70,11 @@Index