Re: output problem

2009-01-18 Thread Pierre Bourdon
IIRC, Windows automatically add a newline after the program output.

On Fri, Jan 16, 2009 at 4:24 PM, Jean-Paul VALENTIN
jean-paul.valen...@ingenico.com wrote:
 Feature? the output of below Hello program he0.py started from command
 line looks as follows:
 F:\prompthe0.py
 Hello
 F:\prompt

 'Hello' was sent with sys.stdout.write, so without newline.
 But why cannot be output (more logically):
 F:\prompthe0.py
 HelloF:\prompt

 Is it normal? Is there any means or workaround to obtain that output if
 I wish??
 
 __
 #!/usr/bin/python
 #-*- coding: iso-8859-15 -*-
 import sys
 sys.stdout.write('Hello')


 About Ingenico: Ingenico is the world's leading provider of payment 
 solutions, with over 15 million terminals deployed across the globe. 
 Delivering the very latest secure electronic payment technologies, 
 transaction management and the widest range of value added services, Ingenico 
 is shaping the future direction of the payment solutions market. Leveraging 
 on its global presence and local expertise, Ingenico is reinforcing its 
 leadership by taking banks and businesses beyond payment through offering 
 comprehensive solutions, a true source of differentiation and new revenues 
 streams.
  This message may contain confidential and/or privileged information. If you 
 are not the addressee or authorized to receive this for the addressee, you 
 must not use, copy, disclose or take any action based on this message or any 
 information herein. If you have received this message in error, please advise 
 the sender immediately by reply e-mail and delete this message. Thank you for 
 your cooperation.
  P Please consider the environment before printing this e-mail


 --
 http://mail.python.org/mailman/listinfo/python-list

--
http://mail.python.org/mailman/listinfo/python-list


Re: output problem

2009-01-18 Thread 7stud
On Jan 16, 8:24 am, Jean-Paul VALENTIN Jean-
paul.valen...@ingenico.com wrote:
 Feature? the output of below Hello program he0.py started from command
 line looks as follows:
 F:\prompthe0.py
 Hello
 F:\prompt

 'Hello' was sent with sys.stdout.write, so without newline.
 But why cannot be output (more logically):
 F:\prompthe0.py
 HelloF:\prompt

 Is it normal? Is there any means or workaround to obtain that output if
 I wish??
 
 __
 #!/usr/bin/python
 #-*- coding: iso-8859-15 -*-
 import sys
 sys.stdout.write('Hello')


Not on a Mac:

import sys
sys.stdout.write(hello)

output:
$ python 6test.py
hello$

--
http://mail.python.org/mailman/listinfo/python-list