Chris Jerdonek chris.jerdo...@gmail.com added the comment:
Thanks for the info. A couple questions: what does won't break mean -- that
it won't throw an exception of a type that it wouldn't normally throw in a
single-threaded environment? And does this mean that not even deque.pop() is
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
I think some of the information in the issue 15330 comments would be very
helpful to add as well (what thread-safe means in Python, distinction between
thread-safe and atomic, and which deque methods are thread-safe and/or atomic).
If
Ned Deily n...@acm.org added the comment:
The resolution of this test failure is dependent on the resolution of
Issue15298, which will change the approach needed. Since this is a relatively
minor issue, I don't think there is a need for a interim fix.
--
components: +Tests
priority:
Ned Deily n...@acm.org added the comment:
(Once this issue is resolved, a permanent fix for the minor OS X test case
failure of Issue15188 can be developed and applied.)
--
nosy: +ned.deily
___
Python tracker rep...@bugs.python.org
Changes by Ned Deily n...@acm.org:
--
dependencies: +_sysconfigdata is generated in srcdir, not builddir
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15188
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
I wrote this patch with the assumption that it shouldn't hurt
if multiple threads call deque.extend() at the same time.
By looking at the implementation, I found that if multiple threads call
dequeue.extend() at the same time, all
Georg Brandl ge...@python.org added the comment:
Please leave this for Python 3.4 -- it is not a bugfix.
--
nosy: +georg.brandl
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15302
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
That sounds fine. And thanks for investigating.
By the way, I created issue 15329 earlier today to clarify what guarantees
deque provides with respect to multithreading. For example, the distinction
between thread-safe and atomic is
Ned Deily n...@acm.org added the comment:
I think you're right that the casts are incorrect. I think the existing cast
ia a day one bug in Python 3. The question is why hasn't it been a problem?
That area needs fixing up since NSModuleForSymbol, NSLookupAndBindSymbol, and
Mark Summerfield m...@qtrac.eu added the comment:
I think there is a solution to this that can be applied in one's own code:
app = tkinter.Tk()
icon = tkinter.PhotoImage(file=icon.gif)
app.tk.call(wm, iconphoto, app, -default, icon)
According to the docs (and it seems to be true), the icon
Serhiy Storchaka storch...@gmail.com added the comment:
sys.stdin.write returns the wrong error message when passed a non-string.
Presently it returns io.UnsupportedOperation instead of TypeError: must be
str, not ...
It's not a bug. sys.stdin.write raises io.UnsupportedOperation in
Serhiy Storchaka storch...@gmail.com added the comment:
Ah. See blockfiles-3.diff then.
Well, I have no objections. Patch fixes this issue.
Where do you see that? In my patch, _RPCInputFile inherits from
_RPCFile, which is neither output nor input. Instead, _RPCOutputFile
also inherits
Serhiy Storchaka storch...@gmail.com added the comment:
Reply to Roger's emailed answer to my Rietveld comment.
On 07/11/2012 11:10 AM, storch...@gmail.com wrote:
http://bugs.python.org/review/7163/diff/4367/Lib/idlelib/OutputWindow.py
File Lib/idlelib/OutputWindow.py (right):
Ronald Oussoren ronaldousso...@mac.com added the comment:
The current code works, and I don't understand why it does.
I'd love to get rid of the long deprecated APIs like NSModuleForSymbol as well,
but we'll have to ask the RM if that is an acceptable change at this point in
the 3.3 release
New submission from Nick Coghlan ncogh...@gmail.com:
In writing a post looking at a potentially different way of handling codec
pipelines that is source compatible across both Python 2 and 3, I noticed that
the bytes-bytes codec aliases are all missing but are still listed in the
Hynek Schlawack h...@ox.cx added the comment:
The patch looks good enough. Not sure if we should write Linux though. I
sincerely hope we’ll support xattrs on other OSes soonish.
Did you catch Georg somewhere whether this can still go in? Would be nice as
xattrs are new to 3.3. Changing this
Hynek Schlawack h...@ox.cx added the comment:
I didn’t, because I pulled an Antoine and enjoyed weather, people and Florence.
:)
I understand it’s okay to apply this towards 3.2 3.3 (with the proposed
fixes)?
2.7 is not necessary because this problem doesn’t exist there:
Georg Brandl ge...@python.org added the comment:
Yeah, good to go. But please re-insert a blank line in the test suite changes
after the end of the method.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15238
Martin v. Löwis mar...@v.loewis.de added the comment:
We can ask the author.
Martin, why OutputWindow.write accepts bytes in a724279fc931?
That change was to add support for str8, a type that no longer exists.
Should it be deleted if it is deprecated artifact or should
Serhiy Storchaka storch...@gmail.com added the comment:
That change was to add support for str8, a type that no longer exists.
str8 was renamed to bytes in 0d462d789b18.
The general design guideline apparently is that sys.stdout in IDLE
should work the same as the interactive shell.
Changes by Brett Cannon br...@python.org:
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15328
___
___
Python-bugs-list
Ronald Oussoren ronaldousso...@mac.com added the comment:
I've attached a new version of the patch:
* copy to tmp buffer instead of argv0_buffer (see comment by Ned)
* add include in pythonw.c to avoid compiler warning
* use _Py_char2wchar instead of blindly casting a char* to a wchar_t*
R. David Murray rdmur...@bitdance.com added the comment:
Don't you have to resolve issue 7475 before you can add them, though?
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15331
New submission from Jakub Wilk jw...@jwilk.net:
Python 3 is more rigid about mixing tabs and spaces within a single file. 2to3
should either fix indentation that would become a syntax error in Python 3.X,
or maybe issue a warning about it (or both).
Example:
$ python badtabs.py echo okay
Ronald Oussoren ronaldousso...@mac.com added the comment:
based on code inspection I'd say that sys.executable was broken without my
patch as well. The code that sets that value is unchanged from Python 3.2, and
that points to the executable inside the Python.app application bundle.
I've
Larry Hastings la...@hastings.org added the comment:
Georg: done.
Hynek: You must forgive me, I'm a recovering Windows programmer. I thought
extended attributes were a Linux-only thing. Can you tell me what other
platforms they are available on? And/or suggest some alternate language?
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
Why not use locks to guard critical sections rather than relying on
implementation details regarding atomicity?
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
Roger Serwy roger.se...@gmail.com added the comment:
On 07/12/2012 04:13 AM, Serhiy Storchaka wrote:
Serhiy Storchakastorch...@gmail.com added the comment:
sys.stdin.write returns the wrong error message when passed a non-string.
Presently it returns io.UnsupportedOperation instead of
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
Yes, that is what I took Amaury's comment to mean. I started working on a
patch that incorporates a lock.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15320
New submission from Andrew MacKeith and...@mackeith.net:
In certain cases, a compiled Python file (.pyc) created on Unix will be
recompiled when imported on Windows, despite the original code file (.py) being
the same.
The cause is the use of the c fstat function in import.c.
This behavior is
Mark Dickinson dicki...@gmail.com added the comment:
Is this the same issue as issue #13863?
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15333
___
Antoine Pitrou pit...@free.fr added the comment:
Yes, that is what I took Amaury's comment to mean. I started working on a
patch that incorporates a lock.
For the sake of clarity, I think Raymond suggests using a lock in regrtest, not
in deque.
--
Antoine Pitrou pit...@free.fr added the comment:
Is this the same issue as issue #13863?
Judging by Andrew's diagnosis, I think so.
--
nosy: +pitrou
resolution: - duplicate
status: open - closed
superseder: - import.c sometimes generates incorrect timestamps on Windows +
NTFS
Antoine Pitrou pit...@free.fr added the comment:
It shouldn't affect 3.3 anymore (importlib using the os module rather than
direct C calls to msvcrt). Could someone check?
--
nosy: +mackeith
versions: -Python 3.3
___
Python tracker
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
I think you're over-reaching. We make almost no guarantees about atomicity.
Having multiple implementations of Python makes that an even harder task.
In general, critical sections need to be guarded with locks. If an object
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
A couple questions: what does won't break mean
That means that its internal invariants always survive in a multi-threaded
environment.
that it won't throw an exception of a type that it
wouldn't normally throw in a
Serhiy Storchaka storch...@gmail.com added the comment:
sys.stdin.write('qwe')
Traceback (most recent call last):
File stdin, line 1, in module
io.UnsupportedOperation: not writable
--
___
Python tracker rep...@bugs.python.org
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Pypy tends to make fewer guarantees because it implements
more classes in pure python.
This is not exactly true; in PyPy the _collection module was rewritten in
RPython (which is translated to C) for this very reason: to make
Antoine Pitrou pit...@free.fr added the comment:
Classes written in C are necessarily thread-safe (they rely on the GIL)
That's not really true. A single Py_DECREF() can release the GIL by way of
executing a Python __del__ method (or a weakref callback, or even the
tp_dealloc of a file
Roger Serwy roger.se...@gmail.com added the comment:
sys.stdin.write('qwe')
Traceback (most recent call last):
File stdin, line 1, inmodule
io.UnsupportedOperation: not writable
--
I'm passing a number, *not* a string.
--
___
Python
New submission from Jeremy Kloth jeremy.kloth+python-trac...@gmail.com:
The registry key HKEY_PERFORMANCE_DATA is not accessible for non-interactive
users (e.g., buildbot as a service).
The following patches skip the offending test when the tests unless the they
are run from an interactive
Changes by Jeremy Kloth jeremy.kloth+python-trac...@gmail.com:
Added file: http://bugs.python.org/file26369/winreg-3.x.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15334
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +brian.curtin, stutzbach, tim.golden
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15334
___
New submission from Roger Serwy roger.se...@gmail.com:
The IDLE debugger steps through the internals of _RPCFile.
To reproduce this bug, create a new .py file with a few print statements,
enable the debugger, and then run the file. Stepping through the print
statement enters into _RPCFile.
Matthias Klose d...@debian.org added the comment:
while I appreciate the fix for #13150, it's the patch for #13150 which
introduces the ugliness to build the file in the srcdir in the first place.
re-setting the bug severity. the current behaviour can result in a bogus
installation; please
Matthias Klose d...@debian.org added the comment:
the current ability to cross-build python now relies on being able to run the
build python with the host library, using the _sysconfigdata.py from the host.
if somebody decides to implement _sysconfigdata as a C extension, please ensure
that
Roger Serwy roger.se...@gmail.com added the comment:
Debugger.py has a method in_rpc_code which ultimately prevents stepping
though code from rpc.py. (Presently an external file named rpc.py can not be
debugged using IDLE.)
Adding run.py to the check would prevent run.py from being stepped,
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15298
___
___
Python-bugs-list
Martin v. Löwis mar...@v.loewis.de added the comment:
I suggest to add a decorator @Debugger.internal for all methods that the
debugger should not step into. It should set a function attribute that the
debugger then checks for.
OTOH, I fail to see the problem. Stepping through the standard
Benjamin Peterson benja...@python.org added the comment:
You can already find this using python -tt and fix it using reindent.py.
--
nosy: +benjamin.peterson
priority: normal - low
___
Python tracker rep...@bugs.python.org
Ned Deily n...@acm.org added the comment:
See open Issue12978.
--
nosy: +ned.deily
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15238
___
___
Roger Serwy roger.se...@gmail.com added the comment:
Attached is a patch to allow toggling of the ColorDelegator. It can be toggled
using the existing, but undocumented, Control-/ binding.
The patch modifies the toggle_colorize_event to fully remove coloring or
fully recolorize the text
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset afdb0e1a9dac by Stefan Krah in branch 'default':
Issue #7652: Clean up _mpd_qinvroot() and mark it LIBMPDEC_ONLY. Use the
http://hg.python.org/cpython/rev/afdb0e1a9dac
--
Stefan Krah stefan-use...@bytereef.org added the comment:
I switched the algorithm in mpd_qsqrt() to the one from decimal.py.
Previously the square root was calculated in terms of 1/invsqrt(x).
Curiously enough this scheme _always_ seems to produce exact results
when expected, but I don't have
New submission from Raymond Hettinger raymond.hettin...@gmail.com:
In this script, '-x' is required argument:
--
import argparse
p = argparse.ArgumentParser()
p.add_argument('-x', required=True)
p.print_help()
However, the automatically generated help
New submission from Raymond Hettinger raymond.hettin...@gmail.com:
The following minimal script:
-
import cmd
class C(cmd.Cmd): pass
C().cmdloop()
Creates the following help display:
---
(Cmd) help
Undocumented commands:
New submission from Antoine Pitrou pit...@free.fr:
On the Win64 buildbot, trying to access an UNC path raises PermissionError,
which makes a test fail:
==
ERROR: test_UNC_path (test.test_import.PathsTests)
Antoine Pitrou pit...@free.fr added the comment:
Example URL for the aforementioned failure:
http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/282/steps/test/logs/stdio
--
___
Python tracker rep...@bugs.python.org
Changes by Daniel Neuhäuser dasdas...@googlemail.com:
--
nosy: +DasIch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9867
___
___
Python-bugs-list
Antoine Pitrou pit...@free.fr added the comment:
This has been fixed in issue #10956 (Python 3 and the io module) and issue
#12268 (Python 2's file objects).
--
components: +Interpreter Core
resolution: - out of date
status: open - closed
versions: -Python 3.1
Changes by Antoine Pitrou pit...@free.fr:
--
resolution: out of date - duplicate
superseder: - file readline, readlines readall methods can lose data on
EINTR
versions: -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
New submission from Chris Jerdonek chris.jerdo...@gmail.com:
I think it would be helpful if the Python documentation included certain
high-level information about multi-threading in Python.
At minimum, I think it would help for the documentation to provide a definition
that can be linked to
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
I created issue 15339 to document the multi-threading facts of life in Python
(independent of any particular module or package, including this one), along
the lines suggested by Raymond.
--
Antoine Pitrou pit...@free.fr added the comment:
This sounds like a good idea. Either a HOWTO or a FAQ would sound appropriate.
--
nosy: +pitrou
versions: +Python 2.7, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
I compared both implementations, and they are the same.
I noticed that on line 7537, the call to mpd_qshiftl() may goto
malloc_error;. I think there is a memory leak in this case, mpd_del(c) and
2 others lines are skipped.
New submission from Ian Wienand i...@wienand.org:
Hi,
Lib/random.py has a fallback if os.urandom() returns NotImplementedError
---
from os import urandom as _urandom
...
def seed(self, a=None):
if a is None:
try:
a = long(_hexlify(_urandom(16)), 16)
Stefan Krah stefan-use...@bytereef.org added the comment:
Thanks, Amaury! -- goto malloc_error should not leak, because there's always
a jump to the out label in line 7563.
I use this idiom a lot ever since I saw it in several places in the Linux
kernel. Of course it's a matter of taste.
New submission from moras moorshed moorshe...@yahoo.com:
Im beginner with python, and I want to connect python to Cplex, IBM optimizer,
I installed the python on this path:
'C:\Program Files\IBM\ILOG\CPLEX_Studio123\cplex\python\x86_win32\cplex'
but when i want to create new file using
Matthias Klose d...@debian.org added the comment:
like other platform dependent files _sysconfigdata.py should be installed in
plat-*
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15298
Antoine Pitrou pit...@free.fr added the comment:
like other platform dependent files _sysconfigdata.py should be installed in
plat-*
What are you talking about? plat-* files are only OS-specific, while
_sysconfigdata also depends on configure options and other stuff.
--
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Hi, the bug tracker is not designed to get help.
Please ask questions on the python-list forum, or the comp.lang.python
newsgroup. There are many friendly people there...
Be ready to come with a short script showing the error.
Ned Deily n...@acm.org added the comment:
Terry, are you planning to commit this? If not, I can do it. It would be good
to get this into 3.3.0b2 since it does fix an important usability issue.
--
___
Python tracker rep...@bugs.python.org
Terry J. Reedy tjre...@udel.edu added the comment:
I agree. Go ahead. But what do you think of applying to 2.7 and or 3.2?
I want to add a sentence to Idle help, which I want to edit for the tooltips
issue also. But that is not a rush.
--
___
New submission from Pan Yongzhi fossi...@users.sourceforge.net:
I am constructing a source directory argument to rsync. It has to end with
slash due to rsync behavior. I use:
os.path.join('/src/dir', os.path.sep)
And run it and realized the source directory becomes '/'. Luckily it is not the
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
Here is another patch -- this one making no implementation assumptions about
thread-safety or atomicity.
--
Added file: http://bugs.python.org/file26371/issue-15320-3.patch
___
Python
Eli Bendersky eli...@gmail.com added the comment:
Thanks, this looks much better. I've reviewed the _4 patch with some minor
comments.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1767933
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +bethard, ezio.melotti
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15336
___
umedoblock umedobl...@gmail.com added the comment:
I fixed this problem.
I make new methos _decode_filename().
--
keywords: +patch
nosy: +umedoblock
Added file: http://bugs.python.org/file26372/zipfile.patch
___
Python tracker rep...@bugs.python.org
New submission from Christopher the Magnificent
ultimate.mac.fana...@gmail.com:
Let there be a folder testpkg contained in $SOME_DIR with three empty files:
__init__.py, bob.py, and sally.py
If I run pydoc3.2 -w testpkg inside $SOME_DIR, it will output the file
$SOME_DIR/testpkg.html
In
Changes by Christopher the Magnificent ultimate.mac.fana...@gmail.com:
--
title: pydoc -w package writes out page with empty package contents
section - pydoc -w package writes out page with empty Package Contents
section
___
Python tracker
Changes by Christopher the Magnificent ultimate.mac.fana...@gmail.com:
--
title: pydoc -w package write out page with empty package contents
section - pydoc -w package writes out page with empty package contents
section
___
Python tracker
Eli Bendersky eli...@gmail.com added the comment:
Serhiy - why did you remove that documentation bit?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15296
___
New submission from Eric Snow ericsnowcurren...@gmail.com:
When running make_a_box.py:
Fetching Mercurial ...
make_a_box.py:197: ResourceWarning: unclosed socket.socket object, fd=3,
family=2, type=1, proto=6
file_url = self._download_url()
Traceback (most recent call last):
File
Eric Snow ericsnowcurren...@gmail.com added the comment:
I'm re-running it from a clean directory one more time just to make sure.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15344
___
Changes by Eli Bendersky eli...@gmail.com:
--
priority: - deferred blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14790
___
___
Eli Bendersky eli...@gmail.com added the comment:
Eric: your note appears to be fixed in the code.
Can this issue be closed?
--
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14600
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13238
___
___
Python-bugs-list
87 matches
Mail list logo