Karl Richter added the comment:
That's nice, thanks. Considering your last comment, some points
* If the issue can't go into the error message, than the essence of the
discussion here should go into the docs (in 0.5 to 1.5 sentences).
* It'd be nice if it was clear from the error message
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21741
___
___
Xavier de Gaye added the comment:
Thanks Xavier for the bug report, it should now be fixed.
Works fine with me. Thanks for the patch.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23140
Serhiy Storchaka added the comment:
The docs mention that row should be a sequence, so there is no a bug.
Here is a patch which makes writerow() accept an iterable without converting it
to a list. It also adds tests for few corner cases and fixes the docs.
--
nosy: +serhiy.storchaka
Serhiy Storchaka added the comment:
May be implement your idea about local NotImplemented? And it would be good to
add explaining comments in _le_from_lt() and _ge_from_gt() as in your original
suggestion.
--
___
Python tracker
R. David Murray added the comment:
Hmm. That could be an issue. If someone passes a generator they will
generally expect it to be consumed as a generator, not turned into a list
implicitly. So it may be better to turn this into a doc bug and require the
explicit list call :(.
--
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +vinay.sajip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23175
___
___
R. David Murray added the comment:
The problem is that this is not the only situation in which that error can be
generated. If someone passed in an old (and possibly non-empty) file with no
extension, the same code path would get executed.
The shelve/anydbm API is database agnostic, so there
STINNER Victor added the comment:
The test fails on the buildbot PPC64 AIX 3.x. It looks like the home
directory of the buildbot slave user is /home/shager/.
http://buildbot.python.org/all/builders/PPC64%20AIX%203.x/builds/2994/steps/test/logs/stdio
New submission from STINNER Victor:
(See also the issue #21356.)
http://buildbot.python.org/all/builders/x86%20OpenBSD%205.5%203.x/builds/1242/steps/test/logs/stdio
==
FAIL: test_options (test.test_ssl.ContextTests)
Roundup Robot added the comment:
New changeset 8bfe230db0bc by Vinay Sajip in branch 'default':
Closes #23151: Removed unnecessary initialization.
https://hg.python.org/cpython/rev/8bfe230db0bc
--
nosy: +python-dev
resolution: - fixed
stage: - resolved
status: open - closed
Antoine Pitrou added the comment:
I don't really know how to investigate that failure. Perhaps David wants to
look into it?
--
nosy: +David.Edelsohn
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19776
Vinay Sajip added the comment:
2.7 documentation has now been updated. The behaviour has already been changed
for Python 3.5 to forward any exc_info passed in (see Issue #20537).
--
resolution: - fixed
status: open - closed
___
Python tracker
STINNER Victor added the comment:
changeset: 94041:87976d72fd5c
user:Victor Stinner victor.stin...@gmail.com
date:Tue Jan 06 11:51:06 2015 +0100
files: Lib/test/test_ssl.py
description:
test_ssl: add more debug to investigate test_openssl_version() failure on
OpenBSD with
STINNER Victor added the comment:
I don't really know how to investigate that failure.
I don't think that it's specific to AIX, it just depends on the list of users
on your system. On my Fedora 21, I have many users which have an empty home
directory:
- nobody
- dbus
- polkitd
- usbmuxd
-
Roundup Robot added the comment:
New changeset 390ffd39631b by Vinay Sajip in branch 'default':
Closes #21980: Added a __repr__ for LogRecord.
https://hg.python.org/cpython/rev/390ffd39631b
--
nosy: +python-dev
resolution: - fixed
stage: - resolved
status: open - closed
Roundup Robot added the comment:
New changeset a8c4925e2359 by Victor Stinner in branch '3.4':
Issue #20896, #22935: The ssl.get_server_certificate() function now uses the
https://hg.python.org/cpython/rev/a8c4925e2359
--
___
Python tracker
Roundup Robot added the comment:
New changeset a8c4925e2359 by Victor Stinner in branch '3.4':
Issue #20896, #22935: The ssl.get_server_certificate() function now uses the
https://hg.python.org/cpython/rev/a8c4925e2359
--
___
Python tracker
STINNER Victor added the comment:
Ok, I commited my change to Python 3.4. I'm now waiting for the following
buildbot before closing the issue:
http://buildbot.python.org/all/builders/x86%20Tiger%203.4
--
___
Python tracker rep...@bugs.python.org
Nick Coghlan added the comment:
With the first alpha next month, unless we hear otherwise from Ethan in the
next day or two, I'd suggest going ahead with the implementation. We can always
tweak it during the alpha cycle if there are specific details he'd like to see
changed.
--
Roundup Robot added the comment:
New changeset 7f30206d402f by Victor Stinner in branch '2.7':
Issue #23168: skip sys.stdin.seek() test if stdin is not a TTY
https://hg.python.org/cpython/rev/7f30206d402f
--
nosy: +python-dev
___
Python tracker
STINNER Victor added the comment:
Instead of removing the test, I modified it to be skipped if stdin is not a TTY.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23168
Changes by STINNER Victor victor.stin...@gmail.com:
Added file: http://bugs.python.org/file37614/test_file.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14853
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1103213
___
___
Python-bugs-list
Vinay Sajip added the comment:
Data point: if you print out _handlerList immediately after the dictConfig()
call, it *is* there, as I would have expected. The following script saved as
logtest6.py:
from datetime import datetime
from time import sleep
import sys
if __name__ == '__main__':
STINNER Victor added the comment:
I'm now waiting for the following buildbot before closing the issue:
http://buildbot.python.org/all/builders/x86%20Tiger%203.4
Before my change, test_ssl because with NameError: name 'PROTOCOL_SSLv3' is
not defined. With my change, test_ssl now pass. I close
STINNER Victor added the comment:
Ok, Python 2.7, 3.4 and 3.5 can now be *compiled* with LibreSSL.
There are still issues with LibreSSL: see the new issue #23177.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21356
Roundup Robot added the comment:
New changeset 05d7550bd2d9 by Victor Stinner in branch 'default':
Issue #23177: Document that ssl.RAND_egd() is not available with LibreSSL
https://hg.python.org/cpython/rev/05d7550bd2d9
--
nosy: +python-dev
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21356
___
STINNER Victor added the comment:
I cannot reproduce it on Python 2.7.9+. I get the following output which is the
expected output:
---
-1
CTRL-C
---
Since this bug is 8 years old. I guess that the bug was already fixed, or maybe
it can only be reproduced on a specific platform. But the
Idoa added the comment:
Encountered this issue also in python 2.7.7.
last character is replaced with \x00. reproduction is exactly as stated by
Kevin.Phillips
--
nosy: +Idoa
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
Can we close this issue?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22638
___
___
Python-bugs-list mailing
STINNER Victor added the comment:
The same issue was reported for test_file2k: issue #23168.
I modified test_file2k to skip sys.stdin.seek() test if stdin is not a TTY. I
prefer to skip a test in a specific case, instead of removing it completly.
I propose to add again the test in test_file,
STINNER Victor added the comment:
I agree that Path.home() is more user friendly than Path.expanduser('~').
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19777
___
STINNER Victor added the comment:
I don't understand how to reproduce the issue, there is no unit test nor a
description how to reproduce the issue.
I'm not aware of a bug where CTRL+c is simply ignored. CTRL+c is now well
handled in Python 2.7, on Linux and Windows at least.
Since the bug
STINNER Victor added the comment:
It looks like OPENSSL_VERSION_NUMBER is consistent with OPENSSL_VERSION_INFO
(version 2.1). But the OPENSSL_VERSION contains a different version (2.0). It
looks like an issue in LibreSSL.
==
Roundup Robot added the comment:
New changeset eddcb6671a48 by Victor Stinner in branch '2.7':
Issue #21356: Make ssl.RAND_egd() optional to support LibreSSL. The
https://hg.python.org/cpython/rev/eddcb6671a48
New changeset 7f82f50fdad0 by Victor Stinner in branch '3.4':
Issue #21356: Make
Roundup Robot added the comment:
New changeset 1bb3df5bb83f by Victor Stinner in branch 'default':
Issue #23145: regrtest now shows errors and raises an exception if
https://hg.python.org/cpython/rev/1bb3df5bb83f
--
nosy: +python-dev
___
Python
STINNER Victor added the comment:
I chose to show errors and then raise an exception.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23145
___
Dmitry Kazakov added the comment:
Some of the patches (including the latest one) were missing Mercurial header.
I'm uploading the properly formatted patch (traceback_rev_fixed.diff)
--
Added file: http://bugs.python.org/file37615/traceback_rev_fixed.diff
Roundup Robot added the comment:
New changeset 0646eee8296a by Nick Coghlan in branch '3.4':
Issue 19548: update codecs module documentation
https://hg.python.org/cpython/rev/0646eee8296a
New changeset 4d00d0109147 by Nick Coghlan in branch 'default':
Merge issue 19548 changes from 3.4
Antoine Pitrou added the comment:
I think so, thank you.
--
resolution: - fixed
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22638
___
Nick Coghlan added the comment:
Thanks for the work on this folks, both Jan for the feedback, Martin for the
writing, and everyone else for their comments.
I don't believe we addressed all of Jan's comments, but I'd like to request
that any further comments be filed as separate issues, now
Changes by Berker Peksag berker.pek...@gmail.com:
--
stage: needs patch - resolved
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22935
___
___
New submission from Jon Dufresne:
The following test script demonstrates that Python's csv library does not
handle a BOM. I would expect the returned row to be equal to expected and to
print 'True' to stdout.
In the wild, it is typical for other CSV writers to add a BOM. MS Excel is
R. David Murray added the comment:
This is not a problem with the csv module in particular. See issue 7651.
--
nosy: +r.david.murray
resolution: - duplicate
stage: - resolved
status: open - closed
superseder: - Python3: guess text file charset using the BOM
Terry J. Reedy added the comment:
For future reference, a better initial post would have been more self-contained
and explanatory, something like the following. (If I got the proposal wrong,
all the more reason to explain it clearly).
---
Several functions in the traceback module take a
Changes by Al Sweigart asweig...@gmail.com:
--
nosy: +Al.Sweigart
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17776
___
___
Python-bugs-list
Changes by Al Sweigart asweig...@gmail.com:
--
nosy: +Al.Sweigart
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17760
___
___
Python-bugs-list
Martin Panter added the comment:
Thanks Nick. Here is a small followup patch for the default (3.5) branch to
keep things consistent.
--
Added file: http://bugs.python.org/file37618/default-branch-followup.patch
___
Python tracker
New submission from Alessio Bogon:
I would like to suggest a new string function/constructor:
string.from_iterable(iterable [,map_function])
I think that the behaviour is intuitive: given an iterable, it construct a
string using its element by apply a `map_function`, if provided, to each one
Ezio Melotti added the comment:
You should propose this to the python-ideas mailing list.
FWIW, if this is accepted, I would use str as default map_function.
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: fixed -
stage: resolved -
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14099
___
Matt Mackall added the comment:
The committed fix breaks Mercurial.
http://bz.selenic.com/show_bug.cgi?id=4492
The underlying file-like object in our case is a wsgirequest but anything
else trying to serve a dynamically-generated zip file on the web will probably
die. We wrapped wsgirequest
R. David Murray added the comment:
Thanks for wanting to contribute. However, I don't see why this function would
be beneficial. As indicated by the patch, it is simply
''.join(str(map_function(x)) for x in iterable)
but without the inherent flexibility of the above formulation. Which
Steve Dower added the comment:
Don't have time to apply them right now, but the patches look fine. I guess
it'll null-merge into default, since 3.5 is unaffected?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23160
Josh Rosenberg added the comment:
I'll note: .join(map(str, iterable)) will solve problem #1. It's fast, uses
existing built-ins, and is relatively intuitive. I know map is sometimes
considered Pythonic, but .join(str(x) for x in iterable) is an equally
effective, if somewhat slower,
Josh Rosenberg added the comment:
Correction: I know map is sometimes considered *un-Pythonic
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23179
___
Roundup Robot added the comment:
New changeset 20a5a56ce090 by Nick Coghlan in branch 'default':
Issue #19548: clean up merge issues in codecs docs
https://hg.python.org/cpython/rev/20a5a56ce090
--
___
Python tracker rep...@bugs.python.org
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22619
___
___
Demian Brecht added the comment:
Just happened to come across this now. Updated patch with test.
--
Added file: http://bugs.python.org/file37621/issue13128_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13128
Nick Coghlan added the comment:
Thanks for the follow-up patch Martin - I missed those when I did the merge
forward from 3.4.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19548
___
Changes by Al Sweigart asweig...@gmail.com:
--
nosy: +Al.Sweigart
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2704
___
___
Python-bugs-list
New submission from Al Sweigart:
Currently IDLE's top-level menu item is Windows on Windows Linux but is
specifically changed to Window on OS X to match mac's look and feel. See
https://hg.python.org/cpython/rev/1b3b6b1982aa
The singular Window is the standard menu name on all platforms, and
Raymond Hettinger added the comment:
This test looks like it may have been a typo:
self.assertEqual(seq.index('a'), 0, 1)
Also, it would be nice to investigate the differences with list.index() and
str.index() for the corner cases. Something along these lines:
# Compare
Mike Basca added the comment:
Hi,
I'm the original poster in the stack-exchange link. Based on your responses,
It seems Ttk is the way to go if you're on Mac OSX 64-bit.
Thanks for your time and input.
Really appreciate it!
--
nosy: +abaskm
Raymond Hettinger added the comment:
I concur with Josh and David. We already have a way to do it and there doesn't
seem to be anything here that would warrant further growth of the already large
number of string methods.
--
nosy: +rhettinger
resolution: later - rejected
Geoff Shannon added the comment:
I tweaked the patch a bit to not include the parentheses since that seems to be
the style here.
--
Added file: http://bugs.python.org/file37620/pty.patch
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
Ethan, do you have a public repository? If no, you can for example
fork CPython: click on Server-side clone at
https://hg.python.org/cpython/
--
___
Python tracker rep...@bugs.python.org
R. David Murray added the comment:
What is it you want the docs to say?
For your second point, yes, that is what I was saying would be an enhancement
(the extension is a list of possible extensions that varies per-platform and
per how python is built/installed).
--
Ethan Furman added the comment:
Here is what I have so far:
- complete tests for bytes and bytearry (bytearray currently commented out at
line 71)
- pep461 implemented for bytes
This is basically an adaptation of the 2.7 code for str, adjusted appropriately.
I was planning on having
Ethan Furman added the comment:
Sorry, no. And time is scarce at the moment so figuring out server-side clones
will have to wait as well.
I uploaded the patch of what I have so far -- hopefully that will be helpful.
Also attaching patch with just the tests.
--
Added file:
72 matches
Mail list logo