Changes by Jayanth Koushik jnkous...@gmail.com:
--
assignee: docs@python
components: Documentation
nosy: docs@python, jayanthkoushik
priority: normal
severity: normal
status: open
title: Use of '1' instead of 'True' as 'splitlines' argument in difflib
documentation
type: enhancement
New submission from Jayanth Koushik:
In the difflib documentation, multiple uses of 'splitlines' use '1' as the
'keepends' argument. In Python 2.x, 1 is not guaranteed to be True and while
this is guaranteed in 3.x, it would be much clearer to specify the argument as
'True'.
--
Roundup Robot added the comment:
New changeset 16efa8d27e4c by Eric V. Smith in branch '3.4':
Closed issue #8931: Make alternate formatting for 'c' raise an exception. Patch
by Torsten Landschoff.
http://hg.python.org/cpython/rev/16efa8d27e4c
--
nosy: +python-dev
Changes by Eric V. Smith e...@trueblade.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8931
___
Wolfgang Maier added the comment:
well, buffering is not the issue here. It's that the file iterator used in the
current example is line-based, so whatever the buffer size you're doing
unnecessary inspection to find and split on line terminators.
--
New submission from Nathaniel Smith:
Numpy would like to switch to using the CPython allocator interface in order to
take advantage of the new tracemalloc infrastructure in 3.4. But, numpy relies
on the availability of calloc(), and the CPython allocator API does not expose
calloc().
Marek Stepniowski added the comment:
I agree that Unsupported syntax is a more accurate message. Changed in the
newest patch.
--
Added file:
http://bugs.python.org/file34866/minidom_space_char_in_namespace_unsupported.patch
___
Python tracker
Dima Tisnek added the comment:
Banjamin, Your patch looks good to me!
I have a small concern regarding We now know we will succeed... -- should
there be a test case to make sure fstat test here matches whatever test is/was
done on a lower level?
Or is your code now such that it will
Changes by Stefan Krah stefan-use...@bytereef.org:
--
nosy: +skrah
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21233
___
___
Python-bugs-list
Changes by Stefan Krah stefan-use...@bytereef.org:
--
assignee: docs@python - skrah
nosy: +skrah
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21227
___
Roundup Robot added the comment:
New changeset 4d9b24b2f1b8 by Vinay Sajip in branch '3.4':
Issue #21197: Add lib64 - lib symlink in venvs on 64-bit non-OS X POSIX.
http://hg.python.org/cpython/rev/4d9b24b2f1b8
New changeset 947515cc8957 by Vinay Sajip in branch 'default':
Closes #21197: Add
Benjamin Peterson added the comment:
On Tue, Apr 15, 2014, at 2:34, Dima Tisnek wrote:
Dima Tisnek added the comment:
Banjamin, Your patch looks good to me!
I have a small concern regarding We now know we will succeed... --
should there be a test case to make sure fstat test here
New submission from Jurjen N.E. Bos:
It all started when adding an __equals__ method to a self made class.
The effect was that my program slowed down enormously, which came as a surprise.
This is because when doing an operation that does linear search through a
container, the interpreter
Vinay Sajip added the comment:
I'm not sure I can accept the change in 2.7, because it is technically a new
feature and would mean that configs would not be treated the same way in all
2.7.x versions failing in some and not in others. You can get the equivalent
behaviour using '()' rather
Roundup Robot added the comment:
New changeset 2d33cbf02522 by Vinay Sajip in branch 'default':
Closes #21203: Updated fileConfig and dictConfig to remove inconsistencies.
Thanks to Jure Koren for the patch.
http://hg.python.org/cpython/rev/2d33cbf02522
--
nosy: +python-dev
resolution:
Chris Rose added the comment:
Updated according to review.
--
Added file: http://bugs.python.org/file34868/difflib-sm.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20752
___
Claudiu.Popa added the comment:
Hi. I added a couple of comments for your previous patch, the new one doesn't
seem to have a review link.
--
nosy: +Claudiu.Popa
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20752
Chris Rose added the comment:
Addressed comments regarding documentation and assertion formats in the test.
--
Added file: http://bugs.python.org/file34869/difflib-sm.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20752
Yury Selivanov added the comment:
Guido, I'm feeling a bit uncomfortable with the patch I pushed. I think we
should adjust the solution, to avoid having arguments to 'gen.send' packed in
two nested tuples. Please take a look at the new patch (corowrapper_03.patch).
It adds some amount of
Chris Rose added the comment:
Patch against tip
--
Added file: http://bugs.python.org/file34871/difflib-sm.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20752
___
Kushal Das added the comment:
New patch from a clean repo, with changed opcode.h
--
Added file: http://bugs.python.org/file34872/issue17861_v5.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17861
New submission from Armin Ronacher:
3.4 deprecates load_module on the loaders and now proposes to use create_module
(optionally) and exec_module. Unfortunately for external callers these
interfaces are not useful because you need to reimplement _SpecMethods.create
and a whole bunch of other
Armin Ronacher added the comment:
On further investigation that is not even enough yet due to the new locking
mechanism. I'm not even sure if exposing _SpecMethods would be enough.
--
___
Python tracker rep...@bugs.python.org
Michael Stahl added the comment:
we carry a patch in LibreOffice for exactly this problem:
http://cgit.freedesktop.org/libreoffice/core/tree/external/python3/python-3.3.0-i42553.patch.2
this was found many years ago in OOo:
https://issues.apache.org/ooo/show_bug.cgi?id=42553
there is at least
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1650090
___
___
Glenn Jones added the comment:
Patch cleaned up based on previous comments.
--
Added file: http://bugs.python.org/file34873/issue15795_cleaned.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15795
Claudiu.Popa added the comment:
Raymond, any news on this?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21027
___
___
Python-bugs-list mailing
Christian Hudon added the comment:
Actually, the only optparse test failing on jython 2.7 beta 1 currently is the
one that relies on sys.getrefcount. Adding a test_support.impl_detail() guard
makes all the tests pass. (See attached patch.)
I'd propose adding this patch to both the python3 and
STINNER Victor added the comment:
I think we should adjust the solution, to avoid having arguments to 'gen.send'
packed in two nested tuples.
I should check, but I think that Python create a tuple for you if you don't
pass directly a tuple, so it's not very different.
Anyway, it is only used
Guido van Rossum added the comment:
I agree with Yuri and I approve of the patch.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21209
___
___
Eric Snow added the comment:
I agree that this is something we need to address in 3.5. Adding this to 3.4
won't be an option since it would require a new feature. However,
Loader.load_module() is only deprecated (and won't be removed in 3.X), so the
current approach will still work until we
Claudiu.Popa added the comment:
Hello. I added a couple of comments to your latest patch.
--
nosy: +Claudiu.Popa
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15795
___
Caelyn McAulay added the comment:
I've attached a patch making the changes I suggested, assuming that the current
behaviour is desirable. It documents the behaviour of argparse on files with
blank lines and changes the way the error message that argparse generates when
encountering
Gregory P. Smith added the comment:
I added a pointer to subprocess32 in the 2.7 subprocess docs in dd52365c8721.
--
resolution: - wont fix
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Brett Cannon added the comment:
Are you after just the module creation/initialization code so you can call
exec_module() yourself, Armin, or do you want even more of the algorithm
exposed (e.g. the lock stuff)? There are not tons of importlib users to the
level of wanting to re-implement
Changes by A.M. Kuchling a...@amk.ca:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20103
___
___
Chris Rose added the comment:
As a historical record, it should be noted that this is driven by an actual use
case: I was experimenting with using Bazaar's patience diff implementation, and
I saw that in order for them to use a custom sequence matcher, they had to
essentially copy-paste and
New submission from Michael Stahl:
building with MSVC2012 and the Windows SDK 8.0 fails
according to this page, the fci.lib is no longer available
and cabinet.lib should be used instead:
http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/3b85f36e-dffe-4589-adc3-13673b349812/
For
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21233
___
___
Python-bugs-list mailing
A.M. Kuchling added the comment:
Patch to add impl_detail() looks fine to me.
--
versions: +Python 2.7, Python 3.5 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1704474
___
Michael Foord added the comment:
You can use kwargs.pop instead of the two step fetch and delete.
For the test, could you add an assert that the name is used. Can you add an
extra underscore to the method name, to make it: test_create_autospec_with_name
--
nosy: +michael.foord
Armin Ronacher added the comment:
I'm not sure myself what I need right now. I personally have avoided
importlib/imp entirely for my code and I roll with manual module creation
because it is most stable between 2.6 - 3.4 but it's getting more complicated
to work because of all the new
New submission from Brett Cannon:
In Python 2.6 and newer you can import future_builtins and use everything from
there. In Python 2.5 it should be itertools.imap(). This is much cleaner than
the current suggestion at
Kristján Valur Jónsson added the comment:
Update patch with suggestions from Larry
--
Added file: http://bugs.python.org/file34876/obmalloc.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21220
Stéphane Wirtel added the comment:
In this patch, I deprecate the inspect.getfullargspec function in the
documentation and raise an warnings.warn with DeprecationWarning.
Need feedback, because the inspect.getargspec() informs the user that it can
use the getfullargspec() and I think we
Stéphane Wirtel added the comment:
Here is the output of my test:
./python3.5 -Wd test.py
test.py:9: DeprecationWarning: Deprecated
warnings.warn('Deprecated', DeprecationWarning)
/private/tmp/python/lib/python3.5/inspect.py:955: DeprecationWarning: Use
inspect.signature() instead of
A.M. Kuchling added the comment:
I agree with Chris's logic; the incorrect size seems to be a curses/ncurses bug
that has gotten fixed somewhere along the line.
You also aren't able to shrink the terminal to be smaller than the size of a
derived window created with derwin(), but you seem to
A.M. Kuchling added the comment:
Because Nick both originally created this ticket and also added the new tests
(http://hg.python.org/cpython/rev/51dddfead80a/), I'll assume he knew what he
was doing when he named those methods, and simply forgot to close this issue.
--
assignee: -
Changes by Christian Theune c...@gocept.com:
--
versions: +Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18099
___
___
New submission from Michael Foord:
A common problem with unittest.mock.Mock is to mistype an assert method.
Because mocks create attributes on demand your test will pass without error.
We should raise an AttributeError if you access any attribute name (that
doesn't exist) starting with assert
Christian Hudon added the comment:
Second revision, incorporating comments. Also document the behavior when passed
an empty input iterable.
--
Added file: http://bugs.python.org/file34878/accumulate2.diff
___
Python tracker rep...@bugs.python.org
Changes by Yury Selivanov yselivanov...@gmail.com:
--
nosy: +yselivanov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21235
___
___
New submission from Michael Foord:
stopall does not always stop all patches to single target
http://code.google.com/p/mock/issues/detail?id=226
What steps will reproduce the problem?
python code to reproduce error
import mock
def myfunc():
return 'hello'
m =
New submission from Eric Snow:
I'd like to be able to mark abstract methods in the docs more explicitly and
have their presentation in the docs be more obvious. So I'd like to propose
abstractmethod as a new directive to join the existing ones (classmethod,
staticmethod, etc.).
(This is
Eric Snow added the comment:
I've opened up #21240 to address the the docs concern. Thanks for bringing it
up. :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21235
___
Roundup Robot added the comment:
New changeset 2729823525fe by Yury Selivanov in branch '3.4':
asyncio.tasks: Make sure CoroWrapper.send proxies one argument correctly
http://hg.python.org/cpython/rev/2729823525fe
New changeset 552ee474f3e7 by Yury Selivanov in branch 'default':
asyncio.tasks:
Changes by Brett Cannon br...@python.org:
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21240
___
___
Python-bugs-list
Jure Koren added the comment:
I agree about the 2.7 branch, I did that one off the top of my head after
struggling with backporting the code to 2.7.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21203
Changes by R. David Murray rdmur...@bitdance.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11316
___
___
Brett Cannon added the comment:
I was thinking about suggesting we don't code deprecate getfullargspec() but
the function seems to be new to Python 3 and so that worry for Python 2/3 code
is not founded.
--
___
Python tracker rep...@bugs.python.org
Armin Ronacher added the comment:
Also mostly unrelated importlib now does something I have never seen an ABC do:
the ABC has create_module but concrete implementations mostly have that
function entirely absent. That should probably be reconsidered as it's super
confusing.
--
Yury Selivanov added the comment:
How about we deprecate with a warning getfullargspec(); deprecate getargspec()
in docs only (in 3.6 we'll fully deprecate all function parameters API except
Signature)?
--
___
Python tracker rep...@bugs.python.org
Yury Selivanov added the comment:
I should check, but I think that Python create a tuple for you if you don't
pass directly a tuple, so it's not very different.
That's what I thought, but still, better to have the code clearly expressing
what it does, than relying on obscure
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
nosy: +flox
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21235
___
___
Eric Olson added the comment:
The performance is still an issue in python 3.
Attaching a patch for python 3, performance numbers are below.
Measuring ndbm time for a falsey check on an open db with 100 entries. gdbm
performance is similar.
Before patch:
db is not None:
Sam Kimbrel added the comment:
Patch attached that checks for 'b' in self._mode and sets self._file to
sys.stdin.buffer as appropriate.
--
keywords: +patch
nosy: +sam.kimbrel
Added file: http://bugs.python.org/file34880/21075-fileinput-stdin.diff
Berker Peksag added the comment:
You can now build the Python documentation with using Python 3. See msg216161
in issue 10224 for more information.
--
nosy: +berker.peksag
resolution: - out of date
stage: - committed/rejected
status: open - closed
Stéphane Wirtel added the comment:
Just one thing, how do you work for the deprecation?
1. you deprecate in the doc for 3.5?
2. you deprecate in the code for 3.6?
3. you remove the code in 3.7?
What's the strategy in this case or in general?
Thanks
--
New submission from Henk-Jaap Wagenaar:
Executing in the interactive console: foo1 = 0 and then foo1 gives
Segmentation Fault: 11 on OS X 10.9.2, Python 3.3.2 (v3.3.2:d047928ae3f6, May
13 2013, 13:52:24)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
If foo1 is defined in a program, and
Changes by Henk-Jaap Wagenaar superhenkj...@gmail.com:
--
type: - crash
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21241
___
___
Ned Deily added the comment:
See Issue18458. Update to the latest Python 3.3.5 or 3.4.0.
--
nosy: +ned.deily
resolution: - duplicate
stage: - committed/rejected
superseder: - interactive interpreter crashes and test_readline fails on OS X
10.9 Mavericks due to libedit update
Wolfgang Maier added the comment:
- if an object is in the container that is equal to the object, it will be
slower, but not very much.
You don't know that in general. It depends on where in the sequence the equal
object sits, and also on how expensive the equality check is compared to the
Changes by Ned Deily n...@acm.org:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21241
___
___
Python-bugs-list mailing
Brett Cannon added the comment:
How warnings are handled vary from case to case. Typically its
documentation-only if we want to warn people that they shouldn't use something
because there is a better alternative but the code is not fundamentally broken
and its in Python 2. If there is
Antoine Pitrou added the comment:
In Python 3, arenas are allocated using mmap(), so wherever the arena ends up
in the address space shouldn't matter, should it?
Also, the new strategy adds an O(n) component in the allocator.
--
nosy: +neologix, pitrou, tim.peters
Stéphane Wirtel added the comment:
ok, so in this case, I can only change the documentation with a ..
deprecated:. But for the future, how can we know we have to deprecate this
function for = 3.6 ? Will you parse the documentation and check there is an
deprecation to add in the code?
Or is
Yury Selivanov added the comment:
I'd +1 for:
1. Deprecating getfullargsspec in docs;
2. Deprecating getargspec in docs and code (since it's an ancient and outdated
API)
Brett?
--
___
Python tracker rep...@bugs.python.org
Stéphane Wirtel added the comment:
Brett,
If you agree with Yury, I will provide a patch with these tasks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20438
___
Brett Cannon added the comment:
Since getfullargspec is new in Python 3 and inspect.signature fundamentally
improves things in Python 3 due to Argument Clinic I would say go ahead and
code deprecate getfullargspec (we can do a DeprecationWarning for 3.5 and 3.6
and remove in 3.7; people
Kushal Das added the comment:
New patchset with changes made as suggested.
--
Added file: http://bugs.python.org/file34881/issue21222_v2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21222
A Kaptur added the comment:
v2 of the patch incorporating the comments at
http://bugs.python.org/review/21217/
--
Added file: http://bugs.python.org/file34882/issue21217-v2.patch
___
Python tracker rep...@bugs.python.org
Yury Selivanov added the comment:
Apart from one nit, the patch is looking good.
Also, could you please sign the contributor agreement, as described here:
https://docs.python.org/devguide/coredev.html#sign-a-contributor-agreement
--
___
Python
New submission from Brett Cannon:
configure.ac has a check that sets ASDLGEN based on what Python interpreter to
use for running various scripts which generate files related to the AST. It
probably should be generalized so that there's only one check for any script
usage in Makefile.pre.in
R. David Murray added the comment:
This will be fixed as part of issue 15014, which also adds support for
providing user created auth methods.
--
resolution: - duplicate
stage: test needed - committed/rejected
status: open - closed
superseder: - smtplib: add support for arbitrary
Kushal Das added the comment:
New patch with changes as suggested by Brett.
--
Added file: http://bugs.python.org/file34883/issue17861_v6.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17861
Don DeZutter added the comment:
Martin: Thank you for your prompt and helpful response to my attempt to tag
along to a possibly similar bug. I had been working on my issue for about
two weeks and truly believed it was a bug before i adventured as I did. As
you know, the difference between a
Caelyn McAulay added the comment:
Added comment to documentation concerning when the headers attribute gets set.
I confirmed that the headers attribute is only ever set in the parse_request
method of BaseHTTPRequestHandler and only if the request is successfully parsed
as HTTP.
--
Claudiu.Popa added the comment:
- We added tests of decorated classes. The source of decorated classes does
not include the decorators, which is different than the usual behavior of
decorated functions. What is the correct behavior here?
There is an open issue for this,
Changes by Yury Selivanov yselivanov...@gmail.com:
--
assignee: - yselivanov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1764286
___
___
Yury Selivanov added the comment:
Claudiu: I'll take a look at your patch, thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21217
___
___
Meador Inge added the comment:
I am not sure I follow. In configure.ac I see one check for Python:
AC_SUBST(ASDLGEN)
AC_CHECK_PROGS(PYTHON, python$PACKAGE_VERSION python3 python, not-found)
if test $PYTHON = not-found; then
ASDLGEN=@echo python: $PYTHON! cannot run
New submission from Brett Cannon:
There isn't very much that's special about the various exceptions (although
maybe there will be some day). Anyway, it seems like we could, if we so
desired, define the exceptions in Python and then auto-generate the C code.
The other option is to obviously
Meador Inge added the comment:
Ah, okay, this looks in reference to the opcode generation stuff in issue17861.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21242
___
Brett Cannon added the comment:
You figured out the reason for the interest; I filed the bug faster than Kushal
could commit his code. =)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21242
A Kaptur added the comment:
v3 of patch, including misc/news update, docstring for function, and removing
class decorator tests, since it sounds like those are better handled in
http://bugs.python.org/issue1764286.
--
Added file: http://bugs.python.org/file34885/issue21217-v3.patch
Roundup Robot added the comment:
New changeset 56e7fa27f979 by Kushal Das in branch 'default':
Closes Issue 17861: Autogenerate Include/opcode.h from opcode.py.
http://hg.python.org/cpython/rev/56e7fa27f979
--
nosy: +python-dev
resolution: - fixed
stage: patch review -
Roundup Robot added the comment:
New changeset ebb9595af548 by doko in branch '3.4':
- Issue #21223: Pass test_site/test_startup_imports when some of the extensions
http://hg.python.org/cpython/rev/ebb9595af548
--
nosy: +python-dev
___
Python tracker
Changes by Ned Deily n...@acm.org:
--
components: +Build
nosy: +loewis, zach.ware
type: compile error -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21236
___
Changes by Matthias Klose d...@debian.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21223
___
Berker Peksag added the comment:
+.. note::
I think using a note directive is not necessary here. Also it looks a bit ugly
:) https://dl.dropboxusercontent.com/u/166024/issue17660.png
+.. versionchanged:: 3.5
+ If you are patching builtins in a module then you don't
+
1 - 100 of 190 matches
Mail list logo