Talk:Convert seconds to compound duration: Difference between revisions

Line 11:
 
Another issue: is it really necessary to post code in the interactive prompt format? It makes testing the code unpleasant because of the ">>>" prompt, and the mixed tab/space indentations looks like crap in my text editor. It may be useful to show users how to use the interactive shell, but since majority of coding is not going to be done in this fashion, having half of the python examples on RC so presented is overdoing it. --[[User:Ledrug|Ledrug]] ([[User talk:Ledrug|talk]]) 04:40, 7 June 2015 (UTC)
 
: The current specification clearly states that the result for 0 seconds should be blank (or the empty string). And it gives no guidance about what to do with negative numbers. I'm fine with that - makes for a clean implementation. Specifically:
 
::<li>However, '''only''' include quantities with non-zero values in the output (e.g. ''...'').
 
: Meanwhile, as a curiosity question - would the python language spec lose anything if it were changed so that prompts (at least the default prompt) were neutral? Copy and paste of lines containing previously run statements is indeed a handy tool... --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 11:42, 7 June 2015 (UTC)
6,951

edits