We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28ba994 commit a62e4bbCopy full SHA for a62e4bb
src/Core/builtins.jl
@@ -1088,6 +1088,7 @@ end
1088
"""
1089
pydict(x)
1090
pydict(; x...)
1091
+ pydict(x::Pair...)
1092
1093
Convert `x` to a Python `dict`. In the second form, the keys are strings.
1094
@@ -1098,7 +1099,7 @@ pydict(; kwargs...) =
1098
1099
isempty(kwargs) ? pynew(errcheck(C.PyDict_New())) : pystrdict_fromiter(kwargs)
1100
pydict(x) = ispy(x) ? pybuiltins.dict(x) : pydict_fromiter(x)
1101
pydict(x::NamedTuple) = pydict(; x...)
-pydict(pairs::Pair...) = pydict(pairs)
1102
+pydict(pair::Pair, pairs::Pair...) = pydict((pair, pairs...))
1103
export pydict
1104
1105
### datetime
0 commit comments