A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-June/025202.html below:

[Python-Dev] textwrap.py

[Python-Dev] textwrap.py [Python-Dev] textwrap.pyGreg Ward gward@python.net
Fri, 7 Jun 2002 17:39:47 -0400
On 07 June 2002, Tim Peters said:
> Greg seems to want to do it via setting vrbls on subclasses.  I couldn't
> care less how it's done, so long as I have some way to wrap for readability
> in a fixed-width font.

No subclass required -- just an instance:

  wrapper = TextWrapper()
  wrapper.fix_sentence_endings = 0
  wrapper.wrap(...)

Not sure if "fix_sentence_endings" is the right spelling, but it'll do
for now.

no-i-do-NOT-know-what-a-strategy-class-is,

        Greg
-- 
Greg Ward - Unix weenie                                 gward@python.net
http://starship.python.net/~gward/
I just heard the SEVENTIES were over!!  And I was just getting in touch
with my LEISURE SUIT!!




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4