Jaap Spies wrote:
> William Stein wrote:

In
          aString = self.eval('cputime(%s)'%t)
          IDENTITY_MAP = ''.join([chr(x) for x in range(256)])
          BAD_MAP = ''.join([chr(x) for x in range(32) + [124]])
          aNewString = aString.translate(IDENTITY_MAP, BAD_MAP)
          return float(aNewString)

only the control characters are filtered out.

What can be the meaning of escape followed by a string like "[0;31m [0m"
(also see below)? And where is it coming from?

>> I wonder if the notebook works kind of funky for you on that
>> same computer?  I mean, if there are funny control codes everywhere
>> in sage0, then that would impact the notebook as well, possibly.
>>
> 
> This test first failed in sage-2.10.1.alpha1. As did the notebook()
> with gnutls related problems.
> I removed the alpha0, but on sage-2.10, I got
> sage -t  devel/sage-main/sage/interfaces/sage0.py           ^[[?1034h
>           [23.4 s]
> 
> ------------------------------------------------
> Note the strange characters, or are they intentionally there?
> 

In test.log I see them all the time:

sage -t  devel/sage-main/sage/monoids/free_abelian_monoid_element.py^[[?1034h
          [1.6 s]
sage -t  devel/sage-main/sage/monoids/string_ops.py         ^[[?1034h
          [1.5 s]
sage -t  devel/sage-main/sage/monoids/free_monoid.py        ^[[?1034h
          [1.6 s]
sage -t  devel/sage-main/sage/monoids/monoid.py             ^[[?1034h
          [1.5 s]
sage -t  devel/sage-main/sage/monoids/string_monoid.py      ^[[?1034h




Jaap


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to