• Confusing behavior of PYTHONWARNINGS

    From Meowxiik@21:1/5 to All on Sat Sep 16 10:17:20 2023
    Hello,

    For the third time I am trying to work with `PYTHONWARNINGS` filter, and
    for the third time I am having a terrible time. I'd like to seek your assistance, I have a few questions:

    **Question 1:** Does the environment variable only matter at python
    interpreter startup time? If I set the same variable before python
    start, it seems to work, but it doesn't work trough os.environ. It does
    appear to be hinted at in the docs, but imho not clear enough.

    **Question 2:** Why do the following filters not work for filtering `urllib3.exceptions.InsecureRequestWarning`

    - `PYTHONWARNINGS=ignore:::urllib3.exceptions`

    - `PYTHONWARNINGS=ignore:::urllib3`

    - `PYTHONWARNINGS=ignore:::urllib3.exceptions`

    - `PYTHONWARNINGS=ignore::urllib3.exceptions.InsecureRequestWarning`

    None of these filter the warning. The last one has the audacity to
    complain about "invalid module name: 'urllib3.exceptions'" which is very confusing to me, given that that specific module is fully importable
    during runtime, which I have tested. The only one I managed to get
    working is `ignore:Unverified`, where "Unverified" is the first word of
    the actual message, however I truly strongly dislike this solution.

    Thank you for any help,

    Richard

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Roel Schroeven@21:1/5 to All on Mon Sep 18 10:14:20 2023
    Op 16/09/2023 om 10:17 schreef Meowxiik via Python-list:
    Hello,

    For the third time I am trying to work with `PYTHONWARNINGS` filter,
    and for the third time I am having a terrible time. I'd like to seek
    your assistance, I have a few questions:

    **Question 1:** Does the environment variable only matter at python interpreter startup time? If I set the same variable before python
    start, it seems to work, but it doesn't work trough os.environ. It
    does appear to be hinted at in the docs, but imho not clear enough.
    Yes, environment variables are only relevant when the interpreter starts
    up. The documentation (on the command line environment in general, not
    specific to PYTHONWARNINGS) says "These environment variables influence Python’s behavior, they are processed before the command-line switches
    other than -E or -I.". That implies they don't do anything if changed
    after startup.

    More specific to warnings, the documentation for the -W option (which is referenced in the PYTHONWARNINGS environment variable) says "Warnings
    can also be controlled using the PYTHONWARNINGS environment variable and
    from within a Python program using the warnings module." implying the
    same, and giving an alternative for controlling warnings from within Python.

    **Question 2:** Why do the following filters not work for filtering `urllib3.exceptions.InsecureRequestWarning`

    - `PYTHONWARNINGS=ignore:::urllib3.exceptions`

    - `PYTHONWARNINGS=ignore:::urllib3`

    - `PYTHONWARNINGS=ignore:::urllib3.exceptions`

    - `PYTHONWARNINGS=ignore::urllib3.exceptions.InsecureRequestWarning`

    None of these filter the warning. The last one has the audacity to
    complain about "invalid module name: 'urllib3.exceptions'" which is
    very confusing to me, given that that specific module is fully
    importable during runtime, which I have tested. The only one I managed
    to get working is `ignore:Unverified`, where "Unverified" is the first
    word of the actual message, however I truly strongly dislike this
    solution.
    I'd like to try this out myself, but I'm not familiar with urllib3 and I
    can't get to issue that warning; instead it throws exceptions (I tried a
    simple request with some of the URL's listed on https://badssl.com). How
    can I get urllib3 to issue that warning?

    Also, which version of Python are you using, and on which operating system?

    --
    "Most of us, when all is said and done, like what we like and make up
    reasons for it afterwards."
    -- Soren F. Petersen

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Sam Parker@21:1/5 to All on Mon Sep 18 01:19:18 2023
    +16017218695 Psychedelic Product Online

    "Explore a world of euphoria with our top-rated psychedelic products. Discover the ultimate journey to inner peace and enlightenment.

    PsychsDistro as a prime example of an online marketplace. We will explore the range of products, safety considerations, legality, and frequently asked questions surrounding this intriguing topic.

    [email protected]
    +1 (601) 721-8695
    7777 W 38th Ave A104 Wheat Ridge CO 80033 United States

    What is PsychsDistro?
    PsychsDistro is one such online marketplace that specializes in the sale of psychedelics. Established as a reputable source, PsychsDistro boasts a wide selection of products, making it a prominent player in the online psychedelics market. Let's delve
    into its offerings.

    The Product Catalog
    LSD (Lysergic Acid Diethylamide)
    LSD, also known as acid, is a potent hallucinogen known for its mind-expanding effects. PsychsDistro provides various forms of LSD, each with its own characteristics.

    Magic Mushrooms
    Magic mushrooms, or psilocybin mushrooms, are renowned for their psychedelic properties. PsychsDistro offers a range of mushroom strains, allowing customers to explore different experiences.

    DMT (Dimethyltryptamine)
    DMT is a powerful psychedelic compound found in certain plants and animals. PsychsDistro offers DMT products for those seeking profound and short-lived journeys.

    MDMA (3,4-Methylenedioxymethamphetamine)
    MDMA, often associated with the street name "ecstasy," is known for its empathogenic and euphoric effects. PsychsDistro provides MDMA for those interested in its unique experiences.

    [email protected]
    +1 (601) 721-8695
    7777 W 38th Ave A104 Wheat Ridge CO 80033 United States
    "Unlocking Bliss: Psychedelic Products Guide"

    Buy Psychedelics +1 (601) 721-8695
    Buy Mushroom +1 (601) 721-8695
    Buy Mushrooms +1 (601) 721-8695
    Buy LSD +1 (601) 721-8695
    Buy DMT +1 (601) 721-8695
    Buy Benzos +1 (601) 721-8695
    Buy Xanax +1 (601) 721-8695
    Buy Adderall +1 (601) 721-8695
    Buy DMT vape +1 (601) 721-8695
    Buy DMT Cart +1 (601) 721-8695
    Buy Alprazolam +1 (601) 721-8695
    Buy Bromazolam +1 (601) 721-8695
    Buy Party favors +1 (601) 721-8695
    Buy MDMA +1 (601) 721-8695
    Buy Molly +1 (601) 721-8695
    Buy Ecstasy +1 (601) 721-8695
    Buy Ketamine +1 (601) 721-8695
    Buy Blow +1 (601) 721-8695
    Buy Coke +1 (601) 721-8695
    Buy Cocaine +1 (601) 721-8695
    Buy Farmapram +1 (601) 721-8695
    Buy Penis envys +1 (601) 721-8695
    Buy Mushroom Chocolate +1 (601) 721-8695

    Buy Online Psychedelics +1 (601) 721-8695
    Buy Online Mushroom +1 (601) 721-8695
    Buy Online Mushrooms +1 (601) 721-8695
    Buy Online LSD +1 (601) 721-8695
    Buy Online DMT +1 (601) 721-8695
    Buy Online Benzos +1 (601) 721-8695
    Buy Online Xanax +1 (601) 721-8695
    Buy Online Adderall +1 (601) 721-8695
    Buy Online DMT vape +1 (601) 721-8695
    Buy Online DMT Cart +1 (601) 721-8695
    Buy Online Alprazolam +1 (601) 721-8695
    Buy Online Bromazolam +1 (601) 721-8695
    Buy Online Party favors +1 (601) 721-8695
    Buy Online MDMA +1 (601) 721-8695
    Buy Online Molly +1 (601) 721-8695
    Buy Online Ecstasy +1 (601) 721-8695
    Buy Online Ketamine +1 (601) 721-8695
    Buy Online Blow +1 (601) 721-8695
    Buy Online Coke +1 (601) 721-8695
    Buy Online Cocaine +1 (601) 721-8695
    Buy Online Farmapram +1 (601) 721-8695
    Buy Online Penis envys +1 (601) 721-8695
    Buy Online Mushroom Chocolate +1 (601) 721-8695

    Psychedelics For Sale
    Mushroom For Sale
    Mushrooms For Sale
    LSD For Sale
    DMT For Sale
    Benzos For Sale
    Xanax For Sale
    Adderall For Sale
    DMT vape For Sale
    DMT Cart For Sale
    Alprazolam For Sale
    Bromazolam For Sale
    Party favor is For Sale
    MDMA For Sale
    Molly For Sale
    Ecstasy For Sale
    Ketamine For Sale
    Blow For Sale
    CokeFor Sale
    Cocaine
    Farmapram
    Penis envys
    Mushroom Chocolate

    https://psychsdistro.com/
    https://psychsdistro.com/shop/
    https://psychsdistro.com/contact/ https://psychsdistro.com/product/buy-5mg-blue-bromazolam-bars-online/ https://psychsdistro.com/product/buy-5mg-green-bromazolam-bars-online/ https://psychsdistro.com/product/buy-adderall-ir-30mg-online/ https://psychsdistro.com/product/buy-coke-fish-scale-online/ https://psychsdistro.com/product/buy-dmt-carts-online/ https://psychsdistro.com/product/buy-ecstasy-pills-300mg-online/ https://psychsdistro.com/product/buy-ketamine-s-type-online/ https://psychsdistro.com/product/buy-lsd-200ug-gels-online/ https://psychsdistro.com/product/buy-mdma-crystals-online/ https://psychsdistro.com/product/buy-mushroom-chocolates-4g-bars-online/ https://psychsdistro.com/product/buy-penis-envy-shrooms-online/ https://psychsdistro.com/product/buy-xanax-2mg-farmaprams-online/

    [email protected]
    +1 (601) 721-8695
    7777 W 38th Ave A104 Wheat Ridge CO 80033 United States

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)