Changes by Zachary Ware zachary.w...@gmail.com:
Added file: http://bugs.python.org/file37060/issue17896-2.7.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17896
___
Changes by Zachary Ware zachary.w...@gmail.com:
Removed file: http://bugs.python.org/file30113/move_externals.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17896
___
Zachary Ware added the comment:
I don't think we're on the same page here, Terry, so here's some patches and a
wall of text to hopefully make me clearer.
In particular, I don't understand what you mean by merge multiple tcltk
directories in isolated build directories, as the merge and
Changes by Zachary Ware zachary.w...@gmail.com:
Added file: http://bugs.python.org/file37059/issue17896-3.4.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17896
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +ezio.melotti, michael.foord
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22756
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22757
___
___
Changes by Antoine Pitrou pit...@free.fr:
--
versions: +Python 3.5 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3453
___
___
New submission from Tim Graham:
I noticed some failing Django tests on Python 3.2.6 the other day. The
regression is caused by this change:
https://github.com/python/cpython/commit/572d9c59a1441c6f8ffb9308824c804856020e31
Behavior before that commit (and on other version of Python even after
Antoine Pitrou added the comment:
Is it a normal use of SimpleCookie? The docs don't seem to imply it:
C = cookies.SimpleCookie()
C.load(chips=ahoy; vienna=finger) # load from a string (HTTP header)
In any case, it's up to Georg to decide. But changeset
Antoine Pitrou added the comment:
Can you give a pointer to the failing Django test, by the way?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22758
___
Tim Graham added the comment:
I wasn't sure if it was expected behavior or not. I'm attaching a file with the
list of failing tests on Django's master.
Perhaps more useful is a reference to the problematic usage in Django:
Antoine Pitrou added the comment:
Ah, so it's about round-tripping between SimpleCookie.__str__() and
SimpleCookie.__init__(). That sounds like a reasonable behaviour to preserve
(and easier than parsing arbitrary Set-Cookie headers). IMO we should also add
for tests for it in other versions.
Georg Brandl added the comment:
OK, so there are two root issues here:
* Django uses __init__(str()) roundtripping, which is not explicitly supported
by the library, and worked by accident with previous versions. That it works
again with 3.3+ is another accident, and a bug.
(The change for
Nick Coghlan added the comment:
Yes, switching the subprocess invocation in test_capi.py to universal newlines
mode and joining the expected output with '\n' sounds like the right test case
fix to me.
As far as the printf() change goes, I'm not really the right person to ask -
all my Windows
Nick Coghlan added the comment:
One last thing: we may also want to update the C API docs to explicitly point
out the discrepancy in handling of '\n' on Windows between printf() in VC14+
(which no longer does the '\r\n' substitution) and the print functions in the
Python C API (which will
Lorenz Quack added the comment:
sorry for the delay but here is a new patch with a test.
I changed the strategy for fixing the bug because the dealing with the opening
parenthesis became to complicated.
So, now I simply check whether the match actually startswith the search phrase
before
Changes by Lorenz Quack d...@amberfisharts.com:
Removed file: http://bugs.python.org/file37063/rlcompleter_22141.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22141
___
Changes by Lorenz Quack d...@amberfisharts.com:
Added file: http://bugs.python.org/file37064/rlcompleter_22141.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22141
___
Lorenz Quack added the comment:
Hi,
here finally the updated patch with test case.
It depends on and should be applied after the patch included in issue22141.
This patch does changes two things:
1) completions are now unique
2) completions are now in no specific order
I had to touch some
R. David Murray added the comment:
That information should also go in the porting notes section of the 3.5 What's
New, but clearly labeled (if I understand correctly) as applying only to
applications that embed python on Windows.
--
___
Python
Daniel Farrell added the comment:
An emerging workflow is using Docker for a Python environment.
This applies to Vagrant environments as well (VirtualBox shared folders, tests
fail).
--
nosy: +dfarrell07
___
Python tracker rep...@bugs.python.org
Steve Dower added the comment:
I think it's also in any extension that prints directly to the console without
going through the Python IO machinery.
I'll make the test change in default, since that's what the os.linesep is
trying to achieve anyway, and modify the porting notes in my branch,
Antoine Pitrou added the comment:
I agree this deserves fixing, and the patch looks basically ok. It would be
nice to add a test, though (by mocking os.link()).
Éric, are you still here, or should someone else take over?
--
___
Python tracker
New submission from Hristo Venev:
$ touch a
c: stat(a/x, ...) - errno=ENOTDIR
$ python
pathlib.Path('a/x').exists()
This should return False and not throw an exception.
Patch not tested.
--
files: py.patch
keywords: patch
messages: 230214
nosy: h.venev
priority: normal
severity:
Éric Araujo added the comment:
I can’t make any commitment to core Python at this time. I still read all
email and can be available for guidance or questions about obscure parts of
distutils.
(Ideally I would find someone willing to be mentored to take over maintenance.)
--
New submission from Michael Del Monte:
Easily reproduced:
re.sub('x', 'a', x*20, re.S)
returns ''
--
components: Regular Expressions
messages: 230216
nosy: ezio.melotti, mgdelmonte, mrabarnett
priority: normal
severity: normal
status: open
title: re.sub does only
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22760
___
___
Python-bugs-list
Changes by Ugra Dániel daniel.u...@gmail.com:
--
nosy: +daniel.ugra
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22570
___
___
Python-bugs-list
Peter Otten added the comment:
This is not a bug; the signature of re.sub() is
sub(pattern, repl, string, count=0, flags=0)
and the fourth argument thus the 'count' delimiting the number of substitutions
that you accidentally specify as
import re
re.S
16
I recommend that you use a keyword
Georg Brandl added the comment:
The fourth parameter is not flags, but count, the max. number of
substitutions. flags is the fifth parameter, or give it as a keyword
argument.
--
nosy: +georg.brandl
resolution: - not a bug
status: open - closed
STINNER Victor added the comment:
This bug report is common. An enhancement would be to make the count parameter
a keyword only parameter. Would it break a lot of code?
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
Ezio Melotti added the comment:
See #11957.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22760
___
___
Python-bugs-list mailing list
Hristo Venev added the comment:
Tested and works.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22759
___
___
Python-bugs-list mailing list
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +pitrou
stage: - test needed
type: - behavior
versions: +Python 3.4, Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22759
___
Roundup Robot added the comment:
New changeset 767fd62b59a9 by Victor Stinner in branch 'default':
Issue #11957: Explicit parameter name when calling re.split() and re.sub()
https://hg.python.org/cpython/rev/767fd62b59a9
--
nosy: +python-dev
___
Georg Brandl added the comment:
os.path.exists() ignores *all* OSErrors from stat. This is probably too broad,
but only ignoring ENOENT is probably too narrow.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
I suggest to make the 2 last parameters of re.sub(), re.subn() and re.split()
parameters as keyword-only. It will break applications using count and maxsplit
parameters as index parameters, but it's easy to fix these applications if they
want to support also
Changes by STINNER Victor victor.stin...@gmail.com:
--
resolution: not a bug - duplicate
superseder: - re.sub confusion between count and flags args
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22760
Changes by STINNER Victor victor.stin...@gmail.com:
--
resolution: not a bug - duplicate
superseder: - re.sub confusion between count and flags args
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17663
Changes by STINNER Victor victor.stin...@gmail.com:
--
resolution: not a bug - duplicate
superseder: - re.sub confusion between count and flags args
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15537
Hristo Venev added the comment:
ENAMETOOLONG and possibly ELOOP should also return False.
EACCES, EOVERFLOW and ENOMEM should probably be forwarded.
EFAULT should not happen.
--
___
Python tracker rep...@bugs.python.org
Changes by STINNER Victor victor.stin...@gmail.com:
--
resolution: not a bug - duplicate
superseder: - re.sub confusion between count and flags args
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11947
STINNER Victor added the comment:
Confusion between count/maxplit and count parameters is common, duplicated
issues:
* Issue #22760
* Issue #17663
* Issue #15537
* Issue #12875
* Issue #12078
* Issue #11947
See also issue #13385 which proposed an explicit re.NOFLAGS flag.
--
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11957
___
___
Vajrasky Kok added the comment:
Thanks, Berker Peksag, for the review. Here is the updated patch with the test.
--
Added file: http://bugs.python.org/file37068/better_err_listfuncs_trace_v2.patch
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 9d36bf887be3 by Zachary Ware in branch '3.4':
Issue #22173: Update lib2to3 tests to use unittest test discovery.
https://hg.python.org/cpython/rev/9d36bf887be3
New changeset 179ccc48566f by Zachary Ware in branch 'default':
Closes #22173: Merge
Zachary Ware added the comment:
Thanks, Ezio!
--
assignee: - zach.ware
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22173
___
___
Phil Elson added the comment:
I just wanted to say that I am seeing the same issue with similar build flags
for the xlc compiler.
Finding the correct compile flags may well be the problem here.
For the record, since I think this is related to the flags which are being
passed to os.open, I've
Robert Collins added the comment:
Oh, one thought - in testtools we split out 'docs for test writers' and 'docs
for framework folk'. That would facilitate getting runTest out of test writers
face while still documenting it appropriately.
Related to that is my ongoing push to split the
Changes by Robert Collins robe...@robertcollins.net:
--
title: There is no standard TestCase.runTest implementation - Documentation of
TestCase.runTest is incorrect and confusing
___
Python tracker rep...@bugs.python.org
Marc-Andre Lemburg added the comment:
Jean Christophe: Please have a look at the patch for ticket
http://bugs.python.org/issue22681 as example of the doc patch.
Thanks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21081
Roundup Robot added the comment:
New changeset 2f17d71ec53f by Robert Collins in branch 'default':
Close #22756: Improve the test output for some assertEqual tests.
https://hg.python.org/cpython/rev/2f17d71ec53f
--
nosy: +python-dev
resolution: - fixed
stage: - resolved
status: open -
Roundup Robot added the comment:
New changeset 708b2e656c1d by Robert Collins in branch 'default':
Close #7559: ImportError when loading a test now shown as ImportError.
https://hg.python.org/cpython/rev/708b2e656c1d
--
nosy: +python-dev
resolution: - fixed
stage: patch review -
Serhiy Storchaka added the comment:
Or issue22682.
Needed:
* The codec itself (in Lib/encodings/ directory).
* Entries in aliases table (Lib/encodings/aliases.py).
* A row in encodings table (Doc/library/codecs.rst).
* An entry in What's New (Doc/whatsnew/3.5.rst).
* May be addition in
Serhiy Storchaka added the comment:
Thank you for your patch Valentina. But it makes flags combinations not
pickleable.
import re, pickle
pickle.dumps(re.I|re.S, 3)
Traceback (most recent call last):
File stdin, line 1, in module
_pickle.PicklingError: Can't pickle enum 'SubFlag':
Serhiy Storchaka added the comment:
As for 767fd62b59a9, I doubt that changing positional arguments to keyword
argumennts in tests is justified. This can hide a bug.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11957
Serhiy Storchaka added the comment:
And again about patch_11957. I afraid that testing isinstance(count,
sre_constants.BaseFlags) on every re.sub() call will hit performance too.
--
___
Python tracker rep...@bugs.python.org
David Bolen added the comment:
I've just brought a Windows 8 buildbot online (bolen-windows8) and can confirm
that this test does fail in the 3.4 and 3.x branches, and that it does so
consistently even if I execute the steps interactively.
--
nosy: +db3l
Antoine Pitrou added the comment:
FTR, the buildbot URL: http://buildbot.python.org/all/buildslaves/bolen-windows8
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18382
___
Changes by Antoine Pitrou pit...@free.fr:
--
stage: - needs patch
versions: +Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18382
___
Changes by Antoine Pitrou pit...@free.fr:
--
assignee: eric.araujo -
stage: patch review - test needed
versions: +Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8876
Tim Graham added the comment:
Thank-you Georg; I believe I was able to fix some of the failures by patching
Django as you suggested.
However, I think I found another issue due to #16611 (support for
httponly/secure cookies) not being backported to Python 3.2. The issue is that
any cookies
Antoine Pitrou added the comment:
Updated patch with tests.
--
stage: test needed - patch review
Added file: http://bugs.python.org/file37069/copy_file_link_fail.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8876
Georg Brandl added the comment:
Thanks, this is indeed a regression.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22758
___
___
Roundup Robot added the comment:
New changeset 82fd95c2851b by Serhiy Storchaka in branch 'default':
Issue #22217: Implemented reprs of classes in the zipfile module.
https://hg.python.org/cpython/rev/82fd95c2851b
--
nosy: +python-dev
___
Python
Serhiy Storchaka added the comment:
Thank you Berker and Ezio for your reviews.
--
resolution: - fixed
stage: commit review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22217
New submission from yotamv:
Inside a list comprehension expression, if a StopIteration exception is raised,
the interpreter assumes the exception was raised by the object Iterated buy the
list comprehension expression.
For example, this generator will never stop, and will keep returning empty
New submission from Xavier de Gaye:
To reproduce the crash run the following two-lines script and, at the fisrt
(Pdb) prompt, remove the last line of this script (and the following empty
lines if any):
import pdb; pdb.set_trace()
x = 1
then issue the 'quit' pdb command. This will cause an
yotamv added the comment:
Inside a list comprehension expression, if a StopIteration exception is raised,
the interpreter assumes the exception was raised by the object Iterated by the
list comprehension expression.
For example, this generator will never stop, and will keep returning empty
Xavier de Gaye added the comment:
Looks similar to the problem fixed at changeset 298d98486794 by Victor Stinner.
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22762
___
Antoine Pitrou added the comment:
For the record, the only place where distutils seems to use hard-linking is
distutils.command.sdist. The fallback on copying is safe there, since it's done
manually if os.link doesn't exist.
--
___
Python tracker
Antoine Pitrou added the comment:
NASM seems BSD-licensed, so it shouldn't be a legal problem.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17717
___
Terry J. Reedy added the comment:
After seeing your new diagram and glancing at the patch, we are pretty much in
agreement. I would like to see this change so I can delete the extra layer of
directories. I will try to do a review and test tomorrow. I will also check
the devguide to see if
New submission from Robert Collins:
The following trivial chain-into-discover load_tests:
def load_tests(loader, tests, pattern):
import os.path
# top level directory cached on loader instance
this_dir = os.path.dirname(__file__)
return loader.discover(start_dir=this_dir,
Robert Collins added the comment:
Updated patch, after other recent conflicting changes.
--
Added file: http://bugs.python.org/file37071/issue22457.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22457
Changes by Robert Collins robe...@robertcollins.net:
--
type: - behavior
versions: +Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22457
___
76 matches
Mail list logo