Re: Sandboxing eval() (was: Calculator)

2020-01-20 Thread Stephan Lukits
> On 19. Jan 2020, at 19:35, mus...@posteo.org wrote: > > Is it actually possible to build a "sandbox" around eval, permitting it > only to do some arithmetic and use some math functions, but no > filesystem acces or module imports? > > I have an application that loads calculation recipes (a f

Re: Sandboxing eval()

2020-01-20 Thread Frank
On 2020-01-19 7:53 PM, Paul Moore wrote: On Sun, 19 Jan 2020 at 17:45, wrote: Is it actually possible to build a "sandbox" around eval, permitting it only to do some arithmetic and use some math functions, but no filesystem acces or module imports? If you require safety, you really need to w

problem with python 3.8.1

2020-01-20 Thread coolguy 12336
hi I can not install the py launcher and I really need it for something I used repair and tried it again but it still didn't work.Do you know how to fix my issue and if you do please email me back as soon as possible thank you. -- https://mail.python.org/mailman/listinfo/python-list

installation issue.

2020-01-20 Thread NIT Application
Hi Team, I am not able to select the path on command prompt. It gives me an error that python is not recognized as an internal or external command. Please help me with this to set up and perform my activities. Regards, Sandesh Kamble Sent from Mail for Windows 10 -- https://mail.python.org

TensorFlow with 3.8.1

2020-01-20 Thread Fahad Qayyum
Hello, Hope this email finds you well. I am having an issue with the installation of TensorFlow on python 3.8.1. I want to work on TensorFlow, please let me know how can I install it. Give me the compete guide if possible. Regards Fahad Qayyum -- https://mail.python.org/mailman/listinfo/python-

Re: installation issue.

2020-01-20 Thread Joel Goldstick
On Mon, Jan 20, 2020 at 5:29 AM NIT Application wrote: > > Hi Team, > > I am not able to select the path on command prompt. It gives me an error that > python is not recognized as an internal or external command. > Please help me with this to set up and perform my activities. > > Regards, > Sand

tkinter treeview widget - bind doubleclick to items only ?

2020-01-20 Thread R.Wieser
Hello all, I've create a treeview, and would (ofcourse) want to register some mouse-clicking on it, and for that I've found the ".bind()" method. https://stackoverflow.com/questions/3794268/command-for-clicking-on-the-items-of-a-tkinter-treeview-widget There is a slight problem with it though:

[PyDDF-Ann] ANN: Python Meeting Düsseldorf - 22.01.2020

2020-01-20 Thread eGenix Team: M.-A. Lemburg
[This announcement is in German since it targets a local user group meeting in Düsseldorf, Germany] ANKÜNDIGUNG Python Meeting Düsseldorf http://pyddf.de/ Ein Tr

Re: problem with python 3.8.1

2020-01-20 Thread DL Neil via Python-list
On 20/01/20 7:35 PM, coolguy 12336 wrote: hi I can not install the py launcher and I really need it for something I used repair and tried it again but it still didn't work.Do you know how to fix my issue and if you do please email me back as soon as possible thank you. Hi, are you a student -

Re: TensorFlow with 3.8.1

2020-01-20 Thread DL Neil via Python-list
On 20/01/20 6:13 PM, Fahad Qayyum wrote: Hello, Hope this email finds you well. I am having an issue with the installation of TensorFlow on python 3.8.1. I want to work on TensorFlow, please let me know how can I install it. Give me the compete guide if possible. Hi, and welcome to the Python

Re: installation issue.

2020-01-20 Thread DL Neil via Python-list
On 20/01/20 8:13 PM, NIT Application wrote: Hi Team, I am not able to select the path on command prompt. It gives me an error that python is not recognized as an internal or external command. Please help me with this to set up and perform my activities. Regards, Sandesh Kamble Hi, and welc

Python login screen for MariaDB db

2020-01-20 Thread ^Bart
I found this article: https://www.simplifiedpython.net/python-gui-login/ I used PDO on PHP 7.3 with last MariaDB engine but I'd like to start to use Python for a local warehouse software, I found the above guide but I need to understand what I should replace from that guide to link the script

Re: Python login screen for MariaDB db

2020-01-20 Thread DL Neil via Python-list
On 21/01/20 8:37 AM, ^Bart wrote: I found this article: https://www.simplifiedpython.net/python-gui-login/ I used PDO on PHP 7.3 with last MariaDB engine but I'd like to start to use Python for a local warehouse software, I found the above guide but I need to understand what I should replace

Re: tkinter treeview widget - bind doubleclick to items only ?

2020-01-20 Thread MRAB
On 2020-01-20 10:49, R.Wieser wrote: Hello all, I've create a treeview, and would (ofcourse) want to register some mouse-clicking on it, and for that I've found the ".bind()" method. https://stackoverflow.com/questions/3794268/command-for-clicking-on-the-items-of-a-tkinter-treeview-widget Ther

Re: Python login screen for MariaDB db

2020-01-20 Thread ^Bart
Are you asking for code, or techniques? Thanks for your reply! :) I followed the code from the web article but I need to read an example of a login form connected to a MariaDB db! In the web article it's used a file to check data but I need to check data to a table in MariaDB or better how

Re: Sandboxing eval() (was: Calculator)

2020-01-20 Thread musbur
On Mon, 20 Jan 2020 06:43:41 +1100 Chris Angelico wrote: > On Mon, Jan 20, 2020 at 4:43 AM wrote: > > It works, but is it safe? > > As such? No. That's what many people have said, and I believe them. But just from a point of technical understanding: If I start with empty global and local dic

Re: Sandboxing eval() (was: Calculator)

2020-01-20 Thread Chris Angelico
On Tue, Jan 21, 2020 at 4:59 PM wrote: > > On Mon, 20 Jan 2020 06:43:41 +1100 > Chris Angelico wrote: > > > On Mon, Jan 20, 2020 at 4:43 AM wrote: > > > It works, but is it safe? > > > > As such? No. > > That's what many people have said, and I believe them. But just from a > point of technical

Re: tkinter treeview widget - bind doubleclick to items only ?

2020-01-20 Thread R.Wieser
MRAB, > self.treeview.bind('', self.on_dclick) That is what I used. Doubleclicking on the heading caused the "on_dclick" code to execute, though initially the ".identify()" call in my code returns an empty ID (no row present at the location I clicked). That changes when the treeview contents