Georg Brandl ge...@python.org added the comment:
Ezio: That's a bug in Sphinx; even when the language is selected explicitly
as python, it will try to parse the code. It is fixed in a later Sphinx
version.
--
nosy: +georg.brandl
___
Python tracker
Stefan Behnel sco...@users.sourceforge.net added the comment:
As long as there is a way to access these fields directly from the
struct (with the usual preprocessor conditional), I don't think Cython
will actually start to use the PyErr_[GS]etExcInfo() functions in
CPython - simply for
Changes by Kristján Valur Jónsson krist...@ccpgames.com:
--
nosy: +kristjan.jonsson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11750
___
___
Changes by Kristján Valur Jónsson krist...@ccpgames.com:
--
nosy: +kristjan.jonsson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14574
___
___
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
+1, we already have such decorators for individual test cases. Code should be
obvious, particularly testing code and mixins often aren't. Magic such as
identifying classes to run by their type should be over rideable. All magic
New submission from clikkeb clik...@gmail.com:
It's a common issue that IDLE cannot start on Windows because
IDLE's subprocess didn't make connection.Either IDLE can't start a subprocess
or personal firewall software is blocking the connection.
Everyone claim that the user should set the
New submission from Michael Foord mich...@voidspace.org.uk:
Pickling uses __class__ instead of type(obj) to determine the type to pickle.
This means that objects which pretend to be other objects (like proxy and mock
objects) can't be pickled correctly:
class Foo(object):
... __class__ =
Antoine Pitrou pit...@free.fr added the comment:
Have you tried making a change and see if any tests fail? This is a behaviour
change and I wonder if the original behaviour is by design or accident.
--
components: +Library (Lib)
nosy: +alexandre.vassalotti, pitrou
type: - enhancement
Antoine Pitrou pit...@free.fr added the comment:
This was fixed long ago in 724bbd489ad4. Dmitriy's example works fine with 2.7.
--
nosy: +pitrou
resolution: - out of date
stage: needs patch - committed/rejected
status: open - closed
___
Python
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +neologix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14574
___
___
Python-bugs-list mailing
Michael Foord mich...@voidspace.org.uk added the comment:
So, changing copyreg.py to use type(self) instead of self.__class__ isn't
sufficient. _pickle accesses __class__ as well it seems. However I'm running
all tests with this change in place to see if it breaks intended behaviour:
Python
Michael Foord mich...@voidspace.org.uk added the comment:
test_pickle still passes with only copyreg.py modified.
With one additional change in pickle.py (line 405 to use type(obj) instead of
obj.__class__) the pickling works as I would hope (I would need assistance to
fix _pickle):
import
Changes by Michael Foord mich...@voidspace.org.uk:
--
resolution: - wont fix
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14577
___
Nick Coghlan ncogh...@gmail.com added the comment:
Some additional thoughts for anyone else that comes across this issue.
Consider the case of a weakref proxy (the only proxy type in the stdlib): for
that, you never want to serialise the proxy, you want to serialise the original
object.
To
Michael Foord mich...@voidspace.org.uk added the comment:
Nick - in general proxy objects have a *reference* to their target (weakref
being somewhat of a special case), and pickle can already handle multiple
references to the same target when deserializing an object graph. So I don't
see that
Robin Schreiber robin.schrei...@me.com added the comment:
I have now submitted a patch, which swapped out all the necessary calls. Tests
are all running as expected. I will now try to remove some backwards
compatibility code.
--
keywords: +patch
Added file:
Simonas Kazlauskas simo...@kazlauskas.me added the comment:
Exactly same thing happens with `XOAUTH` mechanism too, so this bug report
should be made more general. (Py3.2.2)
--
nosy: +nagisa
___
Python tracker rep...@bugs.python.org
Changes by R. David Murray rdmur...@bitdance.com:
--
title: imaplib.IMAP4.authenticate authobject fails with PLAIN mechanism -
imaplib.IMAP4.authenticate authobject does not work correctly in python3
___
Python tracker rep...@bugs.python.org
Charles-François Natali neolo...@free.fr added the comment:
Thanks for the report.
Several things are going on here:
1. Even though socketserver's StreamRequestHandler uses unbuffered wfile for
the socket
class StreamRequestHandler(BaseRequestHandler):
[...]
rbufsize = -1
wbufsize
Changes by Robin Schreiber robin.schrei...@me.com:
Removed file: http://bugs.python.org/file25211/sqlite.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9303
___
Changes by Robin Schreiber robin.schrei...@me.com:
Added file: http://bugs.python.org/file25212/sqlite.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9303
___
Brett Cannon br...@python.org added the comment:
Just to answer Greg's question, importlib uses a context manager to manage the
import lock so as long as that surfaces the right thing in a fork then things
will be fine.
--
___
Python tracker
New submission from Brett Cannon br...@python.org:
Because I don't have access to Windows, importlib doesn't check the Windows
registry for paths to search (see the use of _PyWin_FindRegisteredModule() in
Python/import.c and its definition in PC/import_nt.c).
I am considering this a release
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14578
___
___
Python-bugs-list
Eric Snow ericsnowcurren...@gmail.com added the comment:
Yeah, that's one part of imp.find_module that I kind of set aside too (the
#ifdef MS_COREDLL sections in Python/import.c). For now would it be sufficient
to expose _PyWin_FindRegisteredModule() privately with a wrapper in the imp
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 2dd046be2c88 by Brett Cannon in branch 'default':
Issue #2377: Make importlib the implementation of __import__().
http://hg.python.org/cpython/rev/2dd046be2c88
--
nosy: +python-dev
Changes by Brian Curtin br...@python.org:
--
nosy: +brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14578
___
___
Python-bugs-list
Brett Cannon br...@python.org added the comment:
While the code has been committed, I'm leaving the issue open until I have
checked that the language spec is up-to-date and I have written the What's
New entry. I am holding off on both, though, unti any tweaks I make to the
import process is
Changes by Brett Cannon br...@python.org:
--
priority: normal - release blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2377
___
___
Antoine Pitrou pit...@free.fr added the comment:
I think this should be a blocker for 3.3.
--
nosy: +pitrou
priority: normal - release blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13959
Brett Cannon br...@python.org added the comment:
Notes on what to mention:
importlib.invalidate_caches()
doctests and ImportError now spitting out the full module name
ImportError's new attributes
--
___
Python tracker rep...@bugs.python.org
Brett Cannon br...@python.org added the comment:
More notes:
5% startup loss according to normal_startup; within realm of compiler
optimizations.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2377
New submission from Serhiy Storchaka storch...@gmail.com:
In the utf-16 decoder after calling unicode_decode_call_errorhandler
aligned_end is not updated. This may potentially cause data leaks, memory
damage, and crash. The bug introduced by implementation of the issue #4868. In
a similar
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti, pitrou
stage: - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14579
___
Changes by Serhiy Storchaka storch...@gmail.com:
Added file: http://bugs.python.org/file25214/utf16_update_after_error-3.2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14579
___
New submission from Paul Ollis pyt...@ollis.me.uk:
Code like this::
import collections.abc
imp.reload(collections.abc)
Raises the following exception:
SystemError: Negative size passed to PyUnicode_New
This occurs on the latest mercurial checkout (76302).
--
components:
Paul Ollis pyt...@ollis.me.uk added the comment:
Patch adding a test to reproduce the issue.
--
keywords: +patch
Added file: http://bugs.python.org/file25215/patch01-tests.diff
___
Python tracker rep...@bugs.python.org
Paul Ollis pyt...@ollis.me.uk added the comment:
Patch that fixes the issue.
--
Added file: http://bugs.python.org/file25216/patch01-code.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14580
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +brett.cannon
priority: normal - high
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14580
___
sbt shibt...@gmail.com added the comment:
Attached is an up to date patch.
* code has been moved to Modules/_windows.c
* DWORD is uniformly treated as unsigned
* _subprocess's handle wrapper type has been removed (although
subprocess.py still uses a Python implemented handle wrapper type)
Brian Curtin br...@python.org added the comment:
I don't think we need the vcproj file, unless I missed something.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11750
___
sbt shibt...@gmail.com added the comment:
I don't think we need the vcproj file, unless I missed something.
_multiprocessing.win32 currently wraps closesocket(), send() and recv() so it
needs to link against ws2_32.lib.
I don't know how to make _windows link against ws2_32.lib without adding
New submission from Brett Cannon br...@python.org:
Importlib doesn't cover case-insensitivity on file extensions under Windows
(see test.test_import.test_import:
http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%203.x/builds/41/steps/test/logs/stdio).
Should add a test to
New submission from Brett Cannon br...@python.org:
Right now importlib doesn't use what loader.load_module() returns as that was
what import.c did. But PEP 302 explicitly states that load_module() is expected
to return the module that was loaded. So to save a dict lookup I want to rely
on the
New submission from Stefan Krah stefan-use...@bytereef.org:
In the build --without-threads, catching an ImportError in support.py
fails. Fedora buildbot:
http://www.python.org/dev/buildbot/all/builders/AMD64%20Fedora%20without%20threads%203.x/builds/1986/steps/test/logs/stdio
./python
New submission from Raymond Hettinger raymond.hettin...@gmail.com:
The xmlrpclib client already supports gzipped data and say so in the HTTP
header: Accept-Encoding: gzip.
Our XMLRPC Server ignores this header and always sends uncompressed data.
--
messages: 158282
nosy: rhettinger
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14581
___
___
Python-bugs-list
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
It shouldn't. I noticed this and fixed this at CCP a while back but I wasn't in
Python Committer mode at the time. _select needs fixing.
--
___
Python tracker rep...@bugs.python.org
Eric Snow ericsnowcurren...@gmail.com added the comment:
big +1! I went quite a while before realizing that loader.load_module() was
supposed to return the module, due to this specific issue.
--
nosy: +eric.snow
___
Python tracker
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14580
___
___
Python-bugs-list
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14583
___
___
Python-bugs-list
Roger Serwy roger.se...@gmail.com added the comment:
Hugh, Can you launch IDLE from the terminal and report the error message you
receive? From a regular Terminal, enter:
python -m idlelib.idle FILE_TO_OPEN.py
--
nosy: +serwy
___
Python tracker
Vladan Djeric vladandje...@gmail.com added the comment:
Thank you for taking a look Charles-François.
I should note that catching the first exception in the request handler and then
calling self.wfile.close() wouldn't fully solve the issue. The
self.wfile.close() call would throw another
Ned Deily n...@acm.org added the comment:
This is almost certainly due to using the Apple-supplied Tcl/Tk 8.5 in Mac OS X
10.6. The Apple-suppied version of Tcl/Tk is buggy to the point of being
unusable with Tkinter applications, in particular IDLE. There are many
duplicate issues on
Roger Serwy roger.se...@gmail.com added the comment:
I can confirm that setting HOMEPATH to a non-existent directory will prevent
IDLE from starting when using idle.bat. If you modify idle.bat such that
python.exe is called instead of pythonw.exe, then IDLE starts normally, but
with this
Changes by Roger Serwy roger.se...@gmail.com:
--
nosy: +asvetlov, terry.reedy
type: crash - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8900
___
Roger Serwy roger.se...@gmail.com added the comment:
Is this still a valid issue?
--
status: open - pending
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9925
___
Roger Serwy roger.se...@gmail.com added the comment:
Joseph, Jeff,
Is this still a valid issue with the latest release of IDLE?
--
status: open - pending
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8820
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14006
___
___
Roger Serwy roger.se...@gmail.com added the comment:
Ryan, is this still an issue?
--
status: open - pending
versions: -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9150
___
Brett Cannon br...@python.org added the comment:
You could just expose it, but on Windows I believe all extension modules are
builtins, so you should be able to properly use _winreg to get at the registry
and thus not require keeping the C code around.
But that's just a guess.
--
Roger Serwy roger.se...@gmail.com added the comment:
This is a duplicate of #6257.
--
nosy: +serwy
resolution: - duplicate
status: open - closed
superseder: - Idle terminates on source save while debugging
___
Python tracker rep...@bugs.python.org
Roger Serwy roger.se...@gmail.com added the comment:
Is this still an issue with the latest version of IDLE?
--
nosy: +serwy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3493
___
Roger Serwy roger.se...@gmail.com added the comment:
The existing code will raise an error since os._exit requires an argument.
http://docs.python.org/library/os.html#os._exit
The patch looks good to me.
--
nosy: +serwy
___
Python tracker
Brett Cannon br...@python.org added the comment:
OK, is supporting this really necessary? It's a special case on Windows only;
even OS X which is also case-insensitive doesn't support this.
But if it does need to be supported, then does someone know if this extends to
all module types or only
Roger Serwy roger.se...@gmail.com added the comment:
Brett, your latest commit breaks IDLE. Here's the error message:
Failed to import extension: FormatParagraph
Failed to load extension 'FormatParagraph'
Traceback (most recent call last):
File ./idlelib/EditorWindow.py, line 998, in
Brett Cannon br...@python.org added the comment:
Another thing to note:
index does not default to -1 anymore but to 0; bug that should have gone away
in Python 2.7.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2377
Ned Deily n...@acm.org added the comment:
The problem of not honoring alternate input methods should no longer be a
problem when using a current ActiveState Tcl/Tk 8.5.x on Mac OS X and a Python
that is built to link with it, such as the current Python 2.7.x and 3.2.x
installers from
Brett Cannon br...@python.org added the comment:
So IDLE broke because it was relying on buggy behaviour accidentally left in
Python 2.7 and carried forward (plus it was not updated to use best practices
like importlib.import_module()). Roger, can you try the patch I have uploaded
and see if
Roger Serwy roger.se...@gmail.com added the comment:
I tested update_idle.diff and it corrects the issue.
While IDLE's use of __import__ may be buggy, I don't see anything in the
documentation about deprecation or other warnings about this usage. This is a
backwards-incompatible change.
Roger Serwy roger.se...@gmail.com added the comment:
I caused a segmentation fault with the following (on Linux):
$ mkdir crash
$ touch crash/mod.py
$ echo __import__('mod', globals(), locals(), [], 1) crash/__init__.py
$ ./python3 -m crash
--
___
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12436
___
___
Roger Serwy roger.se...@gmail.com added the comment:
I can confirm this issue on Linux.
This issue is caused by not explicitly binding Control-Key-S to
save-window in config-keys.def (and in configHandler.py's GetCoreKeys.)
Presently, only Control-key-s binds to save-window.
Should all the
Brett Cannon br...@python.org added the comment:
I committed the fix. Thanks for testing, Roger.
As for the change in semantics, I'm fully aware it is not backwards-compatible.
Unfortunately the incorrect usage was not even discovered until I started my
bootstrap work because the import
Roger Serwy roger.se...@gmail.com added the comment:
Brett, I see your point.
The docs for __import__ should be updated to include your two-import fix as
well as reference PEP328.
http://docs.python.org/dev/library/functions.html?highlight=__import__#__import__
--
New submission from Brett Cannon br...@python.org:
As it stands, test_import runs importlib.test.import_.test_relative_imports. It
would probably be better to have test_import run all importlib tests using
__import__(), especially since it is already coded up in
importlib.test.__main__ to do
Changes by Brett Cannon br...@python.org:
--
components: +Tests
stage: - needs patch
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14585
___
Changes by Brett Cannon br...@python.org:
--
keywords: +easy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14585
___
___
Python-bugs-list mailing
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14585
___
___
Python-bugs-list
Brett Cannon br...@python.org added the comment:
OK, crasher is fixed (as is importlib as it failed on the test case as well
thanks to the slicing of [:-0] returning the empty string instead of the entire
string).
And I will update the docs to be a bit more clear about things (at least those
New submission from Guy Taylor thebigguy.co...@gmail.com:
The Python docs suggest that io.IOBase.truncate' should take a keyword argument
of 'size'.
However this causes a 'TypeError':
TypeError: truncate() takes no keyword arguments
Suggest that the docs are changed to 'truncate(size)' or
Changes by Andrew Regner and...@aregner.com:
--
nosy: +adregner
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14102
___
___
Python-bugs-list
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
I would like to see them all changed.
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12387
___
py.user bugzilla-mail-...@yandex.ru added the comment:
the same problem in the %o analog
valid strings for the %x specifier of scanf():
+0xabc
-0xabc
+abc
-abc
valid strings for the %o specifier of scanf():
+0123
-0123
+123
-123
how to patch
the %x specifier:
0[xX][\dA-Fa-f]+ -
Terry J. Reedy tjre...@udel.edu added the comment:
Brett C. just today pushed
http://hg.python.org/cpython/rev/556b9bafdee8
changeset: 76310:556b9bafdee8
user:Brett Cannon br...@python.org
date:Sat Apr 14 20:44:23 2012 -0400
summary:
IDLE was relying on implicit relative
Terry J. Reedy tjre...@udel.edu added the comment:
I agree; lets be consistently lenient.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12387
___
86 matches
Mail list logo