In article <mailman.52.1507567528.12137.python-l...@python.org>, 
__pete...@web.de says...
> 
> John Black wrote:
> 
> > I want sep="" to be the default without having to specify it every time I
> > call print.  Is that possible?
> 
> No, but you can replace the print function with your own:
> 
> >>> print = functools.partial(print, sep="")
> >>> print("I", "recommend", "you", "choose", "another", "name", "and", 
> "preserve", "your", "sanity")
> Irecommendyouchooseanothernameandpreserveyoursanity
> 
> And everybody else's.

    print=functools.partial(print, sep="")
NameError: name 'functools' is not defined

John Black
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to