Re: Simple question - end a raw string with a single backslash ?

2021-04-24 Thread Peter J. Holzer
On 2020-10-19 06:24:18 -, Mladen Gogala via Python-list wrote: > On Mon, 19 Oct 2020 02:44:25 +, Stefan Ram wrote: > > Mladen Gogala writes: > >>In Perl, there are no classes. > > > > If there are no classes in Perl, then what does > > > > bless REF,CLASSNAME > > > > do? > > bles

Re: async watch directory for new files

2021-04-24 Thread Gene Heskett
On Friday 23 April 2021 17:31:40 Zoran wrote: > Hi, > > I need to watch for new files in directory, and when it shows up, I > should create async task with file's full path for it, and wait for > new file. > > If anyone here used a library for such task, please share which one. > > Regards. inoti

"py.ini" question

2021-04-24 Thread Gisle Vanem
I have a question about the Python launcher; c:\Windows\py.exe and the py.ini file. I have both Python 3.6 (32-bit) and Python 3.8 (64-bit) installed. And I have a 'c:\Users\Gisle\AppData\Local\py.ini' with this only: [defaults] python=3.6 A copy of this is also in 'c:\Windows\py.ini'. So

Ad-hoc SQL query builder for Python3?

2021-04-24 Thread Rich Shepard
My web searches are not finding what I need to include in an application I'm building: an ad-hoc sql query builder. End users will want to query their data for reports not included in the built-in queries. My searches find a windows-only tool that apparently costs developers for the version to in

Re: "py.ini" question

2021-04-24 Thread Mats Wichmann
On 4/24/21 8:23 AM, Gisle Vanem wrote: I have a question about the Python launcher;   c:\Windows\py.exe and the py.ini file. I have both Python 3.6 (32-bit) and Python 3.8 (64-bit) installed. And I have a 'c:\Users\Gisle\AppData\Local\py.ini' with this only:   [defaults]   python=3.6 A copy

Re: Ad-hoc SQL query builder for Python3?

2021-04-24 Thread J. Pic
Maybe search or ask dba stackexchange for more, meanwhile, here's a popular one: https://github.com/dbeaver/dbeaver -- https://mail.python.org/mailman/listinfo/python-list

Re: Ad-hoc SQL query builder for Python3?

2021-04-24 Thread Rich Shepard
On Sat, 24 Apr 2021, J. Pic wrote: Maybe search or ask dba stackexchange for more, meanwhile, here's a popular one: https://github.com/dbeaver/dbeaver J., I use dbeaver-ce now and then as an admin tool. I didn't consider it as an included component in a desktop application. I'll look at it fr

Re: async watch directory for new files

2021-04-24 Thread Dieter Maurer
Zoran wrote at 2021-4-23 14:31 -0700: >I need to watch for new files in directory, and when it shows up, I should >create async task with file's full path for it, and wait for new file. > >If anyone here used a library for such task, please share which one. The solution likely depends on the OS y

Re: Ad-hoc SQL query builder for Python3?

2021-04-24 Thread dn via Python-list
On 25/04/2021 02.24, Rich Shepard wrote: > My web searches are not finding what I need to include in an application > I'm > building: an ad-hoc sql query builder. > > End users will want to query their data for reports not included in the > built-in queries. My searches find a windows-only tool th

Re: "py.ini" question

2021-04-24 Thread Barry Scott
> On 24 Apr 2021, at 15:23, Gisle Vanem wrote: > > I have a question about the Python launcher; > c:\Windows\py.exe and the py.ini file. > > I have both Python 3.6 (32-bit) and Python 3.8 (64-bit) > installed. And I have a 'c:\Users\Gisle\AppData\Local\py.ini' > with this only: > [defaults]

Re: "py.ini" question

2021-04-24 Thread Gisle Vanem
Barry Scott wrote: A copy of this is also in 'c:\Windows\py.ini'. So when I do a: py -3 -c "import sys; print(sys.version)" I would assume a "3.6..." would be printed. But no, py.exe chooses to run my newest Python 3.8: 3.8.9 (default, Apr 13 2021, 15:54:59) [GCC 10.2.0 64 bit (AMD64)] On

Re: async watch directory for new files

2021-04-24 Thread Zoran
On Saturday, 24 April 2021 at 18:52:24 UTC+2, Dieter Maurer wrote: > Zoran wrote at 2021-4-23 14:31 -0700: > >I need to watch for new files in directory, and when it shows up, I should > >create async task with file's full path for it, and wait for new file. > > > >If anyone here used a library

Re: "py.ini" question

2021-04-24 Thread Chris Angelico
On Sun, Apr 25, 2021 at 5:57 AM Gisle Vanem wrote: > > With 'py -3.6' or 'py 3.8' I get the expected. > But with 'py -3': >Python 3.8.9 (default, Apr 13 2021, 15:54:59) [GCC 10.2.0 64 bit (AMD64)] > on win32 > I believe that's because you're asking for "the latest in the 3.x series". ChrisA

Re: async watch directory for new files

2021-04-24 Thread Chris Angelico
On Sun, Apr 25, 2021 at 6:16 AM Zoran wrote: > > On Saturday, 24 April 2021 at 18:52:24 UTC+2, Dieter Maurer wrote: > > Zoran wrote at 2021-4-23 14:31 -0700: > > >I need to watch for new files in directory, and when it shows up, I should > > >create async task with file's full path for it, and wa

Re: async watch directory for new files

2021-04-24 Thread Zoran
> Bear in mind that asyncio is NOT the only way to be asynchronous. So > what you're asking for is, very specifically, an asyncio-compatible > inotify. Turns out, there's an ainotify on PyPI that might be what you > want. Yes there is: https://github.com/rbarrois/aionotify https://asyncinotify