Raymond Hettinger added the comment:
It is a bit late in the game for 2.7 micro-optimizations.
FWIW, I don't think these weren't oversights. There isn't really much of a use
case for the bool filter for strings and unicode inputs. And the case of tuple
inputs isn't used much (lists are for
Vinay Sajip added the comment:
I don't propose to make any changes to `fileConfig()`, for the following
reasons:
1. It's not a bug, because there is no requirement to do what you suggest. You
could (a) either not mention the handler in the config if you aren't going to
use it, (b) use a
Changes by Berker Peksag berker.pek...@gmail.com:
--
stage: - patch review
versions: +Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19119
___
Akira Li added the comment:
What do you think?
I would prefer to deprecate PIPE argument for subprocess.call():
issue DeprecationWarning in 3.5 and raise ValueError in 3.6+
I've uploaded a patch that issues the warning.
--
keywords: +patch
type: - enhancement
versions: +Python 3.5
Changes by Berker Peksag berker.pek...@gmail.com:
--
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11798
___
Joshua Landau added the comment:
That sounds OK to me. It's a bit of a non-issue once you know about it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22451
___
juj added the comment:
Hmm, that path does it for stdout=PIPE in subprocess.call only? It could
equally apply to stderr=PIPE in subprocess.call as well, and also to both
stdout=PIPE and stderr=PIPE in subprocess.check_call?
--
___
Python tracker
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22417
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22419
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22425
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22407
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22444
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22450
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
title: urllib.request.urlopen shoudl take a context (SSLContext) argument -
urllib.request.urlopen should take a context (SSLContext) argument
___
Python
Christian Heimes added the comment:
'to respect' is the wrong term. /nitpicking
The patch makes the code use the two env vars. Even with my patch the function
doesn't respect SSL_CERT_DIR and SSL_CERT_FILE because Windows' cert store is
still in use. On Linux and BSD the two env vars replace
New submission from Simon Zack:
Functions added by addTypeEqualityFunc is not used for comparing list elements
in assertListEqual, and only used in assertEqual.
It would be nice to have assertListEqual use functions added by
addTypeEqualityFunc for comparisons of list elements. I think this
Changes by Simon Zack simonz...@gmail.com:
--
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22452
___
___
Python-bugs-list
Antoine Pitrou added the comment:
Do we have tests for SSL_CERT_DIR and SSL_CERT_FILE being respected?
Otherwise, it might make sense to add one.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22449
Antoine Pitrou added the comment:
That sounds reasonable to me. Do you want to provide a patch?
See https://docs.python.org/devguide/ for guidelines.
--
nosy: +ezio.melotti, michael.foord, pitrou
stage: - needs patch
versions: +Python 3.5
___
Python
Sebastian Berg added the comment:
I am very sorry. The attached patch fixes this (not sure if quite right, but if
anything should be more general then necessary). One test fails, but it looks
like exactly the intended change.
--
Added file:
Changes by Antoine Pitrou pit...@free.fr:
--
resolution: - rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22451
___
Antoine Pitrou added the comment:
I think I agree with Serhiy. Augmenting the import dependencies from the re
module can have side effects. While the alternative (a custom Int subclass)
isn't extremely pretty, it does the job.
NamedIntConstant should be private, though.
--
Changes by Sebastian Berg sebast...@sipsolutions.net:
Added file: http://bugs.python.org/file36677/relaxed-strides-checking.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22445
___
Changes by Sebastian Berg sebast...@sipsolutions.net:
Added file: http://bugs.python.org/file36678/contiguous.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22445
___
Christian Heimes added the comment:
There is only a test case for ssl.get_default_verify_paths(), but not for
SSLContext or SSLSocket.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22449
Changes by Akira Li 4kir4...@gmail.com:
Added file:
http://bugs.python.org/file36679/subprocess-line-buffering-issue21332-ps5.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21332
___
Changes by Sebastian Berg sebast...@sipsolutions.net:
Added file: http://bugs.python.org/file36680/contiguous.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22445
___
Changes by Antoine Pitrou pit...@free.fr:
--
assignee: gregory.p.smith -
stage: - commit review
versions: -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21332
___
Antoine Pitrou added the comment:
The latest patch looks good to me.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21332
___
___
Akira Li added the comment:
@juj: DeprecationWarning is generated if PIPE is passed to call() as
any positional or keyword argument in particular stdin, stdout, stderr.
It also applies to check_call() that uses call() internally.
--
___
Python
Guido van Rossum added the comment:
OK, then if you want to review Serhiy's original patch that would be great.
On Sun, Sep 21, 2014 at 5:12 AM, Antoine Pitrou rep...@bugs.python.org
wrote:
Antoine Pitrou added the comment:
I think I agree with Serhiy. Augmenting the import dependencies
New submission from Chris Colbert:
This is how the macro is defined in object.h:
2.7
/* Helper for passing objects to printf and the like */
#define PyObject_REPR(obj) PyString_AS_STRING(PyObject_Repr(obj))
3.4
/* Helper for passing objects to printf and the like */
#define PyObject_REPR(obj)
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22452
___
___
Serhiy Storchaka added the comment:
NamedIntConstant should be private, though.
Agree. I'll add underscore to NamedIntConstant and makecode before committing
(as in enum patch).
--
___
Python tracker rep...@bugs.python.org
Changes by SilentGhost ghost@gmail.com:
--
title: PyUnicode_ functions not accessible in Limited API on Windows - ucs2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17432
___
Changes by SilentGhost ghost@gmail.com:
--
title: ucs2 - PyUnicode_ functions not accessible in Limited API on Windows
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17432
___
Serhiy Storchaka added the comment:
Following expression looks more clear to me:
c_d is not None and c_d.content_disposition == 'attachment'
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21079
Ezio Melotti added the comment:
Currently assertListEqual calls assertSequenceEqual, and assertSequenceEqual
doesn't use any function to compare list elements -- it just does if item1 !=
item2: (https://hg.python.org/cpython/file/default/Lib/unittest/case.py).
Checking the types of the two
Roundup Robot added the comment:
New changeset 38867f90f1d9 by Antoine Pitrou in branch '3.4':
Issue #21332: Ensure that ``bufsize=1`` in subprocess.Popen() selects line
buffering, rather than block buffering.
https://hg.python.org/cpython/rev/38867f90f1d9
New changeset 763d565e5840 by Antoine
Antoine Pitrou added the comment:
Pushed! Thank you!
--
resolution: - fixed
stage: commit review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21332
___
STINNER Victor added the comment:
The first place to warn uses about dangerous function calls is the
documentation, and your patch doesn't touch the documentation.
You can for example suggest to use check_output(), getstatusouptut() or
getoutput().
--
Sworddragon added the comment:
It works if -q 0 is given without the need of a workaround. So this was just
a feature of apt that was causing this behavior. I think here is nothing more
to do so I'm closing this ticket.
--
resolution: - not a bug
status: open - closed
Roundup Robot added the comment:
New changeset 4baa474b4f31 by Serhiy Storchaka in branch '2.7':
Issue #22423: Unhandled exception in thread no longer causes unhandled
https://hg.python.org/cpython/rev/4baa474b4f31
New changeset 176579df4edd by Serhiy Storchaka in branch '3.4':
Issue #22423:
New submission from Sworddragon:
There is currently shlex.split() that is for example useful to split a command
string and pass it to subprocess.Popen with shell=False. But I'm missing a
function that does the opposite: Building the command string from a list that
could for example then be
Serhiy Storchaka added the comment:
Thank you Senthil for your review. Committed with you suggestion.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22423
___
Roundup Robot added the comment:
New changeset c925b436467a by Serhiy Storchaka in branch '2.7':
Issue #22423: Fixed debugging output of the GROUPREF_EXISTS opcode in the re
https://hg.python.org/cpython/rev/c925b436467a
New changeset e99a1df8db36 by Serhiy Storchaka in branch '3.4':
Issue
Serhiy Storchaka added the comment:
Committed with Antoine's suggestion. Thank you Antoine.
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22415
Roundup Robot added the comment:
New changeset d4630b1c8792 by Serhiy Storchaka in branch '2.7':
Fixed issue #22415 number in Misc/NEWS for changeset c925b436467a.
https://hg.python.org/cpython/rev/d4630b1c8792
New changeset 7b92518b2c21 by Serhiy Storchaka in branch '3.4':
Fixed issue #22415
Stefan Krah added the comment:
Thanks! I still have to review the patch in depth, but generally
I'm +1 now for relaxing the contiguity check.
Curiously enough the existing code already considered e.g. shape=[1],
strides=[-5] as contiguous.
--
___
Antoine Pitrou added the comment:
Patch looks of to me.
--
versions: +Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22435
___
___
Ben Roberts added the comment:
' '.join(shlex.quote(x) for x in split_command)
--
nosy: +roippi
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22454
___
Serhiy Storchaka added the comment:
Here is preliminary patch which fixes case-insensitive regular expression
matching of unicode strings. It is incomplete, it needs applying patches from
issue17381, which fixes other aspects of case-insensitive matching.
One bug is left for Turkish letters.
Serhiy Storchaka added the comment:
Here is a patch which removes static limit. It is much more complicated than
the first patch and I prefer first apply the first patch. Aren't 1000 groups
enough for everyone?
--
Added file: http://bugs.python.org/file36682/re_maxgroups_dynamic.patch
Serhiy Storchaka added the comment:
If this is error, should the patch be applied to maintained releases?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22362
___
Sworddragon added the comment:
Yes, it is possible to do this with a few other commands. But I think it would
be still a nice enhancement to have a direct function for it.
--
___
Python tracker rep...@bugs.python.org
New submission from Buck Golemon:
I have fixed the issue in my branch here:
https://github.com/bukzor/cpython/commit/013e689731ba32319f05a62a602f01dd7d7f2e83
I don't propose it as a patch, but as a proof of concept and point of
discussion.
If there's no chance of shipping a fix in 2.7.9, feel
New submission from Arfrever Frehtes Taifersar Arahesis:
__bases__ is documented, but __base__ is not.
$ grep -r __base__ Doc
$ grep -r __bases__ Doc
Doc/c-api/object.rst:are different objects, *B*'s :attr:`~class.__bases__`
attribute is searched in
Doc/c-api/object.rst:a depth-first fashion
Raymond Hettinger added the comment:
I think that __base__ was intended to be a non-guaranteed implementation detail
for new-style classes just like __dictoffset__ and __flags__ .
--
nosy: +gvanrossum, rhettinger
___
Python tracker
Guido van Rossum added the comment:
Raymond is correct. __base__ is closely tied to the C implementation. I think
it might be worth a mention, but with an explicit note that it is
CPython-specific. It is sometimes useful, e.g. when wondering why a certain
case of multiple inheritance is
Ben Roberts added the comment:
For the record I am on board with a shlex.join. Even though the implementation
is simple:
- It is not obvious to many users if there are any gotchas by doing a '
'.join yourself, /even if/ you know that strings with spaces in them need to
pass through
Arfrever Frehtes Taifersar Arahesis added the comment:
__base__ exists also in Jython and PyPy.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22456
___
Changes by Ned Deily n...@acm.org:
--
nosy: +lemburg, ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22455
___
___
Python-bugs-list
Ben Roberts added the comment:
The major issue (there are other issues as well but not so difficult) is
whether nlargest and nsmallest should support iterator that could be endless
iterator or reject it (by checking __len__ attribute) straight away.
Well, failing with an exception isn't
Martin Panter added the comment:
I suspect the $PATH example is a bad example. On my Linux setup, my initial
PATH value is a customized path. After popping it and calling system(), I see a
simpler default path, which is probably re-initialized somewhere else.
I suspect there is no
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1159
___
___
Python-bugs-list
Ben Roberts added the comment:
Attached patch fixes the tests.
--
Added file: http://bugs.python.org/file36683/fix_heapq_tests.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19119
___
Kevin Christopher Henry added the comment:
I'm interested in working on this, but it's not clear to me if this has been
accepted as a bug. I converted a large project recently and was shocked to find
that all 100+ files were broken because of the needless from
future_builtins... line.
New submission from Robert Collins:
python -m unittest discover -t . foo
where foo is a package
will not trigger load_tests in foo/__init__.py.
To reproduce:
mkdir -p demo/tests
cd demo
cat EOF tests/__init__.py
import sys
import os
def load_tests(loader, tests, pattern):
print(HI WE
Akira Li added the comment:
Victor, the message in my patch is copied almost verbatim from the
current subprocess' documentation [1]
[1]
https://hg.python.org/cpython/file/850a62354402/Doc/library/subprocess.rst#l57
People use `call(cmd, stdout=PIPE)` as a *broken* way to suppress
output
Changes by mike bayer mike...@zzzcomputing.com:
--
nosy: +zzzeek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22457
___
___
Python-bugs-list
70 matches
Mail list logo