New submission from William Pickard :
When the GC module goes to collect objects (most notably, during Python
shutdown), it makes a call to subtract_refs on the GC container.
During this invocation, it creates a local variable "op" who's value is the
result of 'FROM_GC(gc
New submission from William Pickard :
The initconfig API functions "PyPreConfig_InitPythonConfig" and
"PyPreConfig_InitIsolatedConfig" are mistakenly documented for the other method.
--
assignee: docs@python
components: Documentation
messages: 372531
nosy: Wil
Change by William Pickard :
--
title: [easy Doc] "PyPreConfig_InitIsolatedConfig" and
"PyPreConfig_InitPythonConfig" are given opposite documentation. -> [easy Doc]
"PyPreConfig_InitIsolatedConfig" and "PyPreConfig_InitPythonConfig&qu
New submission from William Pickard :
The current goal from what I can tell for Python is to have all C based modules
move away from static types and instead use "PyType_FromSpec" and the variant
that specifies base classes.
The only problem is, PyType_FromSpec and it's va
William Pickard added the comment:
Another thing I thought of, if this is accepted, we can turn the "PyType"
methods into header static inline methods.
--
___
Python tracker
<https://bugs.python.o
Change by William Pickard :
--
keywords: +patch
pull_requests: +20390
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21238
___
Python tracker
<https://bugs.python.org/issu
Change by William Pickard :
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue41153>
___
___
Change by William Pickard :
--
nosy: +WildCard65
nosy_count: 9.0 -> 10.0
pull_requests: +20410
pull_request: https://github.com/python/cpython/pull/21262
___
Python tracker
<https://bugs.python.org/issu
New submission from William Pickard :
The goal of issue 39573 is to make "PyObject" and opaque structure in the
limited API.
To do that, a few mandatory changes will be required to CPython in order to
allow for seamless implementation.
Namely:
1) User types need to get away fro
Change by William Pickard :
--
keywords: +patch
pull_requests: +20415
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21262
___
Python tracker
<https://bugs.python.org/issu
New submission from William Pickard :
Currently within Python, the attribute '__qualname__' is restricted to only be
a string valued attribute.
This makes is rather cumbersome for anyone who wants to implement
'__qualname__' as a property, instead of a plain attr
New submission from William Pickard :
Since Visual Studio 2017, Microsoft has an optional C++ Desktop Development
option for compiling C/C++ code with LLVM's Clang compiler.
It's called: Clang with Microsoft CodeGen.
While the code is parsed with LLVM's Clang parser, the co
William Pickard added the comment:
Note: Apparently Google-OpenID login button created a seperate account...
instead of finding this one.
--
nosy: +WildCard65 -William Pickard
___
Python tracker
<https://bugs.python.org/issue41
William Pickard added the comment:
I think on Windows, the Python Launcher is a separate install entity.
You can verify this under Control Panel -> Uninstall Program and Features.
--
nosy: +WildCard65
___
Python tracker
<https://bugs.pyth
William Pickard added the comment:
Try what's explained here:
https://support.microsoft.com/en-us/help/2438651/how-to-troubleshoot-windows-installer-errors
--
nosy: +WildCard65
___
Python tracker
<https://bugs.python.org/is
William Pickard added the comment:
In the lru_cache example, I think property is using the result of
'lru_cache(c)', which in turns returns a property instance, not a subtype
instance.
--
nosy: +WildCard65
___
Python track
New submission from William Meehan :
The existing implementation of PyOS_mystricmp increments both pointers as long
as the first string hasn't reached the end yet. If the second string ends
first, then we increment past the null byte. If there is a difference in the
middle of the two st
New submission from William Pickard :
Running Python's '--help' argument yields some corrupted text:
"-X dev: enable CPythonâ?Ts â?odevelopment modeâ??, introducing additional
runtime"
--
components: Interpreter Core
messages: 375204
nosy: WildCard65
priority
Change by William Meehan :
--
keywords: +patch
pull_requests: +20972
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/21845
___
Python tracker
<https://bugs.python.org/issu
William Pickard added the comment:
Another thing to note Raymond, as I stated before, example C is, from an
external context, is a plain property object who's "fget" attribute is an
instance of whatever "lru_cache" returns.
isinstance won't be able to differe
New submission from William Chargin :
The operator override dunder methods, like `__add__`, are described in
the “Data model” docs here:
<https://docs.python.org/3.10/reference/datamodel.html#object.__add__>
Those docs say:
> For instance, to evaluate the expression `x + y`, where
Change by William Chargin :
--
keywords: +patch
pull_requests: +21170
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/22084
___
Python tracker
<https://bugs.python.org/issu
Change by William Pickard :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by William Pickard :
--
nosy: -WildCard65
___
Python tracker
<https://bugs.python.org/issue24427>
___
___
Python-bugs-list mailing list
Unsubscribe:
William Pickard added the comment:
You did just necro a 5 year old bug report...
--
nosy: +WildCard65
___
Python tracker
<https://bugs.python.org/issue24
William Pickard added the comment:
Actually, this is an issue with native types in general that define a 'tp_new'
slot value ('!= NULL').
--
nosy: +WildCard65
___
Python tracker
<https://bug
Change by William Schwartz :
--
nosy: +William.Schwartz
___
Python tracker
<https://bugs.python.org/issue26388>
___
___
Python-bugs-list mailing list
Unsub
New submission from William Schwartz :
`python -m mod` sets `sys.argv[0]` to the `mod.__file__` according to
https://docs.python.org/3.9/using/cmdline.html#cmdoption-m
> If ["-m"] is given, the first element of sys.argv will be the full path to
> the module file (while th
Change by William Meehan :
--
components: Tests
nosy: wmeehan
priority: normal
severity: normal
status: open
title: Other Python implementations may not expose the module name in datetime
type names
versions: Python 3.10, Python 3.7, Python 3.8, Python 3.9
New submission from William Meehan :
This just requires some changes to test_datetime and test_hash
--
___
Python tracker
<https://bugs.python.org/issue42
Change by William Meehan :
--
keywords: +patch
pull_requests: +22237
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/23345
___
Python tracker
<https://bugs.python.org/issu
William Meehan added the comment:
For Python implementations that change the underlying object structure, it's
not necessarily possible to recreate the `tp_name` that would be exposed in
CPython. The `datetime` ends up in `__module__`, while only the type name ends
up in `__name__`. Th
New submission from William Budd:
pattern = re.compile('(.*?)', flags=re.DOTALL)
# This works as expected in the following case:
print(re.sub(pattern, '\\1',
'foo\n'
'
William Budd added the comment:
I don't understand... Isn't the "?" in ".*?" supposed to make the ".*" matching
non-greedy, hence matching the first "" rather than the last ""?
--
__
William Budd added the comment:
I now see you're right of course. Not a bug after all. Thank you.
I mistakenly assumed that the group boundary ")" would delimit the end of the
non-greedy match group. I.e., ".*?" versus ".*?".
I don't see a way to accom
William Budd added the comment:
Doh! This has a really easy solution, doesn't it; just replace "." with "[^<]":
re.compile('([^<]*?)', flags=re.DOTALL).
Sorry about the noise.
--
___
Python tr
New submission from William Grzybowski:
If a process is schedule to run in the event loop with debug disabled
and debug is then enabled before the process finishes it will result in
a traceback: debug_log undefined.
[2017/06/29 14:39:13] (ERROR) asyncio.default_exception_handler():1261 - Ta
sk
William Hingston added the comment:
I'm still seeing this with
Python 3.6.3
Django 2.0.1
Windows 10 Pro Version 1709
Was this determined to be a Django bug?
--
nosy: +William Hingston
___
Python tracker
<https://bugs.python.org/is
William Pickard added the comment:
Ok, I found another way to apply the solution to this issue, that is by adding
the "Connection" header (with value of "close") to the client's request instead
of the server's response.
I'm going to use this other method
William Pickard added the comment:
Alright, the PR is ready for review.
--
___
Python tracker
<https://bugs.python.org/issue25095>
___
___
Python-bugs-list mailin
Change by William Pickard :
--
versions: +Python 3.6, Python 3.7, Python 3.8
___
Python tracker
<https://bugs.python.org/issue25095>
___
___
Python-bugs-list m
William Woodall added the comment:
I can confirm this bug using both VS 2015 and VS 2017 on Windows 10.
The patch provided by isuruf works for me too.
--
nosy: +wjwwood
___
Python tracker
<https://bugs.python.org/issue32
New submission from William Pickard :
The distutils module _findvs is failing on my Windows 10 PRO machine with the
following error: OSError: Error 80070002
Note: Building Python 3.6 in debug for some reason doesn't cause the error.
--
components: Distutils, Extension Modules, Li
William Pickard added the comment:
Use, when distutils calls findall in the module, it results in the OSError
being thrown.
--
___
Python tracker
<https://bugs.python.org/issue32
William Pickard added the comment:
Looks like something wierd about my computer as the powershell module that
interacts with the API also has the issue with Windows reporting "File not
found" for a 2nd instance (maybe Community edition of VS)
--
resolution: -> no
William Pickard added the comment:
The powershell module that interacts with the API works if I don't supply
"-All", supplying said option produces the same issue that is plagues me when
_findvs.findall() is used.
--
___
Python
New submission from William Scullin :
When building Python 3.6.X and later with icc (18.0.0.128 or
18.0.1.163), there's an error building the _sha3 module with any
optimization level other than -O0:
building '_sha3' extension
icc -pthread -fPIC -Wsign-compare -Wunreachable-code
William Ayd added the comment:
Would we be open to setting the meta class of the ParserBase to ABCMeta and
setting error as an abstract method? That at the very least would make the
expectation clearer for subclasses.
I haven’t contributed to Python before but am open to this as a first
William Ayd added the comment:
And assuming that subclass requirement is intentional we could add an optional
keyword argument to the HTMLParser that indicates what to do with errors, much
like how encoding issues are handled within codecs. For backwards compatibility
it can default to
William Pickard added the comment:
Scratch the previous message about the possible cause, I found the true cause,
getresponse() is waiting for a specific header, one that
BaseHTTPRequestHandler.send_error sends and
BaseHTTPRequestHandler.send_response() doesn't, that header is "
Change by William Pickard :
--
keywords: +patch
pull_requests: +4969
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue25095>
___
___
Py
Change by William Pickard :
--
title: test_httpservers hangs on 3.5.0, win 7 -> test_httpservers hangs since
Python 3.5
type: crash -> performance
___
Python tracker
<https://bugs.python.org/i
William Pickard added the comment:
Martin, your suggestion will never work as if you look at the trace back posted
terry.reedy and my test print statements, both the client and server get stuck
waiting to read data their respective socket, hence the deadlock. Adding the
header "Conne
William Pickard added the comment:
It hangs for me on Windows 10 Professional running on a MSI gaming laptop for
debug and PGO builds (Python 3.6)
--
___
Python tracker
<https://bugs.python.org/issue25
William Pickard added the comment:
I have tried value 0 for "Content-Length" (along with "text/plain" for
"Content-Type"), it was when I said I tried both "Content-Length" and
"Content-Type", while I haven't tried directly setting &quo
New submission from William Grzybowski :
Hello,
Currently the GIL is not disabled when calling pwd.getpwnam nor pwd.getpwuid.
It could be the C library call may take some time for completion, especially
when using third-party modules on the system (nss-ldap, nss-pgsql, sss, etc).
Disabling
Change by William Grzybowski :
--
keywords: +patch
pull_requests: +6711
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue33625>
___
_
William Grzybowski added the comment:
I have updated the PR to used the re-entrant versions.
Let me know what you guys think. Thanks!
--
title: Disable GIL on getpwnam and getpwuid -> Release GIL for
grp.getgr{nam,gid} and pwd.getpw{nam,
William Scullin added the comment:
Hi Kenneth:
I can recreate this issue on Haswell, Skylake-X, and KNL running SLES 12, Clear
Linux, and Centos 7.5. I've tried 18.1 and 18.2. It's still present across the
board with Intel C/C++ 18.0.2.199. On the Centos 7.5.1804 image, the
William Woodall added the comment:
Just an update to my previous post. We ran into this issue again, but only
noticed later because we do not see this problem on Ubuntu Bionic with Python
3.6.5, but we did see it again when we tested later on Ubuntu Xenial with
Python 3.5.1.
See: https
William Pickard added the comment:
My computer was running BitDefender Total Security 2018 (At the time, currently
running the 2019 edition) and MalwareBytes 3 Premium.
BitDefender has both a built-in firewall and a web protection module while
MalwareBytes has a web protection module
William Schwartz added the comment:
I am also running into this problem. I'm not 100%, but I'm pretty sure that
looping over sys.modules and accessing __warningregistry__ on each module
triggers one of my module's __getattr__ functions (PEP 562), which in turn uses
setuptoo
New submission from William Grzybowski :
Issue was spotted by @vstinner while reviewing
https://github.com/python/cpython/pull/7081
pwd.getpwnam and grp.getgrnam are susceptible to mojibake as they are using
encoded bytes instead of unicode in the error message.
--
components
Change by William Grzybowski :
--
keywords: +patch
pull_requests: +8552
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34604>
___
_
Change by William Grzybowski :
--
pull_requests: +8558
___
Python tracker
<https://bugs.python.org/issue34604>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by William Grzybowski :
--
pull_requests: +8559
___
Python tracker
<https://bugs.python.org/issue34604>
___
___
Python-bugs-list mailing list
Unsubscribe:
William Grzybowski added the comment:
What is the policy to amend a new commit to master for %R? Create a new PR?
Wont that cause problem with NEWS entry?
--
___
Python tracker
<https://bugs.python.org/issue34
William Grzybowski added the comment:
I can do it if you feel the need.
Can this same issue be used? Will the new PR require another NEWS entry?
--
___
Python tracker
<https://bugs.python.org/issue34
Change by William Grzybowski :
--
pull_requests: +8608
___
Python tracker
<https://bugs.python.org/issue34604>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from William Chaseling :
time.ctime() returns _asctime from a C module.
_asctime returns a PyUnicode_FromFormat() result using "%s %s%3d %.2d:%.2d:%.2d
%d" as the string formatter.
This works: 'Wed Sep 12 22:30:00 2018'
Except when day <10, because it u
William Chaseling added the comment:
It's easy to get around using .replace(' ', ' '), but it's still a bit
annoying.
--
___
Python tracker
<h
William Bowling added the comment:
> Is this still reproducible? On master (Python 3.8) with a debug build it
> throws a SyntaxError. I don't have Python 3.5 installed to check this though
Looks like it's fixed in master and 3.6.6 but still ha
Change by William Pickard :
--
pull_requests: +8966
___
Python tracker
<https://bugs.python.org/issue25095>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from William Orr :
[ worr on locke ] ( cpython ) % make -j15
[0]
gcc -pthread -fno-strict-aliasing -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall
-O2 -pipe -std=c99 -Wextra -Wno-unused-parameter
-Wno-missing-field-initializers
Change by William Orr :
--
keywords: +patch
pull_requests: +9050
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34862>
___
___
Py
William Schwartz added the comment:
In Jupyter Notebook, I tried to pass a large amount of data (about 2.3 GB) to
Statsmodels's KDEUnivariate.fit
(https://www.statsmodels.org/dev/generated/statsmodels.nonparametric.kde.KDEUnivariate.fit.html#statsmodels.nonparametric.kde.KDEUnivariat
New submission from William Moreno:
mklib: Making FreeBSD static library: librtasm.a
gmake[4]: Leaving directory
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/rtasm'
gmake[4]: Entering directory
`/usr/ports/graphics/libGL/work/Mesa-7.6.1/src/gallium/auxiliary/util
William Moreno added the comment:
Hi ... tks for answer me
What is the right place ?
Yes, I have installed Python using FreeBSD-ports?
I am using FreeBSD-ports regulary.
William Elasio Moreno Albarracin
Ingeniero de Sistemas de la Universidad Antonio Nariño
Universidad Industrial de
William Schwartz added the comment:
Looks like this issue is closed, but I got IDLE to crash.
On Python 3.3.2, Windows 7, and Tk version 8.5, IDLE crashes when pasting
\U0001F382 (Unicode birthday cake character). Below is the version string for
the Python I'm running.
Python 3.3.2 (v
New submission from William Payne :
Unfortunately, I cannot provide the source of the script I was running then the
crash occurred, so I strongly suspect that this issue will be closed as "cannot
reproduce", but I have included the OSX problem report anyway, if it is of any
use.
William Payne added the comment:
The crash has only occurred once (so far). If it happens a couple more
times I will try to reproduce it and send you the script.
For now though, I guess the ticket should be closed.
I hope I did the right thing in raising a ticket - I thought that it was
worth
New submission from William Schwartz :
Section 3.3.3.2. "Preparing the class namespace" of the documentation
(http://docs.python.org/dev/reference/datamodel.html#preparing-the-class-namespace)
states that "If the metaclass has a __prepare__ attribute, it is called as
``namesp
William Schwartz added the comment:
Attached a unittest script to demonstrate that __prepare__ is implicitly a
staticmethod.
--
Added file: http://bugs.python.org/file26245/test_metaclass.py
___
Python tracker
<http://bugs.python.org/issue15
William Schwartz added the comment:
Daniel, Good point. However it would still be useful for documentation to point
out that __prepare__ can be passed the metaclass as the implicit first argument
by being decorated by classmethod.
I'll post a small patch when I get a chance to add a sen
New submission from William Edwards:
If you have 1024 file descriptors already open, the file descriptors created
internally in multiprocessing.Queue will be beyond 1024 and the select() call
buried deep in the Queue will throw an exception.
In fact, all uses of select() in the Python libs
William Edwards added the comment:
issue 16259 has just been closed as a dup of this one. Does this mean that
this one will be fixed in Python 2.x too?
--
nosy: +William.Edwards
___
Python tracker
<http://bugs.python.org/issue10
William Edwards added the comment:
Apologies, I meant:
issue 16269 has just been closed as a dup of this one. Does this mean that
this one will be fixed in Python 2.x too?
--
___
Python tracker
<http://bugs.python.org/issue10
William Edwards added the comment:
That was my fear; I raise an issue hurting my 2.x servers in
production, and its closed as duplicate instead of not-going-to-fix?
--
___
Python tracker
<http://bugs.python.org/issue10
New submission from William Schwartz:
In Python 2.7 and 3.3, decorating a unittest.TestCase subclass with
unittest.expectedFailure caused test discover to skip the decorated test case.
Python 3.4 apparently ignores the decorator when applied to classes.
The attached file when run with Python
New submission from William Ehlhardt:
The following Python runs unnecessarily slowly:
import fractions
fractions.Fraction(6249919, 625) ** 89993
The problem here is that Fraction.__pow__ constructs a new Fraction() to
return, and Fraction.__new__ tries to gcd to normalize the
numerator
William Tisäter added the comment:
I played around with different file and chunk sizes using attached benchmark
script.
After several test runs I think 1024 * 16 would be the biggest win without
losing too many μs on small seeks. You can find my benchmark output here:
https://gist.github.com
Changes by William Tisäter :
--
nosy: +tiwilliam
___
Python tracker
<http://bugs.python.org/issue20050>
___
___
Python-bugs-list mailing list
Unsubscribe:
William Tisäter added the comment:
That makes sense.
I proceeded and updated `Lib/gzip.py` to use `io.DEFAULT_BUFFER_SIZE` instead.
This will change the existing behaviour in two ways:
* Start using 1024 * 8 as buffer size instead of 1024.
* Add one more kwarg (`buffer_size`) to `GzipFile
William Tisäter added the comment:
Found this a simple fix for an annoying and time consuming error. Patched as
discussed earlier and decided to leave the filename out.
--
components: +Windows -Library (Lib)
keywords: +patch
nosy: +tiwilliam
versions: +Python 3.5
Added file: http
William Tisäter added the comment:
I'm not sure if this is a suitable feature in `make_archive()`, it would only
introduce a more expensive and ugly lookup. Using this method with a
pre-defined filename including extension must be rare. If you really want this
behaviour, I would prefer h
Changes by William Ehlhardt :
--
nosy: +Orborde
___
Python tracker
<http://bugs.python.org/issue15795>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from William Mallard:
This patch enables creation of 64-bit zip files via make_archive().
make_archive uses ZipFile to create zip files. ZipFile already supports
creation of 64-bit archives via a kwarg, but make_archive hard-codes it to
32-bit. This patch exposes the option in
New submission from William Grzybowski:
Hello,
Currently python setup.py restricts FreeBSD host platform by version, e.g.
freebsd7, freebsd8.
It is not only out-of-date (we already are on freebsd11) but also doesn't seem
to have a good reason to do so.
Proposed patches replaces it
Changes by William Grzybowski :
Added file: http://bugs.python.org/file32574/tip.patch
___
Python tracker
<http://bugs.python.org/issue19554>
___
___
Python-bugs-list m
Changes by William Grzybowski :
Removed file: http://bugs.python.org/file32573/tip.patch
___
Python tracker
<http://bugs.python.org/issue19554>
___
___
Python-bugs-list m
101 - 200 of 287 matches
Mail list logo