New submission from Devin Jeanpierre jeanpierr...@gmail.com:
It's probably best shown by example:
http://ideone.com/4YkqV
Have fun! This one looks hard.
Some notes: Exchanging g2() for iter([1]) makes this go away. Wrapping g2
inside a non-generator iterator does not make this go away.
Changes by Devin Jeanpierre jeanpierr...@gmail.com:
Removed file: http://bugs.python.org/file22550/exception_chaining.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12475
___
Georg Brandl ge...@python.org added the comment:
435eec7b41f0 transplanted to 3.2 in 4e0c1128cda2.
--
versions: -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12346
___
Roundup Robot devnull@devnull added the comment:
New changeset 4e0c1128cda2 by Ralf Schmitt in branch '3.2':
disable ASDLGEN if hg won't work, or if python is not installed.
http://hg.python.org/cpython/rev/4e0c1128cda2
--
___
Python tracker
Changes by Georg Brandl ge...@python.org:
--
assignee: - pitrou
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12475
___
___
Georg Brandl ge...@python.org added the comment:
Yep. It's no surprise that you can crash Python by abusing the gc module, or
the ctypes module, or ...
--
nosy: +georg.brandl
resolution: - wont fix
status: open - closed
___
Python tracker
New submission from anatoly techtonik techto...@gmail.com:
ctypes documentation lacks an example, how to pass a raw data block from Python
to a C function. For example, how to pass this chunk:
data = open('somefile', 'rb').read()
to this function:
int checkBuffer(LPSTR lpData, DWORD
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Can you suggest a patch?
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12476
___
Roundup Robot devnull@devnull added the comment:
New changeset 3ce11ddc9ec3 by Vinay Sajip in branch 'default':
Issue #12406: Added upates for packaging's .exe files, command_template, and
sysconfig.cfg.
http://hg.python.org/cpython/rev/3ce11ddc9ec3
--
nosy: +python-dev
Charles-François Natali neolo...@free.fr added the comment:
The test passes on all the buildbots, closing.
greg, thanks for reporting this!
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker
Charles-François Natali neolo...@free.fr added the comment:
I am pretty sure this is another instance of issue 6721.
Indeed.
Closing as duplicate.
--
status: open - closed
superseder: - Locks in python standard library should be sanitized on fork
Changes by Charles-François Natali neolo...@free.fr:
--
keywords: +needs review
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8035
___
Antoine Pitrou pit...@free.fr added the comment:
Looks like I broke the OS X buildbots:
http://www.python.org/dev/buildbot/all/builders/AMD64%20Snow%20Leopard%202%203.x/builds/609/steps/test/logs/stdio
--
status: closed - open
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
Ok, qsize() can raise NotImplementedError on OS X, which explains quite a bit:
Exception in thread Thread-2:
Traceback (most recent call last):
File
/Users/buildbot/buildarea/custom.parc-snowleopard-1/build/Lib/threading.py,
line 737, in
New submission from Atsushi Odagiri aod...@gmail.com:
Python 3.2 (r32:88445, Feb 20 2011, 21:30:00) [MSC v.1500 64 bit (AMD64)] on
win32
Type help, copyright, credits or license for more information.
input()
a
'a\r'
Python 3.1.3 (r313:86834, Nov 27 2010, 17:20:37) [MSC v.1500 64 bit (AMD64)]
Georg Brandl ge...@python.org added the comment:
This is a duplicate of #11272, which will be fixed in 3.2.1.
--
nosy: +georg.brandl
resolution: - duplicate
status: open - closed
superseder: - input() has trailing carriage return on windows
___
Roundup Robot devnull@devnull added the comment:
New changeset ce52310f61a0 by Antoine Pitrou in branch 'default':
Followup to 51c1f2cedb96 (and issue #12456):
http://hg.python.org/cpython/rev/ce52310f61a0
--
___
Python tracker rep...@bugs.python.org
New submission from Sandro Tosi sandro.t...@gmail.com:
Hello, I think HTTPErrorProcessor documentation at [1] contains a cutpaste
error (from UnknownHandler) for the only method available
[1]
http://docs.python.org/py3k/library/urllib.request.html#httperrorprocessor-objects
because:
anatoly techtonik techto...@gmail.com added the comment:
ISTM that this code works ok.
data = open('data.raw', 'rb').read()
ret = checkBuffer(data, len(data))
You need to make sure that checkBuffer doesn't try to modify memory though. For
mutable memory blocks use create_string_buffer().
Changes by Antoine Pitrou pit...@free.fr:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12456
___
___
Python-bugs-list
New submission from Sandro Tosi sandro.t...@gmail.com:
As reported in http://mail.python.org/pipermail/docs/2011-June/004879.html
urllibs/urllib.request misses the definition of HTTPErrorProcessor class; the
attached patches add it to the documentation.
--
assignee: docs@python
Changes by Sandro Tosi sandro.t...@gmail.com:
Added file: http://bugs.python.org/file22553/HTTPErrorProcessor_class-py27.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12479
___
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12475
___
___
Python-bugs-list
New submission from Or yellowsli...@gmail.com:
I have fieddler2 listening on 0.0.0.0:.
this code is suppose to use the proxy on my localhost.
try:
data = ''
proxy = urllib2.ProxyHandler({'http': '127.0.0.1:'}) //also tried
{'http': 'http://127.0.0.1:/'}
opener =
Or yellowsli...@gmail.com added the comment:
I have fieddler2 listening on 0.0.0.0:.
this code is suppose to use the proxy on my localhost.
try:
proxy = urllib2.ProxyHandler({'http': '127.0.0.1:'}) //also tried
{'http': 'http://127.0.0.1:/'}
opener =
Philip Olson phi...@roshambo.org added the comment:
Thank you, that patch solves this bug report.
However, now I'm not sure which branches we should or must contribute
documentation to. Python versions 2.7, 3.2, and 3.3 are now associated to
this bug report, so are these the active
New submission from Stefan Krah stefan-use...@bytereef.org:
I'm getting the dreaded python_d.exe has stopped working popups
in test_faulthandler on Windows 7 + VisualStudioPro + Debug|x64.
--
components: Tests
messages: 139691
nosy: haypo, skrah
priority: normal
severity: normal
status:
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
pypy did not use a structseq in this case. Fixed in (pypy's repo) dded6e510044
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12412
Senthil Kumaran sent...@uthcode.com added the comment:
Fixed the indentation issues. We could not use automatic reST
footnotes because two links refer to same footnote, so left it as
such.
--
___
Python tracker rep...@bugs.python.org
R. David Murray rdmur...@bitdance.com added the comment:
But pypy passed the attribute access tests in the test suite?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12412
___
Roundup Robot devnull@devnull added the comment:
New changeset cc7ae81cfe91 by Benjamin Peterson in branch '3.2':
restore a generator's caller's exception state both on yield and (last) return
http://hg.python.org/cpython/rev/cc7ae81cfe91
New changeset 33dca840938d by Benjamin Peterson in
Thomas Holmes tho...@devminded.com added the comment:
I setup a proxy and it seems to be working properly. This is on win7 x64
professional using Python 2.7.1
I didn't using any sniffing software but if I broke the proxy the code broke.
When I enabled the proxy it started working again. My
New submission from Dmitriy Gorbachev dgorbac...@yahoo.com:
I am learning Python by running exercises from Programming Python, Mark Lutz
on both Windows and Mac. While exercises run flawlessly on Windows, sometimes
they do not run on Mac.
In particular, in Chapter 1, Step 2: Storing Records
Petri Lehtinen pe...@digip.org added the comment:
It seems to me that you're indeed misusing it.
The correct way would be something like this (assuming response is a
HTTPResponse object from httplib):
self.send_response(response.status)
for name, value in response.getheaders():
Petri Lehtinen pe...@digip.org added the comment:
Behaves incorrectly for me, too. Attached a patch with the suggested fix.
--
keywords: +needs review, patch
nosy: +petri.lehtinen
Added file: http://bugs.python.org/file22555/smtplib_main_prompt.patch
Senthil Kumaran sent...@uthcode.com added the comment:
Hello Stefen,
Yes, I was able to reproduce the issue without the patch and at the
same time, noticed that the problem was not observed in other branches
(py3k), then saw the differences where the possible socket close
delays can happen and
Changes by Petri Lehtinen pe...@digip.org:
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12458
___
___
Python-bugs-list
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
You are certainly using Python 2 with code designed for Python 3...
Can you check?
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12482
Changes by Petri Lehtinen pe...@digip.org:
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12461
___
___
Python-bugs-list
Changes by Petri Lehtinen pe...@digip.org:
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12463
___
___
Python-bugs-list
Changes by Petri Lehtinen pe...@digip.org:
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12464
___
___
Python-bugs-list
Senthil Kumaran sent...@uthcode.com added the comment:
What's new docs are usually for what is coming up new in the upcoming
releases. It is not updated once the release is done. Bug fixes and
related docs are updated in documentation.
--
___
Python
Ned Deily n...@acm.org added the comment:
The test case you've provide is working as expected but the code doesn't make a
lot of sense as provided. The function loadDbase sets sys.stdin to a disk file
but never sets it back again. If you run this in an interactive interpreter on
any
STINNER Victor victor.stin...@haypocalc.com added the comment:
Duplicate of issue #11732.
--
resolution: - duplicate
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12481
STINNER Victor victor.stin...@haypocalc.com added the comment:
Issue #12481 has been marked as duplicate: I'm getting the dreaded
python_d.exe has stopped working popups in test_faulthandler on Windows 7 +
VisualStudioPro + Debug|x64.
--
nosy: +skrah
STINNER Victor victor.stin...@haypocalc.com added the comment:
Most (all?) Windows machines have error reporting enabled unless you mess with
the registry manually
It is disabled on all Windows buildbots. test_capi does also test a crash (I
don't know/remember which test exactly).
--
Stefan Krah stefan-use...@bytereef.org added the comment:
For test_capi the patch in #9116 works. For test_faulthandler it
doesn't, unfortunately.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11732
Changes by Thijs Triemstra li...@collab.nl:
--
nosy: +thijs
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12398
___
___
Python-bugs-list mailing
Stefan Krah stefan-use...@bytereef.org added the comment:
Instead of skipping the test, I prefer to disable temporary the popup by
setting the right registry key (and then restore the previous value or delete
the key).
Do you mean that the user should change/restore the key or that the
Python
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:
--
hgrepos: +35
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12391
___
___
Python-bugs-list
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:
--
keywords: +patch
Added file: http://bugs.python.org/file22556/7ee51c480fec.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12391
___
Stefan Krah stefan-use...@bytereef.org added the comment:
Related issues with patches: #9116 and #11732
--
nosy: +skrah
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5619
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
Do you mean that the user should change/restore the key
or that the Python tests should do that?
Python can change temporary the registry value for the duration of the test.
--
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
The assertion occurs in setup_context() of Python/_warnings.c, called by
fileio_dealloc_warn(). The problem is that globals()['__file__'] is None.
Attached patch should fix this issue.
--
keywords: +patch
nosy: +pitrou
STINNER Victor victor.stin...@haypocalc.com added the comment:
Test script to reproduce the assertion.
--
Added file: http://bugs.python.org/file22558/test_warn_assert.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12467
Antoine Pitrou pit...@free.fr added the comment:
Nice diagnosis!
--
stage: - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12467
___
Changes by Antoine Pitrou pit...@free.fr:
--
type: - crash
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12467
___
___
Python-bugs-list mailing
Alan Hourihane al...@fairlite.co.uk added the comment:
Well, I'd probably prefer something akin to my first patch then.
There's no need to #undef things at all if we just prefix the usage with PYTHON_
--
___
Python tracker rep...@bugs.python.org
Devin Jeanpierre jeanpierr...@gmail.com added the comment:
Updated patch to newest revision, and to use _tokenize function and includes a
test case to verify that it ignores the encoding directive during the
tokenization (and every other) step.
I'll file a tokenize bug separately.
--
Roundup Robot devnull@devnull added the comment:
New changeset 81424281ee59 by Victor Stinner in branch '3.2':
Issue #12451: xml.dom.pulldom: parse() now opens files in binary mode instead
http://hg.python.org/cpython/rev/81424281ee59
New changeset c039c6b58907 by Victor Stinner in branch
Roundup Robot devnull@devnull added the comment:
New changeset cd1759711357 by Victor Stinner in branch '3.2':
Issue #12451: runpy: run_path() now opens the Python script in binary mode,
http://hg.python.org/cpython/rev/cd1759711357
New changeset e240af1f0ae1 by Victor Stinner in branch
Roundup Robot devnull@devnull added the comment:
New changeset a1b4f1716b73 by Victor Stinner in branch '3.2':
Issue #12451: pydoc: importfile() now opens the Python script in binary mode,
http://hg.python.org/cpython/rev/a1b4f1716b73
New changeset 5ca136dccbf7 by Victor Stinner in branch
I am not sure that is comprehensive enough. It is just organized into
OS specific sections and gives little details further on.
So, -1 to this, but +1 to the general idea of having detailed install
and get started documentation.
___
Python-bugs-list
Roundup Robot devnull@devnull added the comment:
New changeset 6886e0bf29bc by Senthil Kumaran in branch '3.2':
Fix closes issue12432 - remove the unused sys from glob.py
http://hg.python.org/cpython/rev/6886e0bf29bc
--
resolution: - fixed
status: open - closed
Devin Jeanpierre jeanpierr...@gmail.com added the comment:
Erp I forgot to run this against the rest of the tests. Disregard, I'll fix it
up a bit later.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11909
Roundup Robot devnull@devnull added the comment:
New changeset c9f69b28c4d1 by Senthil Kumaran in branch '2.7':
Fix closes issue12438 - idlelib.PyShell's showformatwarning method was passing
an incorrect arg.
http://hg.python.org/cpython/rev/c9f69b28c4d1
New changeset e9c406a53972 by Senthil
Have fixed this. Even looking at the code, your suggestion was
correct. But even before the fix, I was not able to reproduce the bug
in Ubuntu and perhaps it was getting masked. May I ask, how did you
invoke idle that this bug surfaced and what was the platform?
New submission from Ryan Kelly r...@rfk.id.au:
According to the docs here:
http://docs.python.org/c-api/gcsupport.html
Any object that uses PyObject_GC_Track in its constructor must call
PyObject_GC_UnTrack in its deallocator. The CThunkObject in _ctypes does the
former but not the later.
Roundup Robot devnull@devnull added the comment:
New changeset ac18e70cbe7e by Victor Stinner in branch '3.2':
Issue #12467: warnings: fix a race condition if a warning is emitted at
http://hg.python.org/cpython/rev/ac18e70cbe7e
New changeset 5133fee2433e by Victor Stinner in branch 'default':
Roundup Robot devnull@devnull added the comment:
New changeset fc46acf7a645 by Victor Stinner in branch '2.7':
Issue #12467: warnings: fix a race condition if a warning is emitted at
http://hg.python.org/cpython/rev/fc46acf7a645
--
___
Python tracker
João Bernardo jbv...@gmail.com added the comment:
@orsenthil
My system is Ubuntu 11.04 x64. To run idle, i press the Super (windows button)
then write idle.
If I open the terminal and type idle, the problem don't appear but I have to
type the password on the terminal rather than on idle GUI.
New submission from Alejandro Santos alej...@alejolp.com:
While the Py_InitModule does not exists on Py3k it is still mentioned on the
docs:
http://docs.python.org/py3k/extending/extending.html#keyword-parameters-for-extension-functions
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11066
___
___
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8077
___
___
Roundup Robot devnull@devnull added the comment:
New changeset 301c008dd58d by Senthil Kumaran in branch '3.2':
Fix closes issue issue12470 - check for utime for the skipUnless condition.
http://hg.python.org/cpython/rev/301c008dd58d
--
nosy: +python-dev
Alejandro Santos alej...@alejolp.com added the comment:
The call is also present on the older 3.1 and dev release of the docs:
http://docs.python.org/release/3.1.3/extending/extending.html#keyword-parameters-for-extension-functions
New submission from Tyler Romeo tylerro...@gmail.com:
Python's textwrap module can be helpful at times, but personally I think there
are a couple of things that could be added.
First, when it comes to text wrapping, usually you're not dealing with a
monospace font where each letter is the
Devin Jeanpierre jeanpierr...@gmail.com added the comment:
Updated.
--
Added file: http://bugs.python.org/file22562/comments3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11909
___
New submission from Devin Jeanpierre jeanpierr...@gmail.com:
tokenize only deals with bytes. Users might want to deal with unicode source
(for example, if python source is embedded into a document with an
already-known encoding).
The naive approach might be something like:
def
Roundup Robot devnull@devnull added the comment:
New changeset 97707459bb5a by Senthil Kumaran in branch '3.2':
Fix closes issue12471 - wrong TypeError message when '%i' format spec was used.
http://hg.python.org/cpython/rev/97707459bb5a
--
nosy: +python-dev
resolution: - fixed
stage:
Roundup Robot devnull@devnull added the comment:
New changeset 8dde71899733 by Ned Deily in branch '2.7':
Issue #10734: Temporarily disable test_ttk test_heading_callback on 2.7 as well.
http://hg.python.org/cpython/rev/8dde71899733
--
nosy: +python-dev
Changes by Ned Deily n...@acm.org:
--
nosy: +ned.deily
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10734
___
___
Python-bugs-list mailing list
Ned Deily n...@acm.org added the comment:
The failure is not unique to Windows. It fails on OS X with the current
ActiveState Tk 8.5.9. I've temporarily disabled the test on 2.7 as well.
--
title: test_ttk failure under Windows - test_ttk test_heading_callback fails
with newer Tk
Roundup Robot devnull@devnull added the comment:
New changeset ea02eca122b5 by Ned Deily in branch '2.7':
Issue #8716: Avoid crashes caused by Aqua Tk on OSX when attempting to run
http://hg.python.org/cpython/rev/ea02eca122b5
New changeset 279488f5a171 by Ned Deily in branch '3.2':
Issue
Ned Deily n...@acm.org added the comment:
Let's try this: when running under OS X, the tk and ttk test runners now
perform their initial Tk-available sanity check in a subprocess rather than in
the main interpreter process. If the subprocess fails, the tests are skipped.
There are some
85 matches
Mail list logo