Ronald Oussoren added the comment:
Raymond: good to hear that using fn+F5 is not a problem for new users
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18444
___
Roundup Robot added the comment:
New changeset 7272ef213b7c by Ronald Oussoren in branch 'default':
Also remove a (broken) leaker test for the code removed in issue #18393.
http://hg.python.org/cpython/rev/7272ef213b7c
--
___
Python tracker
Ronald Oussoren added the comment:
I no longer particularly like my patch, although something needs to be done.
The easiest way forward is likely a (private) helper function in the readline
module that can translate simple readline configuration strings to something
that libedit understands
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18211
___
___
Python-bugs-list
STINNER Victor added the comment:
By the way, I don't think that Python should pass the optimization level (-O0
or -O3) to extensions, except for builtin extensions (of the stdlib).
--
___
Python tracker rep...@bugs.python.org
New submission from Nick Coghlan:
A home for a couple of proposed PEP 8 updates (as per the thread starting at
http://mail.python.org/pipermail/python-dev/2013-July/127284.html)
--
messages: 193159
nosy: ncoghlan
priority: normal
severity: normal
status: open
title: PEP 8 updates -
New submission from Mikhail Korobov:
I think REVERSE_IMPORT_MAPPING is wrong (see
http://hg.python.org/cpython/file/7272ef213b7c/Lib/_compat_pickle.py#l80 ). It
relies on dictionary items order and maps 'collections' module to either
UserString or UserList. This makes it impossible to
Mikhail Korobov added the comment:
my copy-paste went wrong, last statement in the example should be
pickle.dumps(dct, protocol=1, fix_imports=False)
b'ccollections\ndefaultdict\nq\x00)Rq\x01.'
--
___
Python tracker rep...@bugs.python.org
Changes by Serhiy Storchaka storch...@gmail.com:
--
type: - behavior
versions: +Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18448
___
Nick Coghlan added the comment:
Attached diff has 5 changes:
* Explicit note that this is a living document that evolves over time
* Adds another explicit reason for not complying with the style guide (i.e. the
code is old but still works and there's no other reason to change it)
* Fixed
Nick Coghlan added the comment:
Thomas Wouters made a couple of good points regarding absolute vs explicit
relative imports, so I've improved the rationale in the PEP accordingly.
--
Added file: http://bugs.python.org/file30937/issue18472_pep_8_update2.diff
Nick Coghlan added the comment:
Tweaked the wording in the introduction to cover removal of obsolete
conventions along with adding new ones.
--
Added file: http://bugs.python.org/file30938/issue18472_pep_8_update3.diff
___
Python tracker
Aaron Iles added the comment:
My +1 is for the callback based approach. The brevity of the search loop for
finding the innermost function is (in my opinion at least) non-obvious, relying
on for loops not having their own scope as it does.
If a generator based API was adopted instead, I
Changes by Barry A. Warsaw ba...@python.org:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18472
___
___
Python-bugs-list mailing
New submission from James Lu:
if you assign a lambda to a object and call it,you get this:
Traceback (most recent call last):
File pyshell#21, line 1, in module
n.__div__(3)
TypeError: lambda() takes exactly 2 arguments (1 given)
The full test is here:
n = num()
n.__div__
function lambda
Changes by James Lu jam...@gmail.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18474
___
___
Python-bugs-list mailing
Brett Cannon added the comment:
What version of Python is this and did you assign the lambda to an instance or
class (and if this is Python 2, new-style or classic class)?
--
nosy: +brett.cannon
___
Python tracker rep...@bugs.python.org
James Lu added the comment:
2.5,new-style
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18474
___
___
Python-bugs-list mailing list
James Lu added the comment:
instance,assinged during __init__
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18474
___
___
Python-bugs-list
New submission from Vajrasky Kok:
There is no unittest.main in Lib/test/test_email/test_inversion.py.
In other word, you can not execute the test by doing something like this:
[abcdef@localhost cpython]$ ./python Lib/test/test_email/test_inversion.py
Attached the menial fix.
--
James Lu added the comment:
Also,there were some bugs, but after I fixed them, it would only work if I did
this:
n.__div__(n,3)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18474
___
New submission from Piotr Dobrogost:
It seems there's no way to pass custom arguments for loggers
(http://hg.python.org/cpython/file/d9893d13c628/Lib/logging/__init__.py#l)
and formatters
(http://hg.python.org/cpython/file/d9893d13c628/Lib/logging/config.py#l117) the
same way they are
Eric V. Smith added the comment:
Could you provide an entire example, showing the class num and how you assign
__div__?
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18474
Roundup Robot added the comment:
New changeset 8a922b28b97d by Richard Oudkerk in branch '3.3':
Issue #17778: Fix test discovery for test_multiprocessing. (Patch by
http://hg.python.org/cpython/rev/8a922b28b97d
New changeset c704735487ae by Richard Oudkerk in branch 'default':
Issue #17778: Fix
Amaury Forgeot d'Arc added the comment:
This is expected. When you assign to n.__div__ a function which takes two
parameters, you have to call it with two parameters:
aFunction = lambda x, y: (x, y)
n.__div__ = aFunction
aFunction(1, 2)
n.__div__(1, 2)
After all, aFunction and
Vinay Sajip added the comment:
I would prefer not to extend the functionality of fileConfig(), as dictConfig()
is the preferred configuration approach. It's much more general than
fileConfig() can be (without doing significant work on fileConfig(), which I'd
like to not develop any further).
Changes by Brett Cannon br...@python.org:
--
nosy: +zach.ware
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18475
___
___
Python-bugs-list mailing
Richard Oudkerk added the comment:
Thanks for the patches!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17778
Roundup Robot added the comment:
New changeset b92db0aebc42 by R David Murray in branch '3.3':
Closes #18475: add unittest.main() to test_email/test_inversions.
http://hg.python.org/cpython/rev/b92db0aebc42
New changeset 48f27b745519 by R David Murray in branch 'default':
Merge: Closes #18475:
Févry Thibault added the comment:
One more update. When it fails, it sometimes fails with :
==
ERROR: testEiffelMetaClass1 (__main__.Tests)
--
Traceback (most
Yury V. Zaytsev added the comment:
NumPy no longer uses the Trac for issues, the tracking has been moved to
GitHub. I hope that the problem will be finally solved in NumPy by
https://github.com/numpy/numpy/pull/3526 .
--
nosy: +zaytsev
___
Python
Yury V. Zaytsev added the comment:
As noted in issue5476, I've submitted a pull request for NumPy:
ttps://github.com/numpy/numpy/pull/3526 .
I hope that this fixes this problem too: on Py2, I've added
Py_TPFLAGS_INT_SUBCLASS, on Py3, NumPy doesn't inherit from int anymore,
because it's not a
Benjamin Peterson added the comment:
Why not?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18211
___
___
Python-bugs-list mailing list
LDTech added the comment:
This problem still exist in Python 3.3.2. The following code gives you an
example:
import urllib.request
url = http://www.libon.it/libon/search/isbn/3499155443;
req = urllib.request.Request(url)
response = urllib.request.urlopen(req, timeout=30)
the_page =
paul j3 added the comment:
This patch produces the same usage as before, but I have rewritten
_format_actions_usage() for both HelpFormatter and MultiGroupFormater.
The original HelpFormatter._format_actions_usage() formats the actions, splices
in group markings, cleans up the text, if
Roundup Robot added the comment:
New changeset 9098a4ad4d3e by Serhiy Storchaka in branch '3.3':
Issue #18457: Fixed saving of formulas and complex numbers in Tools/demo/ss1.py.
http://hg.python.org/cpython/rev/9098a4ad4d3e
New changeset c6b91d894577 by Serhiy Storchaka in branch 'default':
Roundup Robot added the comment:
New changeset a9f7c2d49149 by Serhiy Storchaka in branch '2.7':
Issue #18448: Fix a typo in Demo/newmetaclasses/Eiffel.py.
http://hg.python.org/cpython/rev/a9f7c2d49149
New changeset 6e8ad6071100 by Serhiy Storchaka in branch '3.3':
Issue #18448: Fix a typo in
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18448
Changes by Serhiy Storchaka storch...@gmail.com:
--
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18448
___
___
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/issue18457
paul j3 added the comment:
Here's a patch that takes a different approach - rewrite
_format_actions_usage() so it formats groups (and unattached actions) directly.
It uses the same logic to determine when to format a group, but then it calls
_format_group_usage() to format the group,
paul j3 added the comment:
I just submitted at patch to http://bugs.python.org/issue11874 that takes care
of this issue as well.
I rewrote _format_actions_usage() so it formats the parts directly, so there is
no need cleanup or parse the full text string.
--
paul j3 added the comment:
I just submitted a patch to http://bugs.python.org/issue11874 which rewrites
_format_actions_usage(). It now formats the groups and actions directly,
keeping a list of these parts. It no longer has to cleanup or split a usage
line into parts. So it is not
p0lar_bear added the comment:
I get similar results if my CGI script sends a Content-Type header of anything
besides text/html, e.g. print('Content-Type: text/json').
--
nosy: +p0lar_bear
___
Python tracker rep...@bugs.python.org
Changes by p0lar_bear t3hp0larb...@gmail.com:
--
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8704
___
___
Python-bugs-list
paul j3 added the comment:
I just submitted a patch to http://bugs.python.org/issue11874 that
substantially rewrites _format_actions_usage(). It generates the group and
action parts separately, and does not do the kind of cleanup that produces this
issue.
--
Roundup Robot added the comment:
New changeset 533eb9ab895a by Victor Stinner in branch 'default':
Issue #18408: Fix fileio_read() on _PyBytes_Resize() failure
http://hg.python.org/cpython/rev/533eb9ab895a
New changeset f0efd7ea1627 by Victor Stinner in branch 'default':
Issue #18408: Fix
New submission from ProgVal:
In a project, I have a package with a module named Socket.py, and the
__init__.py imports the socket module (from the standard Python lib).
However, when fix_import went over it _on Windows_, it converted import
socket to from . import Socket.
I also had this issue
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18477
___
___
Changes by paul j3 ajipa...@gmail.com:
--
nosy: +paul.j3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18467
___
___
Python-bugs-list mailing list
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18472
___
___
Python-bugs-list
A Kaptur added the comment:
Here is a suggestion for updated documentation in this section. I've added the
description of __pycache__, included a very short description of what a .pyc
file is, and moved the troubleshooting to the end of the section. I'm not sure
whether the description (a
Terry J. Reedy added the comment:
Is the scope of this issue just what is in the title, the whole PEP, or
something in between;-?
For instance, Guido once approved (on pydev) adding an admonition to
Programming Recommendations something like the following.
* Use a def statement instead of an
Serhiy Storchaka added the comment:
You are great!
--
assignee: - haypo
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18408
___
Changes by Ned Deily n...@acm.org:
--
resolution: wont fix - duplicate
stage: - committed/rejected
superseder: - libedit history offset workaround
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18289
Ned Deily added the comment:
Issue18458 has been opened to track this problem.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18289
___
___
Roundup Robot added the comment:
New changeset c8696ee49291 by Victor Stinner in branch 'default':
Issue #18408: Fix typo in build_node_tree() of the parser module
http://hg.python.org/cpython/rev/c8696ee49291
New changeset cf8f42eadbd0 by Victor Stinner in branch 'default':
Issue #18408: Fix
Roundup Robot added the comment:
New changeset 1872555a2f4e by Victor Stinner in branch 'default':
Issue #18408: Mention changes in Misc/NEWS
http://hg.python.org/cpython/rev/1872555a2f4e
--
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
@Serhiy: Would like to review attached patches listpop.patch (msg193130) and
frame_fasttolocals.patch (msg193131)? (Other are already commited)
--
___
Python tracker rep...@bugs.python.org
Nick Coghlan added the comment:
Sure, I think it makes sense to put that in. I'll be running the whole
patch by python-dev, enumerating the reasons for each change before I
commit anything.
--
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
Oops.
@Serhiy: Would *you* like to review attached patches ...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18408
___
Terry J. Reedy added the comment:
The public versus internal part of this issue is related to #10434 Document the
rules for public names, which contains among other things a suggested rewrite
for PEP 8.
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset af18829a7754 by Victor Stinner in branch 'default':
Close #18469: Replace PyDict_GetItemString() with _PyDict_GetItemId() in
structseq.c
http://hg.python.org/cpython/rev/af18829a7754
--
nosy: +python-dev
resolution: - fixed
stage: -
New submission from Terry J. Reedy:
http://docs.python.org/3/reference/executionmodel.html#naming-and-binding
says The following are blocks: ... a class definition. and
If a name binding operation occurs anywhere within a code block, all uses of
the name within the block are treated as
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18478
___
___
Changes by Barry A. Warsaw ba...@python.org:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10434
___
___
Python-bugs-list mailing
paul j3 added the comment:
I think this example illustrates your issue:
class FooAction(argparse.Action):
def __call__(self, parser, namespace, values,
option_string = None):
if values=='Q':
setattr(namespace, self.dest,
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18404
___
___
Python-bugs-list mailing list
João Bernardo added the comment:
Was the patch accepted yet? Looks good to me
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18159
___
___
Zachary Ware added the comment:
In looking at test_decimal for issue16748, I discovered that not all of the
doctests for _decimal are being tested. So, I fixed it (or at least tried to
:).
This patch does the following:
- Replace most inspect.isfunction checks in DocTestFinder with
70 matches
Mail list logo