Revision: 560
http://rpy.svn.sourceforge.net/rpy/?rev=560&view=rev
Author: lgautier
Date: 2008-06-10 10:22:41 -0700 (Tue, 10 Jun 2008)
Log Message:
-----------
Fixed the __str__ issue on win32 (tests ok now).
Modified Paths:
--------------
branches/rpy_nextgen/rpy/robjects/__init__.py
Modified: branches/rpy_nextgen/rpy/robjects/__init__.py
===================================================================
--- branches/rpy_nextgen/rpy/robjects/__init__.py 2008-06-10 05:02:04 UTC
(rev 559)
+++ branches/rpy_nextgen/rpy/robjects/__init__.py 2008-06-10 17:22:41 UTC
(rev 560)
@@ -84,14 +84,15 @@
def __str__(self):
if sys.platform == 'win32':
tfile = baseNameSpaceEnv["tempfile"]()
- tmp = baseNameSpaceEnv["file"](tfile)
+ tmp = baseNameSpaceEnv["file"](tfile, open="w")
else:
tmp = baseNameSpaceEnv["fifo"]("")
baseNameSpaceEnv["sink"](tmp)
r.show(self)
baseNameSpaceEnv["sink"]()
if sys.platform == 'win32':
- baseNameSpaceEnv["close"](tfile)
+ baseNameSpaceEnv["close"](tmp)
+ tmp = baseNameSpaceEnv["file"](tfile, open="r")
s = baseNameSpaceEnv["readLines"](tmp)
if sys.platform == 'win32':
baseNameSpaceEnv["unlink"](tfile)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
rpy-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rpy-list