Ned Deily added the comment:
Sorry, I'm not able to reproduce the behavior you report, either using a
current OS X 10.8.2 system with python.org 2.7.3 and ActiveTcl 8.5.13 or on a
virtual 10.6.8 system with an 8.5.12 ActiveTcl. That said, such behavior would
almost certainly be due to
Changes by Ed Campbell drescampb...@gmail.com:
--
nosy: +esc24
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16773
___
___
Python-bugs-list
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
components: Library (Lib)
keywords: easy
nosy: asvetlov
priority: normal
severity: normal
status: open
title: Add test coverage for os.removedirs()
versions: Python 3.2, Python 3.3, Python 3.4
New submission from Roundup Robot:
New changeset c3acc5ead883 by Andrew Svetlov in branch '3.2':
Add test coverage for os.removedirs (#16775)
http://hg.python.org/cpython/rev/c3acc5ead883
New changeset dbe9413686b3 by Andrew Svetlov in branch '3.3':
Add test coverage for os.removedirs (#16775)
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
resolution: - fixed
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16775
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16775
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16644
___
___
New submission from Andrew Svetlov:
c-api docs has no documentation for those public API functions.
--
assignee: docs@python
components: Documentation
keywords: easy
messages: 178115
nosy: asvetlov, docs@python
priority: normal
severity: normal
status: open
title: Document
Andrew Svetlov added the comment:
#16776 created for documenting PyCFunction_New/PyCFunction_NewEx
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15422
___
Roundup Robot added the comment:
New changeset 3a86a3f1d89a by Andrew Svetlov in branch 'default':
Issue #15422: get rid of PyCFunction_New macro
http://hg.python.org/cpython/rev/3a86a3f1d89a
--
nosy: +python-dev
___
Python tracker
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15422
Andrew Svetlov added the comment:
Victor, are you done all work for the issue?
Can it be closed?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16218
___
Roundup Robot added the comment:
New changeset f77648af7ff0 by Ezio Melotti in branch '2.7':
#16765: remove unused import.
http://hg.python.org/cpython/rev/f77648af7ff0
--
nosy: +python-dev
___
Python tracker rep...@bugs.python.org
Ezio Melotti added the comment:
Fixed, thanks for the report!
I wasn't sure about the patch format, so I added a unified diff.
The best way is to get a clone of CPython and use hg diff patch.diff. You
can find more information about it in the devguide.
--
assignee: - ezio.melotti
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16748
___
___
Roundup Robot added the comment:
New changeset 1e5e7064e872 by Ezio Melotti in branch '2.7':
#1: document default values for socket.getaddrinfo in the text to clarify
that it doesn't accept keyword args.
http://hg.python.org/cpython/rev/1e5e7064e872
--
nosy: +python-dev
Ezio Melotti added the comment:
Fixed, thanks for the report!
--
assignee: docs@python - ezio.melotti
resolution: - fixed
stage: - committed/rejected
status: open - closed
type: - enhancement
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 5be3fa83d436 by Kristján Valur Jónsson in branch '2.7':
issue #879399
http://hg.python.org/cpython/rev/5be3fa83d436
--
nosy: +python-dev
___
Python tracker rep...@bugs.python.org
Changes by Kristján Valur Jónsson krist...@ccpgames.com:
--
resolution: - fixed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue879399
___
___
Kristján Valur Jónsson added the comment:
So, should I commit this? The change is really trivial.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14574
___
Michiel Holtkamp added the comment:
Thanks, I will do that next time. Happy holidays everyone!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16765
___
Changes by Kristján Valur Jónsson krist...@ccpgames.com:
--
nosy: +kristjan.jonsson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16742
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue879399
___
Roundup Robot added the comment:
New changeset a0f6c68ea12f by Ezio Melotti in branch '2.7':
#16677: rename section header and fix markup.
http://hg.python.org/cpython/rev/a0f6c68ea12f
New changeset 2eab4f7b7280 by Ezio Melotti in branch '3.2':
#16677: rename section header and fix markup.
New submission from Ezio Melotti:
http://docs.python.org/2/reference/expressions.html#evaluation-order
says that the dicts are evaluated in this order:
{expr1: expr2, expr3: expr4}
however each value is evaluated before the respective key:
def f(x):
print(x)
return x
{f('k1'): f('v1'),
Ezio Melotti added the comment:
I think it's better to keep the two sections separate, so I just changed the
title from Summary to Operator precedence.
While I was at it I also fixed the markup in a few places in the section and
noticed a mistake in the Evaluation order (reported in #16777).
Ezio Melotti added the comment:
This has already been reported in #11205.
--
resolution: - duplicate
stage: needs patch - committed/rejected
status: open - closed
superseder: - Evaluation order of dictionary display is different from
reference manual.
Andrew Svetlov added the comment:
Fixed.
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16715
___
New submission from Roundup Robot:
New changeset 7d69d04522e3 by Andrew Svetlov in branch 'default':
Replace IOError with OSError (#16715)
http://hg.python.org/cpython/rev/7d69d04522e3
--
nosy: +python-dev
___
Python tracker rep...@bugs.python.org
Georg Brandl added the comment:
I don't think this is the only use of this particular idiom; I recall it is
used every time we amend a function with an _Ex version.
Why was this change necessary?
--
nosy: +georg.brandl, pitrou
___
Python tracker
Ezio Melotti added the comment:
I came across the same problem in #16777.
IMHO the current behavior is better, and the documentation should be fixed
instead, for the following reasons:
1) it's consistent with assignments, where the RHS is evaluated before the LHS
(see also msg128500). This
Georg Brandl added the comment:
BTW it would be good if you could have at least one other developer look at
issues like this and get a LGTM vote before committing all by yourself.
--
___
Python tracker rep...@bugs.python.org
Georg Brandl added the comment:
Can you give examples? I'm unable to guess what exactly you are reporting from
quick experiments.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16772
Ezio Melotti added the comment:
2.7$ ./python -c 'int(5, 12.5)'
Traceback (most recent call last):
File string, line 1, in module
TypeError: integer argument expected, got float
3.2$ ./python -c 'int(5, 12.5)'
3.2$
--
___
Python tracker
Georg Brandl added the comment:
Ah. I was thinking of things like ``int('1.2', 10)``, not the base itself
being a float.
In this case, looks like a bug to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16772
Changes by Senthil Kumaran sent...@uthcode.com:
--
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - Add fixups for encoding problems to wsgiref
___
Python tracker rep...@bugs.python.org
anatoly techtonik added the comment:
The trace module helps to gather program flow statistics and see the
differences in patterns for large systems when program evolves. In particular,
components ported to Python 3 should still behave the same way on Python 2.
Right now the behavior under the
Andrew Svetlov added the comment:
1. Yes, you right. We use this idiom also for PyAST_CompileEx, PyErr_WarnEx and
bunch of functions in ./Include/pythonrun.h
2. Patch is very simple and was available for review almost 3 months.
I assumed that developers looked on this and had no objections.
Stefan Krah added the comment:
Perhaps I misunderstood something, but test_decimal.py *is* using the
exact idiom from PEP-399 and it works. Why do you want to fix the
usage of this idiom?
--
nosy: +skrah
___
Python tracker rep...@bugs.python.org
Ezio Melotti added the comment:
Should this be considered a new feature or should it be applied to older
versions as well?
--
keywords: +easy
stage: - needs patch
type: - enhancement
___
Python tracker rep...@bugs.python.org
Ezio Melotti added the comment:
The script should probably be integrated in Tools/unicode/makeunicodedata.py.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16684
___
Irwin Jungreis added the comment:
The output of the commands you suggested is below. I've attached a short video
showing the problem (listen for the mouse clicks). I also tried with a variety
of fonts (proportional and fixed) and font sizes, both bold and not bold, and
all had the same
Roundup Robot added the comment:
New changeset b11f98872c0f by Ezio Melotti in branch '2.7':
#16760: use ref:`match-objects` instead of :class:`MatchObject`.
http://hg.python.org/cpython/rev/b11f98872c0f
New changeset 7c4ef8faeb4a by Ezio Melotti in branch '3.2':
#16760: use ref:`match-objects`
New submission from Glynn Clements:
The current behaviour of logging.Logger.findCaller() makes it awkward to add
custom logging interfaces.
E.g. suppose that you define a custom logging level (NOTICE) then add a
notice() function (analogous to logging.info() etc), the resulting LogRecord
Ezio Melotti added the comment:
Fixed, thanks for the report!
--
assignee: docs@python - ezio.melotti
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16760
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +vinay.sajip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16778
___
___
Mark Dickinson added the comment:
I agree that this should be fixed.
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16772
___
Ezio Melotti added the comment:
That's because apos; is not a valid character reference in HTML 4, but only in
HTML5/XML/XHTML. A mapping that contains a list of HTML 5 entities has been
added from Python 3.3. Modules like HTMLParser also include apos; among the
entities while parsing.
Andrew Svetlov added the comment:
We need to rename MatchObject to match object than (see #16443)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16760
___
Roundup Robot added the comment:
New changeset 3bee420d400f by Andrew Svetlov in branch '3.2':
rename MathcObject to match object in doctrings for re module (#16760)
http://hg.python.org/cpython/rev/3bee420d400f
New changeset 73b24ee09e0a by Andrew Svetlov in branch '3.3':
rename MathcObject to
Roundup Robot added the comment:
New changeset 6ca8f965fd65 by Andrew Svetlov in branch '2.7':
rename MathcObject to match object in doctrings for re module (#16760)
http://hg.python.org/cpython/rev/6ca8f965fd65
--
___
Python tracker
Andrew Svetlov added the comment:
Fixed in #16760
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16443
___
___
Python-bugs-list mailing list
Andrew Svetlov added the comment:
Done
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16760
___
___
Python-bugs-list mailing list
Unsubscribe:
Ezio Melotti added the comment:
Thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16760
___
___
Python-bugs-list mailing list
Unsubscribe:
Ezio Melotti added the comment:
hg graft should also be mentioned. I now use hg graft 2.7 instead of hg
export 2.7 | hg import - to copy changeset from 2.7 to 3.2 (and then merge on
3.3/3.x).
--
___
Python tracker rep...@bugs.python.org
Stefan Krah added the comment:
I finally understood the issue. So this does not work:
./python -m unittest discover Lib/test/ 'test_dec*.py'
Neither does this:
./python -m unittest discover Lib/test/ 'test_multipro*.py'
And this fails, too (still hanging):
./python -m unittest
Georg Brandl added the comment:
There is no silent acceptance. No comment means that nobody reviewed it, which
is no surprise given the number of open issues :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15422
Georg Brandl added the comment:
So given #1 and #3, I would recommend reverting the part of the patch that
removes the macro. Changing caller sites in CPython sources is fine.
--
___
Python tracker rep...@bugs.python.org
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
resolution: fixed -
stage: committed/rejected -
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15422
___
Michael Foord added the comment:
It smells like a feature to me (it isn't a direct bug fix anyway). It can be
applied to earlier versions of Python through a new unittest2 release.
--
versions: +Python 3.5 -Python 2.7, Python 3.2, Python 3.3
___
New submission from Jeremy Kloth:
The 64-bit linker doesn't mangle the dllexport'ed module init function (from
PyMODINIT_FUNC) so it causes an exported name conflict. We cannot just remove
that name from export_symbols as the module may not have used PyMODINIT_FUNC on
its init function.
The
Charles-François Natali added the comment:
So, should I commit this? The change is really trivial.
LGTM.
This should be applied to 2.7.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14574
Changes by Mark Dickinson dicki...@gmail.com:
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16773
___
___
Roundup Robot added the comment:
New changeset e510e028c486 by Gregory P. Smith in branch 'default':
Fixes issue #16772: int() constructor second argument (base) must be an int.
http://hg.python.org/cpython/rev/e510e028c486
--
nosy: +python-dev
___
Gregory P. Smith added the comment:
If someone thinks this should go into 3.2 and 3.3 they're welcome to do it; no
objections from me. (The behavior was unintentional and thus a bug, but it is
still a minor behavior change)
--
nosy: +gregory.p.smith
Alexey Kachayev added the comment:
Added:
* takelast
* droplast
--
Added file: http://bugs.python.org/file28433/itertools.doc.v2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16774
___
New submission from Lee Long:
Hi all,
For some reason, I have to develop my software with mingw under windows.
First of all, I need python installed in the msys but I try all my ways to
install 2.6.x, 2.7.x, 3.2.x and 3.3.0, no one succeed. I search all issues and
google the related
Chris Jerdonek added the comment:
A test also needs to be added, though I'm sure one will be added as part of
issue 16761.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16772
___
Terry J. Reedy added the comment:
Changing 'datum' to 'value' is a nice touch that I overlooked. It is definitely
friendlier to people whose native language is not latin-infested. Thanks.
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset df51cb946d27 by Kristján Valur Jónsson in branch '2.7':
Issue #14574: Ignore socket errors raised when flushing a connection on close.
http://hg.python.org/cpython/rev/df51cb946d27
--
nosy: +python-dev
Changes by Kristján Valur Jónsson krist...@ccpgames.com:
--
resolution: - fixed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14574
___
___
Andrew Svetlov added the comment:
Not clean to me: has python3 the same bug?
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14574
___
Roundup Robot added the comment:
New changeset ecf3cd3af502 by Chris Jerdonek in branch '2.7':
Add additional links and index entries for argument and parameter.
http://hg.python.org/cpython/rev/ecf3cd3af502
New changeset 31e1f0b7f42e by Chris Jerdonek in branch '3.2':
Add additional links and
STINNER Victor added the comment:
The issue is now fixed on all platforms for Python 3.4. Please keep the
issue open until all changes are backported to Python 3.3 or even Python
3.2.
--
___
Python tracker rep...@bugs.python.org
Mark Dickinson added the comment:
Greg: please could you add a test?
I think that the new check may be too strict: should we also be prepared to
accept any object that implements __index__ as a base? (Similar to the way
that round accepts an __index__-aware object for its second argument.)
Andrew Svetlov added the comment:
I assign the issue to you than. Is it ok?
--
assignee: asvetlov - haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16218
___
Roundup Robot added the comment:
New changeset e8793c5f0ebc by Chris Jerdonek in branch '3.2':
Fix Sphinx warning (missing setting-envvars reference).
http://hg.python.org/cpython/rev/e8793c5f0ebc
--
___
Python tracker rep...@bugs.python.org
Lee Long added the comment:
I then try compiling the version 2.7.3, different errors were shown while 'make'
./Modules/posixmodule.c:6151:5: warning: implicit declaration of function
'wait'[-Wimplicit-function-declaration]
./Modules/posixmodule.c: In function 'posix_fdopen':
R. David Murray added the comment:
The bug tracker is not a place to get help, but is rather for reporting bugs
and proposing patches.
We do not currently support msys/mingw. As you have observed, various patches
have been proposed; however, in order for any of them to get committed, we need
New submission from anatoly techtonik:
When a Python file is exec()uted, it magically fails to find names in imported
modules. The most magical thing in the examples below (b3.py in attach for
Python 3) is that first reference to wintypes.LONG in print statement is
actually successfull.
---
Changes by anatoly techtonik techto...@gmail.com:
Added file: http://bugs.python.org/file28435/a.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16781
___
Changes by anatoly techtonik techto...@gmail.com:
Added file: http://bugs.python.org/file28436/b2.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16781
___
Kristján Valur Jónsson added the comment:
Semantically, but I am told that due to py3k's different file buffering, that
those errors don't percolate through. According to Charles-Francois' post from
apr, 14th:
Note that Python 3.3 doesn't have this problem.
--
anatoly techtonik added the comment:
I'm 3rd to vote for reopening this issue to clarify documentation or to fix
(read below).
== Why it is important to fix
1. First personal user story. Until I saw the localstest.py I couldn't figure
out what all locals() definitions are talking about.
R. David Murray added the comment:
The fact that the print works should be a clue that Python is in fact finding
the module and importing it. So your problem actually has to do with
namespaces, which is something you have to think about when using exec or
execfile. You can see this by
INADA Naoki added the comment:
__contains__ is required for Container.
So there is a clear reason to define it.
Additionaly,
http://docs.python.org/3.3/reference/datamodel.html#object.__contains__
doesn't discourage to implement slower pure-python method.
In case of __reversed__, I can't find
Chris Jerdonek added the comment:
Note that hg graft is already mentioned/discussed in the devguide here:
http://docs.python.org/devguide/committing.html#porting-between-major-versions
--
___
Python tracker rep...@bugs.python.org
New submission from Thomas Ballinger:
Lib/curses/__init__.py has `curses.initwin()` in the docstring example code,
but this function does not exist (should be `initscr()`)
Bad in at least back to 2.4
--
assignee: docs@python
components: Documentation
files: docfix.patch
keywords:
Benjamin Peterson added the comment:
The best solution is to just always pass an explicit namespace to exec. That
should be documented.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16781
Roundup Robot added the comment:
New changeset 60f7197f991f by Gregory P. Smith in branch 'default':
Test for issue16772 and redoes the previous fix to accept __index__-aware
http://hg.python.org/cpython/rev/60f7197f991f
--
___
Python tracker
Gregory P. Smith added the comment:
Having just looked added something to test_int as part of issue16772... There
appears to be an explicit test _for_ this strange behavior in there:
http://hg.python.org/cpython/file/60f7197f991f/Lib/test/test_int.py#l233
test_base_arg_with_no_x_arg
I have
Chris Jerdonek added the comment:
See this thread:
http://mail.python.org/pipermail/python-dev/2012-December/123283.html
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16761
___
Gregory P. Smith added the comment:
Thanks for the pointer to round(). PyNumber_AsSsize_t was just what the doctor
ordered.
PS Grump acknowledged and accepted. Its trunk and we're nowhere near a freeze
so I figured it'd be fine to iterate on it in trunk if needed.
--
New submission from William D. Colburn:
This seems to be just like issue6010, which is closed as not as bug which is
simple irresponsible on the part of Python.
The problem is that I can store data into sqlite3 which cannot be retrieved.
The data I encountered was a string with a \xa0 in it
anatoly techtonik added the comment:
The workaround with the best case is a magical knowledge, which many don't
possess and don't understand (I still don't get it). It's very tempting to ask
why passing explicit namespace is the best solution, but instead I'd like to
concentrate on this case
Changes by B. Clausius ba...@gmx.de:
--
nosy: +barcc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3831
___
___
Python-bugs-list mailing list
96 matches
Mail list logo