Re: Issues Download the Latest Version of Python Programming Language

2020-07-23 Thread Mats Wichmann
On 7/24/20 12:05 AM, Ejiofor Chidinma Peace wrote: > Dear Sir/Madam, > I trust this email finds you well. > > I have been having issues downloading the latest version of Python > programming Language on my PC (windows 10 operating system). Kindly assist > in resolving this issue at your earliest c

Re: Need to 'import gtk' on Ubuntu 20.04, what do I need?

2020-07-23 Thread Akkana Peck
Chris Green writes: > I have recently upgraded my desktop system from ubuntu 19.10 to ubuntu > 20.04. [ ... ] > The error I am getting is:- [ ... ] > ImportError: No module named gtk > > So what do I need to install on my Ubuntu 20.04 system to provide the > gtk module? Ubuntu doesn't prov

Re: Iterators, iterables and special objects

2020-07-23 Thread Terry Reedy
On 7/23/2020 5:14 AM, Peter Slížik wrote: Works in what way? You can't use it in a 'for' loop if it doesn't define __iter__. class Iterable: def __iter__(self): return Iterator(...) class Iterator: def __next__(self): return # No __iter__ here. # I've j

Issues Download the Latest Version of Python Programming Language

2020-07-23 Thread Ejiofor Chidinma Peace
Dear Sir/Madam, I trust this email finds you well. I have been having issues downloading the latest version of Python programming Language on my PC (windows 10 operating system). Kindly assist in resolving this issue at your earliest convenience. Looking forward to hearing from you soon. Yours s

Re: Spam, bacon, sausage and Spam (was: EuroPython 2020: Data Science Track)

2020-07-23 Thread Cameron Simpson
On 23Jul2020 10:39, Christian Heimes wrote: >On 23/07/2020 02.12, Cameron Simpson wrote: >> I have never attended EuroPython and probably never will (I'm on the >> other side of the planet) but I'm still interested. Rather than >> subscribe to every conference thing, getting them here is very >> c

Re: Fwd: [BUG] missing ')' causes syntax error on next line

2020-07-23 Thread Jeff Linahan
Interesting PEG thing. C++ compilers are getting better at suggesting fixes for minor syntax errors (in 2011 on MSVC I remember seeing pages of errors for forgetting a semicolon after a struct.) but python seems to be lagging behind in this regard.. will check out superhelp, maybe it'll help me pa

Re: How to limit *length* of PrettyPrinter

2020-07-23 Thread dn via Python-list
Redirected from Digest (see below) On 23/07/2020 11:59, Stavros Macrakis wrote: > Mousedancer, thanks! Yes, I even look like a (younger) Kevin Costner! (you believe me - right!?) > As a finger exercise, I thought I'd try implementing print-level and print-length as an object-to-object transf

Need to 'import gtk' on Ubuntu 20.04, what do I need?

2020-07-23 Thread Chris Green
I have recently upgraded my desktop system from ubuntu 19.10 to ubuntu 20.04. I have some Oki printer/scanner driver software that is written in Python 2 and, although python 2 is still installed on my system it's no longer the default python and the Oki software no longer runs. The error I am ge

Re: Spam, bacon, sausage and Spam

2020-07-23 Thread dn via Python-list
On 23/07/2020 20:39, Christian Heimes wrote: On 23/07/2020 02.12, Cameron Simpson wrote: On 22Jul2020 15:00, Christian Heimes wrote: ... would it be possible to reduce the amount of EuroPython spam on @python.org mailing lists to a sensible level? This mailing list is a general discussion li

Re: Fwd: [BUG] missing ')' causes syntax error on next line

2020-07-23 Thread Chris Angelico
On Fri, Jul 24, 2020 at 4:00 AM Dennis Lee Bieber wrote: > > On Thu, 23 Jul 2020 09:51:42 +1000, Chris Angelico > declaimed the following: > > >On Thu, Jul 23, 2020 at 9:17 AM dn via Python-list > > wrote: > >> However, questions remain:- > >> > >> Robot: any machine or mechanical device that ope

Re: Installing Python 3.8.3 with tkinter

2020-07-23 Thread Anssi Saari
Klaus Jantzen writes: > On 7/22/20 11:05 PM, Ned Deily wrote: >> On 2020-07-22 06:20, Klaus Jantzen wrote: >>> Trying to install Python 3.8.3 with tkinter I run configure with the >>> following options >>> >>> ./configure --enable-optimizations --with-ssl-default-suites=openssl >>> --with-openssl

Re: Installing Python 3.8.3 with tkinter

2020-07-23 Thread Ned Deily
On 2020-07-23 00:30, Klaus Jantzen wrote: > On 7/22/20 11:05 PM, Ned Deily wrote: >> On 2020-07-22 06:20, Klaus Jantzen wrote: >>> Trying to install Python 3.8.3 with tkinter I run configure with the >>> following options >>> >>> ./configure --enable-optimizations --with-ssl-default-suites=openssl

Re: Installing Python 3.8.3 with tkinter

2020-07-23 Thread Christian Gollwitzer
Am 23.07.20 um 06:30 schrieb Klaus Jantzen: On 7/22/20 11:05 PM, Ned Deily wrote: On 2020-07-22 06:20, Klaus Jantzen wrote: Trying to install Python 3.8.3 with tkinter I run configure with the following options ./configure --enable-optimizations --with-ssl-default-suites=openssl --with-openssl

Re: Iterators, iterables and special objects

2020-07-23 Thread Peter Slížik
> Works in what way? You can't use it in a 'for' loop if it doesn't > define __iter__. > class Iterable: def __iter__(self): return Iterator(...) class Iterator: def __next__(self): return # No __iter__ here. # I've just forgotten to def it. With this setup, usi

Re: Spam, bacon, sausage and Spam (was: EuroPython 2020: Data Science Track)

2020-07-23 Thread Chris Angelico
On Thu, Jul 23, 2020 at 6:40 PM Christian Heimes wrote: > I'm not disputing the fact that a conference can use the generic Python > users list for announcements. It's the fact that EP is literally > spamming the list with threads like "Opening our merchandise shop", > "Find a new job", "Introducin

Re: Iterators, iterables and special objects

2020-07-23 Thread Chris Angelico
On Thu, Jul 23, 2020 at 5:55 PM Peter Slížik wrote: > Moreover, some tutorial authors make it even more difficult with using the > terms iterator and iterable interchangeably. A notorious example is this > wiki: > https://wiki.python.org/moin/Iterator > > It says: > > *Here is an *iterator* that r

Re: Spam, bacon, sausage and Spam (was: EuroPython 2020: Data Science Track)

2020-07-23 Thread Christian Heimes
On 23/07/2020 02.12, Cameron Simpson wrote: > On 22Jul2020 15:00, Christian Heimes wrote: >> Hi MAL, >> >> would it be possible to reduce the amount of EuroPython spam on >> @python.org mailing lists to a sensible level? This mailing list is a >> general discussion list for the Python programming

Re: Iterators, iterables and special objects

2020-07-23 Thread Chris Angelico
On Thu, Jul 23, 2020 at 5:55 PM Peter Slížik wrote: > > Python's design that iter(iterator) is iterator is extremely handy. > > > > Yes, but it has the unfortunate consequence that an iterator is expected > to define > > def __iter__(self):return self > > which I saw people *not* doing, suppo

Re: True is True / False is False?

2020-07-23 Thread Peter Slížik
Dear Tim, in Python 2, None is a keyword and True and False are just identifiers. In Python 3, all of them are keywords. There is an interesting article by Guido explaining the reason for their different implementations. http://python-history.blogspot.com/2013/11/story-of-none-true-false.html J

Re: Iterators, iterables and special objects

2020-07-23 Thread Peter Slížik
> The view are iterables. They can be iterated more than once and used in > other operations. > > The transformers should be once-through iterators because they can be > passed once-through interators. This is important, thank you for pointing it out. > Python's design that iter(iterator) is