Re: Great Math Mystery

2015-04-16 Thread Matthew Barnett
Do you mean Pythonesque or Pythonic?-- https://mail.python.org/mailman/listinfo/python-list

Re: Great Math Mystery

2015-04-16 Thread Ben Bacarisse
Steven D'Aprano writes: > On Fri, 17 Apr 2015 07:15 am, Seymore4Head wrote: > >> I am guessing that a few here might find this program interesting. >> http://video.pbs.org/video/2365464997/ > > For the sake of those of us with limited access to the Internet at the > moment (say, we're behind a co

Re: Great Math Mystery

2015-04-16 Thread Ben Finney
Seymore4Head writes: > I am guessing that a few here might find this program interesting. Without any context to say what it's about or why it's relevant in this forum, that message is effectively noise. Please take more care to consider your audience. -- \“You can't have everything;

Re: Great Math Mystery

2015-04-16 Thread Steven D'Aprano
On Fri, 17 Apr 2015 07:15 am, Seymore4Head wrote: > I am guessing that a few here might find this program interesting. > http://video.pbs.org/video/2365464997/ For the sake of those of us with limited access to the Internet at the moment (say, we're behind a corporate firewall, or our browser has

Re: New to Python - block grouping (spaces)

2015-04-16 Thread Ron Adam
On 04/16/2015 01:41 PM, Steven D'Aprano wrote: >2. Having been an employer, it is difficult to force programmers to use >any particular editor or style. Different editors handle tabs and spaces >differently. This is all a bloody nightmare with Python. Do you really expect us to believe for

Great Math Mystery

2015-04-16 Thread Seymore4Head
I am guessing that a few here might find this program interesting. http://video.pbs.org/video/2365464997/ -- In an altercation with the police, complying with their orders greatly increases your chances of survival. -- https://mail.python.org/mailman/listinfo/python-list

Re: New to Python - block grouping (spaces)

2015-04-16 Thread BartC
On 16/04/2015 18:10, Steven D'Aprano wrote: On Thu, 16 Apr 2015 08:51 pm, BartC wrote: On 16/04/2015 06:49, Steven D'Aprano wrote: On Thursday 16 April 2015 14:07, Blake McBride wrote: Is there a utility that will allow me to write Python-like code that includes some block delimiter that I

EditorConfig for cross-editor consistent code style (was: New to Python - block grouping (spaces))

2015-04-16 Thread Ben Finney
Chris Angelico writes: > If you're prepared to run a beautifier on your employees' code, you > should have no problem requiring that they adopt a syntactically-legal > style. For teams with a mixture of text editors in use, there are even tools nowadays to help everyone's text editor enforce con

Re: New to Python - block grouping (spaces)

2015-04-16 Thread Serhiy Storchaka
On 16.04.15 08:49, Steven D'Aprano wrote: I'm not aware of any pre-processor tools for Python that will syntactically check that added braces match the indentation. Such a tool would be unPythonic: if they match, the braces are redundant and are not needed, and if they do not match, then the comp

Re: New to Python - block grouping (spaces)

2015-04-16 Thread Rob Gaddi
On Thu, 16 Apr 2015 10:59:44 -0700, Rustom Mody wrote: > On Thursday, April 16, 2015 at 9:37:57 AM UTC+5:30, Blake McBride wrote: >> Greetings, >> >> I am new to Python. I am sorry for beating what is probably a dead >> horse but I checked the net and couldn't find the answer to my >> question.

Re: New to Python - block grouping (spaces)

2015-04-16 Thread memilanuk
On 04/16/2015 11:08 AM, alister wrote: On Thu, 16 Apr 2015 08:01:45 -0700, Blake McBride wrote: As a side note, I bought a few books on Python from Amazon for use on my Kindle. At least one of the books has the formatting for the Kindle messed up rendering the meaning of the program useless.

Re: New to Python - block grouping (spaces)

2015-04-16 Thread alister
On Thu, 16 Apr 2015 08:01:45 -0700, Blake McBride wrote: > As a side note, I bought a few books on Python from Amazon for use on my > Kindle. At least one of the books has the formatting for the Kindle > messed up rendering the meaning of the program useless. > > Case in point. > > Blake A poo

Re: New to Python - block grouping (spaces)yhoni

2015-04-16 Thread alister
On Thu, 16 Apr 2015 16:09:13 +0200, Antoon Pardon wrote: > On 04/16/2015 03:18 PM, alister wrote: > > >>> As is argueing against a real position instead of making something up. >>> Nobody is argueing for arbitrary indentation. >> May I suggest that you give it a try for a month, perhaps re-writi

Re: New to Python - block grouping (spaces)yhoni

2015-04-16 Thread alister
On Thu, 16 Apr 2015 14:44:15 +0100, BartC wrote: > On 16/04/2015 14:18, alister wrote: >> On Thu, 16 Apr 2015 13:07:22 +0200, Antoon Pardon wrote: > >>> Nobody is argueing for arbitrary indentation. >> >> May I suggest that you give it a try for a month, perhaps re-writing a >> small program you

Re: New to Python - block grouping (spaces)

2015-04-16 Thread Rustom Mody
On Thursday, April 16, 2015 at 9:37:57 AM UTC+5:30, Blake McBride wrote: > Greetings, > > I am new to Python. I am sorry for beating what is probably a dead horse but > I checked the net and couldn't find the answer to my question. Kudos for making dead horses fly [33 posts in 13 hours and goin

Re: New to Python - block grouping (spaces)

2015-04-16 Thread Tim Chase
On 2015-04-17 03:10, Steven D'Aprano wrote: > And there there was the time I edited some code written by my boss. > I intended to write a comment: > > # FIXME: this function is a little slow and should be optimized. > > but I hit the wrong key a couple of times and wrote: > > # This is a

Re: New to Python - block grouping (spaces)yhoni

2015-04-16 Thread Mark Lawrence
On 16/04/2015 14:44, BartC wrote: * I modify code a lot, adding and removing extra nested blocks all the time. My editor can't indent or un-indent blocks without a lot of manual typing. With block-delimited schemes, this isn't an issue, as temporary lack of correct indentation isn't crucial.

Re: New to Python - block grouping (spaces)

2015-04-16 Thread Steven D'Aprano
On Fri, 17 Apr 2015 12:52 am, Blake McBride wrote: > Thanks for all the responses. I especially like the Pike pointer. To be > clear: > > 1. I don't think languages should depend on invisible elements to > determine logic. Icompletelyagreethatinvisibleelementsareterribleandalllanguagesshoulde

Re: New to Python - block grouping (spaces)

2015-04-16 Thread lconrad
-- https://mail.python.org/mailman/listinfo/python-list

Re: New to Python - block grouping (spaces)

2015-04-16 Thread Steven D'Aprano
On Thu, 16 Apr 2015 08:51 pm, BartC wrote: > On 16/04/2015 06:49, Steven D'Aprano wrote: >> On Thursday 16 April 2015 14:07, Blake McBride wrote: > >>> Is there a utility that will allow me to write Python-like code that >>> includes some block delimiter that I can see, that converts the code >>>

Re: New to Python - block grouping (spaces)

2015-04-16 Thread Grant Edwards
On 2015-04-16, Blake McBride wrote: > Thanks for all the responses. I especially like the Pike pointer. > To be clear: > > 1. I don't think languages should depend on invisible elements to > determine logic. I had the same attitude when I first tried Python 15 years ago. But, Python was t

Re: New to Python - block grouping (spaces)

2015-04-16 Thread Chris Angelico
On Fri, Apr 17, 2015 at 12:52 AM, Blake McBride wrote: > 2. Having been an employer, it is difficult to force programmers to use any > particular editor or style. Different editors handle tabs and spaces > differently. This is all a bloody nightmare with Python. > > 3. Languages that use bra

Re: New to Python - block grouping (spaces)

2015-04-16 Thread Jon Ribbens
On 2015-04-16, Blake McBride wrote: > 2. Having been an employer, it is difficult to force programmers to > use any particular editor or style. Different editors handle tabs > and spaces differently. This is all a bloody nightmare with Python. > > 3. Languages that use braces (or the like) can

Re: New to Python - block grouping (spaces)

2015-04-16 Thread Mark Lawrence
On 16/04/2015 15:52, Blake McBride wrote: So, Python may be a cute language for you to use as an individual, but it is unwieldy in a real development environment. Thanks for this, one of the funniest comments I've read here in years. It's good to see that new people share the humourous side

Re: New to Python - block grouping (spaces)

2015-04-16 Thread memilanuk
On 04/16/2015 07:52 AM, Blake McBride wrote: Thanks for all the responses. I especially like the Pike pointer. To be clear: 1. I don't think languages should depend on invisible elements to determine logic. 2. Having been an employer, it is difficult to force programmers to use any particula

Re: New to Python - block grouping (spaces)

2015-04-16 Thread Blake McBride
As a side note, I bought a few books on Python from Amazon for use on my Kindle. At least one of the books has the formatting for the Kindle messed up rendering the meaning of the program useless. Case in point. Blake -- https://mail.python.org/mailman/listinfo/python-list

Re: New to Python - block grouping (spaces)

2015-04-16 Thread Blake McBride
Thanks for all the responses. I especially like the Pike pointer. To be clear: 1. I don't think languages should depend on invisible elements to determine logic. 2. Having been an employer, it is difficult to force programmers to use any particular editor or style. Different editors handle

Re: Searching the archives

2015-04-16 Thread Grant Edwards
On 2015-04-15, Ben Finney wrote: > Gil Dawson writes: > >> This is my first message to this list. I just signed on. > > Welcome! > >> How do you search the archives? > > The forum is archived in numerous places. The complete set of forums is > at http://mail.python.org/>, for example this one is

Re: New to Python - block grouping (spaces)yhoni

2015-04-16 Thread Antoon Pardon
On 04/16/2015 03:18 PM, alister wrote: > >> As is argueing against a real position instead of making something up. >> Nobody is argueing for arbitrary indentation. > May I suggest that you give it a try for a month, perhaps re-writing a > small program you already have in a pythonic style (don't

Re: New to Python - block grouping (spaces)

2015-04-16 Thread William Ray Wing
> On Apr 16, 2015, at 2:11 AM, Paul Rubin wrote: > > Steven D'Aprano writes: >> I'm aware that Coffeescript provides a brace-free wrapper around Javascript; >> I'm not aware of any wrapper that *adds* braces to a language without them. > > You're not old enough to remember Ratfor ;-) > -- >

Re: New to Python - block grouping (spaces)

2015-04-16 Thread Antoon Pardon
On 04/16/2015 03:41 PM, Chris Angelico wrote: > The case of a loop structure with its condition in the middle is one > that few languages support, so the physical structure has to be > something like: > > goto middle > while not condition: > more code > label middle > some code > > or >

Re: xlwt 1.0.0 released!

2015-04-16 Thread jogaserbia
Thanks Chris. I'll be doing some stuff in python and excel in the future, and this will help out a lot. Ivan -- https://mail.python.org/mailman/listinfo/python-list

Re: New to Python - block grouping (spaces)yhoni

2015-04-16 Thread Chris Angelico
On Thu, Apr 16, 2015 at 11:18 PM, alister wrote: > be warned you may find it creates (or increases ) an extreme dislike for > C & other languages that require braces & semicolons, it did for me > (especially the semi-colon!) I'd just like to add to this that the lack of semicolon in Python works

Re: New to Python - block grouping (spaces)yhoni

2015-04-16 Thread BartC
On 16/04/2015 14:18, alister wrote: On Thu, 16 Apr 2015 13:07:22 +0200, Antoon Pardon wrote: Nobody is argueing for arbitrary indentation. May I suggest that you give it a try for a month, perhaps re-writing a small program you already have in a pythonic style (don't simply write c in python

Re: New to Python - block grouping (spaces)

2015-04-16 Thread Chris Angelico
On Thu, Apr 16, 2015 at 9:07 PM, Antoon Pardon wrote: > On 04/16/2015 12:43 PM, Steven D'Aprano wrote: >> On Thursday 16 April 2015 20:09, Antoon Pardon wrote: >> >>> I beg to differ. The most common occurence is a loop with a break >>> condition in the middle I would prefer such a loop to be writ

Re: New to Python - block grouping (spaces)

2015-04-16 Thread Simmo
On 16/04/2015 05:07, Blake McBride wrote: Greetings, I am new to Python. I am sorry for beating what is probably a dead horse but I checked the net and couldn't find the answer to my question. I like a lot of what I've seen in Python, however, after 35 years and probably a dozen languages un

Importing/migrating Mailman mbox files into Google Groups?

2015-04-16 Thread Skip Montanaro
Quite sometime ago (2011?), the classic-rendezvous mailing list, which had been hosted by a Mailman instance at bikelist.org, was reconstituted as a Google Group. Just a bunch of old bikies interested in vintage bikes. The original archives were never imported into the new group. (It might not have

Re: New to Python - block grouping (spaces)yhoni

2015-04-16 Thread alister
On Thu, 16 Apr 2015 13:07:22 +0200, Antoon Pardon wrote: > On 04/16/2015 12:43 PM, Steven D'Aprano wrote: >> On Thursday 16 April 2015 20:09, Antoon Pardon wrote: >> >>> I beg to differ. The most common occurence is a loop with a break >>> condition in the middle I would prefer such a loop to be w

Re: New to Python - block grouping (spaces)

2015-04-16 Thread Antoon Pardon
On 04/16/2015 06:07 AM, Blake McBride wrote: > Greetings, > > I am new to Python. I am sorry for beating what is probably a dead horse but > I checked the net and couldn't find the answer to my question. > > I like a lot of what I've seen in Python, however, after 35 years and > probably a dozen

Re: New to Python - block grouping (spaces)

2015-04-16 Thread Mark Lawrence
On 16/04/2015 05:07, Blake McBride wrote: Greetings, I am new to Python. I am sorry for beating what is probably a dead horse but I checked the net and couldn't find the answer to my question. I like a lot of what I've seen in Python, however, after 35 years and probably a dozen languages un

Re: New to Python - block grouping (spaces)

2015-04-16 Thread Antoon Pardon
On 04/16/2015 12:43 PM, Steven D'Aprano wrote: > On Thursday 16 April 2015 20:09, Antoon Pardon wrote: > >> I beg to differ. The most common occurence is a loop with a break >> condition in the middle I would prefer such a loop to be written as >> follows: >> >> repeat: >> some >> code >> b

Re: New to Python - block grouping (spaces)

2015-04-16 Thread BartC
On 16/04/2015 06:49, Steven D'Aprano wrote: On Thursday 16 April 2015 14:07, Blake McBride wrote: Is there a utility that will allow me to write Python-like code that includes some block delimiter that I can see, that converts the code into runnable Python code? If so, where can I find it?

Re: New to Python - block grouping (spaces)

2015-04-16 Thread Steven D'Aprano
On Thursday 16 April 2015 20:09, Antoon Pardon wrote: > I beg to differ. The most common occurence is a loop with a break > condition in the middle I would prefer such a loop to be written as > follows: > > repeat: > some > code > break_when condition: > more > code That structu

Re: New to Python - block grouping (spaces)

2015-04-16 Thread Antoon Pardon
On 04/16/2015 11:34 AM, Chris Angelico wrote: > On Thu, Apr 16, 2015 at 6:47 PM, Antoon Pardon > wrote: >> On 04/16/2015 09:46 AM, alister wrote: >> >>> what I find strange is that although these programmers initially disliked >>> forced indentation they were voluntarily indenting there existing c

Re: New to Python - block grouping (spaces)

2015-04-16 Thread Chris Angelico
On Thu, Apr 16, 2015 at 6:47 PM, Antoon Pardon wrote: > On 04/16/2015 09:46 AM, alister wrote: > >> what I find strange is that although these programmers initially disliked >> forced indentation they were voluntarily indenting there existing code >> anyway. Take a look at your existing code base

Re: New to Python - block grouping (spaces)

2015-04-16 Thread Antoon Pardon
On 04/16/2015 09:46 AM, alister wrote: > what I find strange is that although these programmers initially disliked > forced indentation they were voluntarily indenting there existing code > anyway. Take a look at your existing code base & see if this would indeed > be the case. The problem is

Re: New to Python - block grouping (spaces)

2015-04-16 Thread alister
On Wed, 15 Apr 2015 21:07:45 -0700, Blake McBride wrote: > Greetings, > > I am new to Python. I am sorry for beating what is probably a dead > horse but I checked the net and couldn't find the answer to my question. > > I like a lot of what I've seen in Python, however, after 35 years and > pro