Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #49238

Re: A certainl part of an if() structure never gets executed.

From Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de>
Newsgroups comp.lang.python
Subject Re: A certainl part of an if() structure never gets executed.
Date 2013-06-26 11:07 +0200
Organization A not so newly installed InterNetNews server
Message-ID <kqeb18$4cn$1@r01.glglgl.de> (permalink)
References <2bc90d3b-09c2-4315-9357-ff7f039465e0@googlegroups.com> <mailman.3042.1370990594.3114.python-list@python.org> <af46c637-10dc-416a-ae57-45d30bc4dabb@googlegroups.com> <7bf085ea-001f-4eed-9ed9-75f12165ac79@googlegroups.com>

Show all headers | View raw


Am 12.06.2013 03:46 schrieb Rick Johnson:
> On Tuesday, June 11, 2013 8:25:30 PM UTC-5, nagia....@gmail.com wrote:
>
>> is there a shorter and more clear way to write this?
>> i didnt understood what Rick trie to told me.
>
> My example included verbatim copies of interactive sessions within the Python command line. You might understand them better if you open the Python command line and type each command in one-by-one. Here is an algoritm that explains the process:
>
> open_command_window()
> whilst learning or debugging:
>      type_command()
>      press_enter()
>      observe_output()
>      if self.badder.is_full:
>          take_potty_break()
> close_command_window()

with command_window():
    whilst learning or debugging:
       type_command()
       press_enter()
       observe_output()
       if self.badder.is_full:
           take_potty_break()

looks nicer.

SCNR


Thomas

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: A certainl part of an if() structure never gets executed. Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2013-06-26 11:07 +0200

csiph-web