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

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: import locale and print range on same line
Date Sun, 24 Jan 2016 01:53:04 +1100
Lines 21
Message-ID <mailman.179.1453560787.15297.python-list@python.org> (permalink)
References <2bda88dd-82e3-4e43-b49c-3945a0befdc2@googlegroups.com> <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>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de 4w98jkk+q1W3m+FvKtHUCAbN/my6JA166mogo84bE5pQ==
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'received:209.85.223': 0.03; 'puts': 0.07; 'cc:addr:python-list': 0.09; 'builtins': 0.09; 'situation.': 0.09; 'subject:same': 0.09; 'underscore': 0.09; 'python': 0.10; 'jan': 0.11; '"good': 0.16; '"is': 0.16; '2016': 0.16; '24,': 0.16; 'commandline': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'instance:': 0.16; 'is).': 0.16; 'received:209.85.223.173': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:import': 0.16; 'uncommon': 0.16; 'wrote:': 0.16; 'restrictions': 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'prevent': 0.20; 'fix': 0.21; "we'd": 0.21; "aren't": 0.22; 'trying': 0.22; 'am,': 0.23; 'fit': 0.23; 'header:In-Reply-To:1': 0.24; "doesn't": 0.26; 'question': 0.27; 'message-id:@mail.gmail.com': 0.27; 'context,': 0.29; 'intellectual': 0.29; 'invoke': 0.29; 'anywhere': 0.30; 'code': 0.30; 'normally': 0.30; 'especially': 0.32; 'point': 0.33; 'problem': 0.33; 'instead,': 0.33; 'received:google.com': 0.35; 'question,': 0.35; 'but': 0.36; 'received:209.85': 0.36; 'possible': 0.36; 'subject:: ': 0.37; 'thought': 0.37; 'received:209': 0.38; 'why': 0.39; 'called': 0.40; 'questions': 0.40; 'your': 0.60; 'challenge': 0.61; 'within': 0.64; 'goal': 0.64; 'it!': 0.64; 'answer.': 0.72; 'special': 0.73; 'chrisa': 0.84; 'view;': 0.84; 'to:none': 0.91; 'responses': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=QYno/+xetoHNLyOFKmLMxxvXemGPukSHjVZCF7x0l7c=; b=QOTMfj2DtKEgp5wny5ZihCwtln7zJoy+Fa6Qj7LlcMVm7KuUNaN+7ey/MYhueIdw15 L1F5RgkNRNMv/WY3IwfYb/WWLT2nn/1eD3i4rmFISsYNCAqUtWuCAoxeE6mJp01KQ7pI 4jJP9AgFVQ5DusUBwFda7SYBNv/FtZFSfPCWIQrV6TRGrde/atFlnCYFA4LL8AqT/59b YrXWv8QdI1nBZRq6h/qIOOtFOWfKVUMDp1fUvyeZoyvKifx8v8va5AOtidYfmjVit+KF qUrLFTeuBaBjsUZ0DPOAd9T53IPDGEYp56l5gRD1/b/U7HVIIQwTHEQT7CGxA50uVOE7 6PXg==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc:content-type; bh=QYno/+xetoHNLyOFKmLMxxvXemGPukSHjVZCF7x0l7c=; b=b12XPvlpUgCxvwSvroQGS3LDI9fWMJgpT0XeWxYhfEGjYmpN3zx35xaMO7kTv3qf6+ joDw7BB3Q83erK9DjI/cZHXdKyKyRXxs4b+OcdgM+itsfLIL97+Q3gUOMR4lJs/8BSlG 9C2IgWkiMDTraoVTp04EJlScD7MHtX4pj/mHFWhy+a1XCiXw7uDTXy0RUp469Y7J84lh a/PZEN/vpoX48svgpQhNU8/zzmNCHDNkXYbt713KMRg5irre+uO/J+u4PE08BnpO5str t77BW4Kzh52ohuF4MNcRHwi3nRy//ScqdBv9fYZVvHp6b6M4uGFm56tPC1oXYrR6YdAw kgbw==
X-Gm-Message-State AG10YOSa0MJLWUt5D1IeI2V6MImIhGfTVl+b6zs5a4LNESLRb8bXfIev5TJGEecJxcgKLumWH4lDKcMMK00NJg==
X-Received by 10.107.47.162 with SMTP id v34mr8221951iov.19.1453560784450; Sat, 23 Jan 2016 06:53:04 -0800 (PST)
In-Reply-To <a2ea8964-0f50-4580-90c3-fba52177bcaa@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:102043

Show key headers only | 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