NZPUG: Smart Iterator Challenge

2022-09-22 Thread dn
A week-by-week Challenge series. A new venture by the Auckland Branch of the New Zealand Python Users' Group (AuckPUG) Challenge-week 1: Implementing a monolithic solution, starts today! All welcome! - will suit Python-Apprentices ready to move-on from 'the basics' and Python-Journeymen - will

Re: How to get the current set LOG_MASK in Python's syslog module?

2022-09-22 Thread Chris Angelico
On Thu, 22 Sept 2022 at 23:46, Richard Moseley wrote: > > According to documentation syslog.setlogmask returns the current mask so > save the value to reset later on. > > Oldval = syslog.setlogmask(newmask) > > This sets oldval to original mask. This on its own suggests an odd technique that

Re: How to get the current set LOG_MASK in Python's syslog module?

2022-09-22 Thread Dennis Lee Bieber
On Thu, 22 Sep 2022 13:28:57 +, c.bu...@posteo.jp declaimed the following: >I would like to get the current `LOG_MASK`, which is kind of a logging >level. According to the docu it seems that `syslog` doesn't have a >mechanism for that. > There is a function .LOG_MASK() but it

Re: Python3.6 tkinter bug?

2022-09-22 Thread Peter Smith
On Wednesday, February 1, 2017 at 11:55:35 AM UTC, Terry Reedy wrote: > On 2/1/2017 1:37 AM, Christian Gollwitzer wrote: > > Am 01.02.17 um 00:02 schrieb MRAB: > >> On 2017-01-31 22:34, Christian Gollwitzer wrote: > .!frame.!checkbutton > .!frame.!checkbutton2 >

Re: Problem when scraping the 100 Movie titles.

2022-09-22 Thread Fabian Joseph
#Try using, it's save in json format of the website: import json import requests from bs4 import BeautifulSoup url = "https://www.empireonline.com/movies/features/best-movies-2/; soup = BeautifulSoup(requests.get(url).content, "html.parser") data =

Re: Python3.6 tkinter bug?

2022-09-22 Thread Peter Smith
On Wednesday, February 1, 2017 at 11:55:35 AM UTC, Terry Reedy wrote: > On 2/1/2017 1:37 AM, Christian Gollwitzer wrote: > > Am 01.02.17 um 00:02 schrieb MRAB: > >> On 2017-01-31 22:34, Christian Gollwitzer wrote: > .!frame.!checkbutton > .!frame.!checkbutton2 >

Re: How to get the current set LOG_MASK in Python's syslog module?

2022-09-22 Thread Richard Moseley
According to documentation syslog.setlogmask returns the current mask so save the value to reset later on. Oldval = syslog.setlogmask(newmask) This sets oldval to original mask. On Thu, 22 Sep 2022, 14:32 , wrote: > X-Post: https://stackoverflow.com/q/73814924/4865723 > > Hello, > > I'm aware

How to get the current set LOG_MASK in Python's syslog module?

2022-09-22 Thread c . buhtz
X-Post: https://stackoverflow.com/q/73814924/4865723 Hello, I'm aware that there is a `logging` package that is more _modern_ then [`syslog`](https://docs.python.org/3/library/syslog.html). But I have old code here to deal with that does use `syslog`. So that question is specific to `syslog`