File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11name = " SymPy"
22uuid = " 24249f21-da20-56a4-8eb1-6a02cf4ae2e6"
3- version = " 2.3.2 "
3+ version = " 2.3.3 "
44
55[deps ]
66CommonEq = " 3709ef60-1bee-4518-9f2f-acd86f176c50"
Original file line number Diff line number Diff line change @@ -46,10 +46,12 @@ SymPyCore.:↓(x::Set) = _sympy_.sets.FiniteSet((↓(xi) for xi ∈ x)...)
4646SymPyCore.:↑ (:: Type{<:AbstractString} , x) = Sym(PyObject(x))
4747SymPyCore.:↑ (:: Type{<:Bool} , x) = Sym(x)
4848
49- function SymPyCore.:↑ (:: Type{PyCall.PyObject} , x)
49+ _Set(x) = Set(x)
50+ _Set(xs... ) = Set(xs)
51+ function SymPyCore.:↑ (u:: Type{PyCall.PyObject} , x)
5052 # check if container type
5153 # pybuiltin("set") allocates, as PyObject does
52- pyisinstance(x, _pyset_) && return Set (collect(Sym, x))
54+ pyisinstance(x, _pyset_) && return _Set (collect(map( Sym, x)) . .. )
5355 pyisinstance(x, _pytuple_) && return Tuple(↑ (xᵢ) for xᵢ ∈ x)
5456 pyisinstance(x, _pylist_) && return [↑ (xᵢ) for xᵢ ∈ x]
5557 pyisinstance(x, _pydict_) && return Dict(↑ (k) => ↑ (x[k]) for k ∈ x)
You can’t perform that action at this time.
0 commit comments