Roundup Robot added the comment:
New changeset 019c17a4198a by Zachary Ware in branch '2.7':
Issue #17202: Add .bat to .hgeol to force them to CRLF.
https://hg.python.org/cpython/rev/019c17a4198a
New changeset 640ccb924b5f by Zachary Ware in branch '3.4':
Issue #17202: Add .bat to .hgeol to
Changes by Antoine Pitrou pit...@free.fr:
--
assignee: pitrou -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19292
___
___
Python-bugs-list
Saul Shanabrook added the comment:
I have added a failing test to based on the first example, of a class that
provides the necessary methods, but fails to be an instance of Sequence.
--
keywords: +patch
nosy: +saulshanabrook
Added file: http://bugs.python.org/file38935/patch.diff
Marin Dantchev added the comment:
@Zachary: Wrong paste. Correct change is
Lib\ctypes\test\test_macholib.py@91160:6f63fff5c120, which makes the test only
run on OSX.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17751
New submission from Raúl Cumplido:
While taking a look on the import mechanisms I've seen in the documentation
that find_module has been deprecated for find_spec, but on different parts of
the documentation there are still references to find_module, as in the
definition of sys.meta_path
R. David Murray added the comment:
Raymond, are you gong to apply the deque patch (maybe after doing performance
measurement) or should we close this?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21448
Changes by lilydjwg lilyd...@gmail.com:
--
nosy: +lilydjwg
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8106
___
___
Python-bugs-list mailing
Antoine Pitrou added the comment:
The proposed API seems strange to me. Is there an illustration of how
it might be used? I suspect it wouldn’t be all that useful, and could
more or less be implemented with the existing methods:
True, but having it a Buffered method would allow it to
Changes by Saul Shanabrook s.shanabr...@gmail.com:
Removed file: http://bugs.python.org/file38935/patch.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23864
___
Changes by Saul Shanabrook s.shanabr...@gmail.com:
Added file: http://bugs.python.org/file38937/patch.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23864
___
James Powell added the comment:
Discussed with Nick Coghlan.
See attached patch to return `signature(object)` only if both `__new__` and
`__init__` are shared with `object`.
Otherwise, raise TypeError indicating built-in types not supported.
A.M. Kuchling added the comment:
It doesn't seem to me that we've really deprecated getdefaultlocale() -- it's
not documented as such, and MAL makes the good point that getdefaultlocale() is
trying to avoid calling setlocale().
Perhaps this is just a documentation problem?
Zachary Ware added the comment:
Ahh. Not quite, though; that change just changed the way unittest reports the
results on non-Mac platforms. The problem is actually here:
https://hg.python.org/cpython/file/default/Lib/ctypes/test/test_macholib.py#l34
We need a patch to try that import
Christian Heimes added the comment:
I think we can close this bug for good.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19292
___
___
Changes by Saul Shanabrook s.shanabr...@gmail.com:
Removed file: http://bugs.python.org/file38937/patch.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23864
___
Antoine Pitrou added the comment:
Great! Thank you!
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19292
___
Changes by Saul Shanabrook s.shanabr...@gmail.com:
Added file: http://bugs.python.org/file38938/patch.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23864
___
Ned Deily added the comment:
LGTM. I think it should be backported to 2.7.
--
nosy: +ned.deily
versions: +Python 3.4, Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17898
___
Changes by Maciej Szulik solt...@gmail.com:
--
nosy: +maciej.szulik
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue917120
___
___
Python-bugs-list
R. David Murray added the comment:
I can't reproduce this and no example is forthcoming, so I'm closing this as
works for me.
--
resolution: - works for me
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
The patch doesn't contain tests because I can't test them. But they should be
simple, just pass a path with null character to os function.
IMO this issue is a bug, so you must write an unit test to test for non
regression. One test for FileIO, another for
New submission from Philippe:
There is a minor typo in the docstring of os.renames:
See https://hg.python.org/cpython/file/37905786b34b/Lib/os.py#l275
After the rename, directories corresponding to rightmost path segments of the
old name will be pruned way until [..]
This should be using
Eric V. Smith added the comment:
I think removing the word way would be a better improvement.
--
nosy: +eric.smith
versions: -Python 3.2, Python 3.3, Python 3.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23929
STINNER Victor added the comment:
Python 3 raises an exception as expected, so I remove it from the Versions
field. This issue is specific to Python 2, and it looks to be only
reproductible on Windows. It's probably a bug in the C library (stdio.h).
--
versions: -Python 3.4, Python
Martin Panter added the comment:
For the record, it looks like there were a few distinct but related problems
here:
* Passing any StringIO object as the body is not supported (see
https://docs.python.org/2/library/httplib.html#httplib.HTTPConnection.request),
because no StringIO class
Changes by STINNER Victor victor.stin...@gmail.com:
--
title: test_os fails several C-level assertions - [Windows] test_os fails
several C-level assertions
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23919
STINNER Victor added the comment:
The fix for these is to hide the output, which is in the test modules
handling of the -n option.
Since Python raises an exception for EBADF, I don't see the purpose of these
assertion messages.
--
___
Python
STINNER Victor added the comment:
This snippet let my interpreter crash immediately
Well, I don't understand the issue. If you write a bug, Python crashes. Ok, so?
Please fix your bug. Don't expect Python from recovering from any bug.
The io stack of Python 3 is safer because it has a direct
STINNER Victor added the comment:
Issue #23817: run autoreconf to update configure.
Oh thanks, I forgot to regenerate configure!
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
With socket_eintr.4.patch, socket methods become non-thread safe. I'm not sure
that it's a serious issue, but you have to consider this side effect of your
change.
(Modify socketmodule.c instead would allow to handle EINTR, recompute timeout
and keep the
New submission from Jeffrey Walton:
The Python wiki page on SSL states (https://wiki.python.org/moin/SSL):
To validate that a certificate matches requested site,
you need to check commonName field in the subject of
the certificate.
I don't think its quite correct.
Both the IETF
Changes by Eric V. Smith e...@trueblade.com:
--
keywords: +easy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23929
___
___
Python-bugs-list
Antoine Pitrou added the comment:
Thanks for the report; your remarks are obviously true. Unfortunately, the wiki
is community-maintained, there's not much point in reporting bugs here about
it. That page's contents look very outdated, by the way.
The official documentation for the ssl module
Fabio Zadrozny added the comment:
Well, I'd say that if tracing is enabled and is disabled automatically by
Python (thus breaking a working debugger which would usually be used to
diagnose the error), I'd at least consider issuing some warning to stderr...
(probably warnings.warn cannot be
Antoine Pitrou added the comment:
I'm closing this issue since it isn't part of our responsibilites here, sorry.
If you want to see that wiki page fixed, the best is probably to... fix it
yourself :-) (it's a wiki after all)
(frankly, I think it should be removed or replaced with a pair of
eryksun added the comment:
The default (and standards-violating) behavior of the Windows CRT is to kill
the process for a bad file descriptor, instead of just setting errno to EBADF.
To work around this PyOS_StdioReadline needs to to check _Py_Verify_fd before
calling fflush or writing to
Changes by Siegfried Gevatter siegfr...@gevatter.com:
Added file: http://bugs.python.org/file38913/slice_del.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12606
___
New submission from Anderson:
Correct me if I'm wrong, the struct module does not work with array of ints,
floats etc (just work with char in the form of strings). I think it should
since this are valid elements in C structs.
More specifically, consider I have this C struct
struct{
int
Ludovic Gasc added the comment:
@demian.brecht: I don't know when, but certainly that we will add in aiohttp
HTTP/2 support. If your implementation is enough modular, we could use some
stuff like we did with urllib and HTTP/1 support.
--
nosy: +Ludovic.Gasc
A. Jesse Jiryu Davis added the comment:
I've had a very hard time adding to the doc in a way that elucidates rather
than further obfuscating; see if you like this patch.
--
keywords: +patch
nosy: +emptysquare
Added file: http://bugs.python.org/file38916/issue23915.patch
Changes by Raúl Cumplido raulcumpl...@gmail.com:
--
nosy: +raulcd
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21108
___
___
Python-bugs-list
A.M. Kuchling added the comment:
Proposed patch against 3.5.
--
keywords: +patch
nosy: +akuchling
stage: test needed - patch review
Added file: http://bugs.python.org/file38915/issue17898.patch
___
Python tracker rep...@bugs.python.org
Changes by Siegfried Gevatter siegfr...@gevatter.com:
--
keywords: +patch
Added file: http://bugs.python.org/file38912/slice_del.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12606
___
Zachary Ware added the comment:
I'm ambivalent on whether to do it, but Marc is right that it's just a version
update in Tools/buildbot/external-common.bat and PCbuild/pyproject.vsprops.
--
assignee: - steve.dower
___
Python tracker
Eric V. Smith added the comment:
Updated patch with a few minor doc tweaks.
The one substantive change I did make was to add numeric_owner to the call to
self.chown() when setting directory owners. I believe this is correct, but I
need to convince myself and to write a test.
--
Added
Vincent Alquier added the comment:
Another issue should be addressed by patch...
When trying to guess the content-length, here is the code you find...
try:
thelen = str(len(body))
except TypeError as te:
[...]
The call to `len` will raise a `TypeError`
Cory Benfield added the comment:
I spoke to some people after my PyCon talk about this, and agreed that it would
be a good idea to split out the framing and HPACK stuff from hyper to make it
easier for people like aiohttp to prototype.
The framing layer is already available from PyPI[0] and
New submission from Piotr:
Skype WISPr and iPassConnect (and maybe other bots) return cookies as a comma
separated list. It's not a comma + space (which works).
C = cookies.SimpleCookie()
C.load('a=b,z=zz')
C['a']
Morsel: a='b,z=zz'
I wonder what would those bots do if there was a comma in a
Nick Coghlan added the comment:
+1 for a Py3k warning. Filing a pylint --py3k RFE may also be appropriate.
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16125
___
New submission from Zachary Ware:
(Brought up by 'Tronster' on docs@)
https://docs.python.org/3/tutorial/controlflow.html#function-annotations
In light of the PEP 484 and its clear intentions for function annotations, the
tutorial section on function annotations is out of date. It should be
New submission from Carol Willing:
Change Quickstart step 1 link to redirect to Section 1.1 Getting Started.
Currently, it redirects to 1.1.2 Getting the Source Code. For developers coming
from git, step 1.1.1 Version Control Setup would be helpful.
Feedback from PyCon 2015 Sprints suggest
Nick Coghlan added the comment:
Arnon is here at the PyCon 2015 sprints, so bringing the current status up to
date:
= Why *.hex()? =
* That's the name in PEP 358
* That's the name of the comparable float method
= Why add it to the builtin types? =
* To provide One Obvious Way To Do It,
Changes by Zachary Ware zachary.w...@gmail.com:
--
nosy: +zach.ware
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17769
___
___
Python-bugs-list
New submission from Nick Coghlan:
inspect.signature isn't currently handling builtin extension types correctly
- these show up as having neither __new__ *nor* __init__ as pure Python
callables, so the inspect.signature logic falls through into a currently
unhandled case.
_testcapi isn't
Larry Hastings added the comment:
Would this qualify as an easy bug we could throw to a sprinter?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23934
___
Larry Hastings added the comment:
I finally talked to someone (Thomas Wouters) about this. For something going
into trunk that will be part of 3.5, this is fine.
Please include a mention that the exception's text messages changed in
Misc/NEWS. I can help you write this if you want.
I'll
Changes by Łukasz Langa luk...@langa.pl:
--
keywords: +needs review
versions: +Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23310
___
A.M. Kuchling added the comment:
It looks like Antoine filed the precision-loss error as #19738 and that ticket
is now closed. I conclude there's nothing left to do on this ticket, so I'll
close it.
--
nosy: +akuchling
status: open - closed
___
Tina Zhang added the comment:
Link goes to 1.1.1 instead of 1.1
--
Added file: http://bugs.python.org/file38927/patch23931v0_1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23931
___
Usman Ehtesham Gul added the comment:
After discussing with Eric Snow, this case scenario is an edge case. The
assumption in the inspect module is that __func__ for a MethodType object is a
function. The MethodType should be used for functions and not methods.
Patch attached for this.
This
A. Jesse Jiryu Davis added the comment:
Attached patch adds and N keyword-only argument(s) to the TypeError message
if a function takes keyword-only arguments and the wrong number of positional
arguments is provided.
--
keywords: +patch
nosy: +emptysquare
Added file:
Maciej Szulik added the comment:
Lita thanks for your patch!. Are you able to address berkerpeksag comments from
review? Otherwise if you don't mind I'll take it over and I'll do that.
--
nosy: +maciej.szulik
___
Python tracker
Nick Coghlan added the comment:
James Powell is currently looking into this at the PyCon sprints.
The key problem appears to be the check that assumes obj.__init__ is
object.__init__ indicates that there's no user defined init or new method,
when in fact a builtin or extension type that only
Changes by Siegfried Gevatter siegfr...@gevatter.com:
Added file: http://bugs.python.org/file38930/slice_del.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12606
___
Anderson added the comment:
@wolma, That would work in this simple example. But in a more complicated case
this became inconvenient.
Actually I'm working with reading and writing in python an extremely C-oriented
file-type (MDV). For that I represent C-structs as python dics (e.q
Changes by Arnon Yaari wiggi...@gmail.com:
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9951
___
___
Python-bugs-list
Pam McA'Nulty added the comment:
This version fixes a few things after using review.
I still have some open questions:
o Where in unittest.rst should the StopTestRun documentation actually live?
I've put it right after the SkipTest exception. That doesn't feel perfect,
but I didn't see a
New submission from Larry Hastings:
Clinic was previously pretty confused about what things accepted bytes,
bytearray, buffer, robuffer, and rwbuffer. This is because the
documentation itself was somewhat confusing.
The documentation was recently cleaned up on these in trunk (including one
Larry Hastings added the comment:
Huh. Why didn't it attach my patch? Here it is.
--
Added file:
http://bugs.python.org/file38933/larry.clinic.buffer.conceptual.cleanup.1.txt
___
Python tracker rep...@bugs.python.org
Changes by Pam McA'Nulty pam...@webreply.com:
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10612
___
___
Changes by Siegfried Gevatter siegfr...@gevatter.com:
Added file: http://bugs.python.org/file38932/slice_del.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12606
___
Changes by Pam McA'Nulty pam...@webreply.com:
--
nosy: +kushal.das
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10612
___
___
Python-bugs-list
Joe Jevnik added the comment:
I have added a patch to update this with conditional compilation.
--
keywords: +patch
nosy: +ll
Added file: http://bugs.python.org/file38934/CAN_RAW_FD_FRAMES.patch
___
Python tracker rep...@bugs.python.org
Joe Jevnik added the comment:
To show where I got my sources:
https://github.com/torvalds/linux/commit/e2d265d3b587f5f6f8febc0222aace93302ff0be
There does not appear to be any new structures needed other than supporting the
constant.
--
nosy: +larry
Zachary Ware added the comment:
@Marin: That changeset is touching test_multiprocessing, not
ctypes.test.test_macholib.
--
nosy: +zach.ware
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17751
Kasia Jachim added the comment:
Tests for this bug + proposed fix.
--
keywords: +patch
nosy: +kjachim
Added file: http://bugs.python.org/file38919/fix_magic_in_init.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23310
Juti Noppornpitak added the comment:
I reworded to mention the coming changes regarding to PEP 484. The old writing
which mention about arbitariness is moved to the end of the function
annotations section as a warning.
--
keywords: +patch
nosy: +shiroyuki
Added file:
Tina Zhang added the comment:
adding patch!
--
keywords: +patch
Added file: http://bugs.python.org/file38921/patch23931.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23931
___
Kasia Jachim added the comment:
For Mock both the following tests fail, I would say it is an expected behavior.
def test_setting_magic_method_for_mock(self):
m = Mock()
m.configure_mock(**{'__str__.return_value': 14})
self.assertEqual(str(m), 14)
def
Eric V. Smith added the comment:
Note that this change will break code that subclasses TarFile and overrides
chown(), as suggested in msg233915. I'm not too concerned about that, since
chown() is not documented. Ideally it would be renamed to _chown(), but that's
probably a separate issue.
John Ehresman added the comment:
I've confirmed that the test included in the 3/25/15 patch fails without the
change to ffi.c. I think the 11/5/14 change fixed the bug for calling into a C
function and converting the return value, but did not address the callback
case. The new patch seems
A.M. Kuchling added the comment:
I suggest we just close this ticket. I tried producing a documentation patch
(attached), but they seem like a marginal improvement.
(I don't think the text in the docs such as 'gettext' (bound to
self.gettext()) is confusing; given the context, I think the
A.M. Kuchling added the comment:
Victor's patch has moved to https://github.com/python/tulip/issues/191 .
--
nosy: +akuchling
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23057
___
Roundup Robot added the comment:
New changeset 0acb8dcb8e0c by Zachary Ware in branch '3.4':
Issue #23932: Update the tutorial section on function annotations.
https://hg.python.org/cpython/rev/0acb8dcb8e0c
New changeset 75a6774ba070 by Zachary Ware in branch 'default':
Closes #23932: Merge
Zachary Ware added the comment:
Cleaned it up just a little bit and committed. Thanks for the patch, Juti!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23932
___
Wolfgang Maier added the comment:
are you looking for:
struct.pack('i'*4, *[0]*4)
?
--
nosy: +wolma
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23933
___
A.M. Kuchling added the comment:
Adding a link to a bitbucket repo.
--
hgrepos: +304
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17898
___
___
Roundup Robot added the comment:
New changeset 069dd1e347b4 by Zachary Ware in branch '2.7':
Issue #18402: Also look for 64 bit Perl in build_ssl.py.
https://hg.python.org/cpython/rev/069dd1e347b4
New changeset cf19bd089768 by Zachary Ware in branch '3.4':
Issue #18402: Also look for 64 bit
A.M. Kuchling added the comment:
I would apply this change to 3.4 and 3.5. Should I also backport it to 2.7? I
think the same bug applies there, though I haven't verified this or tried my
patch.
--
___
Python tracker rep...@bugs.python.org
Kasia Jachim added the comment:
Added more logging to the patch.
--
Added file: http://bugs.python.org/file38922/fix_magic_in_init_v2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23310
A.M. Kuchling added the comment:
I think that #17898 is in fact a duplicate of this bug, due to old values of k
and v confusing things. Mark's patch looks correct to me, but the patch in
#17898 also adds a test. If that patch gets reviewed, I'll apply it to
3.4/3.5, and possibly to 2.7.
Wolfgang Maier added the comment:
I'm able to reproduce this with Python 2.7.6 on Linux, but not 2.7.9 on Windows.
Is this a POSIX-only bug or has it been fixed in the meantime ?
--
nosy: +wolma
___
Python tracker rep...@bugs.python.org
Thomas Wouters added the comment:
I left some style comments in the rietveld review. However, a bigger questions
is whether we should change list at all. I think we should; the change is
fairly straightforward, there is some value in it and it's a good idea to keep
bytearray and other mutable
Juti Noppornpitak added the comment:
Based on the review
--
Added file: http://bugs.python.org/file38923/issue23932.r2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23932
___
Jeffrey Walton added the comment:
there's not much point in reporting bugs here about it.
Oh, sorry about that.
That page's contents look very outdated, by the way.
Yeah, there's a few opportunities for improvement.
--
___
Python tracker
Zachary Ware added the comment:
Michael, I failed to attribute you in the commit messages, sorry about that.
Thanks for the patch!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18402
Changes by Łukasz Langa luk...@langa.pl:
--
assignee: - lukasz.langa
nosy: +lukasz.langa
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23310
___
Maciej Szulik added the comment:
Moving this enhancement to python 3.5. I'm adding updated patch plus tests for
debug messages, updated what's new docs
--
nosy: +maciej.szulik
versions: +Python 3.5 -Python 3.4
Added file: http://bugs.python.org/file38924/issue16914.patch
Pam McA'Nulty added the comment:
Added unittest.StopTestRun exception. It's caught and handled in
testPartExecutor() - which is the same place SkipTest is caught.
If report=False, then it sets the result.haltTestRun attribute, which is a
signal to TestTextRunner to not generate any output.
Roundup Robot added the comment:
New changeset dc65187be892 by Zachary Ware in branch '2.7':
Attribute Michael Dorman for his initial patch on issue #18402.
https://hg.python.org/cpython/rev/dc65187be892
New changeset 19f6f339af7e by Zachary Ware in branch '3.4':
Attribute Michael Dorman for
201 - 300 of 309 matches
Mail list logo