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


Groups > comp.lang.python > #102043

Re: import locale and print range on same line

From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: import locale and print range on same line
Date 2016-01-24 01:53 +1100
Message-ID <mailman.179.1453560787.15297.python-list@python.org> (permalink)
References (1 earlier) <56a37b1e$0$1612$c3e8da3$5496439d@news.astraweb.com> <mailman.176.1453555148.15297.python-list@python.org> <56a383fa$0$1593$c3e8da3$5496439d@news.astraweb.com> <mailman.177.1453557489.15297.python-list@python.org> <a2ea8964-0f50-4580-90c3-fba52177bcaa@googlegroups.com>

Show all headers | View raw


On Sun, Jan 24, 2016 at 1:03 AM, Ramo <raiwil@gmail.com> wrote:
> The reason why I want to have it on onto one line has nothing to do with my question, "why doesn't it work on one line" :)
>
> But if you want to know it, I use this python code in the commandline of a texteditor :)

Called it! :)

It actually has a lot to do with your question, because it puts
special restrictions on the answer. By giving context, you prevent
answers like Steven's that are trying to fix what is thought to be a
faulty assumption; instead, we'll attack the problem as an
intellectual challenge - how can we achieve this goal within these
restrictions? Worded that way, the question will definitely get
responses that aren't what we'd normally call "good code", but they
fit the situation. It's not uncommon to have questions like this,
especially from a security point of view; for instance: "Is it
possible to invoke os.system() without using any builtins or imports,
and without having an underscore anywhere in the code?" (answer: yes,
it is).

ChrisA

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


Thread

import locale and print range on same line raiwil@gmail.com - 2016-01-23 02:02 -0800
  Re: import locale and print range on same line Marko Rauhamaa <marko@pacujo.net> - 2016-01-23 12:36 +0200
    Re: import locale and print range on same line Vlastimil Brom <vlastimil.brom@gmail.com> - 2016-01-23 12:12 +0100
      Re: import locale and print range on same line Ramo <raiwil@gmail.com> - 2016-01-23 03:57 -0800
  Re: import locale and print range on same line Steven D'Aprano <steve@pearwood.info> - 2016-01-24 00:07 +1100
    Re: import locale and print range on same line Chris Angelico <rosuav@gmail.com> - 2016-01-24 00:19 +1100
      Re: import locale and print range on same line Steven D'Aprano <steve@pearwood.info> - 2016-01-24 00:45 +1100
        Re: import locale and print range on same line Chris Angelico <rosuav@gmail.com> - 2016-01-24 00:58 +1100
          Re: import locale and print range on same line Ramo <raiwil@gmail.com> - 2016-01-23 06:03 -0800
            Re: import locale and print range on same line Chris Angelico <rosuav@gmail.com> - 2016-01-24 01:53 +1100
        Re: import locale and print range on same line Terry Reedy <tjreedy@udel.edu> - 2016-01-23 21:45 -0500
        Re: import locale and print range on same line Chris Angelico <rosuav@gmail.com> - 2016-01-24 13:51 +1100
        Re: import locale and print range on same line eryk sun <eryksun@gmail.com> - 2016-01-24 02:00 -0600

csiph-web