Re: version of Python to install Windows 7 professional 64 bit, intel core i5

2017-09-11 Thread Terry Reedy
On 9/11/2017 10:49 PM, Zubair Shaikh wrote: What version of Python to install Windows 7 professional 64 bit, intel core i5 Whatever version you want. If you have no idea, goto https://www.python.org/downloads/release/python-362/ and click Windows-x86-64 executable installer. -- Terry Jan R

Re: version of Python to install Windows 7 professional 64 bit, intel core i5

2017-09-11 Thread Bill
Zubair Shaikh wrote: What version of Python to install Windows 7 professional 64 bit, intel core i5 You're joking, right? What is your budget? -- https://mail.python.org/mailman/listinfo/python-list

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-11 Thread Chris Angelico
On Tue, Sep 12, 2017 at 1:42 PM, Paul Rubin wrote: > Chris Angelico writes: >> students learning Python *today* ... they're learning Python 3. > > I'm not so sure of that. I do know a few people currently learning > Python, and they're using Python 2. Why? Unless they're going to be maintaining

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-11 Thread Rustom Mody
On Monday, September 11, 2017 at 1:28:24 PM UTC+5:30, Marko Rauhamaa wrote: > Gregory Ewing: > > > Chris Angelico wrote: > >> Async functions in > >> JS are an alternative to callback hell; most people consider async > >> functions in Python to be an alternative to synchronous functions. > > > > W

Re: Using Python 2

2017-09-11 Thread Paul Rubin
Steve D'Aprano writes: > Guido has ruled that Python 4 will not be a major compatibility break Looking forward to Python 5 then ;-). -- https://mail.python.org/mailman/listinfo/python-list

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-11 Thread Paul Rubin
Chris Angelico writes: > students learning Python *today* ... they're learning Python 3. I'm not so sure of that. I do know a few people currently learning Python, and they're using Python 2. >> * static type annotation Seems like a big win if you ask me. >> * asyncio with its a-dialect > A

version of Python to install Windows 7 professional 64 bit, intel core i5

2017-09-11 Thread Zubair Shaikh
What version of Python to install Windows 7 professional 64 bit, intel core i5 -- https://mail.python.org/mailman/listinfo/python-list

Re: Simple game board GUI framework

2017-09-11 Thread Ian Kelly
On Mon, Sep 11, 2017 at 6:26 PM, Dennis Lee Bieber wrote: > I used to have a character on Furtoonia whose "tail" was described as > having a naked singularity at the tip (the tail was an object that > automatically followed the character around) -- the character's "home" was > inside said

Re: Using Python 2

2017-09-11 Thread Michael Torrie
On 09/10/2017 09:38 PM, Dennis Lee Bieber wrote: > It ain't dead yet... Fujitsu still has a COBOL compiler/IDE for Windows > and/or .NET (and maybe even other systems)... (I should see if Win10 can > install the Fujitsu COBOL 4 that came with my Y2K era text books... WinXP > could not install

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-11 Thread Michael Torrie
On 09/11/2017 08:36 AM, Dennis Lee Bieber wrote: > On Mon, 11 Sep 2017 18:35:02 +1000, Chris Angelico > declaimed the following: > >> >> Do a quick poll here on the list. Who sees async functions as an >> alternative to Twisted? Who here has even *used* Twisted? (How many >> even know what it is?

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-11 Thread Michael Torrie
On 09/11/2017 02:35 AM, Chris Angelico wrote: > Do a quick poll here on the list. Who sees async functions as an > alternative to Twisted? Who here has even *used* Twisted? (How many > even know what it is?) /me raises hand, slowly, cautiously looking around. I don't think of twisted so much as a

ttk.Notebook Tabs Question

2017-09-11 Thread Wildman via Python-list
I am working on a program that has a ttk.Notebook with 12 tabs. Is there a way to determine the total width of the tabs in pixels. Just to be clear I am not talking about width of the nb container. I am talking about tabs themselves that contain the text. I want the program to be resizable but

IEEE Spectrum ranks Python at top, along with C

2017-09-11 Thread Terry Reedy
https://spectrum.ieee.org/static/interactive-the-top-programming-languages-2017 -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list

Re: Simple game board GUI framework

2017-09-11 Thread Chris Angelico
On Tue, Sep 12, 2017 at 7:03 AM, Ian Kelly wrote: > On Mon, Sep 11, 2017 at 10:36 AM, ROGER GRAYDON CHRISTMAN > wrote: >> I would echo the recommendation of teaching something you are already >> familiar with doing. Perhaps you can find a different class hierarchy to >> work >> with. >> >> I

Re: Simple game board GUI framework

2017-09-11 Thread Ian Kelly
On Mon, Sep 11, 2017 at 10:36 AM, ROGER GRAYDON CHRISTMAN wrote: > I would echo the recommendation of teaching something you are already > familiar with doing. Perhaps you can find a different class hierarchy to > work > with. > > I remember that the first time I really began to grok OOP was in

Totally OT - Looking for someone to translate some Japanese

2017-09-11 Thread Skip Montanaro
I have a scan of a few pages of an obscure book written in Japanese about an obscure French derailleur produced in the early 1960s. (I recently happened into an early 1960s Italian bike with just this derailleur.) I don't read a single lick of Japanese. I'm hoping tha

Re: Simple board game GUI framework

2017-09-11 Thread Terry Reedy
On 9/11/2017 12:56 PM, Paul Moore wrote: I'm not looking at actually implementing chess. The idea was prompted by a programming exercise my son was given, that was about programming a series of classes modelling robots that know their position on a grid, and when told to move, can do so accordin

Re: Simple board game GUI framework

2017-09-11 Thread Terry Reedy
On 9/11/2017 10:12 AM, Paul Moore wrote: Thanks for the information. That's more or less the sort of thing I was thinking of. In fact, from a bit more browsing, I found another way of approaching the problem - rather than using pygame, it turns out to be pretty easy to do this in tkinter. I wa

Re: Simple game board GUI framework

2017-09-11 Thread ROGER GRAYDON CHRISTMAN
I would echo the recommendation of teaching something you are already familiar with doing. Perhaps you can find a different class hierarchy to work with. I remember that the first time I really began to grok OOP was in a text-based MUD environment. In the application area, clearly everything w

Re: Simple board game GUI framework

2017-09-11 Thread Paul Moore
On 11 September 2017 at 16:32, Dennis Lee Bieber wrote: > This leads to a subtle question... If the focus strictly on OOP, or do > you intend to supply some precursor OOAD stuff. OOP is just implementation > and usage, but without some understanding of OOAD the concepts may come > across a

Re: Python programming language vulnerabilities

2017-09-11 Thread Stephen Michell
CORRECTION. My sincere apologies to anyone that tried the link that I posted. The actual link is www.open-std.org/jtc1/sc22/wg23 follow the link to documents, or go directly there via www.open-std.org/jtc1/sc22/wg23/docs/documents.html I was informed that there are some broken links to documen

windows 8 versus urllib2 certificate verify

2017-09-11 Thread Robin Becker
I have an application built on 32 bit windows 7 with python 2.7.10. The application runs fine on windows 7 and older windows machines, but it is failing to connect properly using urllib2 when run on windows 8. The error CERTIFICATE_VERIFY_FAILED indcates this is some issue with urllib2 not bei

Re: People choosing Python 3

2017-09-11 Thread Paul Moore
On 11 September 2017 at 15:53, Dennis Lee Bieber wrote: > > As for Windows itself... I use the ActiveState installers and see: > > Directory of c:\Python35 > > > 06/26/2017 07:22 PM41,240 python.exe > 06/26/2017 07:22 PM41,240 python3.5.exe > 06/26/2017 07:18 P

Re: Simple board game GUI framework

2017-09-11 Thread Paul Moore
On 11 September 2017 at 14:52, Christopher Reimer wrote: >> On Sep 11, 2017, at 3:58 AM, Paul Moore wrote: >> >> I'm doing some training for a colleague on Python, and I want to look >> at a bit of object orientation. For that, I'm thinking of a small >> project to write a series of classes simul

Re: Simple board game GUI framework

2017-09-11 Thread Christopher Reimer
> On Sep 11, 2017, at 3:58 AM, Paul Moore wrote: > > I'm doing some training for a colleague on Python, and I want to look > at a bit of object orientation. For that, I'm thinking of a small > project to write a series of classes simulating objects moving round > on a chess-style board of squares

Re: People choosing Python 3

2017-09-11 Thread Matt Ruffalo
On 2017-09-10 05:42, Chris Warrick wrote: > > RHEL’s release process starts at forking a recent Fedora release. It > wouldn’t make much sense for them to undo the Python 3 progress that > happened over the past few years in Fedora — including dnf, an > improved package manager written in Python 3.

Re: Design: method in class or general function?

2017-09-11 Thread Peter Otten
Leam Hall wrote: > I do not understand your last sentence about reference cycle. Currently you have - create Career instance which stores character as an attribute - make modifications to character - forget about Career instance My suggestion - create Career instance which stores character as

Re: Simple board game GUI framework

2017-09-11 Thread Tim Golden
On 11/09/2017 11:58, Paul Moore wrote: I'm doing some training for a colleague on Python, and I want to look at a bit of object orientation. For that, I'm thinking of a small project to write a series of classes simulating objects moving round on a chess-style board of squares. Don't know if yo

Re: Simple board game GUI framework

2017-09-11 Thread Paul Moore
On 11 September 2017 at 13:13, Stefan Ram wrote: > Paul Moore writes: >>write a series of classes simulating objects > > I'd say "write classes for objects". Yeah, that's just me not being precise in my mail. Sorry. >>objects moving round on a chess-style board of squares > > This seems to

Re: People choosing Python 3

2017-09-11 Thread Chris Angelico
On Mon, Sep 11, 2017 at 10:40 PM, Paul Moore wrote: > On 11 September 2017 at 13:07, Chris Angelico wrote: >> Fortunately, it's not that hard to type "python3" all the time. OS >> distributions can progressively shift to using that name, and then >> eventually not ship a Py2 until/unless somethin

Re: People choosing Python 3

2017-09-11 Thread Paul Moore
On 11 September 2017 at 13:07, Chris Angelico wrote: > Fortunately, it's not that hard to type "python3" all the time. OS > distributions can progressively shift to using that name, and then > eventually not ship a Py2 until/unless something depends on it, all > without losing backward compatibili

Re: People choosing Python 3

2017-09-11 Thread Chris Angelico
On Mon, Sep 11, 2017 at 10:00 PM, Pavol Lisy wrote: > On 9/11/17, Thomas Jollans wrote: >> On 2017-09-10 09:05, INADA Naoki wrote: >>> I saw encouraging tweet from Kenneth Reitz. >>> >>> https://twitter.com/kennethreitz/status/902028601893294081/photo/1 >>> >>> On Heroku, most people choose Pytho

Re: People choosing Python 3

2017-09-11 Thread leam hall
On Mon, Sep 11, 2017 at 8:00 AM, Pavol Lisy wrote: > > > Which part of third party ecosystem surrounding Python 3 is not (and > could not be any time soon) sufficiently mature? > -- > > yum, twisted. -- https://mail.python.org/mailman/listinfo/python-list

Re: Design: method in class or general function?

2017-09-11 Thread leam hall
On Mon, Sep 11, 2017 at 7:48 AM, Stefan Ram wrote: > Leam Hall writes: > >Haven't read the GoF book. Last time I checked it said "this is only > >useful if you know Java" > > In the edition of 1997, some design patterns are accompanied > with examples in C++ or Smalltalk, but the majority of

Re: People choosing Python 3

2017-09-11 Thread Pavol Lisy
On 9/11/17, Thomas Jollans wrote: > On 2017-09-10 09:05, INADA Naoki wrote: >> I saw encouraging tweet from Kenneth Reitz. >> >> https://twitter.com/kennethreitz/status/902028601893294081/photo/1 >> >> On Heroku, most people choose Python 3! >> I know, it's because Python 3 is the default Python o

Simple board game GUI framework

2017-09-11 Thread Paul Moore
I'm doing some training for a colleague on Python, and I want to look at a bit of object orientation. For that, I'm thinking of a small project to write a series of classes simulating objects moving round on a chess-style board of squares. I want to concentrate on writing the classes and their beh

Re: array.array()'s memory shared with multiprocessing.Process()

2017-09-11 Thread Thomas Jollans
On 2017-09-10 23:05, iurly wrote: > As far as I'm concerned, I'm probably better off using double buffers to > avoid this kind of issues. > Thanks a lot for your help! > That should work. Some other things to consider, if both processes are on the same machine, are a series of memory-mapped fil

Re: Design: method in class or general function?

2017-09-11 Thread Leam Hall
On 09/11/2017 03:30 AM, Peter Otten wrote: Leam Hall wrote: Okay Peter, I took your idea and mangled it beyond recognition. There's a design constraint I hadn't mentioned: an instance of Character should be able to have multiple careers. Also, an instance can be created from scratch, created

How to create an object in database only if the object is not already there?

2017-09-11 Thread GMX
Hi,  Reposting again to the list as I had made a silly mistake in typing the subject line last week.  I am using `pony` orm to write a simple class as my model. Here is the class.  ``` from pony.orm import Database from pony.orm import Required, Optional from pony.orm import db_session from pon

Re: People choosing Python 3

2017-09-11 Thread Thomas Jollans
On 2017-09-10 09:05, INADA Naoki wrote: > I saw encouraging tweet from Kenneth Reitz. > > https://twitter.com/kennethreitz/status/902028601893294081/photo/1 > > On Heroku, most people choose Python 3! > I know, it's because Python 3 is the default Python on Heroku. > > I can't wait Python 3 is t

Re: Using Python 2

2017-09-11 Thread Chris Angelico
On Mon, Sep 11, 2017 at 5:34 PM, Steven D'Aprano wrote: >> By the way, "onerous" is an adjective, not a noun. > > "Onerosity" or "onertude" would be the correct grammatical forms for the > noun. More likely, "onus" was intended. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-11 Thread Chris Angelico
On Mon, Sep 11, 2017 at 5:21 PM, Gregory Ewing wrote: > Chris Angelico wrote: >> >> Async functions in >> JS are an alternative to callback hell; most people consider async >> functions in Python to be an alternative to synchronous functions. > > > What do you base that on? Seems to me async is an

Re: People choosing Python 3

2017-09-11 Thread Marko Rauhamaa
Stephan Houben : > Op 2017-09-10, Marko Rauhamaa schreef : >> I've seen that done for Python and other technologies. It is an >> expensive route to take. Also, it can be insecure. When >> vulnerabilities are found, they are communicated to the maintainers >> of, say, Python. When Python is fixed a

Re: mutiprocessing gui

2017-09-11 Thread Stephan Houben
Op 2017-09-11, Antoon Pardon schreef : > When one wants to combine multithreading and gui programming > all sorts of issues arise. So I wonder how one might combine > multiprocessing with gui programming. > > gui libraries typically have some registration mechanisme, > where you can register a call

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-11 Thread Stephan Houben
Op 2017-09-10, Marko Rauhamaa schreef : > Stephan Houben : > >> Would we not eventually want a file object to deliver its lines >> asynchronously (with non-blocking reads under the hood) if >> iterated over with "async for", while preserving the current >> blocking behavior in the "for" case? > > I

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-11 Thread Marko Rauhamaa
Gregory Ewing : > Chris Angelico wrote: >> Async functions in >> JS are an alternative to callback hell; most people consider async >> functions in Python to be an alternative to synchronous functions. > > What do you base that on? Seems to me async is an alternative > to callback-based frameworks

Re: Run Windows commands from Python console

2017-09-11 Thread Stephan Houben
Op 2017-09-10, Rick Johnson schreef : > It seems to me the best solution is for the TCL/Tk folks to > provide a configuration utility that stores user preferences > in the registry, or some other OS provided mechanism, as to > have these settings reset on every invocation of the > application would

Re: People choosing Python 3

2017-09-11 Thread Stephan Houben
Op 2017-09-10, Marko Rauhamaa schreef : > Stephan Houben : >> >> Why not bundle the Python interpreter with your application? >> It seems to work for Windows developers... > > I've seen that done for Python and other technologies. It is an > expensive route to take. Also, it can be insecure. When v

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-11 Thread Rustom Mody
On Monday, September 11, 2017 at 12:51:59 PM UTC+5:30, Gregory Ewing wrote: > Chris Angelico wrote: > > Async functions in > > JS are an alternative to callback hell; most people consider async > > functions in Python to be an alternative to synchronous functions. > > What do you base that on? See

Re: Using Python 2

2017-09-11 Thread Steven D'Aprano
On Mon, 11 Sep 2017 00:07:15 -0600, Ian Kelly wrote: > On Sun, Sep 10, 2017 at 10:06 AM, Rick Johnson > wrote: >> Ian wrote: >>> Rick Johnson wrote: >>> > Ned Batchelder wrote: >>> > > Leam Hall wrote: >>> > > > >>> > > > I've read comments about Python 3 moving from the Zen of Python. >>> > > >

Re: Design: method in class or general function?

2017-09-11 Thread Peter Otten
Leam Hall wrote: > On 09/08/2017 03:06 AM, Peter Otten wrote: >> leam hall wrote: >> >>> On Thu, Sep 7, 2017 at 8:16 AM, Steve D'Aprano >>> wrote: >>> On Thu, 7 Sep 2017 07:20 pm, Leam Hall wrote: > OOP newbie on Python 2.6. Python 2.6 is ancient, and is missing many nice

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-11 Thread Gregory Ewing
Chris Angelico wrote: Async functions in JS are an alternative to callback hell; most people consider async functions in Python to be an alternative to synchronous functions. What do you base that on? Seems to me async is an alternative to callback-based frameworks such as Twisted. Calling asy

mutiprocessing gui

2017-09-11 Thread Antoon Pardon
When one wants to combine multithreading and gui programming all sorts of issues arise. So I wonder how one might combine multiprocessing with gui programming. gui libraries typically have some registration mechanisme, where you can register a call back for when data is available on a network conn