Re: Having trouble importing the python turtle on idle

2020-05-16 Thread KINGHAMED io
On Sat, 16 May 2020 at 4:38 PM KINGHAMED io 
wrote:

> Hello my name is Hamed
> I have purchased python for kids.
> I have installed idle and Python launcher 3.8.3 with my 11 inch MacBook
> Air (Mac OS Sierra)version 10.12.6
> I have followed all the instructions all the way through for installation
> I even downloaded activetcl and had no issues with instructions until
> chapter 4 page 45
> which is importing the python turtle on to my screen.
> However I have troubleshooted every possible way to get this right even
> uninstalling and reinstalling Python several times.
> Can you please advise me on how to import the python turtle.
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Having trouble importing the python turtle on idle

2020-05-16 Thread Bischoop
On 2020-05-16, KINGHAMED io  wrote:
> On Sat, 16 May 2020 at 4:38 PM KINGHAMED io 
> wrote:
>
>> Hello my name is Hamed
>> I have purchased python for kids.
>> I have installed idle and Python launcher 3.8.3 with my 11 inch MacBook
>> Air (Mac OS Sierra)version 10.12.6
>> I have followed all the instructions all the way through for installation
>> I even downloaded activetcl and had no issues with instructions until
>> chapter 4 page 45
>> which is importing the python turtle on to my screen.
>> However I have troubleshooted every possible way to get this right even
>> uninstalling and reinstalling Python several times.
>> Can you please advise me on how to import the python turtle.
>>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Having trouble importing the python turtle on idle

2020-05-16 Thread Souvik Dutta
What is the error?

Souvik flutter dev

On Sat, May 16, 2020, 8:27 PM KINGHAMED io  wrote:

> On Sat, 16 May 2020 at 4:38 PM KINGHAMED io 
> wrote:
>
> > Hello my name is Hamed
> > I have purchased python for kids.
> > I have installed idle and Python launcher 3.8.3 with my 11 inch MacBook
> > Air (Mac OS Sierra)version 10.12.6
> > I have followed all the instructions all the way through for installation
> > I even downloaded activetcl and had no issues with instructions until
> > chapter 4 page 45
> > which is importing the python turtle on to my screen.
> > However I have troubleshooted every possible way to get this right even
> > uninstalling and reinstalling Python several times.
> > Can you please advise me on how to import the python turtle.
> >
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: RV: CodecRegistryError problem for an IDE.

2020-05-16 Thread Dieter Maurer
Bryan Cabrera Ramírez wrote at 2020-5-15 19:53 +0200:
>   I'm trying to insall an INET package for an IDE called OMNeT++ and when
>   I try to build the INET the following happens in the command window:
>
>   Fatal Python error: Py_Initialize: unable to load the file system codec
>     File "C:\Python27\Lib\encodings\__init__.py", line 123
>       raise CodecRegistryError,\
>       ^
>   SyntaxError: invalid syntax
>
>   I did python repair from the setup installer but it still doesn't work.
>
>   Do you know what should I do in order to solve the problem ?

Apparently, a Python version 3 interpreter is used but it finds
a Python version 2 library. Those versions cannot mix.

I cannot tell you how this mix came into being.
I would try to uninstall Python and then reinstall freshly
Python 3.
-- 
https://mail.python.org/mailman/listinfo/python-list


CheetahTemplate 3.2.5

2020-05-16 Thread Oleg Broytman
Hello!

I'm pleased to announce version 3.2.5, a minor feature release
of branch 3.2 of CheetahTemplate3.


What's new in CheetahTemplate3
==

The contributor for this release is Yegor Yefremov.

Build:

  - Install ``Cheetah3`` + ``markdown`` (used in ``Cheetah.Filters``)
using ``pip install cheetah3[filters]`` (or ``cheetah3[markdown]``).

CI:

  - Run tests with Python 3.8 at Travis CI.


What is CheetahTemplate3


Cheetah3 is a free and open source template engine.
It's a fork of the original CheetahTemplate library.

Python 2.7 or 3.4+ is required.


Where is CheetahTemplate3
=

Site:
https://cheetahtemplate.org/

Development:
https://github.com/CheetahTemplate3

Download:
https://pypi.org/project/Cheetah3/3.2.5

News and changes:
https://cheetahtemplate.org/news.html

StackOverflow:
https://stackoverflow.com/questions/tagged/cheetah


Example
===

Below is a simple example of some Cheetah code, as you can see it's practically
Python. You can import, inherit and define methods just like in a regular Python
module, since that's what your Cheetah templates are compiled to :) ::

#from Cheetah.Template import Template
#extends Template

#set $people = [{'name' : 'Tom', 'mood' : 'Happy'}, {'name' : 'Dick',
'mood' : 'Sad'}, {'name' : 'Harry', 'mood' : 
'Hairy'}]

How are you feeling?

#for $person in $people

$person['name'] is $person['mood']

#end for


Oleg.
-- 
Oleg Broytmanhttps://phdru.name/p...@phdru.name
   Programmers don't die, they just GOSUB without RETURN.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: proposal for slice hashing

2020-05-16 Thread Will Bradshaw
On Tuesday, May 12, 2020 at 5:51:37 PM UTC-4, Paul Rubin wrote:
> Terry Reedy  writes:
> > Slice objects are similar to named tuples
> 
> In that case making them hashable sounds like good sense.

I mean I've already made and tested a patch it wasn't hard. I did same day as I 
made the post. I've also done a bit of work on the proposal to make the key 
function changeable in functools.lru_cache though that is a bit more complex 
and will take a bit of refactoring to do right.
-- 
https://mail.python.org/mailman/listinfo/python-list


OT: ALGOL 60 at 60

2020-05-16 Thread DL Neil via Python-list
ALGOL 60 at 60: The greatest computer language you've never used and 
grandaddy of the programming family tree

Back to the time when tape was king
By Richard Speed 15 May 2020 at 09:47
https://www.theregister.co.uk/2020/05/15/algol_60_at_60/

NB 'El Reg' is known for its irreverent and cynical views of computing, 
poking-fun at every opportunity and using British-slang (which may 
challenge some - one way or another).



I've often surmised reminders of ALGOL in Python. However, I had not 
previously remembered the ALGOL Bulletins and their similarity to 
Python's PEPs.



ALGOL was almost 'the machine language' for the Burroughs B6700 series 
(and similar) but concurring with the article, we regarded it as 
somewhat academic and majored in FORTRAN, COBOL, or both. (as distinct 
from those who defined ComSc as compiler writing, for whom ALGOL was a 
brilliant tool!)


The article also managed to elicit an "oh wow" from me, with its picture 
of a drum-plotter - few today will have seen a plotter that moves the 
paper as well as the pen (even if that's still the way most 
'character-printers' work).



Silver-surfers of the world unite!
--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list


Re: OT: ALGOL 60 at 60

2020-05-16 Thread Bill Campbell
On Sun, May 17, 2020, DL Neil via Python-list wrote:
>ALGOL 60 at 60: The greatest computer language you've never used and
>grandaddy of the programming family tree
>Back to the time when tape was king
>By Richard Speed 15 May 2020 at 09:47
>https://www.theregister.co.uk/2020/05/15/algol_60_at_60/

Boy does that bring back some memories :-).

ALGOL was the third programming language I learned after FORTRAN
and Assembly on the Bendix G-20 in early 1966.

I first learned ALGOL on G.E. time sharing, where input was paper
tape, although it didn't require loading the compilers from tape
so I never hat that pleasure.  I loved the block structure of ALGOL,
and started indenting FORTRAN so that the program logic stood out
even if FORTRAN didn't understand it.

...
>ALGOL was almost 'the machine language' for the Burroughs B6700 series (and
>similar) but concurring with the article, we regarded it as somewhat academic
>and majored in FORTRAN, COBOL, or both. (as distinct from those who defined
>ComSc as compiler writing, for whom ALGOL was a brilliant tool!)

I really got into ALGOL on a time sharing system using the
Burroughs B-5500 where ALGOL was the system's native language,
there was no Assembly Language per-se.  The OS MCP, (Master
Control Progam) was written entirely in ALGOL.  The FORTRAN
compiler generated ALGOL source, and I learned a lot looking at
the ALGOL output of the FORTRAN program.

Many of the programming methods I use today have their roots in
doing a lot of scientific programming in ALGOL on the B-5500,
then in BPL (Burroughs Programming Language) on Burroughs Medium
Systems, B-2500->B-4500.

Bill
-- 
INTERNET:   b...@celestial.com  Bill Campbell; Celestial Software LLC
URL: http://www2.celestial.com/ 6641 E. Mercer Way
Mobile: (206) 947-5591  PO Box 820
Fax:(206) 232-9186  Mercer Island, WA 98040-0820

In free governments the rulers are the servants, and the people their
superiors & sovereigns." -- Benjamin Franklin
-- 
https://mail.python.org/mailman/listinfo/python-list