[IronPython] Portable use of pickle.dumps()
Michael Foord
fuzzyman at voidspace.org.uk
Fri May 29 20:24:37 CEST 2009
Vernon Cole wrote:
> Follow up to my own comment...
>
> On Fri, May 29, 2009 at 11:38 AM, Vernon Cole <vernondcole at gmail.com
> <mailto:vernondcole at gmail.com>> wrote:
>
> . You could use a similar construct based on whether IronPython or
> CPython were in use.
>
>
> I note that effort is now going forward to port pywin32 to IronPython.
> When that happens, my code will break, because it uses:
> <code>
> try:
> import win32com.client
> onIronPython = False
> except ImportError: # implies running on IronPython
> onIronPython = True
> </code>
> in order to detect which environment it is on.
>
> I should change this for the next version of adodbapi.
>
> Question for the group:
> What is a better/best way to test for IronPython vs CPython?
sys.platform == 'cli'
Michael
> --
> Vernon
>
> P.S.
> Robert:
> Thanks for documenting this. I am contemplating a new fork of
> adodbapi based on ADO.NET <http://ADO.NET> rather than COM (my target
> is Linux/mono so COM is out of the question.) I will very likely run
> into this problem when/if I make that jump.
> --
> VC
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
More information about the Ironpython-users
mailing list