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


Groups > comp.lang.python > #66007

Re: Top down Python

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'say,': 0.05; 'subject:Python': 0.06; 'lines,': 0.07; 'preference': 0.07; 'variables': 0.07; 'if,': 0.09; 'plug': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'specific.': 0.09; 'python': 0.11; 'background.': 0.14; 'already,': 0.16; 'complained': 0.16; 'finney': 0.16; 'merely': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reliably': 0.16; 'repl': 0.16; 'simplicity.': 0.16; ':-)': 0.16; 'ignore': 0.16; 'fix': 0.17; 'library': 0.18; 'users.': 0.18; 'variable': 0.18; 'dependent': 0.19; 'written': 0.21; 'command': 0.22; 'header:User-Agent:1': 0.23; '(such': 0.24; 'environment': 0.24; 'values': 0.27; 'header:X-Complaints-To:1': 0.27; 'went': 0.31; 'code': 0.31; 'lines': 0.31; 'with,': 0.31; 'wright': 0.31; 'writes:': 0.31; 'probably': 0.32; 'run': 0.32; 'up.': 0.33; 'something': 0.35; 'but': 0.35; 'really': 0.36; 'received:com.au': 0.36; "didn't": 0.36; "i'll": 0.36; 'possible': 0.36; 'wrong': 0.37; 'too': 0.37; 'operating': 0.37; 'manager': 0.38; 'ben': 0.38; 'window': 0.38; 'needed': 0.38; 'to:addr:python-list': 0.38; "couldn't": 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'most': 0.60; 'john': 0.61; 'skip:* 10': 0.61; 'simple': 0.61; "you'll": 0.62; 'making': 0.63; 'skip:n 10': 0.64; 'more': 0.64; 'within': 0.65; 'close': 0.67; 'deeply': 0.69; 'received:125': 0.84; 'subject:Top': 0.84; 'simple!': 0.91; 'hand,': 0.93; 'picture': 0.97
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Ben Finney <ben+python@benfinney.id.au>
Subject Re: Top down Python
Date Wed, 12 Feb 2014 19:09:14 +1100
References <52FB1D27.8090009@allsup.co>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Gmane-NNTP-Posting-Host vmx15867.hosting24.com.au
X-Public-Key-ID 0xBD41714B
X-Public-Key-Fingerprint 9CFE 12B0 791A 4267 887F 520C B7AC 2E51 BD41 714B
X-Public-Key-URL http://www.benfinney.id.au/contact/bfinney-gpg.asc
X-Post-From Ben Finney <bignose+hates-spam@benfinney.id.au>
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
Cancel-Lock sha1:AF06rqu2efQkBR3XwfUBff4wF2c=
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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>
Newsgroups comp.lang.python
Message-ID <mailman.6733.1392192568.18130.python-list@python.org> (permalink)
Lines 47
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1392192568 news.xs4all.nl 2853 [2001:888:2000:d::a6]:41634
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:66007

Show key headers only | View raw


John Allsup <pydev@allsup.co> writes:

> What is needed for proper learning is near-absolute simplicity.

I think that's too simplistic :-) but I'll take it as merely a
preference on your part for simplicity at this time.

> I want to be able to say:
>     1. Put a nice picture on the background.
>     2. Put a terminal window with, say, 64x20 lines, dead centre.

Those are deeply dependent on exactly what operating system and desktop
environment and window manager your computer is running.

What exact values for those variables do you want
the simple program to assume?

No cross-platform standard library (such as the Python standard library)
will be able to reliably do those things without making a huge amount of
assumption of the operating environment, much of which will be wrong for
a large number of users.

If you can fix each of those things precisely so that you can ignore all
other possible values, then you can probably come up with a simple
program to do them.

>     3. Run a simple REPL program written in Python or Ruby within it.

Python has its own REPL, of course; you get it when you run ‘python’
from a command line. Simple!

If, on the other hand, you want a REPL that plugs into something *other
than* Python, what do you want it to plug into? You have a Python REPL
already, so if you want something else you'll need to be specific.

> I do not really want to write any more lines of code than I need to.

For what goal? Python optimises your lines of code for *communicating
with other programmers*, which in my view is pretty close to the most
important variable to be optimising.

-- 
 \     “I went camping and borrowed a circus tent by mistake. I didn't |
  `\      notice until I got it set up. People complained because they |
_o__)                           couldn't see the lake.” —Steven Wright |
Ben Finney

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


Thread

Re: Top down Python Ben Finney <ben+python@benfinney.id.au> - 2014-02-12 19:09 +1100

csiph-web