Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pycodegen
pystencils
Merge requests
!265
Fix deepcopy issue with Sympy 1.9
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix deepcopy issue with Sympy 1.9
sympy19
into
master
Overview
0
Commits
1
Pipelines
2
Changes
2
Merged
Michael Kuron
requested to merge
sympy19
into
master
3 years ago
Overview
0
Commits
1
Pipelines
2
Changes
2
Expand
Fixes
#40 (closed)
. Caused by
https://github.com/sympy/sympy/pull/21260
.
0
0
Merge request reports
Compare
master
version 1
95eab5ea
3 years ago
master (base)
and
version 1
latest version
c9e59035
1 commit,
3 years ago
version 1
95eab5ea
1 commit,
3 years ago
2 files
+
38
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
pystencils/data_types.py
+
21
−
0
Options
@@ -590,6 +590,27 @@ if int(sympy_version[0]) * 100 + int(sympy_version[1]) >= 109:
@@ -590,6 +590,27 @@ if int(sympy_version[0]) * 100 + int(sympy_version[1]) >= 109:
sp
.
Number
.
__getstate__
=
sp
.
Basic
.
__getstate__
sp
.
Number
.
__getstate__
=
sp
.
Basic
.
__getstate__
del
sp
.
Basic
.
__getstate__
del
sp
.
Basic
.
__getstate__
class
FunctorWithStoredKwargs
:
def
__init__
(
self
,
func
,
**
kwargs
):
self
.
func
=
func
self
.
kwargs
=
kwargs
def
__call__
(
self
,
*
args
):
return
self
.
func
(
*
args
,
**
self
.
kwargs
)
# __reduce_ex__ would strip kwargs, so we override it
def
basic_reduce_ex
(
self
,
protocol
):
if
hasattr
(
self
,
'
__getnewargs_ex__
'
):
args
,
kwargs
=
self
.
__getnewargs_ex__
()
else
:
args
,
kwargs
=
self
.
__getnewargs__
(),
{}
if
hasattr
(
self
,
'
__getstate__
'
):
state
=
self
.
__getstate__
()
else
:
state
=
None
return
FunctorWithStoredKwargs
(
type
(
self
),
**
kwargs
),
args
,
state
sp
.
Number
.
__reduce_ex__
=
sp
.
Basic
.
__reduce_ex__
sp
.
Basic
.
__reduce_ex__
=
basic_reduce_ex
class
Type
(
sp
.
Atom
):
class
Type
(
sp
.
Atom
):
def
__new__
(
cls
,
*
args
,
**
kwargs
):
def
__new__
(
cls
,
*
args
,
**
kwargs
):
Loading