Deutsch   English   Français   Italiano  
<va5ifi$5h9$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!2.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: HenHanna <HenHanna@devnull.tb>
Newsgroups: comp.lang.python,comp.lang.lisp
Subject: Re: name of the package (or style) (Posting On Python-List
 Prohibited)
Date: Wed, 21 Aug 2024 13:25:20 -0700
Organization: A noiseless patient Spider
Lines: 81
Message-ID: <va5ifi$5h9$1@dont-email.me>
References: <va3rvp$3o8rf$1@dont-email.me> <va44g6$3pfsu$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 21 Aug 2024 22:25:23 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="1afe418dd980cf7c48cdb7c87c9aef77";
	logging-data="5673"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19Be/T/ueZJ2gucJK7kY4QdAMkV64CaCQ8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:/2WlAYTITsyYy9+cBzsO4+xxiIs=
Content-Language: en-US
In-Reply-To: <va44g6$3pfsu$1@dont-email.me>
Bytes: 3898

On 8/21/2024 12:20 AM, Lawrence D'Oliveiro wrote:
> On Tue, 20 Aug 2024 21:55:20 -0700, HenHanna wrote:
> 
>> What's the name of the package (or style) that uses
>>                     lots of  extra lines in Python programming?
> 
> Lawrence’s style:
> 
>      def write_invoice_entry_total(self, total_elapsed, hourly_rate, job_charge) :
>          if self.first_hours_entry != None :
>              self.item_para.addElement \
>                (
>                  odf.text.Span
>                    (
>                      text =
>                              "Total %s hour%s on %s @$%s"
>                          %
>                              (
>                                  format_common.my_format_elapsed(total_elapsed),
>                                  ("", "s")[self.first_hours_entry["time_worked"] > 3600],
>                                  format_common.my_format_date
>                                    (
>                                      self.first_hours_entry["when_worked"]
>                                    ),
>                                  format_common.my_format_amount(hourly_rate),
>                              )
>                    )
>                )
>          else :
>              add_elements \
>                (
>                  self.item_para,
>                  odf.text.LineBreak(),
>                  odf.text.Span
>                    (
>                      text =
>                              "Total %s hour%s @$%s"
>                          %
>                              (
>                                  format_common.my_format_elapsed(total_elapsed),
>                                  ("", "s")[total_elapsed > 3600],
>                                  format_common.my_format_amount(hourly_rate),
>                              )
>                    ),
>                )
>          #end if
>          add_elements \
>            (
>              self.item_para,
>              odf.text.Tab(),
>              odf.text.Span
>                (
>                  text ="$%s" % format_common.my_format_amount(job_charge)
>                ),
>            )
>          self.doc.text.addElement(self.item_para)
>          self.item_para = None
>      #end write_invoice_entry_total


___________________________

 >   odf.text.Span
 >     (
 >       text ="$%s" % format_common.my_format_amount(job_charge)
 >     ),
 > )

i think this look better like  this:

 > odf.text.Span
 >   ( text ="$%s" % format_common.my_format_amount(job_charge) ), )

OR  just one line.


_______________________

Giving [Close Parenthesis]   (or END or curly-bracket)   its own line
         ----------- if this is discussed anywhere, pls let me know!