Ticket #79 (closed defect: fixed)

Opened 6 months ago

Last modified 6 months ago

Problems with printf using the "%r" format

Reported by: sontag Assigned to: sontag
Priority: normal Milestone: PyRAF 1.6
Component: none Version:
Severity: normal Keywords:
Cc:

Description

Phil found the following issue:

--> d = N.zeros (2, dtype='>i4')
--> d[1] = 2147483647
--> print d.dtype
>i4
--> iraf.printf ("%32r2\n", d[1])
Traceback (innermost last):
 File "<console>", line 1, in <module>
 File "<string>", line 1
   0x7fffffffLL
              ^
SyntaxError: unexpected EOF while parsing


Another issue is the printing of a negative number this way emits a blank line.

Change History

02/12/08 09:49:45 changed by sontag

The unexpected EOF happens on 32-bit Linux but not 64-bit Linux or 32-bit OSX.

02/12/08 09:50:08 changed by sontag

  • status changed from new to assigned.

02/12/08 10:43:33 changed by sontag

  • status changed from assigned to closed.
  • resolution set to fixed.

Changes in rev 817.

02/14/08 08:20:26 changed by sontag

That is, r817.