New submission from Alex Henrie :
pysqlite_cursor_fetchall currently has the following bit of code:
/* just make sure we enter the loop */
row = (PyObject*)Py_None;
while (row) {
row = pysqlite_cursor_iternext(self);
if (row) {
PyList_Append(list, row
Change by Alex Henrie :
--
keywords: +patch
pull_requests: +17645
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/18270
___
Python tracker
<https://bugs.python.org/issu
New submission from Alex Henrie :
The function pysqlite_cursor_executescript defines a variable called
script_str, initializes it to NULL, and calls Py_XDECREF on it. However, this
variable has been unused since August 2007:
https://github.com/python/cpython/commit
Change by Alex Henrie :
--
keywords: +patch
pull_requests: +17646
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/18271
___
Python tracker
<https://bugs.python.org/issu
Alex Henrie added the comment:
You're right, that's even better. I forgot that the equals operator also
returns the variable's new value. I just updated my pull request :-)
--
___
Python tracker
<https://bugs.pyt
Alex Henrie added the comment:
Sorry about that, I didn't notice that GCC's -Wall option emits a warning about
this. I just added the extra sets of parentheses.
--
___
Python tracker
<https://bugs.python.o
New submission from Alex Henrie :
pysqlite_cursor_executescript currently has the following while loop:
/* execute statement, and ignore results of SELECT statements */
rc = SQLITE_ROW;
while (rc == SQLITE_ROW) {
rc = pysqlite_step(statement, self->connection);
Change by Alex Henrie :
--
keywords: +patch
pull_requests: +17682
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/18305
___
Python tracker
<https://bugs.python.org/issu
Alex Hall added the comment:
I think this would be very useful in tracebacks. If a traceback line had a more
useful name like `MyClass.__init__` instead of just `__init__` or
`my_decorator..wrapper` instead of just `wrapper` it would provide
useful context to the frame.
--
nosy
New submission from Alex Hall :
Attached is a script which:
- Gets all the source code it can find from sys.modules
- Looks at every node in the parsed source
- Gets source text for that node using ast.get_source_segment
- Parses the source text again
- Compares the original node with the
New submission from Alex Hall :
Based on the discussion in
https://mail.python.org/archives/list/python-id...@python.org/thread/C6QEAEEAELUHMLB23OBRSQK2UYU3AF5O/
When unpacking fails with an error such as:
ValueError: too many values to unpack (expected 2)
the name of the type of the
Alex Grönholm added the comment:
Well, I found this:
https://github.com/python/cpython/blob/3c97e1e457033bbb8bbe0b7198bd13fc794a12b0/configure.ac#L3278-L3279
Could it be that the official binaries were compiled without --enable-ipv6?
--
___
Python
Change by Alex Budovski :
--
nosy: -Alex Budovski
___
Python tracker
<https://bugs.python.org/issue1635741>
___
___
Python-bugs-list mailing list
Unsubscribe:
Alex Gaynor added the comment:
Here's my suggestion:
End of line reached without finding the end of string literal. Are you missing
a closing quote?
--
nosy: +alex
___
Python tracker
<https://bugs.python.org/is
Alex Grönholm added the comment:
Seconded.
--
nosy: +alex.gronholm
___
Python tracker
<https://bugs.python.org/issue40213>
___
___
Python-bugs-list mailin
Alex Grönholm added the comment:
Which PR is it?
--
___
Python tracker
<https://bugs.python.org/issue39148>
___
___
Python-bugs-list mailing list
Unsubscribe:
Alex Grönholm added the comment:
Oh, it's https://github.com/python/cpython/pull/19121. I think it would be
prudent to add a test as well to make sure this doesn't happen again.
--
___
Python tracker
<https://bugs.python.o
Alex Grönholm added the comment:
Thanks, looks good to me now!
--
___
Python tracker
<https://bugs.python.org/issue39148>
___
___
Python-bugs-list mailin
Alex Grönholm added the comment:
Has this effort gone forwards lately, or has there been any discussion
elsewhere? I implemented support for "Z" in .fromisoformat() before finding
this issue. Even after reading the discussion I still don't quite understand
why it'
Alex Grönholm added the comment:
The PR is still awaiting for a core developer to be reviewed. It's too bad we
missed the 3.8.3 window, but perhaps this can get included in 3.9.0 at least.
--
___
Python tracker
<https://bugs.python.org/is
Change by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<https://bugs.python.org/issue42486>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Alex Shpilkin :
--
nosy: +Alex Shpilkin
___
Python tracker
<https://bugs.python.org/issue17083>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Alex Sherman :
IN WINDOWS asyncio's loop.run_in_executor(pool, callback, logger, *args) strips
the subclass information about logging.Loggers when passed into
concurrent.futures.ProcessPoolExecutor. The logger behaves as a default
logging.Logger object as far as
Alex Writer added the comment:
Testing with a minimal tkinter app (see code below) gives similar behavior, so
this appears to be an issue with tkinter https://goo.gl/2DqXGj and/or tcl/tk.
import tkinter
text = tkinter.Text()
--
nosy: +alexwriter2003
New submission from Alex Orange :
Didn't feel like necroing #33081, but this is basically that problem. The
trouble is the cleanup that appeared to fix #33081 only kicks in once something
has been put in the queue. So if for instance a Process function puts something
in the queue an
Change by Alex Garel :
--
nosy: +alex-garel
___
Python tracker
<https://bugs.python.org/issue40512>
___
___
Python-bugs-list mailing list
Unsubscribe:
Alex Orange added the comment:
Well, having not heard anything I decided to just make a patch and throw it up.
Here it is. This includes a test that will fail with the old version and passes
once patched as well as the patch to the queue code itself.
Worth noting, the CleanExchange class is
New submission from Alex Osterman :
While compiling 3.9.1 on CentOS 8, test_httpservers.py throws multiple errors
in the vein of "OSError: [Errno 39] Directory not empty: '/tmp/tmp70ip355o'"
from line 707, in teardown. Examining the directories I see that they all
con
Change by Alex Shpilkin :
--
nosy: +Alex Shpilkin
___
Python tracker
<https://bugs.python.org/issue42580>
___
___
Python-bugs-list mailing list
Unsubscribe:
Alex Willmer added the comment:
I would like to take a stab at this. Giampaolo, would it be okay if I made a
pull request updated from your patch? With the appropriate "Co-authored-by:
Author Name " line.
--
nosy: +Alex.Willmer
___
Pyth
Alex Willmer added the comment:
To check my understanding
Is the motivation for the closer to
1. using sendfile() will break $X, and we know X
2. there's high probability sendfile() will break something
3. there's unknown probability sendfile() will break something
4. there's
Alex Willmer added the comment:
A data point found while I researched this
MyPy typeshed [1] currently declares
_DataType = Union[bytes, IO[Any], Iterable[bytes], str]
class HTTPConnection:
def send(self, data: _DataType) -> None: ...
[1]
https://github.com/python/typeshed/b
Alex Willmer added the comment:
First stab at characterising http.client.HTTPConnnection.send().
https://github.com/moreati/bpo-23740
This uses a webserver that returns request details, in the body of the
response. Raw (TCP level) content is included. It shares a similar purpose to
HTTP
New submission from Alex Willmer :
I believe the documentation for time.monotonic() and time.perf_counter() could
be misleading. Taken literally they could imply that given
delta = 0.1
a = time.monotonic()
b = time.monotonic()
c = time.monotonic()
the comparisons `b - a < delta`, and `c
Alex Willmer added the comment:
Discussion from #python IRC
[21:51] Given `a=time.monotonic(); b=time.monotonic();
c=time.monotonic()` is `c-a < delta` a valid comparison? Until this evening I
thought so, but I've just read
https://docs.python.org/3/library/time.html#time.monot
Change by Alex Willmer :
--
keywords: +patch
pull_requests: +23528
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24757
___
Python tracker
<https://bugs.python.org/issu
Alex Willmer added the comment:
http_dump.py now covers CPython 3.6-3.10 (via Tox), and HTTPSConnection
https://github.com/moreati/bpo-23740
--
___
Python tracker
<https://bugs.python.org/issue23
Alex Henrie added the comment:
Hi Victor, just so we're all on the same page, removing the line does not
trigger a compiler warning. The comment on this line is misleading.
--
___
Python tracker
<https://bugs.python.org/is
Alex Grönholm added the comment:
They are both still useful, particularly with third party libraries. Just
yesterday I found myself looking for aclosing() in contextlib, only to remember
this issue.
--
___
Python tracker
<https://bugs.python.
Alex Grönholm added the comment:
I think the most important use case for these is closing async generators
deterministically, since they don't support the async context manager protocol.
--
___
Python tracker
<https://bugs.python.org/is
New submission from alex c :
heapq.py imports doctest in the last 4 lines to perform unit tests:
if __name__ == "__main__":
import doctest # pragma: no cover
print(doctest.testmod()) # pragma: no cover
This disrupts dependency tracking modules and soft
New submission from Alex Grönholm :
Unlike with all the other sock_* functions, sock_accept() only removes the
reader on the server socket when the socket becomes available for reading (ie.
when there's an incoming connection). If the operation is cancelled instead,
the reader is not re
Alex Grönholm added the comment:
This bug is the same as https://bugs.python.org/issue30064 except for
sock_accept().
--
___
Python tracker
<https://bugs.python.org/issue41
New submission from Alex Grönholm :
The connect_accepted_socket() method seems to be missing from the
AbstractEventLoop ABC. I assume this was a simple mistake of omission. I will
ready a PR to add it.
--
components: asyncio
messages: 373904
nosy: alex.gronholm, asvetlov, yselivanov
Change by Alex Grönholm :
--
keywords: +patch
pull_requests: +20671
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21533
___
Python tracker
<https://bugs.python.org/issu
Change by Alex Grönholm :
--
nosy: +alex.gronholm
___
Python tracker
<https://bugs.python.org/issue31821>
___
___
Python-bugs-list mailing list
Unsubscribe:
Alex Grönholm added the comment:
Sure, it should be a rather straightforward fix. I have to check if the tests
for the related methods test for proper cancellation semantics. It should be
even faster if they do.
--
___
Python tracker
<ht
Alex Grönholm added the comment:
Looks like they do – fantastic!
--
___
Python tracker
<https://bugs.python.org/issue41317>
___
___
Python-bugs-list mailin
Change by Alex Grönholm :
--
keywords: +patch
pull_requests: +20734
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21595
___
Python tracker
<https://bugs.python.org/issu
Alex Grönholm added the comment:
I just got hit by this bug too. Attached is the repro script I came up with
before finding this report.
--
nosy: +alex.gronholm
Added file: https://bugs.python.org/file49346/udptest.py
___
Python tracker
<ht
Alex Grönholm added the comment:
My repro script also demonstrates that when binding to an interface, the bug is
not triggered.
--
___
Python tracker
<https://bugs.python.org/issue40
New submission from Alex Hall :
See attached file. The summary is that I start a Process, which starts a
Thread, which puts some values on a Queue which was originally created by the
parent process and passed down. Usually this works but occasionally the parent
process doesn't see the
New submission from Alex Mohr :
Instead they should request and take into consideration the buffer object's
data format. For example, surely we don't want to treat floating point binary
representations as string characters:
>>> from array import array
>>> a
New submission from Alex Gaynor :
This function is incredibly useful for efficient interoperability between
Python and other languages with UTF-8 based strings (e.g. Rust). Right now it's
not possible to do interop without several copies/allocations if you're trying
to build an
Change by Alex Gaynor :
--
assignee: -> alex
___
Python tracker
<https://bugs.python.org/issue41784>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Alex Gaynor :
--
keywords: +patch
pull_requests: +21307
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/22252
___
Python tracker
<https://bugs.python.org/issu
Alex Gaynor added the comment:
I think less is more, one API is plenty :-)
It looks to me like the API is already supported on PyPy, so I think it's fine
from that perspective:
https://foss.heptapod.net/pypy/pypy/-/blob/branch/py3.7/pypy/module/cpyext/unicodeobject.py
Alex Gaynor added the comment:
Py_buffer is not part of the limited API at all, so I don't think it's usable
for this.
--
___
Python tracker
<https://bugs.python.o
Alex Gaynor added the comment:
It's a big project I think :-) Py_Buffer is allocated on the stack, so either
we'd have to agree to never change it's ABI (size, alignment, etc.) or we'd
need to completely change the interface.
--
__
New submission from Alex Gaynor :
Currently PyObject_GenericSetDict is part of the stable API, but
PyObject_GenericGetDict is not. I noticed this while working on
https://github.com/PyO3/pyo3/pull/1207
Because of the symmetry here, it seems appropriate to promote Get.
--
components
New submission from Alex Grönholm :
>>> DummyDict = TypedDict('DummyDict', {'x': int, 'y': str}, total=False)
>>> DummyDict.__required_keys__
frozenset({'x', 'y'})
This happens because the TypedDict function does not pass
Change by Alex Grönholm :
--
keywords: +patch
pull_requests: +21699
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/22736
___
Python tracker
<https://bugs.python.org/issu
New submission from Alex Roussel :
Hello,
I've come across an issue that seems similar to the false positives problem
outlined in this ticket (https://bugs.python.org/issue28494), however this
issue relates to a single gzipped json file which is incorrectly identified as
a .zip ar
Alex Roussel added the comment:
Hi Irit,
Thank you for the response, I'm afraid I'm not allowed to upload the file
myself, however the file in question is
'2020-10-18-1602979256-http_get_7549.json.gz', which is available at this link
https://opendata.rapid7.com/so
Alex Roussel added the comment:
The impression I got from reading https://bugs.python.org/issue28494 was that
this was fixed in python 3.7 ? Or perhaps as you say it's just a matter of
stumbling across the rare files that generate false posi
Alex Roussel added the comment:
OK understood. Thanks for the explanation, I wasn't aware of those and will
take a look.
--
___
Python tracker
<https://bugs.python.org/is
Alex Gaynor added the comment:
This looks like a bug to me. While
https://github.com/python/cpython/commit/2ff58a24e8a1c7e290d025d69ebaea0bbead3b8c
added it to the header, it did not add it to
https://github.com/python/cpython/blob/master/PC/python3dll.c which is required
Change by Alex Gaynor :
--
components: +C API
___
Python tracker
<https://bugs.python.org/issue42415>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Alex Gaynor :
--
versions: +Python 3.10
___
Python tracker
<https://bugs.python.org/issue42415>
___
___
Python-bugs-list mailing list
Unsubscribe:
Alex Regueiro added the comment:
That's very good news. I suspected MS has written a wrapper over this somewhere
to accommodate for this bug, and it was just a matter of using the right API.
I look forward to seeing this in the next 2.7 re
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue13819>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Alex Gaynor added the comment:
Django's tests will *not* be run with HASHEED=0, if they're broken with hash
randomization then they are likely broken on random.choice(["32-bit", "64-bit",
"pypy", "jython", "ironpython"]) and we s
Alex Gaynor added the comment:
On Sat, Jan 21, 2012 at 5:42 PM, Gregory P. Smith wrote:
>
> Gregory P. Smith added the comment:
>
> On Sat, Jan 21, 2012 at 2:45 PM, Antoine Pitrou
> wrote:
> >
> > Antoine Pitrou added the comment:
> >
> >> You sai
New submission from Alex Gaynor :
ATM there's no tests (at least in 2.x, I haven't checked 3.x yet) for this
behavior:
>>> os.path.exists("/tmp\x00abcds")
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.2/genericp
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue13848>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Alex Gaynor added the comment:
On Wed, Jan 25, 2012 at 7:45 AM, Dave Malcolm wrote:
>
> Dave Malcolm added the comment:
>
> I've found a bug in my patch; insertdict writes the old non-randomized
> hash value into me_hash at:
>ep->me_hash = hash;
> rather t
Alex Gaynor added the comment:
On Thu, Jan 26, 2012 at 4:00 PM, Martin v. Löwis wrote:
>
> Martin v. Löwis added the comment:
>
> I'd like to propose an entirely different approach: use AVL trees for
> colliding strings, for dictionaries containing only unicode or
Alex Gaynor added the comment:
On Thu, Jan 26, 2012 at 5:42 PM, Martin v. Löwis wrote:
>
> Martin v. Löwis added the comment:
>
> > What happens if, instead of putting strings in a dictionary directly, I
> > have them wrapped in something. For example, the classes Ant
Alex Gaynor added the comment:
I'm sorry then, but I'm a little confused. I think we pretty clearly
established earlier that requiring users to make changes anywhere they
stored user data would be dangerous, because these locations are often in
libraries or other places where the cod
Alex Gaynor added the comment:
So, to my reading of teh compatibility PEP this cannot be added wholesale,
unless there is a pure Python version as well. However, if it replaced re
(read: patched) it would be valid.
On Sun, Jan 29, 2012 at 1:26 AM, Nick Coghlan wrote:
>
> Nick Coghlan
Alex Gaynor added the comment:
On Mon, Feb 6, 2012 at 4:41 PM, Marc-Andre Lemburg
wrote:
>
> Marc-Andre Lemburg added the comment:
>
> Gregory P. Smith wrote:
> >
> > Gregory P. Smith added the comment:
> >
> >>
> >>> The release man
Alex Gaynor added the comment:
On Mon, Feb 6, 2012 at 5:04 PM, Marc-Andre Lemburg
wrote:
>
> Marc-Andre Lemburg added the comment:
>
> Alex Gaynor wrote:
> > Can't randomization just be applied to integers as well?
>
> A simple seed xor'ed with the hash
New submission from Alex Gaynor :
http://paste.pocoo.org/show/550884/ will reliably segfault Python3 on all
platforms (similar versions for Python2 using itertools work)
--
components: Interpreter Core
messages: 153344
nosy: alex, benjamin.peterson
priority: normal
severity: normal
New submission from Alex Quinn :
When accessing this URL, both urllib2 (Py2) and urlib.client (Py3) raise an
IncompleteRead error.
http://info.kingcounty.gov/health/ehs/foodsafety/inspections/XmlRest.aspx?Zip_Code=98199
Previous discussions about similar errors suggest that this may be due to
New submission from Alex Gaynor :
This is inconsistant with regular functions, which unfortunately prevents them
from being used interchangeably.
--
messages: 153649
nosy: alex
priority: normal
severity: normal
status: open
title: Cannot set attributes on staticmethod
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue2377>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
New submission from Alex Gaynor :
This adds a new opcode which for certain list comprehensions (ones with no if
statements and only a single comprehension), preallocates the list to the
appropriate size.
Patch is against 2.7, because it was a bit easier. On:
def f():
for i in range
Changes by Alex Gaynor :
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue14212>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
New submission from Alex Grönholm :
Running distutils2 hg tip (changeset 2cec52b682a9):
The command "pysetup install" fails with:
u'Python': u'2.7.2+' is not a valid version (field 'Version')
Not that it should matter, but this is Ubuntu 11.10.
Also,
Alex Grönholm added the comment:
Being new to d2, I wouldn't know that the installation was completed
successfully or if there was something left out.
Regardless, this needs to be fixed.
--
___
Python tracker
<http://bugs.python.org/is
Alex Grönholm added the comment:
It doesn't say "Warning" there, so how was I supposed to determine that it's
not an error which terminated the installation process?
If it is indeed just a warning, just getting rid of it would fix this for me.
However, will this cause tr
Alex Grönholm added the comment:
> I’m not sure why you’re asking that, as d2’s setup.cfg does not use
> requires-python and does produce the warning, so it’s unrelated. (The
> warning comes from d2.database.)
I was concerned that maybe the version comparator would barf on a ver
New submission from Alex Grönholm :
Distutils2 seems to rely solely on a sysconfig.cfg shipped with distutils2 to
get the path where to install packages.
Ignoring site-local configuration means that it won't work on Python
distributions where the site configuration has been customized
New submission from Alex Grönholm :
The installed pysetup script launches (at least on my system) with
/usr/bin/python regardless of the interpreter used for installing it.
--
assignee: eric.araujo
components: Distutils2
messages: 156231
nosy: agronholm, alexis, eric.araujo, tarek
Changes by Alex Grönholm :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue14357>
___
___
Python-bugs-list mailing list
Unsubscri
Alex Grönholm added the comment:
Log attached.
--
Added file: http://bugs.python.org/file24927/d2log.txt
___
Python tracker
<http://bugs.python.org/issue14
Alex Grönholm added the comment:
>The supposed way to work, for OS packagers, is to ship this
>sysconfig.cfg thing.
Even for Pythons older than 3.3?
--
___
Python tracker
<http://bugs.python.org/i
Alex Grönholm added the comment:
>I can’t reproduce. Can you delete your venv, start again and tell me how it
>goes?
I've repeated this several times, and the result is always the same.
--
___
Python tracker
<http://bugs.python.
Alex Grönholm added the comment:
>If I understand correctly that you used “/usr/bin/python pysetup install spam”
>and wanted it to install to /usr/lib/python2.7/site-packages, then I think
>that the correct reply is: Not supported, don’t do that. If you did something
>else, plea
Alex Gaynor added the comment:
FWIW pypy has an __buffer__ method (used exclusively internally, AFAIK), which
has semantics similar to your first proposal.
--
nosy: +alex
___
Python tracker
<http://bugs.python.org/issue13
801 - 900 of 1613 matches
Mail list logo