PEP 259: Revise to remove context-driven magic from print

Tim Roberts timr at probo.com
Fri Jun 15 02:10:29 EDT 2001


David LeBlanc <whisper at oz.nospamnet> wrote:
>
>Examples:
>
>a = "foo"
>b = "bar"
>raw_print foo bar ->> foobar  #no newline!
>raw_print foo,bar ->> foo bar #no newline!
>raw_print \n #newline! in quotes if needed.

<SMARTALECK> 
Actually, I  believe this will result in:

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
NameError: name 'foo' is not defined.

On the other hand,

raw_print a b  # foobar   no newline
raw_print a,b  # foo bar  no newline
</SMARTALECK>
--
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.



More information about the Python-list mailing list