Serhiy Storchaka added the comment:
5. max(b'\x00\x00\x00\x80', 4) returns 0 (on little-endian).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16686
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: +easy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16685
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
Good analysis, Matthew. Are you want to submit a patch?
--
keywords: +easy
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16688
___
Roumen Petrov added the comment:
Jason Huntley wrote:
patch -t -p1 python-py3k-20120729-MINGW.patch
Please run autoheader (optional) and autoconf (required .
./configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32
--prefix=/mingw
...
--
Amaury Forgeot d'Arc added the comment:
Anatoly,
- in Python2.7, try this:
print repr(os.listdir(u'.'))
- in Python3, try this:
print(ascii(os.listdir('.')))
Do the commands above work correctly?
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
Indeed it looks like this commit may be the culprit for numerous buildbot
failures.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16421
Antoine Pitrou added the comment:
Naming the test modules foo and bar was perhaps not the best idea.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16421
___
Roundup Robot added the comment:
New changeset 2e492a9a1845 by Andrew Svetlov in branch 'default':
Rename test module names for #16421 to don't clash with other tests.
http://hg.python.org/cpython/rev/2e492a9a1845
--
___
Python tracker
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +belopolsky, georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16672
___
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +Robin.Schreiber, loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16690
___
___
Andrew Svetlov added the comment:
Fixed.
Antoine, you are right: foo and bar was bad names.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16421
Antoine Pitrou added the comment:
Sorry for the delay. I am not sure I understand your concern here:
If the user reads the exact amount of bytes the server sent, read() on the
socket will never have a chance to return '' and inform the user
about the connection termination.
Certainly
Eran Rundstein added the comment:
Hm, it's been a while and I'm no longer sure :(
You're right - since there is no length the user will have to call read() until
he gets back ''. It's possible I forgot that assumption when speculating about
this.
--
New submission from Antoine Pitrou:
Recent OpenSSL versions (e.g. 1.0.1c) have explicit support for TLS 1.1 and
(presumably, although undocumented-ly) TLS 1.2 through TLSv1_1_method() and
TLSv1_2_method(). It should be easy to add such support to the ssl module
(although figuring out how
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16692
___
New submission from R. David Murray:
import collections
[61531 refs, 20955 blocks]
eval('foo', {}, collections.ChainMap(object()))
python: Python/ceval.c:2996: PyEval_EvalFrameEx: Assertion `0' failed.
zsh: abort ./python
--
messages: 177542
nosy: r.david.murray, rhettinger
Changes by Benjamin Peterson benja...@python.org:
--
assignee: - benjamin.peterson
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16693
___
Roundup Robot added the comment:
New changeset bb6fd6f021e7 by Benjamin Peterson in branch 'default':
use error label instead of breaking eval loop (closes #16693)
http://hg.python.org/cpython/rev/bb6fd6f021e7
--
nosy: +python-dev
resolution: - fixed
stage: needs patch -
Antoine Pitrou added the comment:
I've posted a few more comments.
As for cyclic garbage collection, it's explained a bit there:
http://docs.python.org/dev/extending/newtypes.html#supporting-cyclic-garbage-collection
If it isn't very clear to you, I can still handle it myself, though. Those
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16597
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16601
___
___
Roundup Robot added the comment:
New changeset 2186f7b99c28 by Antoine Pitrou in branch '2.7':
Issue #16298: In HTTPResponse.read(), close the socket when there is no
Content-Length and the incoming stream is finished.
http://hg.python.org/cpython/rev/2186f7b99c28
New changeset b47d342c449b by
Antoine Pitrou added the comment:
Ok, the patch looked fine to me, so I've committed it to 2.7 and adapted it for
3.x. Thank you!
By the way, it's probably easier to produce patches using Mercurial rather than
using manual `diff`. You can have a look at the devguide for more information:
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16665
___
___
Python-bugs-list
Antoine Pitrou added the comment:
The patch looks good to me. The docs may need improving but that's a separate
concern.
(also, the current behaviour is reasonable, and there is certainly existing
code relying on it)
--
nosy: +hynek, pitrou, tarek
stage: - commit review
versions:
Eran Rundstein added the comment:
My pleasure.
I had no idea about the Mercurial patch, this is the first time I have
submitted a Python bug report :)
I'll have a look.
Thanks for merging the fix!
--
___
Python tracker rep...@bugs.python.org
Changes by Antoine Pitrou pit...@free.fr:
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16555
___
___
Python-bugs-list
Antoine Pitrou added the comment:
Berker's proposed implementation looks weird to me. Why the __unittest
variable?
Also, it would be better to make unittest's API more flexible, rather than
manually tweaking sys.argv to enable discovery.
--
stage: needs patch - patch review
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16646
___
___
Python-bugs-list
Antoine Pitrou added the comment:
It should actually have been fixed in issue 11564. Please reopen if you can
reproduce with a recent 3.x Python.
--
resolution: - duplicate
status: pending - closed
superseder: - pickle not 64-bit ready
___
Python
Antoine Pitrou added the comment:
This very simple patch should certainly be applied.
--
assignee: - dmalcolm
stage: patch review - commit review
versions: +Python 2.7 -Python 2.6
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
Does it need additional tests?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16550
___
___
Python-bugs-list
Antoine Pitrou added the comment:
Thanks for the patch. While an internal flag may be a reasonable implementation
strategy, IMHO a dedicated method still makes sense: it's simply more readable
than passing a flag.
As for the tests, they should probably exercise the interaction with
Antoine Pitrou added the comment:
PEP 11 updated in 3abdc6b075fb.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16501
___
___
Python-bugs-list
Terry J. Reedy added the comment:
[Raymond, I am assuming that you only left this open for additional comments,
possibly more favorable than yours. If I am wrong, reopen.]
I have not read the namedtuple doc before. I did so now and think the Point
example is fine for the purpose of explaining
Matthew Barnett added the comment:
OK, here's a patch.
--
keywords: +patch
Added file: http://bugs.python.org/file28321/issue16688.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16688
Antoine Pitrou added the comment:
How about adding a test?
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16626
___
___
Roundup Robot added the comment:
New changeset d6f61cd364d9 by Antoine Pitrou in branch 'default':
Issue #16488: epoll() objects now support the `with` statement.
http://hg.python.org/cpython/rev/d6f61cd364d9
--
nosy: +python-dev
___
Python tracker
Antoine Pitrou added the comment:
Committed, thank you!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16488
Terry J. Reedy added the comment:
I think this should be rejected and closed since the 'enhancement' looks worse
to me than what we can do now.
1. Most data attributes cannot have individual docstrings, so I expect the
class docstring to list and possibly explain the data attributes.
2. In
Changes by Ross Lagerwall rosslagerw...@gmail.com:
--
assignee: - rosslagerwall
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16661
Roundup Robot added the comment:
New changeset d5a0698a8354 by Petri Lehtinen in branch 'default':
#11175: argparse.FileType now accepts encoding and errors arguments.
http://hg.python.org/cpython/rev/d5a0698a8354
--
nosy: +python-dev
___
Python
Petri Lehtinen added the comment:
Committed, thanks for the patch!
I made little tweaks before committing:
- changed l1 to UTF-8 in the example (guess you mis-uploaded the latest version)
- changed the argument to 'replace' in test_r_1_replace
- fixed 3-space indentation to 4-space indentation
Serhiy Storchaka added the comment:
Lib/test/pickletester.py contains some bigmem tests, they can be modified to
cover issue12848 and this issue. But I can't run this tests.
--
___
Python tracker rep...@bugs.python.org
Éric Araujo added the comment:
I think the __unittest name is magic to hide modules from the unittest package
in error/failure tracebacks.
About the script: can’t it be as simple as runpy.run_module?
--
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
I have made the test, but I can't run it. Therefore I can't guarantee that the
test works.
--
Added file: http://bugs.python.org/file28322/glob_magic_in_drive_test.patch
___
Python tracker rep...@bugs.python.org
Changes by Serhiy Storchaka storch...@gmail.com:
Added file: http://bugs.python.org/file28323/glob_magic_in_drive_test-2.7.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16626
___
Roundup Robot added the comment:
New changeset 29becac5dd9b by Stefan Krah in branch '3.3':
Issue #15783: Except for the number methods, the C version of decimal now
http://hg.python.org/cpython/rev/29becac5dd9b
--
nosy: +python-dev
___
Python
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16688
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16618
___
___
Python-bugs-list
Stefan Krah added the comment:
Ezio, thanks for the Rietveld comments.
There are still unsupported None default values in the Context
constructor, so I'm leaving the issue open.
--
title: decimal.localcontext(None) fails when using the C accelerator module -
decimal: Support None
Changes by Serhiy Storchaka storch...@gmail.com:
--
dependencies: +FTP.makeport() loses socket error details, LMTP.connect() loses
socket error details, Popen._internal_poll() references errno.ECHILD outside of
the local scope, Wrong code in ContextManagerTests.test_invalid_args() in
Antoine Pitrou added the comment:
Tests work fine under 3.x, but under 2.7 I get:
==
FAIL: test_glob_magic_in_drive (test.test_glob.GlobTests)
--
Traceback
Serhiy Storchaka added the comment:
Ah, I forgot that splitdrive() on 2.7 does not work with UNC paths. Here is an
updated patch.
--
Added file:
http://bugs.python.org/file28324/glob_magic_in_drive_test-2.7_2.patch
___
Python tracker
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file:
http://bugs.python.org/file28323/glob_magic_in_drive_test-2.7.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16626
___
Antoine Pitrou added the comment:
Thank you, the new test works fine.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16626
___
___
Terry J. Reedy added the comment:
I agree with index entries and that 6.14 Evaluation Order (7 lines) and 6.15
Summary (precedence table and notes) could be combined into 6.14 Evaluation
Order and Precedence. I don't think the text necessarily needs revision. Just
augment 6.14 and remove
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +aclover, pje
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16679
___
___
Python-bugs-list
STINNER Victor added the comment:
Can someone check if there is no other similar regression (introduced
by the PEP 393)?
2012/12/15 Serhiy Storchaka rep...@bugs.python.org:
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: needs patch - patch review
Matthew Barnett added the comment:
I found another bug while looking through the source.
On line 495 in function SRE_COUNT:
if (maxcount end - ptr maxcount != 65535)
end = ptr + maxcount*state-charsize;
where 'end' and 'ptr' are of type 'char*'. That means that 'end - ptr' is
Matthew Barnett added the comment:
I found another bug while looking through the source.
On line 495 in function SRE_COUNT:
if (maxcount end - ptr maxcount != 65535)
end = ptr + maxcount*state-charsize;
where 'end' and 'ptr' are of type 'char*'. That means that 'end - ptr' is
Nacsa Kristóf added the comment:
@dhgmgn I think the change is ok. That said, I add two things.
It maybe should be noted which Windows version has this corrected.
The article contains this string: This problem was first corrected in
Microsoft Windows 2000 Service Pack 4. This problem was
Matthew Barnett added the comment:
I haven't found any other issues, so here's the second patch.
--
Added file: http://bugs.python.org/file28325/issue16688#2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16688
Eric Snow added the comment:
+1, Terry
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16669
___
___
Python-bugs-list mailing list
Unsubscribe:
Phillip J. Eby added the comment:
Wouldn't it be possible to amend PEP ?
Sure... except then it would also be necessary to amend PEP , and also all
WSGI applications already written that assume this, any time in the last nine
years.
This is a known and intended consistent property
Changes by danblack daniel.bl...@openquery.com:
Added file: http://bugs.python.org/file28326/issue-8109-sni-serverside.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8109
___
New submission from Zachary Ware:
(Brett, I've made you nosy due to the relation to Issue16651.)
Here is a pure Python implementation of the operator module, or at least a
first draft thereof :). I'm attaching the module itself, as well as a patch to
integrate it.
Any and all review is
Changes by Zachary Ware zachary.w...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file28328/py_operator.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16694
___
68 matches
Mail list logo