
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
`filterwarnings` causes `warnings.warn` to raise `TypeError` on non-string messages Β· Issue #103577 Β· python/cpython
Description:
Bug report When using filterwarnings, a TypeError is raised when a non-string value is passed to warnings.warn which differs from the default behavior of warnings.warn. import warnings # Does not raise a type error warnings.warn(1) # Rai...
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {π}
- Video & Online Content
- Social Networks
- Dating & Relationships
Content Management System {π}
What CMS is github.com built with?
Github.com is built with WORDPRESS.
Traffic Estimate {π}
What is the average monthly size of github.com audience?
ππ Tremendous Traffic: 10M - 20M visitors per month
Based on our best estimate, this website will receive around 10,000,019 visitors per month in the current month.
However, some sources were not loaded, we suggest to reload the page to get complete results.
check SE Ranking
check Ahrefs
check Similarweb
check Ubersuggest
check Semrush
How Does Github.com Make Money? {πΈ}
Subscription Packages {π³}
We've located a dedicated page on github.com that might include details about subscription plans or recurring payments. We identified it based on the word pricing in one of its internal links. Below, you'll find additional estimates for its monthly recurring revenues.How Much Does Github.com Make? {π°}
Subscription Packages {π³}
Prices on github.com are in US Dollars ($).
They range from $4.00/month to $21.00/month.
We estimate that the site has approximately 4,989,889 paying customers.
The estimated monthly recurring revenue (MRR) is $20,957,532.
The estimated annual recurring revenues (ARR) are $251,490,385.
Wordpress Themes and Plugins {π¨}
What WordPress theme does this site use?
It is strange but we were not able to detect any theme on the page.
What WordPress plugins does this website use?
It is strange but we were not able to detect any plugins on the page.
Keywords {π}
warningswarn, zanieb, warning, filtering, error, commented, sobolevn, type, python, filterwarnings, behavior, contributor, sign, typeerror, traceback, change, errors, author, agree, projects, raise, nonstring, messages, issue, bug, types, added, str, docs, case, works, fine, zachd, navigation, open, code, pull, requests, actions, security, raised, warnings, warningscatchwarnings, warningsfilterwarningsignore, test, usersmzengsrcmadkinszcpythonexamplepy, pytestdevpytest, reproduced, typebug, unexpected,
Topics {βοΈ}
/prefecthq/prefect/blob/b6d0433a15b8172c0f897a6eac2b4d747350fd1f/src/prefect/logging/handlers /users/mz/eng/src/madkinsz/cpython-103577/ /python/typeshed/blob/7dcec5b3db887f518114486b3e4783dde244186d/stdlib/_warnings /madkinsz/cpython-103577/actions/runs/4714383423/jobs/8360711980 /madkinsz/cpython-103577 originally raised lib dir type-bug code worked fine sobolevn edits member separate utility function comment metadata assignees personal information `filterwarnings` works totally fine error projects eventual side-effect ya'll agree projects milestone type error warnings org/3/library/warnings make sense type error warn typeshed prefect docs wordings pytest invalid type works untill cpython' expected string reproduced manually annotates message called filterwarnings recent call real-life good thing added str cast dynamic typing catch errors sneaky problem frame indicating backwards compatible milestone relationships enable filtering filtering throw python 3 python hesitantly agree default behavior unexpected behavior bug
Payment Methods {π}
- Braintree
Questions {β}
- Already have an account?
- Do you agree?
- Warn with non-str messages make sense?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:`filterwarnings` causes `warnings.warn` to raise `TypeError` on non-string messages
articleBody:<!--
If you're new to Python and you're not sure whether what you're experiencing is a bug, the CPython issue tracker is not
the right place to seek help. Consider the following options instead:
- reading the Python tutorial: https://docs.python.org/3/tutorial/
- posting in the "Users" category on discuss.python.org: https://discuss.python.org/c/users/7
- emailing the Python-list mailing list: https://mail.python.org/mailman/listinfo/python-list
- searching our issue tracker (https://github.com/python/cpython/issues) to see if
your problem has already been reported
-->
# Bug report
When using `filterwarnings`, a `TypeError` is raised when a non-string value is passed to `warnings.warn` which differs from the default behavior of `warnings.warn`.
```python
import warnings
# Does not raise a type error
warnings.warn(1)
# Raises a type error
with warnings.catch_warnings():
warnings.filterwarnings("ignore", "test")
warnings.warn(1)
```
The traceback does not demonstrate that this is a detail of warning filtering:
```python
/Users/mz/eng/src/madkinsz/cpython-103577/example.py:4: UserWarning: 1
warnings.warn(1)
Traceback (most recent call last):
File "/Users/mz/eng/src/madkinsz/cpython-103577/example.py", line 9, in <module>
warnings.warn(1)
TypeError: expected string or bytes-like object
```
Filtering warnings should not change the accepted types of `warnings.warn`.
Reproduction example at https://github.com/madkinsz/cpython-103577
Originally raised at https://github.com/pytest-dev/pytest/issues/10865
# Your environment
Reproduced Ubuntu with Python 3.7-3.12: https://github.com/madkinsz/cpython-103577/actions/runs/4714383423/jobs/8360711980
Also reproduced manually on macOS with Python 3.10/3.11
author:
url:https://github.com/zanieb
type:Person
name:zanieb
datePublished:2023-04-16T16:51:10.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:7
url:https://github.com/103577/cpython/issues/103577
context:https://schema.org
headline:`filterwarnings` causes `warnings.warn` to raise `TypeError` on non-string messages
articleBody:<!--
If you're new to Python and you're not sure whether what you're experiencing is a bug, the CPython issue tracker is not
the right place to seek help. Consider the following options instead:
- reading the Python tutorial: https://docs.python.org/3/tutorial/
- posting in the "Users" category on discuss.python.org: https://discuss.python.org/c/users/7
- emailing the Python-list mailing list: https://mail.python.org/mailman/listinfo/python-list
- searching our issue tracker (https://github.com/python/cpython/issues) to see if
your problem has already been reported
-->
# Bug report
When using `filterwarnings`, a `TypeError` is raised when a non-string value is passed to `warnings.warn` which differs from the default behavior of `warnings.warn`.
```python
import warnings
# Does not raise a type error
warnings.warn(1)
# Raises a type error
with warnings.catch_warnings():
warnings.filterwarnings("ignore", "test")
warnings.warn(1)
```
The traceback does not demonstrate that this is a detail of warning filtering:
```python
/Users/mz/eng/src/madkinsz/cpython-103577/example.py:4: UserWarning: 1
warnings.warn(1)
Traceback (most recent call last):
File "/Users/mz/eng/src/madkinsz/cpython-103577/example.py", line 9, in <module>
warnings.warn(1)
TypeError: expected string or bytes-like object
```
Filtering warnings should not change the accepted types of `warnings.warn`.
Reproduction example at https://github.com/madkinsz/cpython-103577
Originally raised at https://github.com/pytest-dev/pytest/issues/10865
# Your environment
Reproduced Ubuntu with Python 3.7-3.12: https://github.com/madkinsz/cpython-103577/actions/runs/4714383423/jobs/8360711980
Also reproduced manually on macOS with Python 3.10/3.11
author:
url:https://github.com/zanieb
type:Person
name:zanieb
datePublished:2023-04-16T16:51:10.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:7
url:https://github.com/103577/cpython/issues/103577
Person:
url:https://github.com/zanieb
name:zanieb
url:https://github.com/zanieb
name:zanieb
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:7
interactionType:https://schema.org/CommentAction
userInteractionCount:7
External Links {π}(3)
Analytics and Tracking {π}
- Site Verification - Google
Libraries {π}
- Clipboard.js
- D3.js
- Lodash
Emails and Hosting {βοΈ}
Mail Servers:
- aspmx.l.google.com
- alt1.aspmx.l.google.com
- alt2.aspmx.l.google.com
- alt3.aspmx.l.google.com
- alt4.aspmx.l.google.com
Name Servers:
- dns1.p08.nsone.net
- dns2.p08.nsone.net
- dns3.p08.nsone.net
- dns4.p08.nsone.net
- ns-1283.awsdns-32.org
- ns-1707.awsdns-21.co.uk
- ns-421.awsdns-52.com
- ns-520.awsdns-01.net