Chris Jerdonek added the comment:
The new unit tests pass with this patch (minor clean-up still needed).
--
Added file: http://bugs.python.org/file16822/_patch-7559-5.diff
___
Python tracker
<http://bugs.python.org/issue7
New submission from Chris Ward :
When using exponentiation interactively in the python shell, it returns all
negative results when a negative number is the input. For example:
-4 ** 2 will return -16
-4 ** 2 should evaluate as -4 * -4, which correctly returns 16
This does not occur when using
Chris Ward added the comment:
Thanks for clearing that up and pointing me in the right direction. I should
have tested print first. The assumption was based on the evaluation of (-4) **
2 within an expression, which does return correctly. I hadn't made the
distinction that the parent
Chris Jerdonek added the comment:
Thanks for your suggestions on the test code. I will do that.
It seems like the hard-coded approach would be more brittle. For example, if
someone wants to replace __import__ with their own, e.g.
old__import__ = __builtins__.__import__
def
Chris Jerdonek added the comment:
> I think you can simplify them a bit. For example, you can use assertRaises.
Actually, assertRaises doesn't seem to permit checking error text. That may be
one reason why try-except-else is being used instead th
Chris Jerdonek added the comment:
Patch update: added unit test to cover replacing __import__, incorporated R.
David Murray's suggestion to use test_support.test_cwd(), and overall code
clean-up.
Also uploaded as Patch 3 to--
http://codereview.appspot.com/810044/show
--
Added
New submission from Chris Jerdonek :
The "builtins" module referenced in the Python 2.6 __import__ documentation
does not seem to exist in Python 2.6:
http://docs.python.org/library/functions.html#__import__
These should probably be changed to __builtin__:
http://docs.python.o
Changes by Chris Jerdonek :
--
assignee: -> georg.brandl
components: +Documentation
nosy: +georg.brandl
___
Python tracker
<http://bugs.python.org/iss
Chris Jerdonek added the comment:
Replaced "builtins" with "__builtin__". Also inserted a missing "the".
--
keywords: +patch
Added file: http://bugs.python.org/file16870/_issue-8370-1.diff
___
Python tracker
<
Chris Jerdonek added the comment:
Thanks for the info and quick response. Then this should probably also be
applied to trunk (Python 2.7).
--
versions: +Python 2.7
___
Python tracker
<http://bugs.python.org/issue8
Chris Jerdonek added the comment:
Would it make sense to put a "New in version 3.1" at the top of this page:
http://docs.python.org/py3k/library/builtins.html
(perhaps also with a note explaining that the module replaces __builtin__). I
actually wasn't able to confirm when
Changes by Chris Rebert :
--
nosy: +cvrebert
versions: +Python 2.6, Python 2.7, Python 3.2
___
Python tracker
<http://bugs.python.org/issue5250>
___
___
Python-bug
Chris Rebert added the comment:
Here's a draft of an updated version of the "Data model" docs reflecting the
changes in the PEP.
--
keywords: +patch
type: -> feature request
Added file: http://bugs.python.org/file16891/
Changes by Chris Rebert :
Added file: http://bugs.python.org/file16893/datamodel.rst.diff
___
Python tracker
<http://bugs.python.org/issue5250>
___
___
Python-bugs-list m
Changes by Chris Jerdonek :
--
assignee: michael.foord -> cjerdonek
___
Python tracker
<http://bugs.python.org/issue7559>
___
___
Python-bugs-list mai
Chris Rebert added the comment:
This might need to be reopened.
There's a verb missing from he following sentence of the patch:
"This is consistent with the lookup of special methods that called on
instances, only that in this case the instance is itself a class."
Sec
Chris Rebert added the comment:
One last triviality: Could the mention of __subclasscheck__() in
http://docs.python.org/dev/library/abc.html#abc.ABCMeta.__subclasshook__ get
linked to the newly-added docs?
--
___
Python tracker
<h
Chris AtLee added the comment:
I keep needing to know the number of seconds that a timedelta represents,
so I implemented the following patch.
This returns only the integer portion, but could be modified to return a
floating point value.
--
nosy: +catlee
Added file: http
Chris AtLee added the comment:
timedelta.todays() could be useful in general I suppose. I think
timedelta.toweeks() could be omitted since it's simple division by an
easy to recognize constant...also the timedelta docs say that it stores
data in terms of microseconds, seconds, and days.
New submission from Chris Withers:
Somewhere in email.MIMEText.MIMEText.as_string (I'm not sure where) long
subject headers are folded using a newline followed by a tab:
>>> from email.MIMEText import MIMEText
>>> m = MIMEText('foo')
>>> m['Sub
Chris Mellon added the comment:
I agree that the zipfile is out of spec. Here are my arguments in favor
of making the change anyway:
Existing zip tools like 7zip, pkzip, and winzip handle these files "as
expected"
As far as I know, it won't break any valid zipfiles.
Because th
New submission from Chris AtLee:
When using the py_compile module from the command line, and a
SyntaxError is encountered, python still exits with a 0 return code.
This usually indicates that the process completely successfully.
Could py_compile.main() be modified to return a non-zero return
New submission from Chris Palmer:
When decoding some data as UTF-7 with the optional "ignore" argument,
Python (I am using 2.5.2) crashes. This happens only on Windows Vista (I
also tried Py 2.5.1 on Windows XP, Ubuntu 7, and FreeBSD 6). To
reproduce, set WinDbg as your post-mortem de
Chris Palmer added the comment:
You could also fix the problem by using iswalnum function instead of
isalnum. Sorry I didn't mention this in the original report.
http://msdn2.microsoft.com/en-us/library/k84c0490(VS.71).aspx
__
Tracker <[EMAIL PROTECTED
Changes by Chris Morgan <[EMAIL PROTECTED]>:
--
nosy: +mihalis68
_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1424152>
_
___
Python-bugs
Chris Ozeroff <[EMAIL PROTECTED]> added the comment:
This bug does not just affect Vista.
I am running Windows XP Professional x64 and encountered the same
problem. Everything appeared to go fine on the installation, but then
IDLE just refuses to run, nothing appears in the task manag
New submission from Chris Withers <[EMAIL PROTECTED]>:
The repr of httplib.IncompleteRead contains all the data in the read so far.
This is stupid. Consider the download of a 100Mb file which fails after
30Mb. You end up with 90Mb of text in the log entry logged with the
python l
Chris Withers <[EMAIL PROTECTED]> added the comment:
Please find attached a patch against the trunk.
I'd really appreciate it if this could get merged to the 2.5 and 2.6
branches too, in case of a future release there.
--
keywords: +patch
versions: +Python 2.5, Python 2.6
Chris AtLee <[EMAIL PROTECTED]> added the comment:
I also wrote some software to handle this:
http://atlee.ca/software/poster/poster.encode.html
The reason I wrote this is to avoid having the load the entire file into
memory before posting the request.
This, along with Issue #3243, would
New submission from Chris Withers <[EMAIL PROTECTED]>:
>>> from datetime import datetime
>>> class defaultdatetime(datetime):
... defaults=(2001,1,1)
... def __init__(self,*args):
... if not args:
... args = self.defaults
... date
Chris Withers <[EMAIL PROTECTED]> added the comment:
Sorry, forgot to say that the above is at best counterintuitive and not
documented anywhere...
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Chris Withers <[EMAIL PROTECTED]> added the comment:
But that isn't documented anywhere...
--
assignee: -> georg.brandl
components: +Documentation
nosy: +georg.brandl
type: feature request ->
___
Python tracker <[EMA
Chris Palmer <[EMAIL PROTECTED]> added the comment:
Here is an additional test case. I have a super simple HTML "minifier"
that burps when given this test file:
$ cat test.html
'foo '
The explosion is:
$ ./minify.py test.html
Warning
Changes by Chris Palmer <[EMAIL PROTECTED]>:
--
type: -> behavior
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue670664>
___
___
New submission from Chris Hills <[EMAIL PROTECTED]>:
On linux-g++-32 with command line `./configure --enable-ipv6 --with-
suffix=3`, python is compiled okay but the build scripts fail as
follows:-
running build_scripts
copying and adjusting /tmp/Python-3.0/Tools/scripts/idle -> build
Chris Hills <[EMAIL PROTECTED]> added the comment:
In hindsight I did not need to use --with-suffix as I assumed the
interpreter would be installed as "python" by default, but it is not.
The patch however does fix the reported problem for me.
__
Chris AtLee <[EMAIL PROTECTED]> added the comment:
The attached patch implements this for python 2.7. It also adds support
for iterable bodies in urllib2, where it is more generally useful.
urllib2 enforces the presence of a Content-Length header in the request
if the body is an it
New submission from Chris Boyle :
The attached script, when edited to fill in valid LiveJournal
credentials (or InsaneJournal, if you change the URL and user list)
fails for me in a very odd way. It fetches the first two URLs quite
happily, and returns a 401 on the third after querying my
Chris Boyle added the comment:
When I say a given instance, I mean an HTTPDigestAuthHandler object. If
I take the three lines before my loop (authhandler=, opener=,
install_opener) and move them into the loop, the problem goes away,
whereas moving only the latter two of those doesn't hel
Chris Morrow added the comment:
This patch doesn't appear to work for python2.5.1 ->
Python 2.5.1 (r251:54863, Jun 15 2008, 18:24:51)
[GCC 4.3.0 20080428 (Red Hat 4.3.0-8)] on linux2
Type "help", "copyright", "credits" or "license" for more in
Chris Morrow added the comment:
oh crap :( I saw the 2.6 AFTER I posted the message :( sorry. grr, have
to find a fix for 2.5 I suppose now.
Thanks.
___
Python tracker
<http://bugs.python.org/issue1
Chris Morrow added the comment:
oy, and I'm not reading emails properly. I'll try the fix you propose
for 2.5.
___
Python tracker
<http://bugs.python.
Chris Morrow added the comment:
a possible fix for 2.5 is:
morr...@tweezer:/tmp$ diff -U3 nntplib.py.orig nntplib.py
--- nntplib.py.orig 2008-12-30 01:06:14.0 -0500
+++ nntplib.py 2008-12-30 01:07:33.0 -0500
@@ -109,8 +109,19 @@
"""
s
New submission from Chris Morrow :
nntplib.py on python2.5 is not IPv6 ready. The below patch at least
makes connections on both ipv4 and ipv6 to servers.
This was taken out of bug: http://bugs.python.org/issue1664
if that helps...
platform:
Linux hostnamehere 2.6.26.6-79.fc9.i686 #1 SMP
Chris Morrow added the comment:
Are we sure that the 2.6 fix (in the patch) will make it into 2.6? (and
the right upstream patching will happen to the 3.0 code as well?)
___
Python tracker
<http://bugs.python.org/issue1
Changes by Chris Lasher :
--
nosy: +gotgenes
___
Python tracker
<http://bugs.python.org/issue3244>
___
___
Python-bugs-list mailing list
Unsubscribe:
Chris Barker added the comment:
Yes -- it was on me years ago to do this.
Honestly, I haven't done it yet because I lost the momentum of PyCon, and I
don't personally use unittest at all anyway.
But I still think it's a good idea, and I'd like to keep it open with the
u
New submission from Chris Fernald :
A fix was made to unify handling of the trailing slash in TarFile.getmember
related to https://bugs.python.org/issue21987. This change fixed the <100
character case, but made it so directories over 100 character which come from a
tar file can no longer
Chris Withers added the comment:
New changeset c96127821ebda50760e788b1213975a0d5bea37f by Chris Withers
(Xtreak) in branch 'master':
bpo-36871: Ensure method signature is used when asserting mock calls to a
method (GH13261)
https://github.com/python/cpyt
Chris Withers added the comment:
New changeset be310e03d0b84ef56e9d35b0b1b21d685b7ea371 by Chris Withers (Miss
Islington (bot)) in branch '3.7':
bpo-36871: Ensure method signature is used when asserting mock calls to a
method (GH15577)
https://github.com/python/cpyt
Chris Withers added the comment:
New changeset 38d311d79e57479f7a684c2cd298293033dc4990 by Chris Withers (Miss
Islington (bot)) in branch '3.8':
bpo-36871: Ensure method signature is used when asserting mock calls to a
method (GH15578)
https://github.com/python/cpyt
New submission from Chris Morton :
Compiling (Window 10, MSVS 16):
#include
int main(int argc, char* argv[])
{
const char* code = "c=[1,2,3,4]\nd={'list': [c[i] for i in
range(len(c))]}\nprint(d)\n";
Py_Initialize();
PyObject* pycode = Py_CompileString(cod
New submission from Chris Morton :
Building code on Mac OSX or Linux Ubuntu 16.04
#include
#include
#include
#include
// MacOSX build:
// g++ stop.cpp -I /include/pythonX.X -L /lib
-lpythonX.X -o stop
// Linuxe requires addtional linkage:
// -lpthread
void RunPythonScript
Chris Morton added the comment:
I should add that Py_AddPendingCall returns 0 in both cases.
--
title: PyAddPendingCall Function Never Called in 3.8, works in 3.6 ->
Py_AddPendingCall Function Never Called in 3.8, works in 3.6
type: -> be
Change by Chris Morton :
--
title: Py_AddPendingCall Function Never Called in 3.8, works in 3.6 ->
Py_AddPendingCall Inserted Function Never Called in 3.8, works in 3.6
___
Python tracker
<https://bugs.python.org/issu
Chris Withers added the comment:
I agree that this should raise an exception.
Can the two failing tests in mock's own suite be easily fixed?
--
___
Python tracker
<https://bugs.python.org/is
Chris Morton added the comment:
Root cause appears to be indexing c with [] operator. Replacing len(c) with 4
produces the same error.
--
___
Python tracker
<https://bugs.python.org/issue43
New submission from Chris Winkler :
When `turtle.textinput` is called in Python 3.9.2, the resulting dialog window
is not marked as transient. This is not a problem in 3.9.1.
The offending change seems to come from bpo-42630. Specifically,
`SimpleDialog.__init__` is being passed `parent=None
New submission from Chris Wilson :
The documentation for the int() builtin says:
Base 0 means to interpret exactly as a code literal, so that the actual base is
2, 8, 10, or 16, and so that int('010', 0) is not legal, while int('010') is,
as well as int('010',
Chris Wilson added the comment:
Actually, octal is not a legal literal in Python 3, sorry.
--
resolution: -> rejected
___
Python tracker
<https://bugs.python.org/issu
Chris Morton added the comment:
Hi Terry, The reason why your code does not reproduce the issue is because you
first execute the code in a global context which then puts the definition of c
in that context. Subsequent calling in the local context then works. If you
remove the first exec
Chris Morton added the comment:
Is this change in behavior considered to be by design or is this issue an
unintended consequence? It seems inconsistent that comprehensions have no
visibility of variable previously defined in the same scoping for this
particular use-case. Is there a way to
Change by Chris Angelico :
--
keywords: +patch
nosy: +Rosuav
nosy_count: 3.0 -> 4.0
pull_requests: +23793
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/25045
___
Python tracker
<https://bugs.python.org/i
Chris Angelico added the comment:
Can confirm. This changed in bpo-38038 and the fix isn't too difficult.
Adding 3.10 in case it's decided that this shouldn't be patched onto 3.9.
--
versions: +Python 3.10
___
Python
Change by Chris Angelico :
--
keywords: +patch
nosy: +Rosuav
nosy_count: 5.0 -> 6.0
pull_requests: +23797
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/25045
___
Python tracker
<https://bugs.python.org/i
Chris Jerdonek added the comment:
> I think this is the same as issue37712.
This issue was first reported as issue24959. It would be better to close the
newer issues as duplicates of the first one, instead of keeping all the
duplicates open. Otherwise, the history and discussion g
Chris Jerdonek added the comment:
> So maybe we should change the terminology while we’re at it.
When math is taught to elementary school students in the US, it's called "order
of operations": https://en.wikipedia.org/wiki/Order_of_operations
Since this was raised in the co
Chris Xiao added the comment:
I found this problem too.
expecting for fixing
--
nosy: +chrisxiao
___
Python tracker
<https://bugs.python.org/issue42627>
___
___
New submission from Chris Burr :
When copying files between systems with different limits on the size of the
extended attributes that can be added to a file shutil.copystat can fail with:
/cvmfs/lhcb.cern.ch/lib/var/lib/LbEnv/2064/stable/linux-64/lib/python3.8/shutil.py
in copystat(src, dst
Change by Chris Burr :
--
keywords: +patch
pull_requests: +24888
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/26282
___
Python tracker
<https://bugs.python.org/issu
Change by Chris Jerdonek :
--
nosy: +chris.jerdonek
___
Python tracker
<https://bugs.python.org/issue44112>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Chris Mayo :
Current link is:
https://www.openssl.org/docs/manmaster/man1/ciphers.html
Manual page entries without the 'openssl-' prefix have been deprecated, and
this link is now directed to a generic page for openssl cmd.
Suggest an update to:
https://www.o
Chris Jerdonek added the comment:
> This issue is not solved.
Yes, nothing was changed. After diagnosing this issue and trying some things
out in a draft PR, my conclusion is that an asyncio maintainer really needs to
weigh in on what to do (especially Andrew who authored the class).
Chris Jerdonek added the comment:
> MultiLoopChildWatcher must ensures that the event loop is awaken when it
> receives a signal by using signal.setwakeup(). This is done by
> _UnixSelectorEventLoop.add_signal_handler(). Maybe MultiLoopChildWatcher
> could reuse this function,
New submission from Chris Wagner :
In 3.8 the samesite attributes was added to http.cookies module.
However it hasn't been added to http.cookiejar module. The method:
_normalized_cookie_tuples seems to have a hardcoded list of allowable
attributes.
While the updated standard is sti
New submission from Chris Trent :
The documentation pages for the tkinter module are not actually documentation.
They are tutorials, which belong on the wiki. "Documentation" is not
documentation if it does not provide at bare minimum a structured list of all
names exposed by th
Change by Chris Trent :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue44485>
___
___
Python-bugs-list mailing list
Unsubscrib
Chris Trent added the comment:
To put it bluntly, having me submit patches to that section of the docs is just
about the last thing you want. I know precious little about TKinter, which is
precisely why I'm calling for something more than a half-assed tutorial.
Regarding using the T
Chris Withers added the comment:
New changeset abb08e3af6aa19928007a349592e95e6de38467f by Jack DeVries in
branch 'main':
bpo-44534: fix wording and docstring sync in unittest.Mock GH27000
https://github.com/python/cpython/commit/abb08e3af6aa19928007a349592e95e6de38467f
-
Chris Jerdonek added the comment:
Thanks, Irit. Can you show how your patch behaves using some representative
examples (maybe using arrow examples from above)? And if it behaves differently
from Dennis's patch, can you include an example showing that
Chris Jerdonek added the comment:
Yes, that seems like a good approach. And how about with Serhiy's example from
above?
> If there is a chain A -> B -> C -> D -> E, after assignment C.__context__ = A
> ...
--
___
Chris Jerdonek added the comment:
That's okay. I didn't mean to suggest I thought your patch needed to handle
that case or that we needed to decide it before moving forward. I was just
wondering what would happen with your patch with it, even if it means a hang.
Or were you s
Chris Jerdonek added the comment:
> the result is C -> A -> B -> C
Did you mean C -> A -> B?
By the way, if you applied to this example your reasoning that PyErr_SetObject
shouldn't try to fix user bugs, should this example instead be C -> A -> B -> C
-&g
Chris Jerdonek added the comment:
> No, I meant C -> A -> B -> C -> A
Oh, good. I support your reasoning and approach, by the way.
--
___
Python tracker
<https://bugs.pyt
Chris Jerdonek added the comment:
Okay, I'll close the issue and update it to reflect that it was restricted to
the narrower, originally reported issue.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
title: exception chain cycles cau
Chris Jerdonek added the comment:
> Preventing creation of the loop will fix all other code that iterate the
> __context__ chain.
We can still do / discuss that following Irit's proposed change, which is an
improvement, IMO.
--
___
Chris Jerdonek added the comment:
Out of curiosity, is the failure deterministic in environments where it fails?
If not, what is the source of the indeterminism -- some kind of race condition
or something else?
--
nosy: +chris.jerdonek
___
Python
Chris Jerdonek added the comment:
> Maybe it's a very precise threshold which triggers the issue. Between Linux
> and macOS, the site module executes different code paths which produce
> different GC counters.
> Sometimes, the GC must happen in a very precise line, one
Chris Jerdonek added the comment:
"How does this explain it not being non-deterministic on" -> "How does this
explain it not being deterministic on"
--
___
Python tracker
<https://
Chris Jerdonek added the comment:
Last question: might trying different values of PYTHONHASHSEED help?
--
___
Python tracker
<https://bugs.python.org/issue44
Chris Jerdonek added the comment:
FYI, I tried myself, and setting PYTHONHASHSEED didn't make the failures
deterministic.
--
___
Python tracker
<https://bugs.python.org/is
Chris Jerdonek added the comment:
I agree with Serhiy that this API isn't necessarily the right one. It's just
what happens to be there now. Also, we're still not clear on our stance towards
cycles (see the issue25782 discussion). (Maybe the exposed version should
result in
Chris Jerdonek added the comment:
It might be good to have consistency with what will be used for StackSummary so
two different approaches to naming aren't used.
By the way, frame_sum is another possibility since I see frame_gen being used.
--
nosy: +chris.jer
Chris Jerdonek added the comment:
I was suggesting keeping more similarity between FrameSummary and StackSummary
in addition to differentiating frame from FrameSummary. Since stack is used for
StackSummary, frame_sum is more similar than f_summary while still providing
the differentiation
Chris Jerdonek added the comment:
Or frame_info (more readable), since FrameSummary is proposed to be
"Information about a single frame from a traceback."
--
___
Python tracker
<https://bugs.python.o
Chris Hills added the comment:
The new behaviour seems broken on my system.
$ PYTHON_VERSION=3.10.0
$
PKG_CONFIG_PATH="/home/chaz/.local/local/sqlite3/lib/pkgconfig:/home/chaz/.local/local/openssl3/lib64/pkgconfig"
$ LLVM_PROFDATA=/home/chaz/.local/local/clang+llvm/bin/llvm-p
Chris Hills added the comment:
If I set LDFLAGS as with previous versions, it works as expected. I do not know
if it is related, but I noticed that by default rpath does not get set for the
files in DESTDIR/bin/* (e.g. python3.10 or pip3.10) hence the inclusion of
/home/chaz/.local/local
Chris Hills added the comment:
I tested this both with and without LDFLAGS="-Wl,-rpath
-Wl,/home/chaz/.local/local/python3.10.0/lib", and in both cases this patch
works as expected. Thank you!
--
nosy: +chaz6
___
Python track
New submission from Chris Hills :
Similar to https://bugs.python.org/issue43466 for openssl, please add a
configure option to set rpath for sqlite3.
--with-sqlite-rpath=
Ideally, when any dpeendency is discovered with pkg-config, the correct rpath
should be set, but this would be a breaking
Chris Jerdonek added the comment:
> But, once the asyncio.Task is cancelled, is impossible to retrieve that
> original asyncio.CancelledError(msg) exception with the message, because it
> seems that *a new* asyncio.CancelledError() [without the message] is raised
> when asyncio
201 - 300 of 2758 matches
Mail list logo