Serhiy Storchaka added the comment:
I forget how to get the third, micro number.
tkinter.Tcl().call('info', 'patchlevel')
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20167
___
Serhiy Storchaka added the comment:
On 3.5 the issue is gone, but on 3.4 and 2.7 following traceback are generated:
$ ./python -m idlelib.idle Lib/decimal.py
Traceback (most recent call last):
File /home/serhiy/py/cpython-3.4/Lib/runpy.py, line 170, in
_run_module_as_main
__main__,
Serhiy Storchaka added the comment:
It looks rather as a bug in C code. There is no need to return Py_ssize_t
instead of int.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22580
Terry J. Reedy added the comment:
The above appears to be a system-specific open issue, not a close issue. So it
must be a different issue.
On my Win7
F:\Python\dev\4\py34\PCbuildpython_d -m idlelib ../Lib/decimal.py
close after open with freshly built 3.4.2+
F:\Python\dev\4\py34\PCbuild
Serhiy Storchaka added the comment:
In any case, the traceback makes no sense. Before
self.color_breakpoint_text() in __init__ are 3 self.text.bind
statements. So self.text = None seems implausible.
The code runs up to self.text.update() in restore_file_breaks() and runs
further only after
Serhiy Storchaka added the comment:
Changing update() to update_idletasks() fixes the issue. But we should
investigate why all works on 3.5 and is there downside of this change.
--
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
That sounds a bit random. It wouldn't totally address the discrepancy with
regex, would it?
No, it will not totally address the discrepancy with regex, but at least it
will allow as to change the behavior of flags in subpatterns. And we always can
STINNER Victor added the comment:
It looks rather as a bug in C code. There is no need to return Py_ssize_t
instead of int.
Oh yes, you're right. A Py_ssize_t to return -1, 0 or 1 is overkill :-)
But PyUnicode_Tailmatch() is now part of the stable ABI, the inefficient return
type is not a
New submission from Serhiy Storchaka:
The regex module is purposed as a replacement of standard re module. Of course
we fix re bugs, but for now regex is more bugfree. Even after fixing all open
re bugs, regex will remain more featured. It would be good to add a link to
regex in re
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1519638
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22584
___
___
New submission from Mc128k:
Hi
I am using the latest version of python and IDLE, and when I edit a file and I
press the key F5 it runs fine in the other window, while if I do it inside the
IDLE command line it just prints the character (which cannot be seen in the
browser here). Using the
Mc128k added the comment:
I'm sorry, the menu confused me. the command line has no such menu, it was
showing the editor menu with the IDLE window on top. False alarm.
--
resolution: - not a bug
status: open - closed
___
Python tracker
Roundup Robot added the comment:
New changeset 1adeac2a8714 by Serhiy Storchaka in branch 'default':
Issue #19380: Optimized parsing of regular expressions.
https://hg.python.org/cpython/rev/1adeac2a8714
--
nosy: +python-dev
___
Python tracker
Roundup Robot added the comment:
New changeset 07b7b587837f by Serhiy Storchaka in branch 'default':
Issue #22584: Got rid of character tables in _sre.c and use standard macros
https://hg.python.org/cpython/rev/07b7b587837f
--
nosy: +python-dev
___
Roundup Robot added the comment:
New changeset bd2f1ea04025 by Serhiy Storchaka in branch 'default':
Issue 1519638: Now unmatched groups are replaced with empty strings in re.sub()
https://hg.python.org/cpython/rev/bd2f1ea04025
--
nosy: +python-dev
Xavier de Gaye added the comment:
That was really fast Victor!
I confirm that the '-R 23:23' refleak test does not crash any more here after
changeset 5d87a6b38422.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22588
STINNER Victor added the comment:
That was really fast Victor!
I modified test_capi to only run one testcase, and I modified the testcase
which caused the issue to run a subset of tests. By dichotomy, I found that
only one function caused the fatal error.
Does anyone know how to automatize
Serhiy Storchaka added the comment:
Thank you for your review Antoine.
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1519638
Serhiy Storchaka added the comment:
Thank you for your reviews Yury, Josh, and Antoine.
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19380
Serhiy Storchaka added the comment:
Thank you for your review Antoine.
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22584
Serhiy Storchaka added the comment:
Synchronized with the tip after issue19380 changes.
--
Added file: http://bugs.python.org/file36860/re_error_attrs4.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22578
Valerie Lambert added the comment:
Here is a simple one-line-fix patch with a test.
Except for the libraries option, other options separate using ':'. The
documentation didn't seem to say much, so I wasn't sure if link_objects should
be consistent with that or if it should follow libraries's
STINNER Victor added the comment:
I hope that MS_WINDOWS is also defined when Python is compiled by the Borland
C compiler or OpenWatcom. IMO if it's not the case, it's a bug and it should be
fixed.
It means that my patch drop_msdos_support.patch only drops support for the
DJGPP compiler in
Antoine Pitrou added the comment:
Yes!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22591
___
___
Python-bugs-list mailing list
Unsubscribe:
Roundup Robot added the comment:
New changeset a1605d2508af by Victor Stinner in branch 'default':
Issue #22591: Drop support of MS-DOS
https://hg.python.org/cpython/rev/a1605d2508af
--
nosy: +python-dev
___
Python tracker rep...@bugs.python.org
Changes by STINNER Victor victor.stin...@gmail.com:
--
resolution: - fixed
status: open - closed
title: Drop support of MS-DOS - Drop support of MS-DOS (DJGPP compiler)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22591
New submission from Berker Peksag:
This issue is similar to issue 22289.
==
ERROR: test_ftp (test.test_urllib2net.OtherNetworkTests)
(url='ftp://ftp.debian.org/debian/README')
New submission from Jakub Wilk:
'%(eggs)s %s' % {'eggs': 'ham'}
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: not enough arguments for format string
'%s %(eggs)s' % {'eggs': 'ham'}
{'eggs': 'ham'} ham
I would expect a raised exception also in the latter case.
New submission from Jesús Cea Avión:
Looks like there is consensus to add mUTF-7 or imap4 UTF-7 to the codec
module for Python 3.5. Details in https://mail.python.org/pipermail/python-
dev/2014-October/136601.html
--
assignee: jcea
messages: 228979
nosy: jcea
priority: normal
Jesús Cea Avión added the comment:
First step is to provide mUTF-7 in Python 3.5. Then we can try to update
imaplib. I am specially worried about the points cfraire raises in
http://bugs.python.org/issue5305#msg151859. Lets see.
--
dependencies: +IMAP4 UTF-7 support
Roundup Robot added the comment:
New changeset 54402b25f0b9 by Victor Stinner in branch '3.4':
Issue #22564: ssl doc: fix typos
https://hg.python.org/cpython/rev/54402b25f0b9
New changeset 61e52fda1006 by Victor Stinner in branch '3.4':
Issue #22564: ssl doc: document read(), write(), pending,
Eric V. Smith added the comment:
This is a duplicate of issue 1467929.
--
nosy: +eric.smith
resolution: - duplicate
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22597
Roundup Robot added the comment:
New changeset 61fbd3d5c307 by Victor Stinner in branch '3.4':
Issue #22564: ssl doc: mention asyncio in the non-blocking section
https://hg.python.org/cpython/rev/61fbd3d5c307
New changeset 11ad670ca663 by Victor Stinner in branch 'default':
Issue #22564: ssl
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1467929
___
___
Python-bugs-list mailing list
STINNER Victor added the comment:
Ok, I think I addressed most of my remarks and I consider the issue as done.
For total cleanness maybe the constructor should raise a TypeError if
server_hostname is passes as a bytes.
Please open a new issue to address this point.
--
resolution:
Berker Peksag added the comment:
Thanks for the patch, Remi.
--
assignee: - berker.peksag
nosy: +berker.peksag
resolution: - fixed
stage: - resolved
status: open - closed
type: - behavior
versions: +Python 3.4
___
Python tracker
Roundup Robot added the comment:
New changeset ac55331c1df6 by Berker Peksag in branch '3.4':
Issue #21456: Skip two tests in test_urllib2net.py if _ssl module not present.
https://hg.python.org/cpython/rev/ac55331c1df6
New changeset 470ea66f5bee by Berker Peksag in branch 'default':
Issue
STINNER Victor added the comment:
= IMO it's an issue in the traceback module. It may catch the AttributeError
on the call to linecache.getline().
I created the issue #22599 for this bug.
--
___
Python tracker rep...@bugs.python.org
New submission from STINNER Victor:
Attached destructortest.py script comes the issue #22480. It calls
traceback.print_exception() at exit. The problem is that the call occurs late
during Python finalization. The object was stored in the namespace of the main
module. Currently, Python deletes
STINNER Victor added the comment:
I created a more specific issue for destructortest.py: issue #22599. It's not
directly related to asyncio.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22480
STINNER Victor added the comment:
Errors in the traceback module (caused by linecache) are common when working on
the asyncio module in debug mode. The asyncio tries to log exceptions at exit
to help the debug to track bugs. It uses the garbage collector and destructors
on objects. Example of
Antoine Pitrou added the comment:
There is no patch.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22599
___
___
Python-bugs-list
New submission from CALMET:
Hello,
I have to find the right order of a list, for example
try = [0,1,2,3,4,5,6,7,8,9]
try = [0,1,2,3,4,5,6,7,9,8]
try = [0,1,2,3,4,5,6,8,7,9]
and so on... in this example there are factorial(10) = 3,6 million possible
order to test.
The results with be all the
STINNER Victor added the comment:
There is no patch.
Oh no :-( I revert all my local changes and I forgot to produce the patch... My
change added a new sys._is_finalizing() function which exposes the private C
variable _Py_Finalizing.
Well, here is a patch which implements the first option
New submission from STINNER Victor:
BaseEventLoop.run_forever() creates a temporary task when it gets a coroutine
object. If the coroutine raises a base exception, it is stored in the temporary
task (task.set_exception(exc)). run_forever() doesn't catch the exception,
which is the expected
STINNER Victor added the comment:
If the coroutine raises an exception which doesn't inherit from Exception
(but inherits from BaseException), run_until_complete() doesn't consume the
exception from the temporary task object
I created the issue #22601 for this bug.
--
New submission from Jakub Wilk:
RFC 2152 reads:
A + character followed immediately by any character other than
members of set B or - is an ill-formed sequence.
@ is not a member of B, so I would expect this to raise UnicodeDecodeError:
b'+@'.decode('UTF-7')
'@'
--
components:
Changes by Barry A. Warsaw ba...@python.org:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22597
___
___
Python-bugs-list mailing
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1621
___
___
Python-bugs-list mailing list
Martin Panter added the comment:
I always assumed that None was a unwise value to pass to the “os.path”
functions. Indeed, at the top of the documentation page it says they only
accept bytes or (text) string parameters. Although returning a consistent error
might be a sensible addition.
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22601
___
___
Python-bugs-list
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22599
___
___
Python-bugs-list
Martin Panter added the comment:
For the record, the python-dev thread about blocking imports is at
https://mail.python.org/pipermail/python-dev/2013-October/129907.html. It
sounded like the conclusion was that there shouldn’t be a problem importing a
module at finalization.
I am
Matej Cepl added the comment:
Regardless of whether we add this to 2.7 or not, it should be an entirely
separate class. I personally feel this isn't a bug fix but a feature addition
for 2.7 so I'm -0.5 on adding it there. It's also not a security backport so
it doesn't fit into PEP 466.
New submission from Francisco Fernández Castaño:
From the code example at
https://docs.python.org/3/library/contextlib.html#contextlib.ContextDecorator
logging.info('Entering: {}'.format(name))
NameError: name 'name' is not defined
name is referenced instead of self.name
--
assignee:
Changes by Serhiy Storchaka storch...@gmail.com:
--
components: +Interpreter Core, Unicode -Library (Lib)
nosy: +ezio.melotti, haypo, lemburg, loewis, serhiy.storchaka
stage: - needs patch
versions: +Python 2.7, Python 3.4, Python 3.5
___
Python
Serhiy Storchaka added the comment:
Could you please add a link to RFC?
--
nosy: +serhiy.storchaka
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22598
___
Brett Cannon added the comment:
This has now been fixed in https://hg.python.org/cpython/rev/d9f71bc6d897 .
Thanks to everyone who helped with the bug report!
--
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
Brett Cannon added the comment:
Fixed in https://hg.python.org/cpython/rev/d9f71bc6d897
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21052
___
Serhiy Storchaka added the comment:
Alternative solution of this issue would be to use from builtins import open
as _open instead of import builtins.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset d9f71bc6d897 by Brett Cannon in branch 'default':
Issue #21052: Don't raise ImportWarning for sys.meta_path or
https://hg.python.org/cpython/rev/d9f71bc6d897
--
nosy: +python-dev
___
Python tracker
Ethan Furman added the comment:
Sample code:
class AutoEnum(enum.Enum):
Automatically numbers enum members starting from 1.
Includes support for a custom docstring per member.
__last_number__
Changes by Raúl Cumplido raulcumpl...@gmail.com:
--
nosy: +raulcd
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22598
___
___
Python-bugs-list
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
keywords: +easy
nosy: +ncoghlan
stage: - commit review
type: crash - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22603
___
Ram Rachum added the comment:
Ethan: I'm very confused by your example. `huh` isn't even a method, why would
it be included? Or are you saying if it was a method? I'm really not sure
what your example is adding over mine, given that it's 10 times longer and more
complex. I'm not sure why
Serhiy Storchaka added the comment:
It's because None quacks as empty string.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22587
___
Terry J. Reedy added the comment:
Valerie, I cannot review this. If Éric does not respond in a month or two, you
might enquire on python-dev or core-mentorship lists.
--
stage: test needed - patch review
versions: +Python 3.5 -Python 3.3
___
Python
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: -terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1703178
___
___
Python-bugs-list
Ethan Furman added the comment:
Yes, the 'huh' function would have to be in either AutoEnum or AddressSegment
to be included in the dir of an AddressSegment member.
Here's a shorter example:
(this works)
class SuperEnum(Enum):
pass
New submission from Antoine Pitrou:
This only happens in debug mode:
complex(0.0, 0.0) / complex(float('nan'), 0.0)
python: Objects/complexobject.c:98: _Py_c_quot: Assertion `b.imag != 0.0'
failed.
In release mode, this gives:
complex(0.0, 0.0) / complex(float('nan'), 0.0)
(nan+nanj)
(is
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22604
___
___
Python-bugs-list
STINNER Victor added the comment:
See also the issue #19421.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22599
___
___
Python-bugs-list
Changes by STINNER Victor victor.stin...@gmail.com:
--
components: +Unicode
nosy: +ezio.melotti, haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22598
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
title: IMAP4 UTF-7 support - Add mUTF-7 codec (UTF-7 modified for IMAP)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22598
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22604
___
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
title: Local import is too slow - Locale import is too slow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22557
___
Alex Gaynor added the comment:
Updated patch cherry-picks in some of the documentation updates that were
pushed by Victor.
--
Added file: http://bugs.python.org/file36868/issue22559.diff
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
The issue is local imports, not imports of the locale module :-)
--
title: Locale import is too slow - Local import is too slow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22557
Terry J. Reedy added the comment:
Messages and patches can be unlinked from an issue (and that action recorded in
the history list) but not edited. Proofread before clicking.
Originally, only a few module docs had a source code link where the source code
was thought to be especially useful.
Serhiy Storchaka added the comment:
I think it is the right result.
0.0 / float('nan')
nan
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22604
___
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19884
___
___
Python-bugs-list mailing list
Roundup Robot added the comment:
New changeset 0c75819f1d86 by Terry Jan Reedy in branch '2.7':
Issue #22575: Revise bytearray entry for 2.7.
https://hg.python.org/cpython/rev/0c75819f1d86
--
nosy: +python-dev
___
Python tracker
Terry J. Reedy added the comment:
I changed the line to
* If it is unicode, you must also give the encoding (and optionally, errors)
parameters; bytearray() then converts the unicode to bytes using
unicode.encode().
Thank you for the report, and for your work answering questions on SO
Antoine Pitrou added the comment:
Here is a patch.
--
keywords: +patch
stage: - patch review
Added file: http://bugs.python.org/file36869/c_quot_nan.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22604
Roundup Robot added the comment:
New changeset 9cee201388c9 by Petri Lehtinen in branch '2.7':
Issue #11694: Raise ConversionError in xdrlib as documented
https://hg.python.org/cpython/rev/9cee201388c9
New changeset 7ef6e5f53418 by Petri Lehtinen in branch '3.4':
Issue #11694: Raise
Petri Lehtinen added the comment:
Applied, thanks!
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11694
___
Xavier de Gaye added the comment:
With the attached patch (the patch does reintroduce the bug in
'test_incref_decref_API' for testing purposes), it is possible to find the
failing subtest rapidly:
Get the number of subtests (35 subsets):
$ export SUBTEST_RANGE=[]
$ ./python -m test -m
Changes by Xavier de Gaye xdeg...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file36870/subtest_in_range.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22588
___
Changes by Jakub Wilk jw...@jwilk.net:
--
components: Library (Lib)
nosy: jwilk
priority: normal
severity: normal
status: open
title: memcpy(NULL, NULL, 0) in
versions: Python 3.5
___
Python tracker rep...@bugs.python.org
Jakub Wilk added the comment:
The attached patch should fix the bug.
--
keywords: +patch
Added file: http://bugs.python.org/file36871/229023.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22605
New submission from Jakub Wilk:
If you initialize array with another empty array, then this code runs:
memcpy(self-ob_item, other-ob_item, len * other-ob_descr-itemsize);
But self-ob_item and other-ob_item are NULL in such case.
Passing null pointer to memcpy() is undefined behavior even
Mark Dickinson added the comment:
Patch LGTM.
(is it the right result?)
Difficult to tell :-). Complex arithmetic in general isn't well standardised.
Annex G of the C standard is about as close I've seen. But it doesn't look
terribly wrong.
--
Kevin Keating added the comment:
I agree that None is an unwise value to pass in. Of the four different abspath
implementations, though, one will treat None (or any falsey value) as an empty
string, while the other three will raise an exception unless passed an actual
str or bytes object. I
Changes by Terry J. Reedy tjre...@udel.edu:
--
assignee: docs@python - terry.reedy
nosy: +terry.reedy
type: enhancement - behavior
versions: -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22603
Antoine Pitrou added the comment:
+1 for raising TypeError, but I think this should only be changed in 3.5, since
we don't want to break code in a bugfix release.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
Martin Taibr added the comment:
Same behavior on Windows 8.1. Possible workaround:
from datetime import datetime
from dateutil import tz
datetime.now(tz.tzlocal()).strftime('%z')
'+0200'
--
nosy: +martin-t
___
Python tracker
Roundup Robot added the comment:
New changeset b81443d9c64a by Terry Jan Reedy in branch '3.4':
Issue 22603: add missing 'self'. Patch by Francisco Fernández Castaño.
https://hg.python.org/cpython/rev/b81443d9c64a
--
nosy: +python-dev
___
Python
STINNER Victor added the comment:
Please open a new issue, this one is closed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22588
___
___
Terry J. Reedy added the comment:
Thanks. Should you be alphabetized in our ACKS file under Ca... or Fe...?
--
resolution: - fixed
stage: commit review - resolved
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22603
1 - 100 of 132 matches
Mail list logo