Re: Complete working version of cython Queue example?

2025-01-13 Thread Thomas Passin via Python-list
On 1/13/2025 11:09 AM, Henry S. Thompson via Python-list wrote: I've spent several days trying to get this example [1] working, using Python3.11 and Cython 3.0.11 of Debian. I've copied the example files as carefully as I can, renamed some to avoid a name clash with the queue.py li

Re: Complete working version of cython Queue example?

2025-01-13 Thread Henry S. Thompson via Python-list
[with link] Henry S. Thompson via Python-list writes: > I've spent several days trying to get this example [1] working, using > Python3.11 and Cython 3.0.11 of Debian. > > I've copied the example files as carefully as I can, renamed some to > avoid a name clash with the

Complete working version of cython Queue example?

2025-01-13 Thread Henry S. Thompson via Python-list
I've spent several days trying to get this example [1] working, using Python3.11 and Cython 3.0.11 of Debian. I've copied the example files as carefully as I can, renamed some to avoid a name clash with the queue.py library, but the Pure Python version throws errors at compile time an

Re: ListAdmin: Is list/archive working correctly?

2024-08-31 Thread Keith Thompson via Python-list
Ethan Furman writes: > On 8/30/24 15:28, dn via Python-list wrote: >> The OP was @Gilmeh Serda (from an invalid email address). That appears in >> the email thread >> >> @Stefan Ram has had two contributions quoted, but no such original-message >> has appeared in the thread. > > I can't speak ab

Re: ListAdmin: Is list/archive working correctly?

2024-08-31 Thread Ethan Furman via Python-list
On 8/30/24 15:28, dn via Python-list wrote: > The OP was @Gilmeh Serda (from an invalid email address). That appears in the email thread > > @Stefan Ram has had two contributions quoted, but no such original-message has appeared in the thread. I can't speak about the archives, but I can say th

Re: ListAdmin: Is list/archive working correctly?

2024-08-31 Thread Albert-Jan Roskam via Python-list
I also think that list/archive isn't working properly. Very little emails. Before, this was quite a busy list. -- https://mail.python.org/mailman/listinfo/python-list

Re: ListAdmin: Is list/archive working correctly?

2024-08-31 Thread Barry Scott via Python-list
> On 30 Aug 2024, at 23:28, dn via Python-list wrote: > > Me email (only) client shows a thread of 12 messages. > > The OP was @Gilmeh Serda (from an invalid email address). That appears in the > email thread > > @Stefan Ram has had two contributions quoted, but no such original-message >

ListAdmin: Is list/archive working correctly?

2024-08-30 Thread dn via Python-list
For example, have been following the thread "Is there a better way? [combining f-string, thousands separator, right align]". Me email (only) client shows a thread of 12 messages. The OP was @Gilmeh Serda (from an invalid email address). That appears in the email thread @Stefan Ram has had t

Re: Predicting an object over an pretrained model is not working

2024-07-31 Thread marc nicole via Python-list
You invitation to read on machine is not helping, if you wanna enlighten us on this specific case otherwise pls spare me such comments which i know On Wed, 31 Jul 2024, 16:00 Grant Edwards via Python-list, < python-list@python.org> wrote: > On 2024-07-31, marc nicole via Python-list wrote: > > >

Re: Predicting an object over an pretrained model is not working

2024-07-31 Thread Grant Edwards via Python-list
On 2024-07-31, marc nicole via Python-list wrote: > I suppose the meaning of those numbers comes from this line > predicts_dict[class_name].append([int(xmin), int(ymin), int(xmax), > int(ymax), P[index]]) as well as the yolo inference call. But i was > expecting zeros for all classes except small

Re: Predicting an object over an pretrained model is not working

2024-07-31 Thread marc nicole via Python-list
I suppose the meaning of those numbers comes from this line predicts_dict[class_name].append([int(xmin), int(ymin), int(xmax), int(ymax), P[index]]) as well as the yolo inference call. But i was expecting zeros for all classes except smallball. Because the image only shows that, and that a train an

Re: Predicting an object over an pretrained model is not working

2024-07-30 Thread dn via Python-list
On 31/07/24 06:18, marc nicole via Python-list wrote: Hello all, I want to predict an object by given as input an image and want to have my model be able to predict the label. I have trained a model using tensorflow based on annotated database where the target object to predict was added to the

Re: Predicting an object over an pretrained model is not working

2024-07-30 Thread Thomas Passin via Python-list
On 7/30/2024 4:49 PM, marc nicole wrote: OK, but how's the probability of small_ball greater than others? I can't find it anyway, what's its value? It's your code. I wouldn't know. I suppose it's represented somewhere in all those parameters. You need to understand what those function calls a

Re: Predicting an object over an pretrained model is not working

2024-07-30 Thread marc nicole via Python-list
OK, but how's the probability of small_ball greater than others? I can't find it anyway, what's its value? Le mar. 30 juil. 2024 à 21:37, Thomas Passin via Python-list < python-list@python.org> a écrit : > On 7/30/2024 2:18 PM, marc nicole via Python-list wrote: > > Hello all, > > > > I want to p

Re: Predicting an object over an pretrained model is not working

2024-07-30 Thread Thomas Passin via Python-list
On 7/30/2024 2:18 PM, marc nicole via Python-list wrote: Hello all, I want to predict an object by given as input an image and want to have my model be able to predict the label. I have trained a model using tensorflow based on annotated database where the target object to predict was added to t

Predicting an object over an pretrained model is not working

2024-07-30 Thread marc nicole via Python-list
Hello all, I want to predict an object by given as input an image and want to have my model be able to predict the label. I have trained a model using tensorflow based on annotated database where the target object to predict was added to the pretrained model. the code I am using is the following w

Re: python repl vi mode line editing not working.

2024-07-11 Thread Tobiah via Python-list
I see the literal 'escape' character + 'k', when it should let me edit previous commands. I did have to compile my own python because I'm using 2.7 on this machine. I figured it out. I needed to apt install libreadline-dev. -- https://mail.python.org/mailman/listinfo/python-list

Re: python repl vi mode line editing not working.

2024-07-11 Thread Tobiah via Python-list
For this to work, the Python implementation should use the same readline library as your shell, I guess. It works in python3, so I guess my problem is that I'm compiling python (I think kubuntu dropped python2), but I don't see any relevant options in the configure help. -- https://m

python repl vi mode line editing not working.

2024-07-11 Thread Tobiah via Python-list
Kubuntu 24.04. sinewave:toby ~(1)> cat .inputrc set editing-mode vi set keymap vi sinewave:toby ~(1)> cat .editrc bind -v bind \\t rl_complete sinewave:toby ~(1)> python Python 2.7.18 (default, Jul 8 2024, 12:49:12) [GCC 13.2.0] on linux2 Type "help", "copyright", "credits" or "license" for mor

Re: type annotation vs working code

2023-10-04 Thread Karsten Hilbert via Python-list
Am Wed, Oct 04, 2023 at 05:25:04PM +1300 schrieb dn via Python-list: > The first question when dealing with the Singleton Pattern is what to do when > more than > one instantiation is attempted: > > - silently return the first instance This, in my case. > and so, returning to the matter of 'rea

Re: type annotation vs working code

2023-10-04 Thread dn via Python-list
On 04/10/2023 19.41, Chris Angelico via Python-list wrote: On Wed, 4 Oct 2023 at 15:27, dn via Python-list wrote: - should the class have been called either; class SomethingSingleton(): or a Singleton() class defined, which is then sub-classed, ie class Something( Singleton ): i

Re: type annotation vs working code

2023-10-03 Thread Chris Angelico via Python-list
On Wed, 4 Oct 2023 at 17:47, Greg Ewing via Python-list wrote: > > On 4/10/23 5:25 pm, dn wrote: > > The first question when dealing with the Singleton Pattern is what to do > > when more than one instantiation is attempted > > My preferred way of handling singletons is not to expose the class > i

Re: type annotation vs working code

2023-10-03 Thread Greg Ewing via Python-list
On 4/10/23 5:25 pm, dn wrote: The first question when dealing with the Singleton Pattern is what to do when more than one instantiation is attempted My preferred way of handling singletons is not to expose the class itself, but a function that creates an instance the first time it's called, and

Re: type annotation vs working code

2023-10-03 Thread Chris Angelico via Python-list
On Wed, 4 Oct 2023 at 15:27, dn via Python-list wrote: > - should the class have been called either; > > class SomethingSingleton(): > > or a Singleton() class defined, which is then sub-classed, ie > > class Something( Singleton ): > > in order to better communicate the coder's intent t

Re: type annotation vs working code

2023-10-03 Thread dn via Python-list
On 02/10/2023 00.57, Karsten Hilbert via Python-list wrote: Sorry for having conflated the core of the matter with all the Borg shenanigans, that's where I found the problem in my real code, so there :-) The first question when dealing with the Singleton Pattern is what to do when more than on

Re: Python 3.12.0 venv not working with psycopg2

2023-10-02 Thread Peter J. Holzer via Python-list
On 2023-10-02 19:44:12 +0300, אורי via Python-list wrote: > I have an issue since about 5 months now. Python 3.12.0 venv not working > with psycopg2 on Windows. I created 2 issues on GitHub but they were > closed. I checked today with the new Python release but it's still not > wo

Python 3.12.0 venv not working with psycopg2

2023-10-02 Thread אורי via Python-list
Hi, I have an issue since about 5 months now. Python 3.12.0 venv not working with psycopg2 on Windows. I created 2 issues on GitHub but they were closed. I checked today with the new Python release but it's still not working. https://github.com/psycopg/psycopg2/issues/1578 https://githu

Re: type annotation vs working code

2023-10-01 Thread Chris Angelico via Python-list
On Mon, 2 Oct 2023 at 09:10, Barry via Python-list wrote: > > > > > On 1 Oct 2023, at 19:36, Richard Damon via Python-list > > wrote: > > > > Perhaps a better method would be rather than just using the name and > > catching the exception, use a real already_initialized flag (set to True > > wh

Re: type annotation vs working code

2023-10-01 Thread Barry via Python-list
> On 1 Oct 2023, at 19:36, Richard Damon via Python-list > wrote: > > Perhaps a better method would be rather than just using the name and catching > the exception, use a real already_initialized flag (set to True when you > initialize), and look it up with getattr() with a default value of

Re: type annotation vs working code

2023-10-01 Thread Richard Damon via Python-list
My view of the issue is that the "trick" of "evaluating" a name to see if the object has been initialized is just a tad on the "tricky" side, and the annotation/value is really incorrect. The name at the point you are annotating it, isn't really a "bool" because a bool will always have either

Re: type annotation vs working code

2023-10-01 Thread Chris Angelico via Python-list
On Sun, 1 Oct 2023 at 22:58, Karsten Hilbert via Python-list wrote: > > Sorry for having conflated the core of the matter with all > the Borg shenanigans, that's where I found the problem in my > real code, so there :-) > > Consider this: > > # >

Re: type annotation vs working code

2023-10-01 Thread Karsten Hilbert via Python-list
Sorry for having conflated the core of the matter with all the Borg shenanigans, that's where I found the problem in my real code, so there :-) Consider this: # class Surprise: def __init__(self, with_type_annotation=False):

Re: type annotation vs working code

2023-09-30 Thread dn via Python-list
On 01/10/2023 11.25, Karsten Hilbert via Python-list wrote: Am Sun, Oct 01, 2023 at 09:04:05AM +1300 schrieb dn via Python-list: class WorkingSingleton(Borg): def __init__(self): print(self.__class__.__name__, ':') try: self.alrea

Re: type annotation vs working code

2023-09-30 Thread Karsten Hilbert via Python-list
Am Sun, Oct 01, 2023 at 09:04:05AM +1300 schrieb dn via Python-list: > >class WorkingSingleton(Borg): > > > > def __init__(self): > > print(self.__class__.__name__, ':') > > try: > > self.already_initialized > > print('already ini

Re: type annotation vs working code

2023-09-30 Thread dn via Python-list
nt(s.special_value) s = FailingSingleton() print(s.special_value) #---- Notice how Working* and Failing differ in the type annotation of self.already_initialized only. Output: WorkingSingleton : initializing

Re: type annotation vs working code

2023-09-30 Thread Mats Wichmann via Python-list
nt(s.special_value) s = FailingSingleton() print(s.special_value) #---- Notice how Working* and Failing differ in the type annotation of self.already_initialized only. What happens here is in the second case, the line is just recorded as a variable annotat

type annotation vs working code

2023-09-30 Thread Karsten Hilbert via Python-list
----- Notice how Working* and Failing differ in the type annotation of self.already_initialized only. Output: WorkingSingleton : initializing 42 FailingSingleton : already initialized

Re: Working with paths

2023-07-16 Thread Kushal Kumaran via Python-list
On Sun, Jul 16 2023 at 03:58:07 PM, Peter Slížik wrote: > Hello, > > I finally had a look at the pathlib module. (Should have done it long ago, > but anyway...). Having in mind the replies from my older thread (File > system path annotations), what is the best way to support all possible path > ty

Working with paths

2023-07-16 Thread Peter Slížik via Python-list
Hello, I finally had a look at the pathlib module. (Should have done it long ago, but anyway...). Having in mind the replies from my older thread (File system path annotations), what is the best way to support all possible path types? def doit(path: str | bytes | os.PathLike): match path: case st

Re: Python installation not full and python not working 3.11.0

2023-03-10 Thread Thomas Passin
On 3/10/2023 9:51 PM, Thomas Passin wrote: On 3/10/2023 6:27 PM, Jan Vasko wrote: Please note that you can't attach images in these posts, at least not so we can read them.  Instead, copy the messages from the console and paste them into your post. I suggest that you check to make sure that

Re: Python installation not full and python not working 3.11.0

2023-03-10 Thread MRAB
On 2023-03-10 23:27, Jan Vasko wrote: Hello all, I would like to ask you for help. I have been using Python 3.8 for almost 2 years and I decided to update to 3.11. Initially everything was correct. But at some point Windows shows me that Python is being reinstalled (I don't have a message pr

Re: Python installation not full and python not working 3.11.0

2023-03-10 Thread Thomas Passin
On 3/10/2023 6:27 PM, Jan Vasko wrote: Please note that you can't attach images in these posts, at least not so we can read them. Instead, copy the messages from the console and paste them into your post. I suggest that you check to make sure that your system hasn't been damaged or corrupte

RE: Python installation not full and python not working 3.11.0

2023-03-10 Thread Jan Vasko
Hello all, I would like to ask you for help. I have been using Python 3.8 for almost 2 years and I decided to update to 3.11. Initially everything was correct. But at some point Windows shows me that Python is being reinstalled (I don't have a message print screen ..), but from that time I can

Re: Languages working together

2023-01-25 Thread Thomas Passin
On 1/25/2023 2:21 PM, avi.e.gr...@gmail.com wrote: [...] Sharing can come at many levels. I am fairly certain many very different languages may still share libraries written ages ago and written in C or FORTRAN and thus external to other languages and just need some way to interface to them.

Languages working together

2023-01-25 Thread avi.e.gross
Thomas, I changed the subject line as we are not talking about bool and int anymore. For me, there are several sides to JAVA that go beyond the "language" to the JVM, or Java Virtual Machine. What you are describing is an example of interoperability you can get if your language also is built on

Re: Python - working with xml/lxml/objectify/schemas, datatypes, and assignments

2023-01-19 Thread Dan Kolis
Editing text intended primarily for machine reading that involves metadata and lower level facts is a horror show. I sort of worked for a company years ago and a smart ass suggested I was making labor for myself by doing changes to a scripting language for db users, maybe a few hours a week. He

Re: Python - working with xml/lxml/objectify/schemas, datatypes, and assignments

2023-01-15 Thread aapost
it has a python type that it sends all the way up right next to object, when that doesn't actually occur until after simpleType in class string (basis.simpleTypeDefinition, str): This makes the object dependent on it's parent, since it itself IS the value, I can't assign to or do anything to it by it

Re: Python - working with xml/lxml/objectify/schemas, datatypes, and assignments

2023-01-15 Thread aapost
On 1/3/23 22:57, aapost wrote: I am trying to wrap my head around how one goes about working with and editing xml elements ... Back to contemplating and tinkering.. For anyone in a similar situation, xmlschema is actually quite nice. It didn't have the features I was looking for out o

Re: Python - working with xml/lxml/objectify/schemas, datatypes, and assignments

2023-01-11 Thread Dieter Maurer
aapost wrote at 2023-1-10 22:15 -0500: >On 1/4/23 12:13, aapost wrote: >> On 1/4/23 09:42, Dieter Maurer wrote: >> ... >>> You might have a look at `PyXB`, too. >>> It tries hard to enforce schema restrictions in Python code. >> ... >Unfortunately picking it apart for a while and diving deeper in t

Re: Python - working with xml/lxml/objectify/schemas, datatypes, and assignments

2023-01-10 Thread aapost
or numerous calls and custom types, and in a way that feels more live rather than just checking validity at the end of the edits as if I were modifying the XML manually. Thank you for the suggestion, PyXB works much more like how I envisioned working with xml in my head: >>> xm

Re: Python - working with xml/lxml/objectify/schemas, datatypes, and assignments

2023-01-04 Thread aapost
, and in a way that feels more live rather than just checking validity at the end of the edits as if I were modifying the XML manually. Thank you for the suggestion, PyXB works much more like how I envisioned working with xml in my head: >>> xml_root.Version = 1231.32000 pyxb.e

Re: Python - working with xml/lxml/objectify/schemas, datatypes, and assignments

2023-01-04 Thread Dieter Maurer
aapost wrote at 2023-1-3 22:57 -0500: > ... >Consider the following: > >from lxml import objectify, etree >schema = etree.XMLSchema(file="path_to_my_xsd_schema_file") >parser = objectify.makeparser(schema=schema, encoding="UTF-8") >xml_obj = objectify.parse("path_to_my_xml_file", parser=parser) >xm

Python - working with xml/lxml/objectify/schemas, datatypes, and assignments

2023-01-03 Thread aapost
I am trying to wrap my head around how one goes about working with and editing xml elements since it feels more complicated than it seems it should be.. Just to get some feedback on how others might approach it and see if I am missing anything obvious that I haven't discovered yet, since

Re: pygame.midi input/output not working

2022-12-22 Thread Thomas Passin
This issue thread on Github says that everyone is waiting on the packaging maintainer, but nothing from him for some time. On 12/22/2022 5:04 AM, Peter J. Holzer wrote: On 2022-12-21 17:23:47 -0500, Thomas Passin wrote: The pygame web site says this: "Pygame still does not run on Python 3.11"

Re: pygame.midi input/output not working

2022-12-22 Thread Weatherby,Gerard
https://github.com/pygame/pygame/issues/3522 From: Python-list on behalf of Peter J. Holzer Date: Thursday, December 22, 2022 at 5:06 AM To: python-list@python.org Subject: Re: pygame.midi input/output not working On 2022-12-21 17:23:47 -0500, Thomas Passin wrote: > The pygame web site s

Re: pygame.midi input/output not working

2022-12-22 Thread Peter J. Holzer
On 2022-12-21 17:23:47 -0500, Thomas Passin wrote: > The pygame web site says this: > > "Pygame still does not run on Python 3.11" This doesn't sound like "we haven't got around to preparing packages yet" and more like "there's a serious incompatibility we haven't solved yet". Does anybody know

Fwd: pygame.midi input/output not working

2022-12-21 Thread Patrick EGLOFF
Hi Thomas, Thanks for the answer AND solution ! That was it... shame on me, I didn't notice this warning. I uninstalled 3.11.1 and installed 3.10.9, and my software is back to live ! Now I have to figure out another problem. I will make another post about this serial weird behavior. Thanks for

Re: pygame.midi input/output not working

2022-12-21 Thread Thomas Passin
On 12/21/2022 4:32 PM, Patrick EGLOFF wrote: HI, Some time ago I wrote a small software using pygame.midi It worked just fine with Win10/ python 3.9 / SDL 2.0.14 / pygame 2.0.1 I had to change my computer and now I installed Win10 / Python 3.11.1 / SDL 2.0.18 / pygame 2.1.2 The following instru

pygame.midi input/output not working

2022-12-21 Thread Patrick EGLOFF
HI, Some time ago I wrote a small software using pygame.midi It worked just fine with Win10/ python 3.9 / SDL 2.0.14 / pygame 2.0.1 I had to change my computer and now I installed Win10 / Python 3.11.1 / SDL 2.0.18 / pygame 2.1.2 The following instructions don't work anymore, making the IDE stop

Re: Download Not Working

2022-12-16 Thread Mats Wichmann
On 12/16/22 09:07, Kaiser Arnhart wrote: Good afternoon, I am unable to open Python 3 after downloading. For context, I uninstalled it due to not checking the "Add to Path" box Others have already asked for more details. On the above, though, note that you can fix many aspects of the install

Re: Download Not Working

2022-12-16 Thread Thomas Passin
Please be more informative! Is this on Windows? Did Python 3 run as you expected, before you uninstalled it? Exactly how did you try to launch Python? Exactly what did you observe when it appeared not to run? Did you try any other ways to run it? What version of Python are you talking abou

Re: Download Not Working

2022-12-16 Thread dn
On 17/12/2022 05.07, Kaiser Arnhart wrote: Good afternoon, I am unable to open Python 3 after downloading. For context, I uninstalled it due to not checking the "Add to Path" box and then I reinstalled after checking that box and now none of the downloads will open and run Python 3. Please hel

Re: Download Not Working

2022-12-16 Thread Kaiser Arnhart
> Good afternoon, > > I am unable to open Python 3 after downloading. For context, I uninstalled it > due to not checking the "Add to Path" box and then I reinstalled after > checking that box and now none of the downloads will open and run Python 3. > Please help. > > Thanks, Kaiser Arnh

Re: Python is not working on my desktop

2022-09-19 Thread dn
-Tutor Discussion List which handles beginner and learner conversations. On 19/09/2022 23.43, python 3.0 is not working wrote: >  > >  > >Sent from [1]Mail for Windows -- Regards, =dn -- https://mail.python.org/mailman/listinfo/python-list

Python is not working on my desktop

2022-09-19 Thread python 3 . 0 is not working
    Sent from [1]Mail for Windows   References Visible links 1. https://go.microsoft.com/fwlink/?LinkId=550986 -- https://mail.python.org/mailman/listinfo/python-list

Re: Uninstall tool not working.

2022-09-14 Thread DFS
On 9/13/2022 3:54 PM, Salvatore Bruzzese wrote: Hi, I was trying to uninstall version 3.10.7 of python but I've encountered problems with the uninstall tool. I open the python setup program, click on the uninstall button but it doesn't even start deleting python even though it says that the proce

Uninstall tool not working.

2022-09-13 Thread Salvatore Bruzzese
Hi, I was trying to uninstall version 3.10.7 of python but I've encountered problems with the uninstall tool. I open the python setup program, click on the uninstall button but it doesn't even start deleting python even though it says that the process has finished. Feel free to ask for more details

Re: Tkinter not working

2022-08-01 Thread 2QdxY4RzWzUUiLuE
On 2022-08-01 at 18:53:47 +0100, Matthew Barnett wrote: > On 01/08/2022 13:17, Daniel Lee wrote: > > Hello, I my code with tkinter was working before, and now, it has many > > errors in it. I’m not sure what has happened. The results after running are > > below: > &g

Re: Tkinter not working

2022-08-01 Thread Matthew Barnett
On 01/08/2022 13:17, Daniel Lee wrote: Hello, I my code with tkinter was working before, and now, it has many errors in it. I’m not sure what has happened. The results after running are below: "D:\Python Projects\tes\venv\Scripts\python.exe" "D:/Python Projects/tes/main.py&q

Tkinter not working

2022-08-01 Thread Daniel Lee
Hello, I my code with tkinter was working before, and now, it has many errors in it. I’m not sure what has happened. The results after running are below: "D:\Python Projects\tes\venv\Scripts\python.exe" "D:/Python Projects/tes/main.py" Traceback (most recent call last

Re: my vs code isnt working

2022-06-11 Thread Igor Korot
Hi, ‪On Sat, Jun 11, 2022 at 10:05 AM ‫סאסי סאס‬‎ wrote:‬ > > -- Forwarded message - > מאת: סאסי סאס > ‪Date: שבת, 11 ביוני 2022 ב-11:36‬ > Subject: my vs code isnt working > To: > > > what shoud i do to make that work i tried reinstalling and it st

Fwd: my vs code isnt working

2022-06-11 Thread סאסי סאס
-- Forwarded message - מאת: סאסי סאס ‪Date: שבת, 11 ביוני 2022 ב-11:36‬ Subject: my vs code isnt working To: what shoud i do to make that work i tried reinstalling and it still didnt work [image: image.png] -- https://mail.python.org/mailman/listinfo/python-list

Re: Getting Syslog working on OSX Monterey

2022-03-06 Thread Barry
> On 6 Mar 2022, at 19:38, Peter J. Holzer wrote: > > On 2022-03-06 18:28:59 +0100, Peter J. Holzer wrote: >>> On 2022-03-05 16:25:38 +, Barry Scott wrote: >>> Using the syslog() function means that any platform/distro details are >>> hidden from the user of syslog() and as is the case of

Re: Getting Syslog working on OSX Monterey

2022-03-06 Thread Peter J. Holzer
On 2022-03-06 18:28:59 +0100, Peter J. Holzer wrote: > On 2022-03-05 16:25:38 +, Barry Scott wrote: > > Using the syslog() function means that any platform/distro details are > > hidden from the user of syslog() and as is the case of macOS it > > "just works". > > That doesn't seem to be case.

Re: Getting Syslog working on OSX Monterey

2022-03-06 Thread Peter J. Holzer
On 2022-03-05 16:25:38 +, Barry Scott wrote: > On 4 Mar 2022, at 21:23, Peter J. Holzer wrote: > > If you are saying that SysLogHandler should use a system specific > > default (e.g. "/dev/log" on Linux) instead of UDP port 514 everywhere, I > > agree 99 % (the remaining 1 % is my contrarian a

Re: Getting Syslog working on OSX Monterey

2022-03-05 Thread Barry Scott
> On 4 Mar 2022, at 21:23, Peter J. Holzer wrote: > > On 2022-02-28 22:05:05 +, Barry Scott wrote: >> On 28 Feb 2022, at 21:41, Peter J. Holzer wrote: >>> On 2022-02-27 22:16:54 +, Barry wrote: I have always assumed that if I want a logger syslog handler that I would have >

Re: Getting Syslog working on OSX Monterey

2022-03-04 Thread Peter J. Holzer
On 2022-02-28 22:05:05 +, Barry Scott wrote: > On 28 Feb 2022, at 21:41, Peter J. Holzer wrote: > > On 2022-02-27 22:16:54 +, Barry wrote: > >> I have always assumed that if I want a logger syslog handler that I would > >> have > >> to implement it myself. So far I have code that uses sys

Re: Getting Syslog working on OSX Monterey

2022-03-03 Thread Philip Bloom via Python-list
ing this? > > The same exact code is working just fine on OSX Big Sur, but on OSX > Monterey it doesn't work at all. Users that haven't updated are having the > program produce logs as it has for years through > logging.handlers.SysLogHandler. Mac OSX definitely ha

Re: Getting Syslog working on OSX Monterey

2022-03-03 Thread Barry Scott
> On 3 Mar 2022, at 03:01, Philip Bloom wrote: > > I'm probably asking on the wrong list, and probably should bother wherever > apple's ASL experts live for changes in monterey. Guess nobody else is > seeing this? > > The same exact code is working just

Re: Getting Syslog working on OSX Monterey

2022-03-02 Thread Philip Bloom via Python-list
I'm probably asking on the wrong list, and probably should bother wherever apple's ASL experts live for changes in monterey. Guess nobody else is seeing this? The same exact code is working just fine on OSX Big Sur, but on OSX Monterey it doesn't work at all. Users that have

Re: Getting Syslog working on OSX Monterey

2022-02-28 Thread Barry Scott
> On 28 Feb 2022, at 21:41, Peter J. Holzer wrote: > > On 2022-02-27 22:16:54 +, Barry wrote: >> If you look at the code of the logging modules syslog handle you will see >> that >> it does not use syslog. It’s assuming that it can network to a syslog >> listener. >> Such a listener is no

Re: Getting Syslog working on OSX Monterey

2022-02-28 Thread Peter J. Holzer
On 2022-02-27 22:16:54 +, Barry wrote: > If you look at the code of the logging modules syslog handle you will see that > it does not use syslog. It’s assuming that it can network to a syslog > listener. > Such a listener is not running on my systems as far as I know. > > I have always assume

Re: Getting Syslog working on OSX Monterey

2022-02-27 Thread Barry
reliably, though doesn't get picked up by syslog -w or get received by the > ASL config redirect: > syslog -s -l error -k Message "appName: this is a test2" > syslog -s -l notice -k Message "appName: this is a test3" > > ASL configuration, which is loaded accor

Re: Getting Syslog working on OSX Monterey

2022-02-27 Thread Dennis Lee Bieber
On Sun, 27 Feb 2022 14:17:39 -0500, Dennis Lee Bieber declaimed the following: APOLOGIES -- I thought I KILLED the draft message, not sent it... -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.o

Re: Getting Syslog working on OSX Monterey

2022-02-27 Thread Philip Bloom via Python-list
Thanks. Had tried it with no address, which defaults to ('localhost', '514') as well as address='/var/run/syslog' which had been working previously, and the doc recommends as: For example, on Linux it’s usually ‘/dev/log’ but on OS/X it’s ‘/var/run/syslog’. You’ll n

Re: Getting Syslog working on OSX Monterey

2022-02-27 Thread Dennis Lee Bieber
>ASL configuration, which is loaded according to syslog -config: >> /var/log/appName/appName.log mode=0640 compress format=std rotate=seq >file_max=50M all_max=500M >? [CA= Sender appName] file /var/log/appName/appName.log > >My end goal is really to get just a working python loggi

Getting Syslog working on OSX Monterey

2022-02-27 Thread Philip Bloom via Python-list
g -s -l error -k Message "appName: this is a test2" syslog -s -l notice -k Message "appName: this is a test3" ASL configuration, which is loaded according to syslog -config: > /var/log/appName/appName.log mode=0640 compress format=std rotate=seq file_max=50M all_max=500M ?

Re: Pip not working

2022-01-07 Thread Mats Wichmann
On 1/5/22 01:29, Malick Lickta Keita wrote: > Hello I’ve installed the latest version of python but pip is not working If you want some help with that, you're going to have to provide some details - no person on earth who isn't sitting looking at your computer screen with you would

Pip not working

2022-01-05 Thread Malick Lickta Keita
Hello I’ve installed the latest version of python but pip is not working Sent from my iPhone -- https://mail.python.org/mailman/listinfo/python-list

Re: PYTHON NOT WORKING

2022-01-01 Thread Dan Stromberg
On Sat, Jan 1, 2022 at 1:52 PM the derek team wrote: > HI, I am trying to use python 3.10-1 on windows but, When I try to open > python, it crashes. Anaconda also does not work. When I try to use the > powershell, it gives me an error message saying that this is not recognized > as a valid cmdlet

PYTHON NOT WORKING

2022-01-01 Thread the derek team
HI, I am trying to use python 3.10-1 on windows but, When I try to open python, it crashes. Anaconda also does not work. When I try to use the powershell, it gives me an error message saying that this is not recognized as a valid cmdlet. Please help. -- https://mail.python.org/mailman/listinfo/pyt

Re: Sir jupyter note book is not working on my laptop?

2021-12-23 Thread Igor Korot
Hi, On Thu, Dec 23, 2021 at 1:42 PM IMTIAZ AHMAD wrote: > > Well, my program just crashed. Can you help? Thank you. > > > >Sent from [1]Mail for Windows > > > > References > >Visible links >1. https://go.microsoft.com/fwlink/?LinkId=550986 > -- > https://mail.python.org/mailman/li

Sir jupyter note book is not working on my laptop?

2021-12-23 Thread IMTIAZ AHMAD
Sent from [1]Mail for Windows References Visible links 1. https://go.microsoft.com/fwlink/?LinkId=550986 -- https://mail.python.org/mailman/listinfo/python-list

RE: Understanding the working mechanis of python unary arithmetic operators.

2021-10-05 Thread Avi Gross via Python-list
: python-list@python.org Subject: Re: Understanding the working mechanis of python unary arithmetic operators. On 06/10/2021 10.10, Chris Angelico wrote: > On Wed, Oct 6, 2021 at 7:52 AM hongy...@gmail.com wrote: >> >> On Saturday, October 2, 2021 at 4:59:54 PM UTC+8, ju...@diegidio.na

Re: Understanding the working mechanis of python unary arithmetic operators.

2021-10-05 Thread dn via Python-list
On 06/10/2021 10.10, Chris Angelico wrote: > On Wed, Oct 6, 2021 at 7:52 AM hongy...@gmail.com > wrote: >> >> On Saturday, October 2, 2021 at 4:59:54 PM UTC+8, ju...@diegidio.name wrote: This thread seems to have been very one-sided. Either I've forgotten selective use of the DEL-key, or the abo

Re: Understanding the working mechanis of python unary arithmetic operators.

2021-10-05 Thread Chris Angelico
On Wed, Oct 6, 2021 at 7:52 AM hongy...@gmail.com wrote: > > On Saturday, October 2, 2021 at 4:59:54 PM UTC+8, ju...@diegidio.name wrote: > > On Saturday, 2 October 2021 at 10:34:27 UTC+2, hongy...@gmail.com wrote: > > > See the following testings: > > > > > > In [24]: a=3.141592653589793238462643

Re: Understanding the working mechanis of python unary arithmetic operators.

2021-10-05 Thread hongy...@gmail.com
On Sunday, October 3, 2021 at 9:55:15 PM UTC+8, hongy...@gmail.com wrote: > On Sunday, October 3, 2021 at 8:38:16 PM UTC+8, ju...@diegidio.name wrote: > > On Sunday, 3 October 2021 at 14:21:13 UTC+2, hongy...@gmail.com wrote: > > > On Sunday, October 3, 2021 at 6:31:05 PM UTC+8, ju...@diegidio.na

Re: Understanding the working mechanis of python unary arithmetic operators.

2021-10-05 Thread hongy...@gmail.com
On Sunday, October 3, 2021 at 8:38:16 PM UTC+8, ju...@diegidio.name wrote: > On Sunday, 3 October 2021 at 14:21:13 UTC+2, hongy...@gmail.com wrote: > > On Sunday, October 3, 2021 at 6:31:05 PM UTC+8, ju...@diegidio.name wrote: > > > > Then you can guess that numpy overrides it and gives you *log

Re: Understanding the working mechanis of python unary arithmetic operators.

2021-10-05 Thread hongy...@gmail.com
On Sunday, October 3, 2021 at 6:31:05 PM UTC+8, ju...@diegidio.name wrote: > On Sunday, 3 October 2021 at 11:24:58 UTC+2, hongy...@gmail.com wrote: > > On Sunday, October 3, 2021 at 2:18:17 PM UTC+8, hongy...@gmail.com wrote: > > > On Saturday, October 2, 2021 at 4:59:54 PM UTC+8, ju...@diegidio.

Re: Understanding the working mechanis of python unary arithmetic operators.

2021-10-05 Thread hongy...@gmail.com
On Saturday, October 2, 2021 at 4:59:54 PM UTC+8, ju...@diegidio.name wrote: > On Saturday, 2 October 2021 at 10:34:27 UTC+2, hongy...@gmail.com wrote: > > See the following testings: > > > > In [24]: a=3.1415926535897932384626433832795028841971 > > In [27]: -a > > Out[27]: -3.141592653589793

  1   2   3   4   5   6   7   8   9   10   >