Partially make undefined Functions picklable (issue 1198)
Partially make undefined Functions picklable (issue 1198)

The fix, which is described at issue 1198, now makes it possible to pickle
functions in an interactive session.  For example

In [1]: import pickle

In [2]: pickle.dumps(f)
Out[2]: 'c__main__\nf\np0\n.'

However, it does not work in other situations. For example, in a regular
Python session, it will not work.  If you create a script with

import pickle
from sympy import Function
pickle.dumps(Function('f'))

it will not work.

However, this *does* fix many issues in SymPy Live, including issue 2600,
which prevented most examples using undefined Functions from working.

Unfortunately, the tests in test_pickle.py seem to be among the instances
where this doesn't work.  I don't know how to set up a test situation where
this does fix the problem.

This fix should be considered a temporary one. We really need to rewrite
Function so that it doesn't create classes on the fly (see issue 1688).

shikil/sympy,toolforger/sympy,jamesblunt/sympy,Mitchkoens/sympy,Designist/sympy,mafiya69/sympy,kevalds51/sympy,cswiercz/sympy,farhaanbukhsh/sympy,atreyv/sympy,MridulS/sympy,jerli/sympy,cccfran/sympy,pbrady/sympy,liangjiaxing/sympy,Gadal/sympy,Curious72/sympy,moble/sympy,Arafatk/sympy,ga7g08/sympy,Curious72/sympy,kmacinnis/sympy,Designist/sympy,pandeyadarsh/sympy,ahhda/sympy,kmacinnis/sympy,Arafatk/sympy,sahmed95/sympy,emon10005/sympy,atreyv/sympy,abhiii5459/sympy,meghana1995/sympy,wyom/sympy,asm666/sympy,yashsharan/sympy,MridulS/sympy,jbbskinny/sympy,cccfran/sympy,AunShiLord/sympy,yukoba/sympy,jbbskinny/sympy,Shaswat27/sympy,jerli/sympy,grevutiu-gabriel/sympy,Mitchkoens/sympy,iamutkarshtiwari/sympy,garvitr/sympy,grevutiu-gabriel/sympy,skidzo/sympy,ga7g08/sympy,ahhda/sympy,kaichogami/sympy,wyom/sympy,moble/sympy,shipci/sympy,oliverlee/sympy,ga7g08/sympy,Gadal/sympy,iamutkarshtiwari/sympy,sampadsaha5/sympy,skirpichev/omg,ahhda/sympy,toolforger/sympy,sahilshekhawat/sympy,Titan-C/sympy,postvakje/sympy,dqnykamp/sympy,hargup/sympy,AunShiLord/sympy,VaibhavAgarwalVA/sympy,cswiercz/sympy,Mitchkoens/sympy,VaibhavAgarwalVA/sympy,Gadal/sympy,jamesblunt/sympy,pandeyadarsh/sympy,AkademieOlympia/sympy,shikil/sympy,asm666/sympy,Titan-C/sympy,pbrady/sympy,hrashk/sympy,kmacinnis/sympy,Davidjohnwilson/sympy,Arafatk/sympy,skidzo/sympy,rahuldan/sympy,atsao72/sympy,kevalds51/sympy,dqnykamp/sympy,garvitr/sympy,atreyv/sympy,aktech/sympy,hargup/sympy,MechCoder/sympy,madan96/sympy,MechCoder/sympy,jerli/sympy,jbbskinny/sympy,emon10005/sympy,bukzor/sympy,chaffra/sympy,Sumith1896/sympy,Designist/sympy,aktech/sympy,VaibhavAgarwalVA/sympy,AunShiLord/sympy,drufat/sympy,madan96/sympy,dqnykamp/sympy,Titan-C/sympy,AkademieOlympia/sympy,jaimahajan1997/sympy,kaushik94/sympy,rahuldan/sympy,jaimahajan1997/sympy,jamesblunt/sympy,toolforger/sympy,chaffra/sympy,meghana1995/sympy,shipci/sympy,sampadsaha5/sympy,souravsingh/sympy,meghana1995/sympy,MridulS/sympy,abloomston/sympy,abhiii5459/sympy,saurabhjn76/sympy,yashsharan/sympy,drufat/sympy,MechCoder/sympy,Shaswat27/sympy,liangjiaxing/sympy,sunny94/temp,beni55/sympy,moble/sympy,hrashk/sympy,lindsayad/sympy,yukoba/sympy,wanglongqi/sympy,lidavidm/sympy,debugger22/sympy,shikil/sympy,bukzor/sympy,kumarkrishna/sympy,kaichogami/sympy,shipci/sympy,atsao72/sympy,sunny94/temp,yashsharan/sympy,asm666/sympy,vipulroxx/sympy,postvakje/sympy,souravsingh/sympy,abhiii5459/sympy,maniteja123/sympy,Curious72/sympy,chaffra/sympy,abloomston/sympy,farhaanbukhsh/sympy,beni55/sympy,sampadsaha5/sympy,ChristinaZografou/sympy,lindsayad/sympy,abloomston/sympy,sahmed95/sympy,Sumith1896/sympy,ChristinaZografou/sympy,lindsayad/sympy,farhaanbukhsh/sympy,wanglongqi/sympy,atsao72/sympy,aktech/sympy,yukoba/sympy,diofant/diofant,Davidjohnwilson/sympy,debugger22/sympy,vipulroxx/sympy,kevalds51/sympy,drufat/sympy,mafiya69/sympy,maniteja123/sympy,debugger22/sympy,iamutkarshtiwari/sympy,skidzo/sympy,madan96/sympy,saurabhjn76/sympy,Vishluck/sympy,kaushik94/sympy,AkademieOlympia/sympy,grevutiu-gabriel/sympy,hargup/sympy,kumarkrishna/sympy,bukzor/sympy,cswiercz/sympy,Shaswat27/sympy,pbrady/sympy,emon10005/sympy,jaimahajan1997/sympy,lidavidm/sympy,kaichogami/sympy,liangjiaxing/sympy,wyom/sympy,oliverlee/sympy,lidavidm/sympy,garvitr/sympy,Davidjohnwilson/sympy,Vishluck/sympy,sahilshekhawat/sympy,saurabhjn76/sympy,mcdaniel67/sympy,cccfran/sympy,sahilshekhawat/sympy,ChristinaZografou/sympy,sahmed95/sympy,kaushik94/sympy,oliverlee/sympy,Vishluck/sympy,maniteja123/sympy,mcdaniel67/sympy,kumarkrishna/sympy,rahuldan/sympy,vipulroxx/sympy,Sumith1896/sympy,souravsingh/sympy,beni55/sympy,wanglongqi/sympy,pandeyadarsh/sympy,sunny94/temp,mafiya69/sympy,postvakje/sympy,mcdaniel67/sympy,hrashk/sympy