paul j3 added the comment:
This patch adds a
class TestMutuallyExclusiveGroupErrors
test_invalid_add_group() test,
closely modeled on
test_invalid_add_argument()
I'm using ValueError in group add methods (maintaining the similarity with
add_argument errors).
I haven't
Terry J. Reedy added the comment:
ConfigDialog is a good guess as I added a minimal test this month.
I will try to revise to not create loops in the first place.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22068
Terry J. Reedy added the comment:
http://legacy.python.org/dev/peps/pep-0461/
adds % formatting for bytes and bytes array.
Nick, I have the impression that there was a decision to not add bytes.format.
Correct? If so, this issue should be closed. If not, what, if anything, has
been decided?
Nick Coghlan added the comment:
Right, bytes.format was considered as part of the PEP 461 discussions, and
rejected as an operation that only made sense in the text domain:
http://www.python.org/dev/peps/pep-0461/#proposed-variations
With PEP 461 accepted, and PEP 460 withdrawn, that means we
Nick Coghlan added the comment:
Just noting I'm working on some significant updates to the bytes and bytearray
docs in issue 21777. I'll try to get that ready for review and merged
relatively soon, so the docs for this can build on top of those changes.
--
nosy: +ncoghlan
Nick Coghlan added the comment:
OK, I've completed the initial pass through all the methods. Remaining items:
* add back the guarantees where str will return the same object, add those
guarantees for bytes where applicable
* address the review comments from Zach and Ezio
There are a couple of
Ned Deily added the comment:
Here are some review comments on turtle_demo_v2.patch.
First, the subprocess call to start turtledemo may work ok in your build
directory but it will not work in general. Using the standard idiom for
invoking a new process running the current instance of python,
Claudiu Popa added the comment:
Here's a version of the patch which raises ValueError when the path can't be
expanded. Hopefully, the used approach is good enough.
--
Added file: http://bugs.python.org/file36102/issue19776_4.patch
___
Python tracker
Changes by Ralph Heinkel r...@ralph-heinkel.com:
--
nosy: +christian.heimes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16535
___
___
Changes by Phil Connell pconn...@gmail.com:
--
nosy: +pconnell
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1152248
___
___
Python-bugs-list
New submission from Martin Matusiak:
The csv module has an exception message with bad grammar:
- delimiter must be an 1-character string
an should be a
--
components: Library (Lib)
files: csv_grammar_fix.diff
keywords: patch
messages: 224028
nosy: haypo, numerodix, serhiy.storchaka
New submission from Claudiu Popa:
For a couple of sequences (bytes, list, tuple, bytearray), the error when using
an invalid sequence index is misleading, because it says that only integers are
allowed, while slices are allowed too.
a = []
a['python']
Traceback (most recent call last):
Ronald Oussoren added the comment:
Does anyone have feedback for my proposed patch (other the bug in test code
when sizeof(bool) != 1, the test values for big and little endian are in the
wrong order)?
--
___
Python tracker rep...@bugs.python.org
Changes by Ronald Oussoren ronaldousso...@mac.com:
--
versions: +Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15730
___
Christian Heimes added the comment:
Awesome! :)
I'll try to find some time to check your work when I'm back from EuroPython.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21308
___
Christian Heimes added the comment:
I'm EuroPython 2014 in Berlin. Ralph has approached me and asked me about
progress on the progress of this patch. I'm reluctant to implement a special
case for decimals for two reasons:
1) JSON just support floats and decimals are IMHO incompatible with
Serhiy Storchaka added the comment:
Here is a patch against 2.7 which get rid of reference loops in Tk variables
and Font. This will fix not only ConfigDialog, but any similar user code.
In 3.4+ such reference loops are successfully resolved, but I think we should
foreport this path to 3.4+
Ronald Oussoren added the comment:
The use of context lib in _read_output should not be necessary anymore as file
objects and NamedTemporaryFile objects already are context managers with the
right semantics.
I'm not sure how to avoid the import of tempfile other than adding a minimal
Ronald Oussoren added the comment:
I'd be in favour of closing this issue, I haven't seen the problem in a while
and it is almost certainly due to a platform bug on OSX 10.6.
--
___
Python tracker rep...@bugs.python.org
Ronald Oussoren added the comment:
There'd still need to be some way to update the shell environment, but I agree
that there needs to be something better than we have now.
One option is to add a small shell script that can be sourced from the shell
profile and adds the various python
Serhiy Storchaka added the comment:
Here is alternative patch which doesn't use os.path.expanduser() and
reimplement it's logic. Differences:
* expanduser() is part of concrete path API. This method access environment.
* RuntimeError is raised when user home can't be determined.
* Currently
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: -serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22076
___
___
Ronald Oussoren added the comment:
The issue still is present, wouldn't it be better to just remove the
availability annotation from the docs (2.7, 3.4 and trunk) while waiting for a
better solution?
That would at least remove confusion for these docs. At the very least the
Macintosh
Claudiu Popa added the comment:
Looks good.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19776
___
___
Python-bugs-list mailing list
New submission from Claudiu Popa:
Given the following example, Python 3.5 doesn't emit any resource warning:
import io, gc
f = open(a)
bufio = io.BufferedReader(f)
gc.collect()
Here's a small patch that enables this.
--
components: IO
files: buffered_io_resource_warning.patch
Serhiy Storchaka added the comment:
All works to me.
$ ./python -Wall -c open('/dev/null', 'rb')
-c:1: ResourceWarning: unclosed file _io.BufferedReader name='/dev/null'
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
I agree that the patch shoukd also br applied to 3.4.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22068
___
Claudiu Popa added the comment:
That's not the same, try with my example. open(a) will be a TextIOWrapper.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22078
___
Nick Coghlan added the comment:
Thanks for working through this!
I've kicked it in the direction of the Fedora Python SIG folks
(https://lists.fedoraproject.org/pipermail/python-devel/2014-July/000611.html),
since it would be good if we could get it tested before it makes its way into
an
Claudiu Popa added the comment:
I mean this one:
$ python_d -Wall -c f=open('a', 'r'); import io; io.BufferedReader(f)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22078
___
Serhiy Storchaka added the comment:
This example is not correct.
1) Argument of BufferedReader should be binary stream.
import io, gc
f = open('/dev/null')
bufio = io.BufferedReader(f)
bufio.read(1)
Traceback (most recent call last):
File stdin, line 1, in module
AttributeError:
Claudiu Popa added the comment:
You're right, thanks for the new information. You can close the issue then.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22078
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - not a bug
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22078
___
koobs added the comment:
Thank you for taking care of this Charles-François :) Requesting backport to
3.3 and 2.7 too please, both are open for fixes.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19875
New submission from Serhiy Storchaka:
It would be good if PyType_Ready() will check that base class of static type is
static.
--
components: Interpreter Core
messages: 224049
nosy: alex, haypo, serhiy.storchaka
priority: normal
severity: normal
stage: needs patch
status: open
title:
New submission from Claudiu Popa:
Hi. This patch adds a new test helper module, initially added in issue21518,
for controlling various aspects on Windows platform, like acquiring / releasing
privileges etc. At the same time, it contains a modification in
test.support.skip_unless_symlink, so
Changes by Claudiu Popa pcmantic...@gmail.com:
--
dependencies: +Add windows_helper module helper
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21518
___
Roundup Robot added the comment:
New changeset 57e3c4ae37ea by Charles-François Natali in branch '2.7':
Issue #19875: Fix random test_getsockaddrarg() failure.
http://hg.python.org/cpython/rev/57e3c4ae37ea
--
___
Python tracker rep...@bugs.python.org
Charles-François Natali added the comment:
Backported to 2.7 (don't know how Iforgot it).
3.3 is only open for security issues, so not backporting.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19875
New submission from STINNER Victor:
Currently, the C module _socket has an useful representation of socket: it
gives the file descriptor, family, type, etc. The Python socket module only
shows the memory address. Example:
$ ./python -c 'import _socket; s=_socket.socket(); print(repr(s));'
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +alex
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22081
___
___
Python-bugs-list
STINNER Victor added the comment:
I also fixed repr(_socket.socket) on Windows 64-bit for closed sockets (on
Python 2.7, 3.4 and 3.5):
changeset: 91881:04c916a1e82f
branch: 2.7
tag: tip
user:Victor Stinner victor.stin...@gmail.com
date:Sat Jul 26 14:52:55 2014
koobs added the comment:
Updating versions to reflect branch changes. Will come in handy for those
tracking for manual packaging backports
--
versions: +Python 2.7, Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +gvanrossum
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22081
___
___
Python-bugs-list
Larry Hastings added the comment:
This test also fails on Linux when using ZFS.
--
nosy: +larry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19838
___
Brandon Milam added the comment:
In order to fix the issue I added on to the WindowsDefault class so that it is
the main browser class for windows platforms as opposed to being a default when
no other browser is given. I gave the class an init where it specifies specific
flags for firefox,
New submission from Martin v. Löwis:
I'm chasing objects left at shutdown. I found that the string objects in
slotdefs are still around at the end; this patch removes them.
--
files: type.diff
keywords: patch
messages: 224058
nosy: loewis
priority: normal
severity: normal
status: open
Roundup Robot added the comment:
New changeset c55300337932 by Martin v. Löwis in branch 'default':
Issue #22082: Clear interned strings in slotdefs.
http://hg.python.org/cpython/rev/c55300337932
--
nosy: +python-dev
___
Python tracker
Brandon Milam added the comment:
How the _isexecutable function is set up now it would require a full path name
in order to be able to tell if a specific browser is on the system. The area
under platform support for windows checks for multiple browsers using this
function but only passes it
Guido van Rossum added the comment:
Antoine, what do you want me to do? I think improving __repr__ of a socket
sounds fine for some Python 2.7 bugfix release.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22081
New submission from Saimadhav Heblikar:
This refactoring is required to enable setting/clearing breakpoints, using
linenumbering( whether using a Canvas implementation or a Text implementation
http://bugs.python.org/issue17535)
The patch ensures consistency between the set_breakpoint(_here)
Larry Hastings added the comment:
Sorry to have such an awful configuration, but this approach won't fix the
problem for me.
I use a Linux encrypted home directory, which uses crazy loopback mount logic
to create an on-the-fly decrypted representation of my home directory. So my
home
Serhiy Storchaka added the comment:
I afraid this can break doctests. Isn't this against policy?
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22081
___
Antoine Pitrou added the comment:
So, I'm not against the patch, but it would be nice to diagnose where exactly
the issue comes from.
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19838
Larry Hastings added the comment:
(By this approach I meant the approach employed in the first patch posted.
Sorry for the ambiguity.)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19838
Roundup Robot added the comment:
New changeset 83628d9e1035 by Antoine Pitrou in branch '3.4':
Issue #22074: Fix Lib/test/make_ssl_certs.py
http://hg.python.org/cpython/rev/83628d9e1035
New changeset 17f46a7b1125 by Antoine Pitrou in branch 'default':
Issue #22074: Fix
Antoine Pitrou added the comment:
Good catch, this is now solved.
--
resolution: - fixed
stage: - resolved
status: open - closed
type: - behavior
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22074
Guido van Rossum added the comment:
I don't think it's against policy. Do doctests even work for objects that have
an address as part of their repr()?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22081
Serhiy Storchaka added the comment:
See for example test_generators, test_genexps, test_xml_etree or
ctypes.test.test_objects.
dict(a = (i for i in xrange(10))) #doctest: +ELLIPSIS
{'a': generator object genexpr at ...}
repr(element) # doctest: +ELLIPSIS
Element 't\\xe4g'
New submission from Aaron Brady:
Hi, I asked about the inconsistency of the RuntimeError being raised when
mutating a container while iterating over it here [1], set and dict iteration
on Aug 16, 2012.
[1] http://www.gossamer-threads.com/lists/python/python/1004659
I posted a patch on the ML
Matthias Klose added the comment:
3.4.0 has this fixed. resolutions in http://bugs.python.org/issue16074 and
http://bugs.python.org/issue20517
--
nosy: +doko
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
It would be better discuss such ideas on python-ideas mailing list
(http://mail.python.org/mailman/listinfo/python-ideas).
Option 3 breaks existing code such as
for k, v in d.items():
if pred(k, v):
d[k] = newvalue
break
Guido van Rossum added the comment:
OK, I'm convinced. Sorry Victor.
On Saturday, July 26, 2014, Serhiy Storchaka rep...@bugs.python.org wrote:
Serhiy Storchaka added the comment:
See for example test_generators, test_genexps, test_xml_etree or
ctypes.test.test_objects.
dict(a = (i
Alex Gaynor added the comment:
Personally I don't think it is (or should) be against policy to change reprs,
there's not really any way to improve them otherwise.
That said, my excitement level about this issue is pretty low, so I won't argue
more than this :-)
--
Alex Gaynor added the comment:
New patch cherry pick's the fix from issue22074.
--
Added file: http://bugs.python.org/file36113/ssl-backport.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21308
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22069
___
___
Akira Li added the comment:
As a side-effect it also fixes the bug in line_buffering=True
behavior, see issue22069O.
It should be issue22069 TextIOWrapper(newline=\n, line_buffering=True)
mistakenly treat \r as a newline
Reuploaded the patch so that it applies cleanly on the current tip.
Serhiy Storchaka added the comment:
Looks as this behavior is intentional. Documentation should be corrected.
--
assignee: - docs@python
components: +Documentation
nosy: +benjamin.peterson, docs@python, hynek, pitrou, stutzbach
___
Python tracker
New submission from Serhiy Storchaka:
Command used to monitor Tcl variable access (trace variable, trace vdelete,
trace vinfo) are deprecated and will likely be removed in a future version of
Tcl. Proposed patch replaces them to modern equivalents.
The problem is that new commands was
STINNER Victor added the comment:
I afraid this can break doctests. Isn't this against policy?
Ok, I close the issue. A workaround is to use repr(sock._sock) to use
repr(_socket.socket) which contains a lot of information.
--
resolution: - wont fix
status: open - closed
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file36115/tkinter_trace_variable.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22085
New submission from Erik Andersen:
Please see http://bugs.python.org/issue5845, especially the last two comments:
http://bugs.python.org/issue5845#msg215784, which requested that a new bug
report be opened for this issue.
To summarize, the previous bug was to enable tab completion in the
New submission from Dan O'Reilly:
On non-Windows platforms, if a user attempts to use asyncio.get_event_loop() in
a child process created by multiprocessing.Process using the fork context, and
an asyncio event loop is also being used in the main process, the same
_UnixSelectorEventLoop object
Changes by Dan O'Reilly oreil...@gmail.com:
Added file: http://bugs.python.org/file36117/test_loop.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22087
___
Changes by Dan O'Reilly oreil...@gmail.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22087
___
___
Python-bugs-list
Changes by Dan O'Reilly oreil...@gmail.com:
--
title: _UnixDefaultEventLoop policy should either create a new loop or
explicilty fail when get_event_loop() is called from a multiprocessing child
process - _UnixDefaultEventLoopPolicy should either create a new loop or
explicilty fail
Changes by Dan O'Reilly oreil...@gmail.com:
Removed file: http://bugs.python.org/file36116/handle_mp_unix.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22087
___
Changes by Dan O'Reilly oreil...@gmail.com:
Added file: http://bugs.python.org/file36118/handle_mp_unix.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22087
___
Éric Araujo added the comment:
literalinclude lets you select only some lines of the file:
http://sphinx-doc.org/markup/code.html#includes
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22014
Changes by Ned Deily n...@acm.org:
--
resolution: - third party
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15398
___
Guido van Rossum added the comment:
Good point. Asyncio definitely should not share event loops across forked
processes. However, I don't like the dependency on multiprocessing (even
though it's in the stdlib) -- can't the policy just use os.getpid()?
Also, I've got a feeling that maybe the
Changes by Drekin dre...@gmail.com:
Removed file: http://bugs.python.org/file27261/win_unicode_console_2.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1602
___
Changes by Drekin dre...@gmail.com:
Removed file: http://bugs.python.org/file29563/i.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1602
___
___
Changes by Drekin dre...@gmail.com:
Removed file: http://bugs.python.org/file29564/win_unicode_console_3.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1602
___
Changes by Drekin dre...@gmail.com:
Removed file: http://bugs.python.org/file31756/streams.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1602
___
___
Changes by Drekin dre...@gmail.com:
Removed file: http://bugs.python.org/file31770/win_unicode_console.zip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1602
___
Changes by Drekin dre...@gmail.com:
Removed file: http://bugs.python.org/file35990/win_unicode_console.zip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1602
___
Dan O'Reilly added the comment:
Yep, agreed on both points. The latter suggestion also has the benefit of not
requiring any test changes. Here's an updated patch.
--
Added file: http://bugs.python.org/file36119/map_chunksize2.patch
___
Python
Drekin added the comment:
I have deleted all my old files and added only my current implementation of the
stream objects as the only relevant part to this issue.
@Mark Summerfield: I have added __init__.py to the new version of
win_unicode_console. If there is any problem, you can start an
Ned Deily added the comment:
Is there any reason to not drop support for Tk 8.3? It appears that the last
release of it, 8.3.5, was in 2002. Is anyone aware of any use of it on
currently supported platforms? The final planned release of 8.4 (8.4.20) was
just a year ago and 8.4 is still
Changes by R. David Murray rdmur...@bitdance.com:
--
resolution: - duplicate
stage: - resolved
status: open - closed
superseder: - error responses from server are masked in smtplib when server
closes connection
___
Python tracker
R. David Murray added the comment:
Test passes for me now, thanks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21901
___
___
Python-bugs-list
New submission from Julian Berman:
The base64 module documentation claims that decode methods raise exceptions for
non-base64 input, but they do not.
There was a patch for Py3 done in issue1466065, but the documentation was not
updated for Py2. I have not read that ticket carefully enough to
Julian Berman added the comment:
Created issue22088 to address not having fixed Py2 here.
--
nosy: +Julian
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1466065
___
Lita Cho added the comment:
I wasn't aware of make patchcheck. I will run this script when submitting
patches in the future. Thanks, Ned!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17172
Terry J. Reedy added the comment:
F:\Python\dev2\py27\pcbuild\python_d.exe -m test.regrtest -R :: -uall test_idle
test_idle leaked [1945, 1945, 1945, 1945] references, sum=7780
There are none with 3.4, so the new gc is doing its job.
There are also none with test_configdialog renamed xtest... ,
Lita Cho added the comment:
I was going to add a dropdown menu to change the font size as well, but I am
going to wait till Serhiy's patch gets committed in issue22065 before I submit
my patch.
--
___
Python tracker rep...@bugs.python.org
Nick Coghlan added the comment:
Oh, nice - the start-after and end-before options look like they might be
the way to go.
If I'm reading the docs right, a block like the following would include the
OSError section of the tree:
.. literalinclude exceptions.txt
:start-after: OSError
Nick Coghlan added the comment:
Drekin, you're right, that's a much better way to go, I just didn't think it
through :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1602
___
Changes by Martin v. Löwis mar...@v.loewis.de:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22082
___
1 - 100 of 109 matches
Mail list logo