Re: Data model and attribute resolution in subclasses

2020-03-01 Thread Adam Preble
On Sunday, March 1, 2020 at 3:08:29 PM UTC-6, Terry Reedy wrote: > Because BaseClass is the superclass of SubClass. So there's a mechanism for parent classes to know all their children? -- https://mail.python.org/mailman/listinfo/python-list

Re: 【Regarding Performance of a Python Script....】

2020-03-01 Thread Cameron Simpson
On 28Feb2020 19:24, Kenzi wrote: I have a question regarding a simple code snippet in Python: from subprocess import check_output for i in range(1024): check_output(['/bin/bash', '-c', 'echo 42'], close_fds=True) *I wonder why running it in Python 3.7 is much faster than Python 2.7? * (Pyth

Re: Have you some experience / link about difference between Python builded with gcc and clang?

2020-03-01 Thread Skip Montanaro via Python-list
I didn't have clang installed. It was just "sudo apt install clang-8". From there all I had to do was build Python from scratch twice, install pyperformance using pip after the first build, then run it after each build. It's not difficult. Going beyond that right now is not an itch I need to scratc

Re: Have you some experience / link about difference between Python builded with gcc and clang?

2020-03-01 Thread Marco Sulla via Python-list
Good! Have you compiled it optimized (--enable-optimizations --with-lto)? On Sun, 1 Mar 2020 at 23:48, Skip Montanaro wrote: > > > As title. Currently I'm using gcc 9.2.0 and its compilation seems to > > work well and fast. But I would know by your experience if clang can > > produce, on a *nix s

Re: Have you some experience / link about difference between Python builded with gcc and clang?

2020-03-01 Thread Skip Montanaro
> As title. Currently I'm using gcc 9.2.0 and its compilation seems to > work well and fast. But I would know by your experience if clang can > produce, on a *nix system, a "faster Python". I took a quick run at this as I was wanting to give pyperformance a

Re: EuroPython 2020: Call for Proposals opens on March 9th

2020-03-01 Thread Barry
> On 1 Mar 2020, at 14:51, Souvik Dutta wrote: > > I would like to see a bit of modernisation of the tkinter module. Like use > of style sheets and opening images in a better way like not relying on > bitmaps and thing like that. I would also like pip to check for PGP > signature as that would

Re: Multiple turtles

2020-03-01 Thread Terry Reedy
On 3/1/2020 4:54 AM, Giuseppe wrote: Hi, I am new to Python. I already tried turtle and it works well for my needs. I would like to draw fractals using turtle module. There are many ways to do that but I would like to use multiple turtles drawing in parallel but I don't know how. My first i

Have you some experience / link about difference between Python builded with gcc and clang?

2020-03-01 Thread Marco Sulla via Python-list
As title. Currently I'm using gcc 9.2.0 and its compilation seems to work well and fast. But I would know by your experience if clang can produce, on a *nix system, a "faster Python". -- https://mail.python.org/mailman/listinfo/python-list

Re: Data model and attribute resolution in subclasses

2020-03-01 Thread Terry Reedy
On 3/1/2020 4:49 AM, Adam Preble wrote: Based on what I was seeing here, I did some experiments to try to understand better what is going on: class BaseClass: def __init__(self): self.a = 1 def base_method(self): return self.a def another_base_method(self):

Re: php to python code converter

2020-03-01 Thread Terry Reedy
On 3/1/2020 12:53 AM, balbdrbhatchhe...@gmail.com wrote: On Friday, May 8, 2009 at 3:38:25 AM UTC-7, bvidinli wrote: if anybody needs: http://code.google.com/p/phppython/ this link doesn't work I believe free code.google.com was shut down a few years ago. I have a file there and was emaile

Re: EuroPython 2020: Call for Proposals opens on March 9th

2020-03-01 Thread Souvik Dutta
I would like to see a bit of modernisation of the tkinter module. Like use of style sheets and opening images in a better way like not relying on bitmaps and thing like that. I would also like pip to check for PGP signature as that would certainly ensure security. And I generally use python for ma

Re: php to python code converter

2020-03-01 Thread Souvik Dutta
Use this instead (I know the name is misleading) https://pypi.org/project/convert2php/ On Sun, Mar 1, 2020, 11:25 AM wrote: > On Friday, May 8, 2009 at 3:38:25 AM UTC-7, bvidinli wrote: > > if anybody needs: > > http://code.google.com/p/phppython/ > > this link doesn't work > -- > https://mail.p

Multiple turtles

2020-03-01 Thread Giuseppe
Hi, I am new to Python. I already tried turtle and it works well for my needs. I would like to draw fractals using turtle module. There are many ways to do that but I would like to use multiple turtles drawing in parallel but I don't know how. My first idea is to use clones as I do with Scra

Re: Data model and attribute resolution in subclasses

2020-03-01 Thread Adam Preble
Based on what I was seeing here, I did some experiments to try to understand better what is going on: class BaseClass: def __init__(self): self.a = 1 def base_method(self): return self.a def another_base_method(self): return self.a + 1 class SubClass(BaseCl