Re: neonumeric - C++ arbitrary precision arithmetic library

2021-03-07 Thread Christian Gollwitzer
Am 07.03.21 um 20:42 schrieb Peter J. Holzer: The second part is converting a parse tree into code. I am quite sure that it is possible to devise a formal language to specify the semantics of any programming language and then to use this to generate the code. However, I strongly suspect that such

Re: editor recommendations?

2021-03-07 Thread Cameron Simpson
On 03Mar2021 10:00, Lele Gaifax wrote: >Cameron Simpson writes: >> My fingers know vim. Some others' fingers know emacs. > >Emacs has also an Evil[1] mode, that mimics some vi/vim features. Whenever I've tries emulate-vi modes they tend to lack some coner case known to my fingers. [... Doom Em

Re: How to implement logging for an imported module?

2021-03-07 Thread Pankaj Jangid
"Joseph L. Casale" writes: >> I couldn't find any information on how to implement logging in a >> library that doesn't know the name of the application that uses >> it. How is that done? > Create (get) a root logger (you don't have to use it) and set the > level, and attach a handler to it. Then

Re: Choosable dependency

2021-03-07 Thread Grant Edwards
On 2021-03-07, Manfred Lotz wrote: > On Sat, 6 Mar 2021 15:40:41 - (UTC) > Grant Edwards wrote: > >> On 2021-03-06, Manfred Lotz wrote: >> > Let us say I have a package which reads a TOML file. >> > >> > I want to give the user of my package the choice to decide if he >> > wants to use the

Re: Choosable dependency

2021-03-07 Thread Dan Stromberg
I sometimes do things like: try: import rtoml as toml except ImportError: import toml ...but I don't like it very much, because it tends to confuse static analyzers like pyflakes and pylint. Maybe mypy will deal with it better? Not sure yet. On Sat, Mar 6, 2021 at 3:05 AM Manfred Lotz

Re: python curses constant names for mouse wheel movements?

2021-03-07 Thread Alan Gauld via Python-list
On 07/03/2021 07:16, pjfarl...@earthlink.net wrote: > Where can I find any documentation of the correct curses constant name(s) to > use for detecting a "wheel down" action? Or do I just have to manually > define my own BUTTON5 constant name for the wheel-down event? I suspect you need to look i

Re: editor recommendations?

2021-03-07 Thread Russell
Dan Stromberg wrote: > On Tue, Mar 2, 2021 at 8:11 PM Dan Stromberg wrote: > >> >> On Tue, Mar 2, 2021 at 8:00 PM Russell wrote: >> >>> Ethan Furman wrote: >>> > I'm currently using vim, and the primary reason I've stuck with it for >>> so long is because I can get truly black screens with it.

RE: Apriori Algorithm

2021-03-07 Thread Avi Gross via Python-list
Speaking for myself, that is a very significant piece of homework to do and unless you do quite a bit and get stuck and ask for help in some aspect, this is not the place to ask if anyone wishes to do all the work. The assignment seems to want you to write your own code to implement the algorithm.

Re: Choosable dependency

2021-03-07 Thread Manfred Lotz
On Sat, 6 Mar 2021 15:40:41 - (UTC) Grant Edwards wrote: > On 2021-03-06, Manfred Lotz wrote: > > Let us say I have a package which reads a TOML file. > > > > I want to give the user of my package the choice to decide if he > > wants to use the toml, tomlkit or rtoml package. > > Why wo

Re: Apriori Algorithm

2021-03-07 Thread sarang shah
On Sunday, March 7, 2021 at 11:55:21 AM UTC-6, Avi Gross wrote: > I apologize for my earlier snide remark as I was not then aware there was an > algorithm called apriori based on the Latin term and wondered if someone was > pulling someone's leg, in advance. > > Someone has posted a pointer to

RE: neonumeric - C++ arbitrary precision arithmetic library

2021-03-07 Thread Avi Gross via Python-list
The precedence example used below made a strange assumption that the imaginary program would not be told up-front what computer language it was being asked to convert from. That is not the scenario being discussed as we have described. In any particular language, there usually is a well-known prece

RE: How to implement logging for an imported module?

2021-03-07 Thread Joseph L. Casale
> I couldn't find any information on how to implement logging in a library that > doesn't know the name of the application that uses it. How is that done? Hello, That's not how it works, it is the opposite. You need to know the name of its logger, and since you imported it, you do. Logging is hi

Re: neonumeric - C++ arbitrary precision arithmetic library

2021-03-07 Thread Peter J. Holzer
On 2021-03-06 23:41:10 +0100, Mirko via Python-list wrote: > I even wonder why they have tried. Writing a universal > compiler/interpreter sounds logically impossible to me, Here's a > simple Python expression: > > >>> 3+3*5 > 18 > > And here's the same expression in (GNU) Smalltalk: > > st> 3+3

Please don't feed the trolls

2021-03-07 Thread Terry Reedy
Trolling, among other things, is fishing with a moving line, especially with a revolving lure, as from a moving boat. A troll, among other things, is that method or the lure used. On the internet, 'troll' is used metaphorically. A troll is a flashy post designed to catch peoples emotions and

Re: Choosable dependency

2021-03-07 Thread Grant Edwards
On 2021-03-06, Manfred Lotz wrote: > Let us say I have a package which reads a TOML file. > > I want to give the user of my package the choice to decide if he wants > to use the toml, tomlkit or rtoml package. Why would the user choose one over the other? Does the user get different functions/

Re: How to implement logging for an imported module?

2021-03-07 Thread Dieter Maurer
Robert Latest wrote at 2021-3-7 10:21 GMT: >I'm trying to add logging to a module that gets imported by another module. But >I only get it to work right if the imported module knows the name of the >importing module. The example given in the "Logging Cookbook" also rely on this >fact. I have used

RE: Apriori Algorithm

2021-03-07 Thread Avi Gross via Python-list
I apologize for my earlier snide remark as I was not then aware there was an algorithm called apriori based on the Latin term and wondered if someone was pulling someone's leg, in advance. Someone has posted a pointer to Python code that is supposed to do that. If that is suitable, then the seriou

google text-to-speech python

2021-03-07 Thread tommy yama
Hi, Anyone familiar with how to change speech pace with python script? Thanks! -- https://mail.python.org/mailman/listinfo/python-list

python curses constant names for mouse wheel movements?

2021-03-07 Thread pjfarley3
I have a python curses project trying to detect mouse wheel movements, and I understand that mouse wheel events by convention are reported as BUTTON4 and BUTTON5 events. I am running on a Win10 system with python 3.8.7 and windows-curses 2.2.0, which I am given to understand uses the gohlke PDCurs

How to implement logging for an imported module?

2021-03-07 Thread Robert Latest via Python-list
Hello, I'm trying to add logging to a module that gets imported by another module. But I only get it to work right if the imported module knows the name of the importing module. The example given in the "Logging Cookbook" also rely on this fact. https://docs.python.org/3/howto/logging-cookbook.ht

A 35mm film camera represented in Python object

2021-03-07 Thread D.M. Procida
Hi everyone, I've created - a representation of a Canonet G-III QL17 in Python. There's also documentation: . It's a pure Python model of the physical sub-systems of a camera and their interactions. So far it's a

Re: Apriori Algorithm

2021-03-07 Thread dn via Python-list
On 07/03/2021 20.56, sarang shah wrote: > I have this dataset in a text file I need to make an apriori algorithm based > on it. Please help. > > 25 52 164 240 274 328 368 448 538 561 630 687 730 775 825 834 > 39 120 124 205 401 581 704 814 825 834 > 35 249 674 712 733 759 854 950 > 39 422 449

Apriori Algorithm

2021-03-07 Thread sarang shah
I have this dataset in a text file I need to make an apriori algorithm based on it. Please help. 25 52 164 240 274 328 368 448 538 561 630 687 730 775 825 834 39 120 124 205 401 581 704 814 825 834 35 249 674 712 733 759 854 950 39 422 449 704 825 857 895 937 954 964 15 229 262 283 294 352 38