Will Brown [EMAIL PROTECTED] added the comment:
Same problem in version.py, line 100 (StrictVersion)
--
nosy: +wmbrown
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2234
Will Brown [EMAIL PROTECTED] added the comment:
Yes, same problem. Multiple files.
I should have read the discussion more carefully. My note was redundant.
Will
-- William Brown --
-- Boeing Networked Systems Technology --
Kent:253.657.5586
Will Brown [EMAIL PROTECTED] added the comment:
None of the above will work on both '2.18.50.20080523' '1.2.3a'
-- William Brown --
-- Boeing Networked Systems Technology --
Kent:253.657.5586 Blvu:425.373.2738
Will Brown [EMAIL PROTECTED] added the comment:
Maybe I have a problem with my test code...
import re
def test_re(out_string):
result = re.search('(\d+\.\d+(\.(\d+))?([ab](\d+))?)', out_string)
print '--- msg00622 ---'
print result.group(1)
print
Andrew Brown brow...@gmail.com added the comment:
This bug trigger can be simplified down, see my attached bug_simplified.py
The problem seems to be in deque_count(). What's happening is that after the
rotations, the 16 items reside in the last 16 slots of one block.
In deque_count()'s
Titus Brown added the comment:
Added getprofile + tests, docs, as per reasonable request ;)
Added file: http://bugs.python.org/file8991/gettrace+getprofile.diff
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1648
Titus Brown added the comment:
Please see GHOP patches by [EMAIL PROTECTED],
http://code.google.com/p/google-highly-open-participation-psf/issues/detail?id=215
I've attached the Python 2.6 patch here.
--
nosy: +titus
Added file: http://bugs.python.org/file9104/ghop-215-py2.6-ctb.diff
New submission from Michael Brown:
python 2.5.1
tarfile.py line 1516 in extractall()
sets directories created to world-writeable while extracting which means
an attacker can change/modify files before perms are fixed. Suggest 770
while extracting to fix.
--
components: Library (Lib
Michael Brown added the comment:
I can confirm that this issue has been addressed in trunk tarfile.py.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2004
__
___
Python-bugs
Andrew Brown abr...@freemail.gr added the comment:
I think this bug is just a doc bug. If you check
http://docs.python.org/library/datetime.html?highlight=strptime#strftime-behavior
and
http://docs.python.org/library/time.html?highlight=strptime#time.strptime
You can see that the first
New submission from Titus Brown ti...@idyll.org:
Here's the error:
test_distutils
test test_distutils failed -- Traceback (most recent call last):
File
/private/tmp/tmp8UfLPT/python27/Lib/distutils/tests/test_sdist.py,
line 342, in test_make_distribution_owner_group
self.assertEquals
Titus Brown ti...@idyll.org added the comment:
I can generate the error on my iMac but not my laptop, which are
equivalent versions/upgrades of Mac OS X AFAIK. The /tmp directory
in both has drwxrwxrwt, and the subdirectories within which I'm doing
the builds are drwxr-xr-x, so it doesn't seem
Titus Brown ti...@idyll.org added the comment:
Fix verified, thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7408
___
___
Python-bugs
New submission from Topher Brown:
multiprocessing documentation
(http://docs.python.org/2/library/multiprocessing.html#pipes-and-queues) for
multiprocessing.Queue mentions Queue.get_no_wait() as an alias for
Queue.get_nowait(). This function does not seem to exist.
--
assignee: docs
New submission from Shawn Brown 03sjbr...@gmail.com:
This is related to resolved issue 3976 and, to a lesser extent, issue 10017.
I've run across another instance where pprint throws an exception (but works
fine in 2.7 and earlier):
Python 3.2 (r32:88445, Mar 25 2011, 19:28:28)
[GCC 4.5.2
Shawn Brown 03sjbr...@gmail.com added the comment:
Here's a patch for 3.3 -- as well as two new assertions in test_pprint.py
The added try/catch also fixes the issues mentioned in issue 10017 so I added a
test for that case as well.
--
keywords: +patch
Added file: http
Jed Brown added the comment:
Undefined variables are still a problem:
$ echo 'FROTZ = ${CFLAGS}' make.py3
$ python3
Python 3.3.1 (default, Apr 6 2013, 19:03:55)
[GCC 4.8.0] on linux
Type help, copyright, credits or license for more information.
import distutils.sysconfig
New submission from Will Haldean Brown:
The implementation of nsmallest in heapq contains an optimization for when n is
an order of magnitude less than the size of the data, which uses bisect to find
the n-smallest elements. This optimization is guarded by a check to ensure that
the data
Will Haldean Brown added the comment:
Thanks for the clarification Raymond!
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16098
Justin Brown added the comment:
This behavior conflicts with the other major classes, datetime.date and
datetime.datetime. The ostensible reason for this falsy behavior is that
midnight represents a fundamental zero point. We should expect to see similar
zero points that evaluate to False
Spencer Brown added the comment:
It might be better to just change the if statement to 'if
isinstance(annotation, type) and type(annotation).__repr__ is type.__repr__:'.
That would make it fallback for any metaclass which overrides repr, instead of
special-casing typing. That also ensures
Spencer Brown added the comment:
More precisely, the issue is with inspect.formatannotation(), which
overrides/ignores the repr if the annotation is an instance of type. Perhaps
that should be changed to also check that __repr__ is type's repr.
--
nosy: +Spencer Brown
Spencer Brown added the comment:
Alternatively, SETUP_WITH could additionally check for the other method, and
raise an AttributeError with a custom message mentioning both methods.
--
nosy: +Spencer Brown
___
Python tracker <rep...@bugs.python.
Hugh Brown added the comment:
I came across this problem today when I was using a 1000+ column CSV from a
client. It was taking about 15 minutes to process each file. I found the
problem and made this change:
# wrong_fields = [k for k in rowdict if k not in self.fieldnames
Hugh Brown added the comment:
Fabulous. Looks great. Let's ship!
It is not the *optimal* fix for 3.x platforms. A better fix would calculate the
set of fieldnames only once in __init__ (or only as often as fieldnames is
changed).
But I stress that it is a robust change that works in versions
Hugh Brown added the comment:
Mariatta:
Yes, that is what I was thinking of.
That takes my 12 execution time down to 10 seconds. (Or, at least, a fix I did
of this nature had that effect -- I have not timed your patch but it should be
the same
Amber Brown <hawk...@atleastfornow.net> added the comment:
So you're proposing a coordinated effort across the half dozen, possibly more,
test runners to enable some flags, so CPython doesn't log a single message,
possibly two, that you're using unsupported experimental so
Amber Brown <hawk...@atleastfornow.net> added the comment:
What is the point of an opt-in warning, when the entire point of the proposed
warning is letting people know that they may be using something they are not
fully educated or informed about the ramifications of using? If yo
Amber Brown <hawk...@atleastfornow.net> added the comment:
> * asyncio & pathlib are already non-provisional, so wouldn't be affected.
I was reading this and actually said "wait what I didn't know pathlib was
provisional", and went back to check. The warning for it w
Amber Brown <hawk...@atleastfornow.net> added the comment:
Donald hits it on the head for me.
As long as the code is not covered by the same API deprecation contract that
the rest of the standard library is, it should make it obvious when attempting
to use it. I can be relatively c
Nicholas Brown <nickbr...@gmail.com> added the comment:
This is also a problem when using the DynamicUser=yes feature available in
systemd 232 onward with a service that's implemented in python.
See http://0pointer.net/blog/dynamic-users-with-systemd.html for details of the
Dynam
Amber Brown <hawk...@atleastfornow.net> added the comment:
> What happened to "consenting adults"?
Consent does not mean that by using Python, users fully consent to using
modules that they may not be aware will, to paraphrase Donald, come back to
bite them in the ass
New submission from Amber Brown <hawk...@atleastfornow.net>:
Lack of this parameter means that you may get an exception (if the incoming
data is an invalid encoding) you can not get around.
This causes Twisted to be unable to provide a compatible API on Python 3.7.
--
messages:
Change by Amber Brown <hawk...@atleastfornow.net>:
--
keywords: +patch
pull_requests: +6489
stage: -> patch review
___
Python tracker <rep...@bugs.python.org>
<https://bugs.pyt
New submission from Amber Brown <hawk...@atleastfornow.net>:
Reproducible with:
import warnings
warnings.warn_explicit("msg", DeprecationWarning, "name", 1,
module_globals=None)
--
components: Interpreter Core
messages: 316578
nosy: hawkowl
priority: norm
Amber Brown <hawk...@atleastfornow.net> added the comment:
This change mirrors the default in FieldStorage (which it calls). If it's not
the best option, then it would need to be changed in FieldStorage too.
(personally, I don't like strict because UnicodeDecodeErrors on untrusted user
Tom Brown added the comment:
I found this work-around useful https://stackoverflow.com/a/32782927
--
nosy: +Tom.Brown
___
Python tracker
<https://bugs.python.org/issue12
Ben Brown added the comment:
I have created a minimal example if that helps to show the issue
https://gist.github.com/bobthemac/031213b8e37960ee805f2ae1e6990b60
--
___
Python tracker
<https://bugs.python.org/issue37
Ben Brown added the comment:
The OpenSSL version is OpenSSL 1.1.0j 20 Nov 2018
--
___
Python tracker
<https://bugs.python.org/issue37226>
___
___
Python-bug
Ben Brown added the comment:
That's a shame, which version should it work on I don't mind downgrading for
now to fix the issue as a workaround.
--
___
Python tracker
<https://bugs.python.org/issue37
New submission from Ben Brown :
I have been getting an intermittent errors when using asyncio with SSL. The
error always occurs in the _process_write_backlog method in asyncio's
sslproto.py file. I have looked at lots of possibilities as to what the cause
is and found that for some reason
Ben Brown added the comment:
I am using the version I mentioned above 1.1.0 and TLS 1.2, I am sorry I can't
be of more help.
--
___
Python tracker
<https://bugs.python.org/issue37
Ben Brown added the comment:
I tested an older version of OpenSSL 1.0.2g and I get the same error on that
--
___
Python tracker
<https://bugs.python.org/issue37
Ben Brown added the comment:
Hi is there any update on this issue, were you able to replicate the error with
the minimal example I provided or is there any additional information I can
provide.
--
___
Python tracker
<https://bugs.python.
Amber Brown added the comment:
There's a difference between round-tripping back to the source text and
correctly representing the text in the source, though.
Since I'm using this module to perform static analysis of a Python module to
retrieve class/function definitions and their docstrings
New submission from Amber Brown :
reproducing case:
file.py:
```
"""
Hello \n blah.
"""
```
And then in a REPL (2.7 or 3+):
```
>>> import ast
>>> f = ast.parse(open("test.py", 'rb').read())
>>> f
<_ast.Module objec
Ben Brown added the comment:
Maayan Keshet do you have a minimal example it would be interesting to compare
against our code and see if there is something we are both doing that could
help narrow down the issue.
--
___
Python tracker
<ht
Vicki Brown added the comment:
Note also that pandas DataFrame.to_json() method has no issue with int64.
Perhaps you could borrow their code.
--
___
Python tracker
<https://bugs.python.org/issue24
Vicki Brown added the comment:
This is still broken. With pandas being popular, it's more likely someone might
hit it. Can we fix this?
At the very least, the error message needs to be made much more specific.
I have created a dictionary containing pandas stats.
```
def summary_stats(s
Change by Donny Brown :
--
title: Starting multiprocessing.Process causes FileNotFoundError -> Starting
multiprocessing.Process raises FileNotFoundError unexpectedly
type: -> behavior
___
Python tracker
<https://bugs.python.org/i
New submission from Donny Brown :
Starting multiprocessing.Process causes FileNotFoundError in certain case:
```
import multiprocessing as mp
import time
def demo(f):
print(f)
def main():
cxt=mp.get_context('spawn')
f=cxt.Value('i', 0)
p=cxt.Process(target=demo, args=[f
Ben Brown added the comment:
With some more research it looks like the issue is flow related, I experimented
with the StreamWriter in a simple server and using that plus drain() appears to
have worked an I no longer get the error. I have added my new server to the
gist I posted above
Ben Brown added the comment:
I can fully confirm the issue is due to flow control or lack of in my code the
system runs out of resources and this is when it errors, I have implemented
flow control in my protocol and it now works without errors. One thing I did
find is that the documentation
Change by Ben Brown :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue37226>
___
___
Python-bugs-list
Derek Brown added the comment:
PR is here: https://github.com/python/cpython/pull/17689
--
___
Python tracker
<https://bugs.python.org/issue39198>
___
___
Pytho
New submission from Derek Brown :
If an exception were to be thrown in a particular block of code (say, by
asyncio timeouts or stopit) within the `isEnabledFor` function of `logging`,
the `logging` global lock may not be released appropriately, resulting in
deadlock.
--
components
Change by Derek Brown :
--
keywords: +patch
pull_requests: +17236
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/17689
___
Python tracker
<https://bugs.python.org/issu
James Brown added the comment:
This is a surprising change to put in a minor release. This change totally
changes the semantics of parsing scheme-less URLs with ports in them and ended
up breaking a significant amount of my software. It turns out that urls like
`example.com:80` are more
New submission from Tom Brown :
The following script runs without error in 3.8.5 and raises an error in 3.8.6,
3.9.5 and 3.10.0b1.
Source:
```
import enum, pickle
class MyInt(int):
pass
# work-around: __reduce_ex__ = int.__reduce_ex__
class MyEnum(MyInt, enum.Enum):
A = 1
Spencer Brown added the comment:
This is intentional behaviour, you actually created an infinite loop. When you
iterate over a list, all Python does is track the current index through the
list internally, incrementing it each time. But each iteration, you call
list.append() to add a new
Change by Spencer Brown :
--
nosy: +Spencer Brown
___
Python tracker
<https://bugs.python.org/issue42369>
___
___
Python-bugs-list mailing list
Unsubscribe:
Spencer Brown added the comment:
What's happening is that typing.NamedTuple ignores non-annotated attributes
entirely when computing the names it passes along to namedtuple(), so here "a"
is just a class attribute. You're accessing it from there, but the tuple itself
is enti
Spencer Brown added the comment:
One potential solution would be to add two Py_ssize_t to IndexError, storing
the index and length along with the existing exception value. Then __str__()
can append that to the message if set, perhaps having len be negative to signal
they're not passed
Spencer Brown added the comment:
Both will function, but class B will add its slots after A's, causing there to
be an extra unused slot in the object that you can only access by directly
using the A.a descriptor. So all slotted inheriting dataclasses cause the
object to use more memory than
Spencer Brown added the comment:
There is a solution to this: you can modify the linecache module's cache to add
lines under a fake filename, which is the approach attrs takes here:
https://github.com/python-attrs/attrs/blob/9727008fd1e40bc55cdc6aee71e0f61553f33127/src/attr/_make.py#L347
Spencer Brown added the comment:
I'm not sure a get_overloads() function potentially called after the fact would
fully work - there's the tricky case of nested functions, where the overload
list would need to be somehow cleared to ensure every instantiation doesn't
endlessly append
Spencer Brown added the comment:
Had a potential thought. Since the only situation we care about is overload
being used on function definitions in lexical order, valid calls are only that
on definitions with ascending co_firstlineno counts. Expanding on Jelle's
solution, the overload
Spencer Brown added the comment:
This is intentional behaviour, if the value is 5 it rounds towards even as
documented here: https://docs.python.org/3/library/functions.html#round
The reason is so that if you have a bunch of random data, rounding won't
slightly bias the result upward
New submission from Silas S. Brown [EMAIL PROTECTED]:
Here's the example code:
setting1 = val1
setting2 = val2
def dummy():
global setting1
def f(x):
d ={setting1:setting1,setting2:setting2}
exec(x) in d
return d['setting1'], d['setting2']
print f(setting1=setting2='new
Silas S. Brown [EMAIL PROTECTED] added the comment:
Sorry, I accidentally posted the workaround code instead of the bug
example. This is what I should have posted:
setting1 = val1
setting2 = val2
def dummy():
global setting1
def f(x):
exec(x)
return setting1,setting2
print f
Silas S. Brown ss...@users.sourceforge.net added the comment:
I got a very similar error on an Otek Pocket PC running Windows Mobile
2003 SE and the latest version of pythonce from
pythonce.sourceforge.net. The error is:
File
C:\devl\release\PythonCE-2.5-20061219\Python-2.5-wince\Lib\random.py
Silas S. Brown ss...@users.sourceforge.net added the comment:
After further investigation I'm suspecting that this issue is actually
due to the process running out of RAM.
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1384175
Luke Granger-Brown added the comment:
Still seems to be a problem with everything up to Py3.11.
--
nosy: +lukegb
versions: +Python 3.10, Python 3.11, Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.org/issue34
73 matches
Mail list logo