Re: Any ideas for a new language inspired to Python?

2020-08-09 Thread 2QdxY4RzWzUUiLuE
On 2020-08-10 at 09:02:57 +1000, Chris Angelico wrote: > If you *really* want to get away from ints-as-objects, what I would > recommend is emulating it. Some languages pretend that everything's an > object, but for small integers (say, those less than 2**60), it > doesn't store the object itself

Re: IDLE: New Feature?

2020-08-09 Thread Terry Reedy
On 8/9/2020 7:39 PM, Steve wrote: Where would the conversation have to happen to get the forces-that-be to install a pull-down/history menu for the Find option in IDLE? To have to retype the search option over and over when I am toggling between two or more searches gets tiresome. I would rathe

Re: IDLE: New Feature?

2020-08-09 Thread Chris Angelico
On Mon, Aug 10, 2020 at 9:40 AM Steve wrote: > > Where would the conversation have to happen to get the forces-that-be to > install a pull-down/history menu for the Find option in IDLE? To have to > retype the search option over and over when I am toggling between two or > more searches gets tire

IDLE: New Feature?

2020-08-09 Thread Steve
Where would the conversation have to happen to get the forces-that-be to install a pull-down/history menu for the Find option in IDLE? To have to retype the search option over and over when I am toggling between two or more searches gets tiresome. I would rather spend my brain cells and bandwidth

Re: Including a Variable In the HTML Tags When Sending An Email

2020-08-09 Thread Richard Damon
On 8/9/20 6:22 PM, sammy.jackson...@gmail.com wrote: > On Sunday, August 9, 2020 at 1:32:30 AM UTC+1, Richard Damon wrote: >> On 8/8/20 8:03 PM, sammy.jackson...@gmail.com wrote: >>> If i use place holders i.e. {0} and {1} where {0} is the name and {1} is >>> the dataframe i get an error for the f

Re: Any ideas for a new language inspired to Python?

2020-08-09 Thread Chris Angelico
On Mon, Aug 10, 2020 at 2:46 AM Marco Sulla wrote: > This is another big problem: everything is an object? > It seems that in practice, using integers and floats as objects leads > to great slowdowns. And personally I never saw people that created > superclasses of int or float. Anyway, if they fe

Re: Including a Variable In the HTML Tags When Sending An Email

2020-08-09 Thread sammy . jackson987
On Sunday, August 9, 2020 at 1:32:30 AM UTC+1, Richard Damon wrote: > On 8/8/20 8:03 PM, sammy.jackson...@gmail.com wrote: > > If i use place holders i.e. {0} and {1} where {0} is the name and {1} is > > the dataframe i get an error for the following line of code:- > > .format((Name,Body).to_html(

Python 3 Feature Request: `pathlib` Use Trailing Slash Flag

2020-08-09 Thread Adam Hendry
`pathlib` trims trailing slashes by default, but certain packages require trailing slashes. In particular, `cx_Freeze.bdist_msi` option "directories" is used to build the package directory structure of a program and requires trailing slashes. Does anyone think it would be a good idea to add a f

Re: Any ideas for a new language inspired to Python?

2020-08-09 Thread 2QdxY4RzWzUUiLuE
On 2020-08-09 at 13:07:03 -0400, Dennis Lee Bieber wrote: > On Sun, 9 Aug 2020 09:31:04 +0100, Barry Scott > declaimed the following: > > > > >By going to C you are really saying you want to use the native instructions > >of your CPU. > >Contrast that with bytecode that needs an interpreter. >

Re: Any ideas for a new language inspired to Python?

2020-08-09 Thread Grant Edwards
On 2020-08-09, Marco Sulla wrote: > On Sun, 9 Aug 2020 at 10:31, Barry Scott wrote: >> By going to C you are really saying you want to use the native >> instructions of your CPU. Contrast that with bytecode that needs >> an interpreter. > > This is also an answer for Grant Edwards: the idea was

Re: Any ideas for a new language inspired to Python?

2020-08-09 Thread Terry Reedy
On 8/9/2020 12:44 PM, Marco Sulla wrote: Do you think py devs will be greatly bored if I link this discussion in the python-dev mailing list? Don't. This is neither about language development (and proposals initially go to python-ideas) nor about immediate cpython development -- Terry Jan

Re: Module import question

2020-08-09 Thread Bob Gailer
On Aug 9, 2020 11:41 AM, "Mats Wichmann" wrote: > > On 8/9/20 12:51 AM, Gabor Urban wrote: > > Hi guys, > > > > I have a quite simple question but I could not find the correct answer. > > > > I have twoo modules A and B. A imports B. If I import A in a script, Will > > be B imported automatically?

Re: Module import question

2020-08-09 Thread Gabor Urban
Hi guys, Thanks for the answers. IT is clear Noé. Gábor -- https://mail.python.org/mailman/listinfo/python-list

Re: importlib: import X as Y; from A import B

2020-08-09 Thread Dieter Maurer
Jason Friedman wrote at 2020-8-8 21:23 -0600: > ... >The cherry-on-top would be to import with the "aliasing" and "from" they >will most likely see on the web, so that my code matches what they see >there. In other words, instead of: > >import pandas >df = pandas.from_csv (...) >import selenium >br

Re: Any ideas for a new language inspired to Python?

2020-08-09 Thread Marco Sulla
On Sun, 9 Aug 2020 at 10:31, Barry Scott wrote: > By going to C you are really saying you want to use the native instructions > of your CPU. > Contrast that with bytecode that needs an interpreter. This is also an answer for Grant Edwards: the idea was to generate bytecode and compile it to mach

Re: 3.8.5 Failing To Install With pythonz

2020-08-09 Thread MRAB
On 2020-08-09 16:15, Tim Daneliuk wrote: I have a weird problem I could use a bit of help with ... I have successfully installed 3.8.5 using pew/pythonz on a BSD FreeBSD system. But when I attempt to install it on a Linux system I get the traceback below. In this case, pew/pythonz were installed

Re: Module import question

2020-08-09 Thread Mats Wichmann
On 8/9/20 12:51 AM, Gabor Urban wrote: > Hi guys, > > I have a quite simple question but I could not find the correct answer. > > I have twoo modules A and B. A imports B. If I import A in a script, Will > be B imported automatically? I guess not, but fő not know exactly. > > Thanks for your ans

3.8.5 Failing To Install With pythonz

2020-08-09 Thread Tim Daneliuk
I have a weird problem I could use a bit of help with ... I have successfully installed 3.8.5 using pew/pythonz on a BSD FreeBSD system. But when I attempt to install it on a Linux system I get the traceback below. In this case, pew/pythonz were installed locally in my own account using system nat

[ANN] PyInstaller 4.0

2020-08-09 Thread Hartmut Goebel
Hello, on behalf of the PyInstaller development team I'm happy to announce PyInstaller 4.0. http://www.pyinstaller.org Thanks for all those who contributed questions, bug-reports or pull-requests. PyInstaller is in urgent need of funding to make future security fixes happen, see

Re: Any ideas for a new language inspired to Python?

2020-08-09 Thread Barry Scott
> On 8 Aug 2020, at 18:18, Marco Sulla wrote: > > On Sat, 8 Aug 2020 at 14:10, Barry wrote: On 7 Aug 2020, at 23:28, Marco Sulla wrote: >>> My idea seems to be very simple (so probably it's not simple at all): >>> a language similar to Python, but statically compiled. >> >> Have a look

Re: Module import question

2020-08-09 Thread 황병희
Gabor Urban writes: > Hi guys, > > I have a quite simple question but I could not find the correct answer. > > I have twoo modules A and B. A imports B. If I import A in a script, Will > be B imported automatically? I guess not, but fő not know exactly. > > Thanks for your answer ín advance, #+B