William Woodruff added the comment:
Nosying myself; this affects 3.9 and 3.10 as well.
--
nosy: +yossarian
versions: +Python 3.10, Python 3.9
___
Python tracker
<https://bugs.python.org/issue14
Change by William Dreese :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
William Dreese added the comment:
You two are both correct, this is not a bug and is the intended functionality.
> The difference between 41 and 169 is 128:
This realization helps a ton. Thanks.
--
___
Python tracker
<https://bugs.pyth
William Dreese added the comment:
I've made a very bad copy & paste error with the terminal output below, I
apologize. The corrected output is
>>> pp(var_marshaled)
91
2
0
0
0
41
3
233
1
0
0
0
233
2
0
0
0
233
3
0
0
0
41
3
233
4
0
0
0
233
5
0
0
0
233
6
0
0
0
>>> p
New submission from William Dreese :
Hello,
I've been working with the marshal package and came across this issue (I think)
-
Python 3.9.10 Interpreter
(Same output in 3.11.0a5+ (heads/master:b6b711a1aa) on darwin)
>>> import marshal
>>> var_example = [(1,2,3),(4,
William Navaraj added the comment:
The variation in the caret position was also due to the trailing spaces. This
is now sorted in this solution with a factored out function to find out the
correct offset.
https://github.com/python/cpython/compare/main...williamnavaraj:fix-issue-46275?expand
William Fisher added the comment:
In the conversion to PY_CHECK_FUNC, there's a mistake in HAVE_EPOLL.
Python 3.10.1 defines HAVE_EPOLL by checking for the `epoll_create` function.
Python 3.11.0a3 checks for the `epoll` function instead. There is no epoll()
function so this always
William Navaraj added the comment:
Hi all,
Sorry. I seem to have stepped on someone's toes or no one likes turtle any more
(as this is active since 2016). As you can see, I am new here and still getting
a feel for these procedures. I was preparing a Jupyter notebook for my
studen
William Navaraj added the comment:
A potential solution or in that direction
https://github.com/williamnavaraj/cpython/tree/fix-issue-46275
Example 1:
```
temp=f"blank {foo)"
```
temp=f"blank {foo)"
^
SyntaxError: f-string: unmatched ')&
New submission from William Navaraj :
Currently for non-f-string syntax errors,
the caret points to the correct location of the syntax errors
Example 1:
```
a=foo)+foo()+foo()
```
a=foo)+foo()+foo()
^
SyntaxError: unmatched ')'
For f-string syntax errors,
the ca
William Navaraj added the comment:
@Eric Smith,Thanks for explaining the intuition behind this statement. I agree.
Just to avoid ambiguity we could add
"f-string: unmatched '%c' - no matching open parenthesis or missing '}'"
The only possibility at nested_
Change by William Navaraj :
--
nosy: +williamnavaraj
nosy_count: 6.0 -> 7.0
pull_requests: +28569
pull_request: https://github.com/python/cpython/pull/30355
___
Python tracker
<https://bugs.python.org/issu
Change by William George :
--
keywords: +patch
pull_requests: +28015
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29778
___
Python tracker
<https://bugs.python.org/issu
New submission from William George :
The convenience factory functions in the ipaddress module each return one of
two types (IPv4Network vs IPv6Network, etc). Modern code wants to be friendly
to either stack, and these functions are great at enabling that, but current
implementation blocks
William Fisher added the comment:
asyncio.MultiLoopChildWatcher has two problems that create a race condition.
1. The SIGCHLD signal handler does not guard against interruption/re-entry.
2. The SIGCHLD signal handler can interrupt add_child_handler's
`self._do_waitpid(pid)`.
Symptoms:
William Fisher added the comment:
Thanks, I will comment on bpo-38323 directly.
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
New submission from William Fisher :
Summary: asyncio.MultiLoopChildWatcher has two problems that create a race
condition.
1. The SIGCHLD signal handler does not guard against interruption/re-entry.
2. The SIGCHLD signal handler can interrupt add_child_handler's
`self._do_waitpi
William Proffitt added the comment:
Ah yes, thank you Steve. I see the commit you're referencing is the cherry pick
from upstream onto the 3.8 branch, but it's newer than the tag 3.8.12 I was
using. Looks like I won't have to do anything if I wait until 3.8.13 before
doing t
New submission from William Proffitt :
Wasn't sure where to file this. I built Python 3.8.12 for Windows recently from
the latest bugfix source release in the cpython repository. One tricky thing
came up I wanted to write-up in case it matters to someone else.
The version of libffi i
New submission from William Fisher :
I have a reproducible case where stdin.wait_closed() is hanging on
Windows. This happens in response to a BrokenPipeError. The same code
works fine on Linux and MacOS.
Please see the attached code for the demo.
I believe the hang is related to this debug
New submission from William Fisher :
asyncio.gather uses a dictionary to de-duplicate futures and coros. However,
this can lead to problems when
you pass an awaitable object (implements __await__ but isn't a future or coro).
1. Two or more awaitables may compare for equality/hash, but
William Manley added the comment:
Linux has a close_range syscall since v5.9 (Oct 2020):
https://man7.org/linux/man-pages/man2/close_range.2.html
--
nosy: +wmanley
___
Python tracker
<https://bugs.python.org/issue13
William Pickard added the comment:
MSVC by default disables method inlining (/Ob0) when '/Od' is specified on the
command line while the optimization options specify '/Ob2'.
--
___
Python tracker
<https://bug
William Pickard added the comment:
This is not a bug but a side-affect at how defaulted parameters are stored. The
rule of thumb is to never use mutable values as default values for parameters.
When a method is created in the Python runtime, it checks if the signature has
defaulted keyword
William Barnhart added the comment:
I'm glad someone else thinks it's a good idea. If you have some ideas for
tests, I'd be happy to help write them in order to spare the inconvenience
(unless the tests are that easy to write then by all means please do).
I can apprecia
Change by William Barnhart :
--
keywords: +patch
pull_requests: +24899
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/26295
___
Python tracker
<https://bugs.python.org/issu
New submission from William Barnhart :
An issue I encountered recently with argparse was when I tried running a script
with its argument changed from something like:
```
parser.add_argument('--please_work')
```
and was replaced with:
```
parser.add_argument('--please-work
New submission from William Sjoblom :
A common testing scenario is assuring that opened files are closed. Since
unittest.mock.mock_open() can be used as a context manager, it would be
reasonable to expect its __exit__ to invoke close so that one can easily assert
that the file was closed
William Minchin added the comment:
I can't reproduce this today: Python 3.8.6 (or 3.9.5) with PowerShell 7.1.3 on
Windows 10 with Windows Terminal. Maybe it got fixed by a bugfix release of
Python 3.8?
I'll close it for now.
c.f. https://github.com/tartley/colorama/
William Pickard added the comment:
Correction: You can use either VsDevCmd.bat/Enter-VsDevShell on VS versions
that provide them (2017 and 2019 are known to include it), but to get the x64
tools you need to pass command line arguments (They default to x86 native
tools).
Otherwise you must
William Pickard added the comment:
Then it appears you're using a version of the compiler that is built for
building 32-bit exes/dlls, you need to use the x64 version.
For this you need to start either the x86 Cross Tools console or the x64 native
console (VS 2019) or use vcvarsal
William Pickard added the comment:
I'm quite familiar with MSVC's command line and I'm quite confused on what you
mean "the above commands are specific to 32-bit Python"
"/LD" is available for both 32-bit and 64-bit compilations, it implies "/MT&qu
William Pickard added the comment:
Here's something you should know about Windows, even if a local account is in
the Administrators group, it still has restrictions on what it can do, it just
has the power to elevate itself without requiring login credentials (VIA UAC
prompts).
This
William Pickard added the comment:
Do you mind ticking the box, "Run as Administrator" in the Compatibility tab
for python.exe and try winreg again?
--
nosy: +WildCard65
___
Python tracker
<https://bugs.python.o
William Pickard added the comment:
Python, when installed for all users, installs to %ProgramFiles% (or
%ProgramFiles(x86)% for 32-bit version on 64-bit Windows).
The %LocalAppData% install is just for you... you didn't install it for
everyone or you didn't provide Pytho
Change by William Woodruff :
--
nosy: +yossarian
___
Python tracker
<https://bugs.python.org/issue15795>
___
___
Python-bugs-list mailing list
Unsubscribe:
William Pickard added the comment:
Actually, the problem is independent of the value of "shell", the __repr__
function from the initial PR that introduced it expects "args" to be a sequence
and converts it to a list.
William Woodruff added the comment:
I don't think this is a productive or polite response.
If you read the issue linked, you'll note that the other flag added
(--with-openssl-rpath) is in furtherance of any *already* supported linking
scenario (dynamic, with a non-system-default Ope
William Pickard added the comment:
This line is the cause of your issue: "new_cls: SingletonMeta =
cast(SingletonMeta, type(name, bases, namespace))"
More specifically, your call to type() actually erases all information about
your meta class. If you did "type(S)", you
Change by William (David) Wilcox :
--
resolution: -> rejected
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by William (David) Wilcox :
--
components: Library (Lib)
nosy: wdwilcox
priority: normal
severity: normal
status: open
title: Missing stub for logging attribute manager
type: enhancement
versions: Python 3.10
___
Python tracker
<ht
William Pickard added the comment:
Python 3.9 does not support Windows 7, it's explicitly stated in the release
notes of 3.9.0
--
nosy: +WildCard65
___
Python tracker
<https://bugs.python.org/is
William Woodruff added the comment:
Cheers! No promises about not using the hack, but I *will* promise not to
complain if it doesn't work for me :-)
--
___
Python tracker
<https://bugs.python.org/is
William Woodruff added the comment:
Not to butt in too much, but I have a related use case that would benefit from
being able to statically link to OpenSSL: I have an environment in which
dynamic modules are acceptable, but where the entire Python install benefits
from being relocatable and
William Pickard added the comment:
This feels like it's more of an issue with the C++ compiler you're using. (I
can tell it's C++ because of template syntax)
--
nosy: +WildCard65
___
Python tracker
<https://bugs.pyt
William Pickard added the comment:
That quick flash would be your terminal window if I have to guess (based on no
Mac experience, but Windows).
--
nosy: +WildCard65
___
Python tracker
<https://bugs.python.org/issue43
William Schwartz added the comment:
>For a new process group, the cancel event is initially ignored, but the break
>event is always handled. To enable the cancel event, the process must call
>SetConsoleCtrlHandler(NULL, FALSE), such as via ctypes with
>kernel32.SetConsoleCtrl
William Schwartz added the comment:
> Fixing the SystemError should be simple. Just clear an existing error if
> TerminateProcess() succeeds.
Should there be a `return NULL;` between these two lines?
https://github.com/python/cpython/blob/e485be5b6bd5fde97d78f09e2e4cca7f363763c3/M
William Schwartz added the comment:
> In Windows, os.kill() is a rather confused function.
I know how it feels.
To be honest, I don't have an opinion about whether the steps I laid out ought
to work. I just reported it because the SystemError indicates that a C-API
function was r
New submission from William Schwartz :
I don't have an automated test at this time, but here's how to get os.kill to
raise SystemError. I did this on Windows 10 version 20H2 (build 19042.746) with
Pythons 3.7.7, 3.8.5, and 3.9.1. os_kill_impl at Modules/posixmodule.c:7833
does not
William Pickard added the comment:
Jumping in here to explain why '__class' doesn't crash when '__sizeof__' does:
When '__class__' is fetched, it returns a new reference to the object's type.
When '__sizeof__' is fetched on the
William Schwartz added the comment:
> For that, please submit a PR to importlib_resources and it will get synced to
> CPython later.
Will do once PR 23611 gets in shape.
> Can you tell me more about the use-case that exhibited this undesirable
> behavior?
Using the [PyOxidiz
William Schwartz added the comment:
@jaraco Did you have any other questions after my comments in msg382423? Do you
think you or someone else could review PR 23611? Thanks!
--
___
Python tracker
<https://bugs.python.org/issue42
William Pickard added the comment:
I recommend first doing a capture of these functions first, incase Windows is
routing some through them:
LoadLibrary(Ex)(W|A)
W is the Unicode variant while A is the Ascii variant.
--
___
Python tracker
<ht
William Pickard added the comment:
Msvcp140.dll from what I can find is part of the VS 2015 Redstributable package.
--
___
Python tracker
<https://bugs.python.org/issue42
William Pickard added the comment:
I was just expecting only detours for LoadLibraryExW (and variants) to find out
which dll failed.
--
___
Python tracker
<https://bugs.python.org/issue42
William Pickard added the comment:
https://www.microsoft.com/en-us/research/project/detours/
--
___
Python tracker
<https://bugs.python.org/issue42529>
___
___
William Pickard added the comment:
You may need to inject a LoadLibraryExW detour into your python runtime before
_jpype is loaded and output all the library names its requesting.
You may need to detour all Load
Library functions for maximum coverage.
--
nosy: +WildCard65
William Schwartz added the comment:
> If the issue has been fixed on Python 3.9 but not on 3.8, then it was likely
> a redesign that enabled the improved behavior
That appears to be the case: path() shares code with files().
> a redesign that won't be ported back to Python 3
Change by William Schwartz :
--
keywords: +patch
pull_requests: +22477
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/23611
___
Python tracker
<https://bugs.python.org/issu
New submission from William Schwartz :
Suppose pkg is a package, it contains a resource r, pkg.__spec__.origin is
None, and p = importlib.resources.path(pkg, r). Then p.__enter__() raises a
TypeError in Python 3.7 and 3.8. (The problem has been fixed in 3.9). The error
can be demonstrated by
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
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
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 :
--
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 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 Schwartz :
--
nosy: +William.Schwartz
___
Python tracker
<https://bugs.python.org/issue26388>
___
___
Python-bugs-list mailing list
Unsub
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
William Pickard added the comment:
You did just necro a 5 year old bug report...
--
nosy: +WildCard65
___
Python tracker
<https://bugs.python.org/issue24
Change by William Pickard :
--
nosy: -WildCard65
___
Python tracker
<https://bugs.python.org/issue24427>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by William Pickard :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
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
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
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
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
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
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:
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:
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
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
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
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 :
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 :
--
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
Change by William Pickard :
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue41153>
___
___
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
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
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
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 initconfig API functions "PyPreConfig_InitPythonConfig" and
"PyPreConfig_InitIsolatedConfig" are mistakenly documented for the other method.
--
assignee: docs@python
components: Documentation
messages: 372531
nosy: Wil
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
Change by William Pickard :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by William Pickard :
--
keywords: +patch
pull_requests: +20240
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21071
___
Python tracker
<https://bugs.python.org/issu
William Pickard added the comment:
The only modification I made was to "rt.bat" to have the value of '-u' work
properly.
--
___
Python tracker
<https://bug
New submission from William Pickard :
Here's the verbose stack trace of the failing test:
==
FAIL: test_index (test.test_array.LargeArrayTest)
--
Trac
William Pickard added the comment:
I've made the changes you've requested.
--
___
Python tracker
<https://bugs.python.org/issue25095>
___
___
Python-b
William Pickard added the comment:
I'll get to it Saturday.
--
___
Python tracker
<https://bugs.python.org/issue25095>
___
___
Python-bugs-list m
Change by William Meehan :
--
keywords: +patch
pull_requests: +18812
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/19457
___
Python tracker
<https://bugs.python.org/issu
1 - 100 of 287 matches
Mail list logo