New submission from George Gensure :
Instantiating an exception and raising it multiple times causes 1 frame and 2
traceback objects to remain allocated for each raise. The attached example
causes python to consume 8GB of ram after a few seconds of execution on
Windows/Linux
George King added the comment:
Edit: `chr(0xff)`
--
___
Python tracker
<https://bugs.python.org/issue45904>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from George King :
Using macOS 11.6 Terminal.app with Python 3.10.0 installed directly from
python.org.
I open the REPL. If I enter `char(0xff)` I get back 'ÿ' as expected (U00FF
LATIN SMALL LETTER Y WITH DIAERESIS).
However, If I copy this character with surround
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
Damien George added the comment:
Thanks for confirming the bug.
Sending non-None to a not-started generator could arguably be case (2), because
that's exactly the semantics introduced by the commit that broke the test case
:)
Honestly I don't have a strong opinion on which way
Damien George added the comment:
It looks like this change introduced a subtle, and maybe intended (?),
behavioural change.
Consider (from MicroPython's test suite):
def f():
n = 0
while True:
n = yield n + 1
print(n)
g = f()
try:
g.send(1)
except Type
New submission from George :
Warning: There's a higher probability this is "expected" undefined behaviour or
not even undefined and I'm just a moron. In addtion, I couldn't actually
replicate it outside of the specific context it happened. But if it sounds
plausibl
George King added the comment:
I should also mention that my reading was not exhaustive, so there may be other
docs that need updating as well.
--
___
Python tracker
<https://bugs.python.org/issue44
New submission from George King :
`dis.findlinestarts()` has been changed to use the no `co_lines()` function.
(Blame indicates commit 877df851c3e by Mark Shannon.) However the docs
currently state that it uses the older `co_firstlineno` and `co_lnotab`:
https://docs.python.org/3.10/library
Jurj Andrei George added the comment:
I would also like to have yaml in the stdlib.
I reckon it would make sense to at least discuss yaml given that toml is on its
way in the stdlib.
By the time a toml parser gets added, yaml will be the only major data
serialization language to not be
George-Cristian Bîrzan added the comment:
I think the only thing I'd improve would be to mention that this issue is the
one that introduced the bug, otherwise it looks a bit weird.
--
___
Python tracker
<https://bugs.python.org/is
George-Cristian Bîrzan added the comment:
The timeline there is wrong. This issue's creation time isn't the disclosure
time, it's when the bug was introduced. The disclosure was on 30th of May, when
I emailed secur...@python.org and Christian Heimes commented here and made
htt
Change by George-Cristian Bîrzan :
--
nosy: +gc2
___
Python tracker
<https://bugs.python.org/issue36384>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from George Sovetov :
Ctrl+C alone has no effect, but Ctrl+Break works:
```
winrs -r:127.0.0.1:20465 -u:Administrator -p:qweasd123 python -c "import
sys;sys.stdin.read(1)"
```
Although, if I press Ctrl+C, type zero or more symbols and then press Enter,
KeyboardIn
George added the comment:
Thanks Christian for the solutions. I am guessing that since it is my entire
machine that crashes, and python is not simply killed for requesting so much
memory, that this is an operating system problem. Should I submit this as a bug
to the kernel project then
New submission from George :
I tried running the following command in the interpreter, and without fail it
will completely crash my entire computer.
Python 3.8.7 (default, Jan 20 2021, 00:00:00)
[GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] on linux
Type "help", "copyright", &
Change by George Stefos :
--
nosy: +stefosgiwrgos
___
Python tracker
<https://bugs.python.org/issue42409>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from George Sakkis :
ThreadPoolExecutor.map() prevents interpreter exit if there is a reference to
the generator it returns. In the attached script:
- `python threadpool_map.py run1` exits as soon as the exception is raised on
the main thread. This is the desired behavior in
George Melikov added the comment:
PR rebased and ready to review.
--
___
Python tracker
<https://bugs.python.org/issue39640>
___
___
Python-bugs-list mailin
George King added the comment:
I think we should change the documentation to expand the parenthetical "
(unless SystemExit is raised)" to a complete explanation of that special case.
--
___
Python tracker
<https://bugs.python.o
George Melikov added the comment:
I want to add that it's a usual practice:
-
https://github.com/libuv/libuv/pull/1580/files/bdd987a9b4347164e31e22d2d5ce06fbb5ebc859
-
https://rev.ng/gitlab/revng/qemu/commit/6f1953c4c14566d3303709869fd26201828
George Melikov added the comment:
If there is a way not to sync data - you should use neither fdatasync nor fsync.
So IMHO if someone wants to sync data and want to use fdatasync - I see the
only way on MacOS is to use fsync().
> Note also that this change will not help to run code w
Change by George Melikov :
--
keywords: +patch
pull_requests: +17893
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/18516
___
Python tracker
<https://bugs.python.org/issu
New submission from George Melikov :
POSIX fdatasync() is similar to fsync() but it tries not to sync non-needed
metadata. If POSIX OS doesn't have it - it's safe to use fsync() (If we need to
sync data to disk - we have to use one of these functions).
This change will help to run
George Hickman added the comment:
I came across this today with the same timeout behaviour on macOS 10.14.6.
After some digging I tracked it down to the Search Domains setting of my local
network, this was set to "local", removing that immediately fixed the issue.
--
nosy:
Feștilă George Cătălin added the comment:
No. I don't have a reproducer script for this issue with Linux OS.
The mytext is a class from another script named my_notepad.
The problem comes with time when I use the menu to change the syntax value, as
you can see:
self.syntax = m
New submission from Feștilă George Cătălin :
My simple notepad code with QtWidgets.QPlainTextEdit() give me a crash dump on
Linux Fedora 30 with python3
Python 3.7.4 (default, Jul 9 2019, 16:32:37)
[GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux
[mythcat@desk pyqt5_examples]$ uname -a
Linux
Change by George Zhang :
--
pull_requests: +15137
pull_request: https://github.com/python/cpython/pull/15432
___
Python tracker
<https://bugs.python.org/issue37
Change by George Zhang :
--
pull_requests: +15136
pull_request: https://github.com/python/cpython/pull/15430
___
Python tracker
<https://bugs.python.org/issue37
George Zhang added the comment:
Also, how should I get the new code coverage percentage (or should it be
ignored for now)?
I'm thinking of adding a few more tests that send invalid events which would
raise KeyError but I don't think that this behaviour will be used (and
George Zhang added the comment:
I renamed mousescroll to handlescroll as it's an independent callback function
and I think it fits its use case better. I can keep it as mousescroll if you
like though.
The handlescroll function is now a standalone module function in tree.py and
George Zhang added the comment:
Looks like my PRs are getting out of hand... This is the final PR :P
--
___
Python tracker
<https://bugs.python.org/issue37
Change by George Zhang :
--
pull_requests: +15079
pull_request: https://github.com/python/cpython/pull/15368
___
Python tracker
<https://bugs.python.org/issue37
Change by George Zhang :
--
pull_requests: -15077
___
Python tracker
<https://bugs.python.org/issue37902>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by George Zhang :
--
pull_requests: -15076
___
Python tracker
<https://bugs.python.org/issue37902>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by George Zhang :
--
pull_requests: +15076
pull_request: https://github.com/python/cpython/pull/15360
___
Python tracker
<https://bugs.python.org/issue37
Change by George Zhang :
--
pull_requests: +15076, 15077
pull_request: https://github.com/python/cpython/pull/15360
___
Python tracker
<https://bugs.python.org/issue37
Change by George Zhang :
--
pull_requests: -15072
___
Python tracker
<https://bugs.python.org/issue37902>
___
___
Python-bugs-list mailing list
Unsubscribe:
George Zhang added the comment:
I looked at the code for scrolling and moved it over to the ScrolledCanvas and
TreeNode (because it uses a Label that sits on the canvas, meaning we have to
rebind it here).
I haven't figured out how to add the scroll-by-pressing-down-and-moving way but
Change by George Zhang :
--
keywords: +patch
pull_requests: +15072
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/15360
___
Python tracker
<https://bugs.python.org/issu
New submission from George Zhang :
I've just started using IDLE's module/path browsers and they offer a lot!
Putting aside the issue of them opening in separate windows, they have a small
change that could be made to improve them.
Both browsers have scrollbars, but (for me at least
Change by George Zhang :
--
type: -> enhancement
___
Python tracker
<https://bugs.python.org/issue37882>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from George Zhang :
Congrats on adding line numbers to IDLE.
With this change, a change to add code folding could be done more easily as the
folding can reference the line numbers. Many other IDEs have code folding but
IDLE should also have it.
Code folding could be done with
George Zhang added the comment:
Also, while the PEP first introducing asynchronous generators stated that its
.asend() and .athrow() methods will return a "coroutine-like object", it
doesn't allow any introspection into its state or parent async generator.
My workaround
Change by George Zhang :
--
versions: +Python 3.9
___
Python tracker
<https://bugs.python.org/issue37771>
___
___
Python-bugs-list mailing list
Unsubscribe:
George Pantazes added the comment:
In case anyone would like to weigh in on the Homebrew side, I've filed the
homebrew issue here: https://github.com/Homebrew/homebrew-core/issues/41338 .
--
___
Python tracker
<https://bugs.python.org/is
George Pantazes added the comment:
Checked against the python.org installation. In that installation's IDLE, About
IDLE > Tk version 8.6.8.
So my question is:
- Is it on me to fix this for my own machine because I should have gotten my
own more-up-to-date TK before installing Py
George Pantazes added the comment:
Alright folks, sorry there's going to be a lot of pasted blocks of output, so
just look for where I @ your name to address your questions.
@ned.deily, here is the output of those info commands.
```
➜ python3 -m test.pytho
George Pantazes added the comment:
Also happens when I plug in a conventional mouse and use the mouse scrollwheel
(so it's not just the touchpad scrolling!).
--
___
Python tracker
<https://bugs.python.org/is
New submission from George Pantazes :
IDLE crashes if the user scrolls with the Mac mousepad (using two fingers,
either up or down).
```$ python -m idlelib # Then I use the mousepad to scroll in the IDLE window
Traceback (most recent call last):
File
"/usr/local/Cellar/python/
Change by George Xie :
--
keywords: +patch
Added file:
https://bugs.python.org/file48424/0001-fix-bound-method-__reduce__-bug.patch
___
Python tracker
<https://bugs.python.org/issue37
New submission from George Xie :
if we create a bound method object `f` with function object `A.f` and instance
object `B()`,
when pickling this bound method object:
import pickle
class A():
def f(self):
pass
class B():
def f
George Sakkis added the comment:
> I think the best thing to do is write another decorator that adds this
> method. I've often thought that having a dataclasses_tools third-party module
> would be a good idea.
I'd be happy with a separate decorator in the standard libra
New submission from George Sakkis :
I'd like to propose two new optional boolean parameters to the @dataclass()
decorator, `asdict` and `astuple`, that if true, the respective methods are
generated as equivalent to the module-level namesake functions.
In addition to saving an extra imp
New submission from George King :
I was browsing the Blake2b module implementation in master and noticed two
subtle issues in blake2b_impl.c. There are two places where the GIL gets
released; both of them appear flawed.
py_blake2b_new_impl, line 221. The ALLOW_THREADS block fails to acquire
New submission from George Shuklin :
ZFC (https://en.wikipedia.org/wiki/Zermelo%E2%80%93Fraenkel_set_theory) defines
numbers as nested empty sets.
0 is {}
1 is {{}}
2 is {{{}}}
Sets can not be nested in python (as they are mutable), so next best type is
frozen set. Unfortunately, nested
Feștilă George Cătălin added the comment:
I delete two folders of traits
Using the pip-review --auto this is the output of traits:
copying traits\util\tests\__init__.py -> build\lib.win-amd64-3.6\traits\util\t
ests
running build_ext
building 'traits.ctraits' extension
c
New submission from Feștilă George Cătălin :
The pip install module crash with this error:
Could not install packages due to an EnvironmentError: [Errno 2] No such file or
directory: 'c:\\python364\\lib\\site-packages\\traits-4.6.0.dist-info\\METADATA
'
You are using pip version 18.
George King added the comment:
I agree that regardless of the underlying issue, the docs should match the
behavior. Additionally, I hope the docs will note the exact release at which
the behavior changed.
@serhiy-storchaka do you have any opinion on this? I took a brief look at your
commit
New submission from George Fischhof :
Winreg's documentation lacks mentioning required permission at some points
Hi there,
on page
https://docs.python.org/3/library/winreg.html
it is not mentioned in the description of the following functions:
winreg.DeleteKey
winreg.Delete
George King added the comment:
OK, thanks. I agree that this is best pursued with the developers of the
relevant modules. I appreciate your quick and detailed responses!
--
___
Python tracker
<https://bugs.python.org/issue33
George King added the comment:
Thanks Barry. My question then is, what relationship does cpython have with
pip, setuptools, distutils and pkg_resources? Since pip comes bundled with
Python now it seems a little bit closer than "3rd party&quo
New submission from George King :
On my newish macOS laptop using Python 3.6 or 3.7, a no-op script takes 3 times
as long to invoke using the entry_points machinery as it does to invoke
directly. Here are some exemplary times (best times after several tries).
$ time python3.6 entrypoint.py
Change by George King :
--
keywords: +patch
pull_requests: +4017
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue31618>
___
___
Python-
Change by George King :
--
pull_requests: +4016
___
Python tracker
<https://bugs.python.org/issue31681>
___
___
Python-bugs-list mailing list
Unsubscribe:
George King added the comment:
Nick's implementation of f_trace_lines/f_trace_opcodes serves the same purpose
as my proposal, and is a simpler solution so I'm abandoning this patch and
working with that feature instead.
--
stage: test needed -> resolved
status: o
George King added the comment:
The feature was was implemented in bpo-31344. See bpo-29400 for my parallel
effort, which has been abandoned.
--
___
Python tracker
<https://bugs.python.org/issue31
New submission from George King :
This patch moves the new opcode tracing added in commit 5a85167 to happen after
frame->f_lineno is updated. With this patch, when both f_trace_lines and
f_trace_opcodes are enabled the trace function will see the same line number
for both the 'l
Changes by George King :
--
pull_requests: +3278
___
Python tracker
<http://bugs.python.org/issue29400>
___
___
Python-bugs-list mailing list
Unsubscribe:
George King added the comment:
Attached updated demo script.
--
Added file: http://bugs.python.org/file47107/settracestate-demo.py
___
Python tracker
<http://bugs.python.org/issue29
Changes by George King :
--
pull_requests: +3277
___
Python tracker
<http://bugs.python.org/issue24900>
___
___
Python-bugs-list mailing list
Unsubscribe:
George Lane added the comment:
Hi, ¿can you tell me about Diameter protocol implemented by Python?, ¿where
can I found documentation and package for downloading?
Best regards
2017-08-21 14:36 GMT-03:00 Serhiy Storchaka :
>
> Serhiy Storchaka added the comment:
>
> Could you
New submission from George Lane:
Diameter protocol in Python
--
components: Library (Lib)
messages: 300643
nosy: George Lane
priority: normal
severity: normal
status: open
title: Diameter protocol in Python
type: resource usage
versions: Python 3.7
George Collins added the comment:
Makes sense. I'll update the PR in a bit, and if anyone is hitting this
repeatedly and thinks it should be added to 3.6 they can advocate for a policy
change in the maintaining-consistency-with-previous-new-features corner case.
Thanks
George Collins added the comment:
Hm--either/both? I encountered it as a bug ("dis works on my generator object
and my async generator function, why does it break on my async generator
object?") but strictly speaking it's a new feature (just as issue21947 was). To
my mind, ad
Changes by George Collins :
--
pull_requests: +3114
___
Python tracker
<http://bugs.python.org/issue31183>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from George Collins:
Issue 21947 informed the `dis` module about the `gi_code` attribute, which
stores code objects for generator objects. This allows inspection of generator
objects, not just functions which return them. However, asynchronous generator
objects use `ag_code
George King added the comment:
(Also I did prototype instruction filtering but it had mild performance
implications when tracing so I have shelved it for the moment.)
--
___
Python tracker
<http://bugs.python.org/issue29
George King added the comment:
I've updated the patch and I think it's ready for a more serious review. A few
notes:
* settracestate now takes a flag `trace_instructions`. This describes slightly
better the behavior, which is that line events take precedence over
instructions.
New submission from George K:
The documentation for round states "The return value is an integer if called
with one argument, otherwise of the same type as number." This is not the case
if the second argument is None.
--
assignee: docs@python
components: Documentation
messag
George King added the comment:
After reviewing the thread, I'm reminded that the main design problem concerns
preserving behavior of this idiom:
"old=sys.gettrace(); ...; sys.settrace(old)"
If we add more state, i.e. the `trace_instructions` bool, then the above idiom
no l
George King added the comment:
@matrixise, I'm the author of the alternative in issue29400, and I'm finally
finding the time to get back into it. I'm going to make a push this week to
clean it up; your feedback would be much appreciated!
--
New submission from George Gillan:
Python 3.6.1 String Literal Error Not Going to sys.stderr
Using Windows 7 and Python 3.6.1. Attempting to redirect sys.stderr to a file.
The application will be deployed via .pyw file instead of .py so the GUI
application runs without a console window.
Is
George Shuklin added the comment:
Unfixed crash of code interpreter? This is sad.
--
___
Python tracker
<http://bugs.python.org/issue30734>
___
___
Python-bug
New submission from George Shuklin:
If there is too many indexes python crashes:
a[0][0][0][0]
segfault at 7ffd25fe6ff8 ip 564528c8cfe6 sp 7ffd25fe7000 error 6 in
python2.7[564528b6a000+324000]
code to generate code:
>>> i="[0]"*20
>>> file('
New submission from Damien George:
The behaviour of the "async with" statement in CPython does not match the
description of it in PEP492, nor the language documentation. The
implementation uses a try/except/finally block, while the PEP and documentation
describe the behaviour u
Changes by Damien George :
--
assignee: docs@python
components: Documentation
nosy: Damien George, docs@python
priority: normal
severity: normal
status: open
title: Incorrect description of "async with" in PEP492 and documentation
type: behavior
versions: Python 3.5, Python 3
George King added the comment:
I think it is a mistake not to support None values. Please consider:
The existing message clearly suggests that the intent is to support the same
set of values as the start/stop parameters of the slice type. str, bytes, and
bytearray all support None for `index
Changes by George King :
--
type: -> enhancement
___
Python tracker
<http://bugs.python.org/issue29935>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from George King:
As of python3.6, passing None to the start/end parameters of `list.index` and
`tuple.index` raises the following exception:
"slice indices must be integers or None or have an __index__ method"
This suggests that the intent is to support None as a v
New submission from George Shuklin:
I found that Python provides 'find()' and 'in' methods for strings, but lacking
same functionality for lists.
Because strings and lists are very similar, it's reasonable to expect same
function available for both.
Here long and
George King added the comment:
I'm not sure exactly, but the way I see it (for code coverage), we want to
trace transitions between basic blocks. So I would define it as: each entry
into a BB is traced, with a tuple of (previous_offset, current_offset). This
way when a function call s
George King added the comment:
Attached is a new patch, which does not settrace/gettrace and instead offers
new settraceinst/gettraceinst per Victor's recommendation.
I did not implement the proposed behavior of raising an exception if the old
APIs are used when the inst_tracing flag i
George King added the comment:
Thanks to both of you for your feedback. I will take a stab at updating the
patch with Victor's suggestions as soon as I can.
--
___
Python tracker
<http://bugs.python.org/is
George King added the comment:
Attached is a demo of using the feature as a fancy replacement for __ltrace__.
It demonstrates using a closure for the local trace function to track the
previous offset, and prints the offset transitions as src -> dst pairs. This
helped me learn a lot about
George King added the comment:
Xavier, this is a misunderstanding; sorry for not being more clear. When I said
"remove the `else`", I was proposing this:
+ if (tstate->inst_tracing) {
+ result = call_trace(func, obj, tstate, frame, PyTrace_INSTRUCTION, Py_None);
+ }
Line-ori
George King added the comment:
Here is the patch from git; if you need a patch for hg I can work on that
tomorrow!
--
keywords: +patch
Added file: http://bugs.python.org/file46475/inst-tracing.diff
___
Python tracker
<http://bugs.python.
New submission from George King:
I have recently put some effort into developing a code coverage tool that shows
correct results for intraline branches. In order to get intraline trace data, I
patched CPython, adding an optional "trace instructions" flag to sys.settrace.
The patch
George King added the comment:
I reinstalled the command line tools by downloading from
developer.apple.com/download/more and the problem went away. No idea how they
broke; I had previously installed the same version. In any case, sorry for the
noise
1 - 100 of 241 matches
Mail list logo