New submission from aaron :
When running code in debug mode, asyncio sometimes enter into infinite loop,
shows as the following:
```
Current thread 0x7f1c15fc5180 (most recent call first):
File "/root/miniconda3/envs/omicron/lib/python3.9/asyncio/events.py", line 58
in __rep
aaron added the comment:
"When running code in debug mode" means we're debug the code. We have used both
vscode and pycharm. Same result.
--
___
Python tracker
<https://bugs.pyt
aaron added the comment:
'@reprlib.recursive_repr' decorator to 'events.Handle.__repr__()'
could you tell me which file should I change? and why?
--
___
Python tracker
<https://bug
New submission from Aaron :
When ever I try to open a new window or open a saved file in the IDLE (on a
mac) it freezes. I am running snow leppord on a very new mac.
--
components: IDLE
messages: 102987
nosy: aaron.the.cow
severity: normal
status: open
title: New Window Error
type
Aaron added the comment:
I just used the biult in mac softwere
--
___
Python tracker
<http://bugs.python.org/issue8381>
___
___
Python-bugs-list mailin
Aaron added the comment:
I ran into this bug answering this question on Stack Overflow:
https://stackoverflow.com/questions/68890437/cannot-use-result-from-multiprocess-pool-directly
I have minimized the code required to replicate the behavior, but it boils down
to: when using "spaw
Aaron added the comment:
What should the behavior be if an exception is raised in a pool worker during
bootstrapping / initialization function execution? I think an exception should
be raised in the process owning the Pool, and in the fix I'm tinkering around
with I just ra
Aaron added the comment:
I came across this bug report and was unable to reproduce the described
behavior. I wrote a few test cases demonstrating that the behavior is indeed
correct. It passes both against 2.5.2 (the version described in the report)
and the lastest 2.7.
The relevant code
New submission from Aaron:
I think I may have found a problem with the code that constructs Infinity from
tuples in the C _decimal module.
# pure python (3.x or 2.x)
>>> decimal.Decimal( (0, (0, ), 'F'))
Decimal('Infinity')
# _decimal
>>> decimal.Dec
Aaron added the comment:
I did not encounter this in a regular application. I do use the decimal
module, and was excited to see the adoption of a faster C version, so I was
just reading through the code to see how it worked. I can't think of a
situation where I would need to constr
Aaron added the comment:
The license from
http://sox.sourcearchive.com/documentation/12.17.7/g711_8c-source.html
/*
* This source code is a product of Sun Microsystems, Inc. and is provided
* for unrestricted use. Users may copy or modify this source code without
* charge.
*
* SUN SOURCE
Aaron added the comment:
I think it's worth pointing out that both Firefox and Chrome support the
non-standard JSON that Python supports (serializing and deserializing basic
types). I'm guessing that communicating with web browsers is the vast majority
of JSON IPC. That
New submission from Aaron:
When using os.path.isfile() and os.path.exists() in a while loop under certain
conditions, os.path.isfile() returns True for paths that do not actually exist.
Conditions:
The folder "C:\Users\EAARHOS\Desktop\Python Review" exists, as do the files
"C
Changes by Aaron :
--
title: os.path.isfile & os.path.exists but in while loop -> os.path.isfile &
os.path.exists bug in while loop
___
Python tracker
<http://bugs.python.
Aaron added the comment:
Interesting. It continues to reuse the last one's stats once the path is no
longer valid.
>>> bak_path = r"C:\Users\EAARHOS\Desktop\Python Review\baseExcel.py"
>>> print(os.stat(bak_path))
nt.stat_result(st_mode=33206, st_ino=81627
Aaron added the comment:
If I use a separate temp variable, the bug doesn't show, but if I use the
same variable, even with + instead of +=, it still happens.
>>> bak_path = r"C:\Users\EAARHOS\Desktop\Python Review\baseExcel.py"
>>> print(os.stat(bak_path))
nt.
Aaron added the comment:
Python 3.3.0, Windows 7, both 64 bit.
Has it been resolved with the newer version, then?
On Mon, Nov 3, 2014 at 11:15 PM, Zachary Ware
wrote:
>
> Zachary Ware added the comment:
>
> Aaron, what version of Python are you using on what version of Windows?
&
New submission from Aaron Gokaslan :
Hello, I am a maintainer with the PyBind11 project. We have been following the
3.11 development branch and have noticed an issue we are encountering with
changes to the C-API.
Particularly, we have an edge case in our overloading dispatch mechanism that
Aaron Gokaslan added the comment:
We didn't want to read colocalsplus directly because we were worried about the
stability of that approach and the code complexity / readability. Also, I
wasn't aware that colocalsplus would work or if that was lazily populated as
well.
The func
Aaron Gokaslan added the comment:
`PyCodeObject_GetVariableName()` and `PyCodeObject_GetVariableKind()` work?
- Some public-gettters such as these functions would be ideal.
OOI, how do you cope with non-local self?
- We only care about checking self to prevent an infinite recursion in our
Aaron Gokaslan added the comment:
I saw the latest Python 3.11 5A release notes on the frame API changes. Do the
notes mean the only officially supported way of accessing co_varnames is now
through the Python interface and the inspect module? By using
PyObject_GetAttrString?
Also, the
Aaron Gokaslan added the comment:
The frame object I am referring to was:
PyFrameObject *frame = PyThreadState_GetFrame(PyThreadState_Get());
This frame can not be used with PyObject_GetAttrString. Is there anyway to get
the PyObject* associated with a PyFrameObject*? It seems weird that
New submission from Aaron Bingham:
Under Gnome, Firefox will open the wrong URL when launched by
webbrowser. For example after running the following interactive session:
[EMAIL PROTECTED]:~> python
Python 2.5.1 (r251:54863, Jun 6 2007, 13:42:30)
[GCC 4.1.2 20061115 (prerelease) (SUSE Li
Aaron Swartz added the comment:
Just a note for those who think this is a purely theoretical issue:
We've been using the python-markdown module on our web app for a while,
only to notice the app has been repeatedly going down. After tracking
down the culprit, we found that a speech from H
New submission from Aaron Staley :
The multiprocess/pool.py distributed with the Python 2.7.2 Windows Installer is
different from the one distributed with the 64 bit windows installer or source
tarball - and is buggy.
Specifically, see Pool._terminate_pool:
def _terminate_pool(cls
Aaron Staley added the comment:
Never mind; looks like this functionality was moved to handle_workers. I had
inadvertently been testing under a modified pool.py.
Sorry for the inconvenience!
--
resolution: -> invalid
status: open ->
Aaron Robson added the comment:
When i run into I have to bodge around it in ways like the below code.
I've only ever used round half up, has anyone here even used Bankers Rounding
by choice before?
For reference here are the other options:
http://en.wikipedia.org/wiki/Rounding#Tie-bre
Changes by Aaron Meurer :
--
nosy: +Aaron.Meurer
___
Python tracker
<http://bugs.python.org/issue13332>
___
___
Python-bugs-list mailing list
Unsubscribe:
Aaron Maenpaa added the comment:
This patch fixes the rzinfo typo as well as the GMT2 issue (GMT +2 should
behave exactly the same as GMT +1 with regards to DST, it's base offset should
simply be +2 hours instead of +1).
This does not; however, address the comment about the first line o
Aaron Maenpaa added the comment:
Looks like the issue of the first line of utcoffsect was also raised in issue
8810.
--
___
Python tracker
<http://bugs.python.org/issue13
Aaron Maenpaa added the comment:
Here is a patch that adds an explination for the difference in the behaviour to
the FAQ section of the Decimal documentation.
--
keywords: +patch
nosy: +zacherates
Added file: http://bugs.python.org/file24162/issue12005.diff
New submission from Aaron Maenpaa :
In the sentance: "In contrast, numbers like 1.1 and 2.2 do not have an exact
representations in binary floating point." there is a mismatch in number
between "an" and "representations". I suggest removing "an" to m
New submission from Aaron Maenpaa :
The paragraph: "The exactness carries over into arithmetic. In decimal floating
point, 0.1 + 0.1 + 0.1 - 0.3 is exactly equal to zero. In binary floating
point, the result is 5.5511151231257827e-017. While near to zero, the
differences prevent rel
Aaron Maenpaa added the comment:
Here's a patch that makes the WWW-Authenticate headers in howto/urllib2 agree
with rfc2617.
--
keywords: +patch
nosy: +zacherates
Added file: http://bugs.python.org/file24166/issue13587.diff
___
Python tr
Aaron Maenpaa added the comment:
That's fine. I'm not particularly attached to that phrasing.
The one thing I would push for is to add a comma to "... decimal is preferred
in accounting applications which have strict equality invariants."
... since, as far as I can tell
Aaron Maenpaa added the comment:
Here is a patch that adds an note about using Locks, RLocks, Conditions, and
Semaphores as context managers to each of their descriptions as well as a link
to the "Using locks, conditions, and semaphores in the with statement" section.
-
Aaron Maenpaa added the comment:
I can understand what was meant. You're welcome to close the issue.
Sorry for the nitpick.
--
___
Python tracker
<http://bugs.python.org/is
New submission from Aaron Stevens :
When using Tkinter in Python 2.6.6, it is impossible to use the new-style
properties, as the base classes (Misc, Pack, Place, and Grid) do not use the
new style classes.
It is easily fixed by changing the class declarations, i.e.:
class Misc:
becomes
Aaron Stevens added the comment:
I forgot add that this is a problem only when inheriting from a Tkinter widget,
such as a Frame.
--
___
Python tracker
<http://bugs.python.org/issue12
Changes by Aaron Meurer :
--
nosy: +Aaron.Meurer
___
Python tracker
<http://bugs.python.org/issue12611>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Aaron Meurer :
--
nosy: +Aaron.Meurer
___
Python tracker
<http://bugs.python.org/issue12613>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Aaron Meurer :
--
nosy: +Aaron.Meurer
___
Python tracker
<http://bugs.python.org/issue12616>
___
___
Python-bugs-list mailing list
Unsubscribe:
Aaron Meurer added the comment:
Vladimir will need to confirm how to reproduce this exactly, but here is
corresponding SymPy issue: http://code.google.com/p/sympy/issues/detail?id=2605.
The problem is with the sympy/ntheory/factor_.py file at
https://github.com/sympy/sympy/blob/sympy-0.7.1
New submission from Aaron Robson :
One of the main barriers to getting a working development environment for me
was having to discover that I needed, learn about and find out how to set up
the Path variable in Windows.
I propose an option in the installer (perhaps even set to be on by default
Changes by Aaron Robson :
--
nosy: +AaronR
___
Python tracker
<http://bugs.python.org/issue3561>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Aaron Robson :
--
nosy: +AaronR
___
Python tracker
<http://bugs.python.org/issue12006>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Aaron Meurer :
As suggested in this thread in the Python porting list
(http://mail.python.org/pipermail/python-porting/2011-September/000231.html),
it would be nice if 2to3 had a fixer that translated shebang lines from
#! /usr/bin/env python
to
#! /usr/bin/env python3
Aaron Sterling added the comment:
FWIW, I also get this behavior on 2.6.5 and there are claims that it occurs on
2.6.4 and 3.1.1. see
http://stackoverflow.com/questions/3745221/import-calls-init-py-twice/3745273#3745273
--
nosy: +Aaron.Sterling
versions: +Python 2.6 -Python 2.7
Changes by Aaron Sterling :
--
versions: +Python 2.7, Python 3.1
___
Python tracker
<http://bugs.python.org/issue2090>
___
___
Python-bugs-list mailing list
Unsub
New submission from Aaron Sherman :
I wrote some code a while back which used os.popen. I recently got a warning
about popen being deprecated so I tried a test with the new subprocess module.
In that test, subprocess.Popen appears to have a 40% process creation overhead
penalty over os.popen
Aaron Sherman added the comment:
"Python 3.2 has a _posixsubprocess: some parts of subprocess are implemented in
C. Can you try it?"
I don't have a Python 3 installation handy, but I can see what I can do
tomorrow evening to get one set up and try it out.
"disagre
Aaron Sherman added the comment:
"That's why I asked for absolute numbers for the overhead difference."
Did you not follow the link in my first post? I got pretty detailed, there.
"os.popen just calls the popen(3) library call, which just performs a
fork/execve and some
Aaron Sherman added the comment:
I think it's still safe to say that high performance applications which need to
create many hundreds or thousands of children (e.g. large monitoring systems)
will still need another solution that isn't subprocess. That being said, you're
right
New submission from Aaron Masover :
I'm working with Anki (http://ankisrs.net/) on a linux NTFS-3G partition. Anki
requires access to modification times in order to handle its backup files. This
works fine on my ext3 partition, but on an NTFS partition accessed with NTFS-3G
an err
Aaron Masover added the comment:
The Anki author suggested that it was a python bug. However, that example
command works on a drive set with different permissions, so this looks more
like an NTFS-3G bug.
--
status: open -> closed
___
Pyt
Aaron Kaplan added the comment:
Let me clarify. Offlineimap used to ship a modified version of imaplib in its
distribution, but eventually the author decided he no longer wanted to maintain
his imaplib fork, so he dropped it and went with stock imaplib (at a
significant performance penalty
New submission from Aaron Gallagher <[EMAIL PROTECTED]>:
With the advent of collections.namedtuple, I thought that having a
counterpart in the struct module would make having to deal with unpacked
data much easier. Per suggestion, this extends the behavior of
_struct.Struct rather
Aaron Gallagher <[EMAIL PROTECTED]> added the comment:
Okay, here's a new version of my patch. Instead of replacing the default
functionality of struct.Struct, this patch now adds the functionality to a
separate class called NamedStruct, so as to not break backwards
compatibility.
New submission from Aaron Gallagher <[EMAIL PROTECTED]>:
Currently, pickle.py in the stdlib is limited by the python call stack.
For deeply recursive data structures, the default recursion limit of 1000
is not enough. The patch attached modifies pickle.py to instead use a
deque objec
Aaron Gallagher <[EMAIL PROTECTED]> added the comment:
I've provided an alternate implementation of this that works with very
minimal modification to pickle.py. See issue 3119 for the patch.
--
nosy: +habnabit
___
Python tracker <[E
Aaron Gallagher <[EMAIL PROTECTED]> added the comment:
Ah, I didn't know that a list would be as fast for appending and popping.
I knew that lists were optimized for .append() and .pop(), but I didn't
know that a list would be just as fast as a deque if it was just used as a
Aaron Gallagher <[EMAIL PROTECTED]> added the comment:
Alright, sorry this took so long. Hopefully this can still be included in
3.0.
Included is a patch that no longer uses collections.deque and also adds a
test case to test/test_pickle.py. The test catches RuntimeError and fail
New submission from Aaron Brady <[EMAIL PROTECTED]>:
Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit
(Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import inspect
>>>
New submission from Aaron Meurer :
This works in Python 2.5 but not in Python 2.6.
If you do [0]*5, it gives you [0, 0, 0, 0, 0]. I tried getting this to work
with SymPy's Integer class, so that [0]*Integer(5) would return the same, but
unfortunately, the sequence multiplication doesn
Aaron Thomas added the comment:
I can verify this will all versions of Windows 7, and the versions of python 32
and 64 bit. I install this at my work to many machines, and every one of them
crashes when trying to 'compile py scripts to bytecode' during install. I have
to left
New submission from Aaron Sherman :
I tested this under 2.6 and 3.1. Under both, the common mistake that I'm sure
many others have made, and which cost me quite some time today was:
re.sub(r'(foo)bar', '\1baz', 'foobar')
It's obvious, I'm sure,
Aaron Sherman added the comment:
Matthew, thank you for replying. I still think the primary issue is the
potential for confusion between single digit escapes and backreferences, and
the ease with which they could be addressed, but to cover what you said:
Quote: the normal way to handle &quo
Aaron Watters added the comment:
Facundo
1) the +1024 was an accelerator to jump up to over 1k at the first resize.
I think it's a good idea or at least doesn't hurt.
2) Here is an example program:
def test():
from marshal import dumps
from time import time
testStr
New submission from Aaron Watters:
Much to my surprise I found that one of
my applications seemed to be running slow as a result
of marshal.dumps. I think the culprit is the w_more(...)
function, which grows the marshal buffer in 1k units.
This means that a marshal of size 100k will have 100
Aaron Watters added the comment:
also:
I just modified the code to do iterations using increasingly large data
sizes
and I see the kind of very unpleasant behaviour for the old implementation
(max time varies wildly from min time) that I saw in my more complex
program. The new implementation
New submission from Aaron Watters:
As I understand it comparisons between two objects should
always work. I get this at the interpreter prompt:
Python 2.6a0 (trunk, Jan 11 2008, 11:40:59)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-8)] on linux2
Type "help", "copyright", "
Aaron Watters added the comment:
Okay. I haven't looked but this should be well documented
somewhere because I found it very surprising (it crashed a large
run somewhere in the middle).
In the case of strings versus unicode I think it is possible
to hack around this by catching the except
New submission from Aaron Kaplan:
In some versions of John Goergen's program offlineimap, he includes a
copy of imaplib.py with the attached changes. It results in a speedup
of more than 50% compared to using the stock imaplib.py.
--
files: imaplib-patch
messages: 63237
New submission from Aaron Gallagher <[EMAIL PROTECTED]>:
There is currently no way in the configure script to specify an
alternate name for Python.framework. If I want to completely separate
versions of Python (e.g. for 3.0 alphas and/or Stackless), I have to
manually edit configure.
Aaron Gallagher <[EMAIL PROTECTED]> added the comment:
Here's a framework that implements the necessary change. I'm not very good
at autoconf, so it might need to be touched up.
--
keywords: +patch
Added file: http://bugs.python.org/file9977
Aaron Gallagher <[EMAIL PROTECTED]> added the comment:
Okay, here's the same patch but now with Mac/Makefile.in patched. I
changed all references to Python to the framework name, because I believe
it won't work properly otherwise.
Added file: http://bugs.python.org/file9979/
New submission from Aaron Brady <[EMAIL PROTECTED]>:
Nested 'BigEndianStructure' fails in 2.5 and 2.6.:
TypeError: This type does not support other endian
Example and traceback in attached file.
--
assignee: theller
components: ctypes
files: ng36.py
messages: 76171
Aaron Gallagher <[EMAIL PROTECTED]> added the comment:
I can't reproduce this on python 2.5.1, 2.5.2, or 2.6.0 on Mac OS 10.5.4.
Both .read() and .readline() raise an EBADF IOError. 3.0.0 fails in the
same way.
--
nosy: +habnabit
___
Pyt
New submission from Aaron Brady :
os.pipe should return inheritable descriptors on Windows.
Patch below, test attached. New pipe() returns descriptors, which
cannot be inherited. However, their permissions are set correctly, so
msvcrt.get_osfhandle and msvcrt.open_osfhandle can be used to
Aaron Brady added the comment:
This is currently accomplished in 'multiprocessing.forking' with a
'duplicate' function.
Use (line #213):
rfd, wfd = os.pipe()
# get handle for read end of the pipe and make it inheritable
rhandle = duplicate(msvc
Aaron Gallagher <_...@habnab.it> added the comment:
sigh.. adding myself to nosy here too in the hope that this gets any traction
--
nosy: +habnabit
___
Python tracker
<https://bugs.python.org/i
New submission from Aaron Ecay :
I have discovered that InitVar's are passed in a surprising way to the
__post_init__ method of python dataclasses. The following program illustrates
the problem:
=
from dataclasses import InitVar, dataclass
@dataclass
class Foo:
bar: InitVa
Change by Aaron Gallagher :
--
nosy: +Aaron Gallagher
nosy_count: 20.0 -> 21.0
pull_requests: +24811
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/26194
___
Python tracker
<https://bugs.p
Aaron Gallagher <_...@habnab.it> added the comment:
@daniel.urban I'm attempting to move this patch along, but since the
contributing process has changed in the years since your patch, you'll need to
sign the CLA. Are you interested in picking this back up at all? I haven
Aaron Gallagher <_...@habnab.it> added the comment:
@daniel.urban would you kindly resubmit your patch as a PR to the cpython repo?
I've learned out-of-band from someone else that putting patches on bpo is
considered obsolete. you can use the PR I've submitted
(https://g
Aaron Gallagher <_...@habnab.it> added the comment:
This is definitely not windows-specific. On macos:
$ python3.9
Python 3.9.4 (default, Apr 5 2021, 01:47:16)
[Clang 11.0.0 (clang-1100.0.33.17)] on darwin
Type "help", "copyright", "credits" or "lic
New submission from Aaron Meurer :
$ ./python.exe -m compileall doesntexist
Listing 'doesntexist'...
Can't list 'doesntexist'
$ echo $?
0
It's standard for a command line tool that processes files to exit nonzero when
given a directory that doesn't exist
Aaron Meurer added the comment:
A quick glance at the source shows that it still imports __main__ at the
top-level. I have no idea how legitimate it is that the App Engine (used to?)
makes it so that __main__ can't be imported.
--
nosy: +asm
Aaron Meurer added the comment:
When talking about making exit only work when typed at the interpreter,
something to consider is the confusion that it can cause when there is a
mismatch between the interactive interpreter and noninteractive execution,
especially for novice users. I've
Aaron Smith added the comment:
I encountered the similar behavior unexpectedly when dealing with LEGB scope of
names. Take the following example run under Python 3.9.2:
def doSomething():
x = 10
del x
print(x)
x = 5
doSomething()
This produces a UnboundLocalError at print(x
New submission from Aaron Koch :
Documentation: https://docs.python.org/3/library/enum.html#creating-an-enum
Current behavior:
SomeEnum[name] is used to construct an enum by name
SomeEnum(value) is used to construct an enum by value
Problem:
As a user of enums, it is difficult to remember
Aaron Koch added the comment:
Are there any other names that you would contemplate besides `from_name` and
`from_value`? My reading of your response indicates that you are fundamentally
opposed to the addition of class methods, since they would limit the space of
possible instance methods
Change by Aaron Meurer :
--
nosy: +asmeurer
___
Python tracker
<https://bugs.python.org/issue42109>
___
___
Python-bugs-list mailing list
Unsubscribe:
Aaron Gallagher <_...@habnab.it> added the comment:
I will note, Raymond, that I’ve wanted this for years before discovering
this bpo issue, and I found it because you linked it on Twitter. ;)
On Wed, Dec 8, 2021 at 19:08 Raymond Hettinger
wrote:
>
> Raymond Hettinger added
Aaron Hall added the comment:
Another obvious way to do it, but I'm +1 on it.
A small side point however - PEP 584 reads:
> To create a new dict containing the merged items of two (or more) dicts, one
> can currently write:
> {**d1, **d2}
> but this is neither o
New submission from Aaron Meurer :
This is tested in CPython master. The issue also occurs in older versions of
Python.
>>> ast.dump(ast.parse('f"{x}"'))
"Module(body=[Expr(value=JoinedStr(values=[FormattedValue(value=Name(id='x',
Aaron Meurer added the comment:
Related issue https://bugs.python.org/issue32019
--
nosy: +asmeurer
___
Python tracker
<https://bugs.python.org/issue39
Aaron Meurer added the comment:
Is find_executable() going to be extracted from distutils to somewhere else?
It's one of those functions that is useful outside of packaging, and indeed,
I've seen it imported in quite a few codes that aren't related to packaging. If
so, the pa
Aaron Meurer added the comment:
Instead of enabling it by default, why not just keep it but emulate the old
behavior by splitting and buffering the input lines? That way you still get
some of the benefits of bracketed paste, i.e., faster pasting, but without the
hard work of fixing the REPL
Aaron Meurer added the comment:
To reiterate some points I made in the closed issues
https://bugs.python.org/issue42819 and https://bugs.python.org/issue32019.
A simple "fix" would be to emulate the non-bracketed paste buffering. That is,
accept the input using bracketed paste, bu
1 - 100 of 323 matches
Mail list logo