New submission from Eric Snow ericsnowcurren...@gmail.com:
The formatting for the title of the Index by Category section is different
from the formatting for the title of the Numerical Index section. Not sure
if there is a reason behind this, but here's a patch:
diff --git a/pep0/output.py
Ross Lagerwall rosslagerw...@gmail.com added the comment:
Thanks!
--
resolution: - accepted
stage: commit review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9344
New submission from Eric Snow ericsnowcurren...@gmail.com:
A couple of months back I started a page on the wiki for a topical index of
PEPs from PEP 0 [1]. I got tired of reading through PEPs trying to see if one
related to what I was working on. I found myself wishing there was a topical
Brett Cannon br...@python.org added the comment:
sys.version_info and sys._mercurial provide all the info needed for someone
(like me for mnfy) to know if their code will work against the AST nodes used
by the running interpreter. I say drop __version__.
--
Changes by Nadeem Vawda nadeem.va...@gmail.com:
--
nosy: +nadeem.vawda
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12304
___
___
Changes by Nadeem Vawda nadeem.va...@gmail.com:
--
nosy: +nadeem.vawda
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12306
___
___
Changes by Nick Coghlan ncogh...@gmail.com:
--
assignee: - ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1294232
___
___
Eli Bendersky eli...@gmail.com added the comment:
From a cursory look at reference/datamodel and library/operator, I see no
other instances of this error. I didn't read every word, however (just grepped
for possible operator/operand mismatches).
Also, AFAICS this error is only in 2.7 - the
Roundup Robot devnull@devnull added the comment:
New changeset 3bb5400f5bea by Eli Bendersky in branch '2.7':
Issue #12223: Typo fix in datamodel docs
http://hg.python.org/cpython/rev/3bb5400f5bea
--
nosy: +python-dev
___
Python tracker
Ion Scerbatiuc delinha...@gmail.com added the comment:
Hello,
I would like to subscribe to the issue. The problem seems to indeed exist in
Python 2.7.
What I'm doing is to proxy HTTP requests (using Django) and the PUT / POST
requests are working fine on Python 2.6 but are failing on 2.7
STINNER Victor victor.stin...@haypocalc.com added the comment:
On Linux, it works well with more than one thread.
I added a test using a thread, we will see if it works
on buildbots.
The test hangs on FreeBSD 8.2:
[235/356] test_signal
Timeout (1:00:00)!
Thread 0x000800e041c0:
File
New submission from STINNER Victor victor.stin...@haypocalc.com:
[ 20/356] test_packaging
(...)
Warning -- os.environ was modified by test_packaging
Seen on x86 Tiger buildbot:
http://www.python.org/dev/buildbot/all/builders/x86%20Tiger%203.x/builds/2723/steps/test/logs/stdio
There is also a
Ion Scerbatiuc delinha...@gmail.com added the comment:
Hello again,
After some digging I found that the real problem was because the provided URL
was a unicode string and the concatenation was failing. Maybe this is not a big
deal, but I think we should least do a proper assertion for the
Changes by Nadeem Vawda nadeem.va...@gmail.com:
--
nosy: +nadeem.vawda
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12309
___
___
New submission from STINNER Victor victor.stin...@haypocalc.com:
test_multiprocessing segfaults in a loop. The crash occurs in
_Condition.release() on waiter.release(), called from Queue._finalize_close().
Possible related changes:
- a5c8b6ebe895: new sigwait() test using thread (issue
STINNER Victor victor.stin...@haypocalc.com added the comment:
The test hangs on FreeBSD 8.2: (...)
See also #12310 which may be related.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8407
New submission from Albert Zeyer alb...@googlemail.com:
The attached Python script leaks memory. It is clear that there is a reference
circle (`__dict__` references `self`) but `gc.collect()` should find this.
--
components: Interpreter Core
files: py_dict_refcount_test.py
messages:
Albert Zeyer alb...@googlemail.com added the comment:
Whoops, looks like a duplicate of #1469629.
--
resolution: - duplicate
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12311
STINNER Victor victor.stin...@haypocalc.com added the comment:
a5c8b6ebe895: new sigwait() test using thread (issue #8407)
6d6099f7fe89: add sentinels to multiprocessing (issue #9205)
The first segfaults occured in build #2719 (cedceeb45030):
STINNER Victor victor.stin...@haypocalc.com added the comment:
test_multiprocessing crashs ~700 times on Mac OS X Tiger, regression likely
introduced by this issue (6d6099f7fe89): I created issue #12310 for that.
--
___
Python tracker
Charles-François Natali neolo...@free.fr added the comment:
I just noticed something funny: signal_sigwait doesn't release
the GIL, which means that it's pretty much useless :-)
sigwait() is not useless: the signal is not necessary send by another thread.
The signal can be send by
Antoine Pitrou pit...@free.fr added the comment:
Victor, how can there be hundreds of crashes? Isn't the process supposed to
terminate when a crash occurs?
There are several crashes in test_signal, so it's not only test_multiprocessing:
Thread 0xa000d000:
File
R. David Murray rdmur...@bitdance.com added the comment:
lexer.instream.readline(): no, we can't just call that without the seek,
because reading the token that started with # may have caused the line to be
consumed already. I've expanded the comment to explain this.
cygwin: I'd add a
STINNER Victor victor.stin...@haypocalc.com added the comment:
Victor, how can there be hundreds of crashes?
Isn't the process supposed to terminate when a crash occurs?
Yes, a process does terminate on SIGSEGV, but multiprocessing creates
subprocesses: I suppose that crashes occur in child
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Attached is an improved patch:
1. It's against the 3.2 branch, rather than default.
2. It has an added multiple load test in test_marshal.py.
3. There's more error checking for an EOF condition.
4. I've removed tab chars and used /* C89
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12291
___
___
R. David Murray rdmur...@bitdance.com added the comment:
This should not be applied until after the patch for #12009 is applied, at
which point the test will need to be adjusted. #12009 completely refactors the
netrc test suite.
I wonder if the 'hosts' attribute should be deprecated, but
Roundup Robot devnull@devnull added the comment:
New changeset a17710e27ea2 by Victor Stinner in branch 'default':
Issue #8407: Make signal.sigwait() tests more reliable
http://hg.python.org/cpython/rev/a17710e27ea2
--
___
Python tracker
STINNER Victor victor.stin...@haypocalc.com added the comment:
neologix Patch attached.
I wrote a different patch based on your patch. The main change is that I chose
to keep signal.alarm(1) instead of sending the signal from the parent process
to the child process, because I don't think that
STINNER Victor victor.stin...@haypocalc.com added the comment:
Le vendredi 10 juin 2011 à 09:40 +, Antoine Pitrou a écrit :
There are several crashes in test_signal
Commit a17710e27ea2 should fix some (all?) test_signal crashes.
--
___
Python
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
I don't understand if socket file descriptors are different than
(classic) file descriptors.
On Windows, sockets are completely independent from file descriptors.
A socket id can be large (typically over 1000), fortunately a fd_set
Roundup Robot devnull@devnull added the comment:
New changeset 37a87b709403 by Victor Stinner in branch 'default':
Issue #8407: write error message on sigwait test failure
http://hg.python.org/cpython/rev/37a87b709403
--
___
Python tracker
Roundup Robot devnull@devnull added the comment:
New changeset 60b1ab4d0cd4 by Victor Stinner in branch 'default':
Issue #8407: skip sigwait() tests if pthread_sigmask() is missing
http://hg.python.org/cpython/rev/60b1ab4d0cd4
--
___
Python tracker
STINNER Victor victor.stin...@haypocalc.com added the comment:
Version 2 of my patch (mbcs2.patch):
- patch also the encoder: fix ignore/replace depending on the Windows version,
support any error handler: encode character per character if encoding in strict
mode fails
- Add
STINNER Victor victor.stin...@haypocalc.com added the comment:
Example on Windows Vista with ANSI=cp932:
import codecs
codecs.code_page_encode(1252, '\xe9')
(b'\xe9', 1)
codecs.mbcs_encode('\xe9')
...
UnicodeEncodeError: 'mbcs' codec can't encode characters in position 0--1:
invalid
STINNER Victor victor.stin...@haypocalc.com added the comment:
Decode examples, ANSI=cp932:
codecs.code_page_decode(1252, b'\x80')
('\u20ac', 1)
codecs.code_page_decode(932, b'\x82')
...
UnicodeDecodeError: 'mbcs' codec can't decode bytes in position 0--1: No
mapping for the Unicode
Roundup Robot devnull@devnull added the comment:
New changeset 33b7428e65b4 by Victor Stinner in branch '3.1':
Issue #10801: Fix test_unicode_filenames() of test_zipfile
http://hg.python.org/cpython/rev/33b7428e65b4
--
___
Python tracker
New submission from tanushree tanushree.gho...@gmail.com:
thank u very much for registering me .
--
messages: 138082
nosy: tanushree.gho...@gmail.com
priority: normal
severity: normal
status: open
title: is ok
___
Python tracker
Changes by Brian Curtin br...@python.org:
--
resolution: - invalid
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12312
___
Éric Araujo mer...@netwok.org added the comment:
Thanks for the patch. Have you had a chance to investigate Terry’s question?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7969
___
Éric Araujo mer...@netwok.org added the comment:
When I said “I don’t like the idea of built-in functions being displayed as
‘builtins.int’”, I was thinking about the output of “.. function:: int” in
combination with the module directive. I don’t know if using currentmodule
instead of module
Éric Araujo mer...@netwok.org added the comment:
OK, I'll test it too.
Thanks. In case you’re not sure how to test my patch, see
http://docs.python.org/devguide/faq#how-do-i-apply-a-patch and
http://docs.python.org/devguide/runtests
I looked sources of packaging. That use
Éric Araujo mer...@netwok.org added the comment:
memoryview and frozenset do have a small entry in library/functions, and the
links at the top of the file are meant to jump to entries in the same file.
--
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Thanks for your contribution. Unfortunately, I used “distutils2” as a familiar
name for what is now known as the packaging module, in the 3.3 standard
library. This document should help you find the right codebase to work from:
Georg Brandl ge...@python.org added the comment:
Why is any module directive needed anyway?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11975
___
Georg Brandl ge...@python.org added the comment:
Well, then a different way of linking to them must be used.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12298
___
Éric Araujo mer...@netwok.org added the comment:
Certainly. I tried using `.memoryview` without success. How would you do it?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12298
___
Georg Brandl ge...@python.org added the comment:
You can put an anchor and use :ref:.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12298
___
Éric Araujo mer...@netwok.org added the comment:
while running the test command (pysetup run test)?
Yes, that’s the correct invocation.
The use case: [...]
I agree with the need. I’ve added a dep on the bug requesting the addition of
a build_distinfo command; once it is done, this bug will
Éric Araujo mer...@netwok.org added the comment:
A productive thing to do would be to ask feedback on python-ideas for this new
feature.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2057
Éric Araujo mer...@netwok.org added the comment:
Typo: sysconfig does *not* rely on packaging.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12302
___
Éric Araujo mer...@netwok.org added the comment:
Sounds like the easiest solution that could work, thanks. I’m on it.
--
assignee: docs@python - eric.araujo
status: closed - open
___
Python tracker rep...@bugs.python.org
Changes by Tres Seaver tsea...@agendaless.com:
--
nosy: -tseaver
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8407
___
___
Python-bugs-list
New submission from Éric Araujo mer...@netwok.org:
Here’s a patch adding Lib/packaging subdirectories to Makefile.pre.in. Because
of our extensive tests for pypi-related code, the list is huge. Maybe it
should use a call to find(1) instead of using a fragile manually-maintained
list, so I’m
Éric Araujo mer...@netwok.org added the comment:
Here’s a patch adding “return 1” after all errors, unifying the use of logging
and cleaning up a few things (like moving KeyboardInterrupt handling from the
_run function up to the main function).
--
keywords: +patch
Added file:
Éric Araujo mer...@netwok.org added the comment:
BTW, some functions do not explicitly return 0, but this is okay: they will
return None, which is a boolean false value, which is understood as 0 by
sys.exit.
--
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
If you don’t add the distutils2 component or our name to the nosy field, we
can’t react quickly :)
I don’t know our networking code enough to track down the socket-related
resource warnings; I’ll look into the os.environ issue.
--
Antoine Pitrou pit...@free.fr added the comment:
Well, I agree on the principle, but it is a change in behaviour and would
probably break some user code...
Perhaps by adding some new argument to the mmap constructor? (dup_fd = True)
--
___
Python
New submission from Éric Araujo mer...@netwok.org:
When regrtest tells me that os.environ was modified by test_packaging, it’s
very hard to find which test is responsible. The -vv output is hard to read:
it prints four dictionaries, which I have to visually delineate, copy, paste,
Changes by Éric Araujo mer...@netwok.org:
--
dependencies: +regrtest checks (os.environ, sys.path, etc.) are hard to use
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12309
___
Benjamin Peterson benja...@python.org added the comment:
I look at it this way: If I was browsing the 2.7 code and saw that type check,
would I remove it in the bugfix release? No.
I'm going to mark this resolved. Thanks everyone.
--
resolution: - works for me
status: open - closed
Antoine Pitrou pit...@free.fr added the comment:
Nit: when a patch gets committed and the issue closed, the preferred resolution
is fixed ;)
(see http://docs.python.org/devguide/triaging.html#resolution)
--
resolution: accepted - fixed
___
Python
Éric Araujo mer...@netwok.org added the comment:
I started to work on this some months ago, so I can review your patch.
Before you start, it’s probably worth asking on python-dev or pydotorg whether
the machines that build and host the PEPs have Python 3 installed. I can ask
on your behalf
Ross Lagerwall rosslagerw...@gmail.com added the comment:
Nit: when a patch gets committed and the issue closed, the preferred
resolution is fixed ;)
(see http://docs.python.org/devguide/triaging.html#resolution)
Sure, I will try remember that.
--
Roundup Robot devnull@devnull added the comment:
New changeset c12401a83a13 by Éric Araujo in branch 'default':
Remove *.egg-info from Makefile.pre.in (follow-up to d615eb7bce33, #12218)
http://hg.python.org/cpython/rev/c12401a83a13
--
___
Python
Roundup Robot devnull@devnull added the comment:
New changeset ff58eec3336b by Éric Araujo in branch 'default':
Don’t try to install something when running from uninstalled source (#12246).
http://hg.python.org/cpython/rev/ff58eec3336b
--
nosy: +python-dev
Éric Araujo mer...@netwok.org added the comment:
Fixed. Welcome to Misc/ACKS !
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
type: behavior - feature request
___
Python tracker rep...@bugs.python.org
R. David Murray rdmur...@bitdance.com added the comment:
Improvements are welcome, the whole thing was a QnD hack that has been evolving
over time...maybe there's some way to reuse unittest's assertEqual machinery?
I also wonder if the whole environment-changed thing should be moved into
Changes by R. David Murray rdmur...@bitdance.com:
--
stage: - needs patch
type: - feature request
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12314
___
Éric Araujo mer...@netwok.org added the comment:
maybe there's some way to reuse unittest's assertEqual machinery?
Hum, I think the diff functionality is cleanly separated in a (private) method,
so we could get diff for free.
I also wonder if the whole environment-changed thing should be
Antoine Pitrou pit...@free.fr added the comment:
Good idea, and thanks for posting a patch! This is a new feature, so 3.3-only.
Also, you'll need to update the docs (Doc/library/zlib.rst, presumably) to add
the new module method/attribute (with a suitable versionadded tag).
Nitpicking:
-
Éric Araujo mer...@netwok.org added the comment:
Should this new attribute be documented?
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12168
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11610
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
Here’s a patch.
--
keywords: +needs review, patch
resolution: accepted -
stage: needs patch - patch review
versions: +Python 3.3 -Python 3.1
Added file: http://bugs.python.org/file22318/doc-atexit-order-undefined.diff
Éric Araujo mer...@netwok.org added the comment:
I added tests to cover non-existing attributes and updated the code to follow
your clever suggestion.
--
Added file: http://bugs.python.org/file22319/fix-pydoc-str.translate-3.2.diff
___
Python
Changes by Éric Araujo mer...@netwok.org:
Removed file: http://bugs.python.org/file21723/fix-argparse-class-directive.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8982
___
Éric Araujo mer...@netwok.org added the comment:
Patch refreshed. If I get no negative feedback, I’ll commit it next week.
--
Added file: http://bugs.python.org/file22320/fix-argparse-class-directive.diff
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
I don't see any discrepancy here (with Python 3.3). Under both Linux and
Windows, the client thread prints:
ERR [Errno 3] _ssl.c:1126: The operation did not complete (write)
done
The only difference is that the server thread receives 128KB
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12306
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
Now something I don't understand is how reportlab distribution is doing
to copy the compiled extensions when install is called.
I think clib stuff is installed in the right python directory and the
ext install step then just finds them.
Yep,
Antoine Pitrou pit...@free.fr added the comment:
I started a draft in python. I am attaching the _pyio version along
with tests. I will continue work on the C implementation and
eventually documentation if this is well received. It seems
straightforward, I am interested to see what you guys
Antoine Pitrou pit...@free.fr added the comment:
See issue12197 for a related request.
--
versions: +Python 3.3 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8240
___
Antoine Pitrou pit...@free.fr added the comment:
Is someone investigating this?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12167
___
___
Roundup Robot devnull@devnull added the comment:
New changeset cb3a77b0f8dd by Benjamin Peterson in branch '2.7':
fix regression in netrc comment handling (closes #12009)
http://hg.python.org/cpython/rev/cb3a77b0f8dd
New changeset 6993910be426 by Benjamin Peterson in branch '2.7':
merge 2.7.2
Éric Araujo mer...@netwok.org added the comment:
Thanks for the detailed review. I’d like to work on a number of them. I think
I’ll open focused bug reports and make this one depend on them; this will let
interested people see the new bugs and possibly give feedback.
The Language Reference
Changes by Éric Araujo mer...@netwok.org:
--
dependencies: +Better document user site-packages in site module doc, setup.py
install --user option undocumented
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11553
Charles-François Natali neolo...@free.fr added the comment:
I don't think the order should be defined.
I disagree.
The C standard explicitely states that the functions are called in LIFO order
(which is the natural order in this case).
The current implementation guarantees LIFO order, I
Éric Araujo mer...@netwok.org added the comment:
I’m afraid I don’t understand enough to fix this. I looked at
test_simple_built in test_command_bdist_dumb and found no C code involved.
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
I’m afraid I don’t understand enough to fix this. I looked at
test_simple_built in test_command_bdist_dumb and found no C code
involved.
It means that either packaging or test_packaging keeps references to
more and more objects.
You don't
Éric Araujo mer...@netwok.org added the comment:
Ah, it’s just refcounting issues? I can probably use the gc module to find
them, and add del statements where appropriate to release objects.
--
___
Python tracker rep...@bugs.python.org
Changes by Michael Mulich michael.mul...@gmail.com:
--
nosy: +michael.mulich
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12279
___
___
Roundup Robot devnull@devnull added the comment:
New changeset 3cf5d61fd6d7 by Vinay Sajip in branch '3.2':
Documented change for Issue #12168.
http://hg.python.org/cpython/rev/3cf5d61fd6d7
New changeset 6658b9b9f5f3 by Vinay Sajip in branch 'default':
Merged documentation change for Issue
Terry J. Reedy tjre...@udel.edu added the comment:
Ion, as you perhaps noticed, posting a message 'subscribes' you (puts you on
the nosy list). One can also add oneself as nosy with the little button under
it without saying anything.
This should be reopened because we do not change error
New submission from harobed steph...@harobed.org:
This is a patch to improve http.client.HTTPResponse.read documentation.
What do you think about ?
--
assignee: docs@python
components: Documentation
files: improve_http.client_documentation.patch
keywords: patch
messages: 138129
nosy:
Bryan Schmersal bryan.schmer...@gmail.com added the comment:
I have a module that I was using on 2.5 that uses subprocess.Popen to monitor
the output from some external programs in several different threads. Of
course, subprocess.Popen uses os.fork. When I upgraded to 2.7 which includes
Tshepang Lekhonkhobe tshep...@gmail.com added the comment:
On Fri, 2011-06-10 at 16:46 +, Éric Araujo wrote:
Éric Araujo mer...@netwok.org added the comment:
Fixed. Welcome to Misc/ACKS !
loveliness :)
--
___
Python tracker
STINNER Victor victor.stin...@haypocalc.com added the comment:
It looks like the sentinel doesn't handle fatal death of the child process:
test test_multiprocessing crashed -- Traceback (most recent call last):
File ./Lib/test/regrtest.py, line 1043, in runtest_inner
File
Darren Dale dsdal...@gmail.com added the comment:
I posted the following at python-dev
(http://mail.python.org/pipermail/python-dev/2011-June/111837.html):
I would like to try to address some shortfalls with the way python deals with
abstract base classes containing descriptors. I originally
Darren Dale dsdal...@gmail.com added the comment:
Here is an improved patch, which includes feedback from python-dev. make test
runs without failures, however test_abc.py prints deprecation warnings for
abstractproperty. I'm not familiar with the protocol here, do we continue to
include unit
Changes by Darren Dale dsdal...@gmail.com:
Removed file: http://bugs.python.org/file22322/abc_descriptors.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11610
___
1 - 100 of 126 matches
Mail list logo