Roundup Robot added the comment:
New changeset c2830debb15a by Ned Deily in branch '2.7':
Issue #14018: Backport OS X installer updates from 3.3.
http://hg.python.org/cpython/rev/c2830debb15a
New changeset d54330c8daaa by Ned Deily in branch '3.2':
Issue #14018: Backport OS X installer updates
Thomas Heller added the comment:
Hope it is ok to assign this to you, vinay.
--
assignee: - vinay.sajip
nosy: +vinay.sajip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17028
___
Roundup Robot added the comment:
New changeset a242ac99161f by Serhiy Storchaka in branch '2.7':
Issue #16979: Fix error handling bugs in the unicode-escape-decode decoder.
http://hg.python.org/cpython/rev/a242ac99161f
New changeset 084bec5443d6 by Serhiy Storchaka in branch '3.2':
Issue
Serhiy Storchaka added the comment:
Until subtests added an explicit call looks better to me. And when subtests
will be added we will just add subtest inside the helper function.
--
___
Python tracker rep...@bugs.python.org
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16980
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16979
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16975
Roundup Robot added the comment:
New changeset 625c397a7283 by Serhiy Storchaka in branch '3.3':
Issue #16971: Fix a refleak in the charmap decoder.
http://hg.python.org/cpython/rev/625c397a7283
New changeset 02c4ecc87f74 by Serhiy Storchaka in branch 'default':
Issue #16971: Fix a refleak in
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16971
Nick Coghlan added the comment:
I like the idea of the subTest API being something like:
def subTest(self, _id, *, **params):
However, I'd still factor that in to the reported test ID, not into the
exception message.
--
___
Python tracker
New submission from Tuure Laurinolli:
As per documentation at http://docs.python.org/2/library/urllib2.html the
file-like object returned by urllib2.urlopen() should have methods geturl() and
info(). It actually also has getcode(), which appears to do the same as
getcode() on urllib.urlopen()
Petri Lehtinen added the comment:
+1 for the documentation changes, which should be applied to 2.7 as well. The
deprecation is the only thing to go to 3.4 only, if it's done at all.
--
nosy: +petri.lehtinen
versions: +Python 2.7, Python 3.3
___
Petri Lehtinen added the comment:
Also note that getcode() is already documented in urllib (not urllib2)
documentation:
http://docs.python.org/2/library/urllib.html#urllib.urlopen
--
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
New patch:
- sys.setdefaultcloexec() takes again an argument, so
sys.setdefaultcloexec(False) is allowed
- add cloexec parameter to select.devpoll(), select.kqueue() and select.epoll()
- when a function accepts a file name and a file descriptor: the cloexec
STINNER Victor added the comment:
My TODO list is almost empty: the implementation is done. I just see possible
enhancement on Windows: socket.socket() and os.dup() can use an atomic flag to
set close-on-exec if native functions are used (WSASocket, DuplicateHandle)
instead of the POSIX API.
New submission from STINNER Victor:
Attached patches use the new cloexec parameter added by the PEP 433 (see issue
#17036).
cloexec_fs_walk.patch: [security] don't leak a file descriptors of directories
to a child processes
cloexec_listening_socket.patch: [security] don't leak a listening
Changes by STINNER Victor victor.stin...@gmail.com:
Added file: http://bugs.python.org/file28892/cloexec_subprocess.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17070
___
New submission from Antoine Pitrou:
def f(a, self): pass
...
sig = inspect.signature(f)
sig.bind(1, 2)
inspect.BoundArguments object at 0x7f607ead1e28
sig.bind(a=1, self=2)
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: bind() got multiple values for argument
STINNER Victor added the comment:
revert enhancements using cloexec=True to simplify the patch: will be done in
another issue
I just created the issue #17070 to track this task.
--
___
Python tracker rep...@bugs.python.org
Changes by STINNER Victor victor.stin...@gmail.com:
Added file: http://bugs.python.org/file28889/cloexec_listening_socket.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17070
___
Changes by STINNER Victor victor.stin...@gmail.com:
Added file: http://bugs.python.org/file28890/cloexec_log_file.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17070
___
Changes by STINNER Victor victor.stin...@gmail.com:
Added file: http://bugs.python.org/file28891/cloexec_misc.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17070
___
Changes by Antoine Pitrou pit...@free.fr:
--
dependencies: +Signature.bind() fails with a keyword argument named self
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17015
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17071
___
___
STINNER Victor added the comment:
My TODO list is almost empty
Oh, I forgot one point: I stil don't know if the close-on-exec flag of
file descriptors of pass_fds argument of subprocess.Popen should be
set. If close-on-exec flag is set globally, it's not convinient to
have to clear the flag
Changes by STINNER Victor victor.stin...@gmail.com:
--
title: Use the new cloexec to improve security and avoid bugs - PEP 433: Use
the new cloexec to improve security and avoid bugs
___
Python tracker rep...@bugs.python.org
Changes by STINNER Victor victor.stin...@gmail.com:
Removed file: http://bugs.python.org/file28837/9bdfa1a3ea8c.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17036
___
Yury Selivanov added the comment:
I'll take a look later today.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17071
___
___
Python-bugs-list
STINNER Victor added the comment:
This issue is fixed in my implementation of the PEP 433: see #17036.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16946
___
New submission from Hakim Taklanti:
from decimal import Decimal
from decimal import ROUND_UP, ROUND_DOWN
a = Decimal(-3.86)
b = Decimal(5.73)
a_up = a.quantize(Decimal(.1), ROUND_UP)
a.quantize(Decimal(.1), ROUND_UP) # -3.8 expected
Decimal('-3.9')
a.quantize(Decimal(.1), ROUND_DOWN) #
Mark Dickinson added the comment:
Indeed, that looks wrong. I'll take a look.
--
assignee: - mark.dickinson
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17072
___
Mark Dickinson added the comment:
Sorry, I take that back. The behaviour is correct: ROUND_UP rounds away from
zero; ROUND_DOWN towards zero. For rounding towards +/- infinity, you want
ROUND_CEILING and ROUND_FLOOR:
Python 2.7.3 |EPD 7.3-1 (32-bit)| (default, Apr 12 2012, 11:28:34)
Hakim Taklanti added the comment:
Indeed, perhaps to enhance the documentation. Thanks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17072
___
New submission from Serhiy Storchaka:
The proposed patch fixes an integer overflow in such cases:
1. When an authorizer callback (registered with set_authorizer()) returns an
integer which doesn't fit into C int. Now integers out of C int range
interpreted as SQLITE_DENY (as any non-integer
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file28893/sqlite_int_overflow-2.7.patch
Added file: http://bugs.python.org/file28894/sqlite_int_overflow-3.2.patch
Added file:
Serhiy Storchaka added the comment:
Sqlite module part extracted to issue17073.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15989
___
___
Zachary Ware added the comment:
Right you are, Chris. v4 has a comment added to regrtest.runtest_inner
pointing back to this issue.
Also in v4, ReapedSuite has been moved to test.support. At least one other
test module (test_pydoc) uses the same idiom as test_concurrent_futures, and so
New submission from Zearin:
When reading the docs, I noticed that the capitalization and formatting of the
Python constants ``True``, ``False``, and ``None`` were inconsistent.
The attached patch contains a fix for all such occurrences under
``/Doc/library/``.
(I **think** I correctly made
Changes by Zearin zea...@users.sourceforge.net:
--
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17074
___
___
New submission from Aaron Sherman:
This documentation states that libraries can turn off logging by adding a
NullHandler:
http://docs.python.org/2/howto/logging.html#configuring-logging-for-a-library
This is not entirely true. It only holds true if the application which calls
the library has
New submission from Thomas Wouters:
The new xattr support in shutil causes shutil.copytree and shutil.copy2 to fail
inelegantly on (source) filesystems that do not support xattrs (like NFS):
# /home/twouters does not support xattrs
os.listxattr(/home/twouters/foo)
Traceback (most recent call
Roundup Robot added the comment:
New changeset 3a1ac42435f9 by Serhiy Storchaka in branch '3.2':
Issue #12004: Fix an internal error in PyZipFile when writing an invalid
http://hg.python.org/cpython/rev/3a1ac42435f9
New changeset 678320c7f63d by Serhiy Storchaka in branch '3.3':
Issue #12004:
Serhiy Storchaka added the comment:
Thank you for the patch.
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12004
Chris Jerdonek added the comment:
This has already been proposed in issue 15580. By the way, you don't always
want to replace true with ``True``. The former has a different
connotation/meaning which is boolean true rather than the object True.
--
nosy: +chris.jerdonek
resolution: -
Zearin added the comment:
Ah; I did look for dupes, but didn’t find it. (So many issues…!)
Thanks for pointing me in the right direction.
By the way, you don't always want to replace true with ``True``.
The former has a different connotation/meaning which is boolean true =
rather than the
New submission from Jeremy Kloth:
Attached is a patch to test_tools that gets it back to a run-able state.
--
components: Tests
files: test_tools.diff
keywords: patch
messages: 180925
nosy: jkloth, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Fix test_tools
Antoine Pitrou added the comment:
Here is a patch.
--
keywords: +patch
Added file: http://bugs.python.org/file28900/sig_bind_self.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17071
Chris Jerdonek added the comment:
This documentation states that libraries can turn off logging by adding a
NullHandler:
I don't think that's what the documentation says. It says, If for some reason
you don’t want these messages printed *in the absence of any logging
configuration* [my
Zearin added the comment:
I recently attempted to enhance the documentation in #17074. While I wasn’t
linking all occurrences of True/False/None, I did mark them up as
``True``/``False``/``None``. Additionally, I made sure that these were (when
appropriate) capitalized.
I really disagree
Chris Jerdonek added the comment:
Yes, I know. I went through all the occurrences one by one, and I tried to
take that into account.
See issue 4945 for a discussion like this. Might be relevant to what you have
in mind.
--
___
Python tracker
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +hynek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17076
___
___
Python-bugs-list mailing
Zearin added the comment:
Note: Javascript has something analogous to Python’s ``==`` and ``is``.
In JS:
0 == false
true
0 === false
false
1 == true
true
1 === true
false
Perhaps this discrepancy could be fixed in the JSON processing?
--
nosy: +zearin
Chris Jerdonek added the comment:
This has already been proposed in issue 15580.
By the way, I should have said something along the same lines. Issue 15580
is about eliminating uses of :const:`None`, etc, whereas this targets a
different case. But it is similar in scope so the same
Zearin added the comment:
By the way, I should have said something along the same lines. Issue 15580
is about eliminating uses of :const:`None`, etc, whereas this targets a
different case. But it is similar in scope so the same discussion/reasons
apply.
Yep! I read, and understood the
R. David Murray added the comment:
I prefer to have some of them be links and some of them be code markup. That
is, I think there is value in having some of them be links. As Georg said, the
devguide rule is more about it not being *necessary* to waste time marking them
*all* up as
Łukasz Langa added the comment:
Thanks for your patch. A couple of remarks:
- try to adhere to PEP 8 in your patches (most notably here: 80 characters per
line, please). The rest of test_ftplib.py is also somewhat guilty in that
regard but that shouldn't discourage you to do the right thing.
R. David Murray added the comment:
Note, by the way, that I apply the same rule to most link markup. If I refer
to, say, a module name in a paragraph or set of related paragraphs multiple
times, I will typically only mark up the first occurrence as a :mod: link.
It's not a hard and fast
R. David Murray added the comment:
I would be very careful trying to reason by analogy there. ==, is, and
javascripts === are rather different in detail, from what I understand. Nor do
I see what javascript has to do with this issue :)
As far as the remaining documentation issue here, IMO
Yury Selivanov added the comment:
Thanks Antoine, the patch looks good to me.
The only thing I would have done differently myself is to name self as
__bind_self__ (with two underscores at the end).
Could you please apply the patch?
--
___
Python
Michał Jastrzębski added the comment:
Hello,
Thanks for tips. How about now?
--
Added file: http://bugs.python.org/file28901/ftpcp_test.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17055
Chris Jerdonek added the comment:
It might be worth clarifying in the devguide then if True/False/etc shouldn't
be treated differently from other things. The current wording suggests that
links shouldn't be used at all in those cases (e.g. given that they’re
fundamental to the language and
R. David Murray added the comment:
Indeed. The whole point of that section is to explain how the library can
refrain from spewing unwanted logging *if the application doesn't care about
logging*. If the application does care (has configured logging), it would be
wrong to block the logging.
Michał Jastrzębski added the comment:
My mistake, this one is better.
--
Added file: http://bugs.python.org/file28902/ftpcp_test.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17055
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17074
___
___
R. David Murray added the comment:
True. I disagree with the existing language, as I've indicated, but I'll leave
it up to Georg as doc master.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15580
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15580
___
___
Roundup Robot added the comment:
New changeset 49fd1c8aeca5 by Antoine Pitrou in branch '3.3':
Issue #17071: Signature.bind() now works when one of the keyword arguments is
named ``self``.
http://hg.python.org/cpython/rev/49fd1c8aeca5
New changeset 4ff1dc8c0a3c by Antoine Pitrou in branch
Antoine Pitrou added the comment:
Committed to 3.3 and default!
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17071
Antoine Pitrou added the comment:
Here is a new patch, making all assert_*_call methods work as well as
autospeccing, and adding tests. Not sure I'm forgetting something else.
--
Added file: http://bugs.python.org/file28903/issue17015-3.patch
___
Thomas Wouters added the comment:
ping (you know why :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15505
___
___
Python-bugs-list mailing
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15505
___
___
Python-bugs-list
Hynek Schlawack added the comment:
Could you add regression tests to your patch please?
--
assignee: - hynek
priority: high - normal
type: crash - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17076
Zachary Ware added the comment:
Since the older Windows project files were removed, v10 removes the patches to
them.
Everything else still applies cleanly.
Also, in the spirit of what Brett said in 16651 about not re-implementing
blindly, I did just look up what Jython, IronPython, and PyPy
New submission from Adam Kellas:
If you use safe_substitute and try to use a variable reference style other than
${foo}, you will find that it assumes ${foo} style. In particular, when
evaluating $[foo] (square braces) and 'foo' is not defined, safe_substitute
will put the string back
Zachary Ware added the comment:
I failed to mention; v4 also removes setUpModule() which was present in the
first 3 patches. With 16935 fixed, setUpModule would be unnecessary.
--
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
self doesn't need to have a name, you can use:
def bind(*args, **kw):
self = args[0]
args = args[1:]
To accept any name ;-)
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
Indeed, there were several solutions to this.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17071
___
___
Sven Brauch added the comment:
Hm, I'm still getting the same error messages from the review tool which I
described earlier; I can neither comment nor add patches.
So, I'll have to abuse the bug report again:
Thanks for the review. Is it possible you selected the wrong patch file for the
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17078
___
___
Python-bugs-list
Changes by Zachary Ware zachary.w...@gmail.com:
--
components: Tests
files: test_ctypes_discovery.diff
keywords: patch
nosy: brett.cannon, ezio.melotti, zach.ware
priority: normal
severity: normal
status: open
title: Fix test discovery for test_ctypes.py
type: behavior
versions: Python
Roundup Robot added the comment:
New changeset 0880e0f859e0 by Vinay Sajip in branch 'default':
Closes #17028: Allowed Python arguments to be supplied to launcher.
http://hg.python.org/cpython/rev/0880e0f859e0
--
nosy: +python-dev
resolution: - fixed
stage: patch review -
Roundup Robot added the comment:
New changeset 7e4c5914ba76 by Michael Foord in branch '2.7':
Issue 15505. unittest.installHandler and non callable signal handlers
http://hg.python.org/cpython/rev/7e4c5914ba76
--
nosy: +python-dev
___
Python tracker
Roundup Robot added the comment:
New changeset 48c5c632d212 by Michael Foord in branch '3.2':
Closes issue 15505. unittest.installHandler and non-callable signal handlers.
http://hg.python.org/cpython/rev/48c5c632d212
--
resolution: - fixed
stage: patch review - committed/rejected
STINNER Victor added the comment:
I tested bc88690df059.patch on Solaris 9: test_os failed on
openpty(cloexec=True). It looks like setting close-on-exec on master_fd must be
done after grantpt().
--
___
Python tracker rep...@bugs.python.org
Barry A. Warsaw added the comment:
See PEP 292 and the section titled Why `$' and Braces?
http://www.python.org/dev/peps/pep-0292/
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17078
___
Changes by Bartosz S tosz...@gmail.com:
--
nosy: +toszter
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14037
___
___
Python-bugs-list mailing
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
--
nosy: +chris.jerdonek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14037
___
___
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
--
nosy: +chris.jerdonek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14039
___
___
Nikolaus Rath added the comment:
Alright, it *finally* happened again.
Attributes of the response object are:
._method: GET,
.chunked: 0,
.length: 9369540
.chunk_left: UNKNOWN,
.status: 200
.reason OK,
.version: 11,
.will_close: False
--
___
Chris Jerdonek added the comment:
Have you tried setting the metavar property on the return value of
add_subparsers()? I tried this, and it seems to work.
It looks like the logic for _metavar_formatter() is the same no matter what the
action type (specifically _SubParsersAction in this
Chris Jerdonek added the comment:
Actually, it looks like add_subparsers() may already support passing a metavar
argument, but it's just not documented?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14039
Mitchell Model added the comment:
Ping. I just noticed that this is still unresolved in the Python 3.3 docs. This
should be closed, with or without my suggested change.
--
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
Mitchell Model added the comment:
I still think the Exception class hierarchy should be described in the sqlite3
module documentation. Someone should decide one way or another and close this
issue.
--
___
Python tracker rep...@bugs.python.org
Ramchandra Apte added the comment:
bump...
--
nosy: +ramchandra.apte
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12883
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
On what platform it hangs?
Note that communicate() currently works only with bytes on 3.2 (issue16903).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17077
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
status: pending - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9536
___
Antoine Pitrou added the comment:
length: 9369540 indicates you haven't read the whole advertised
Content-Length. Is it possible the server shuts down the TCP connection even
before the whole Content-Length has been sent?
--
___
Python tracker
97 matches
Mail list logo