Raymond Hettinger added the comment:
I'll update the docs for sorted().
--
priority: normal - low
versions: -Python 3.1, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22237
Changes by Benjamin Peterson benja...@python.org:
--
keywords: +easy
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22243
___
Lars Gustäbel added the comment:
Please provide a patch which allows easy addition of file-like objects (not
only io.BytesIO) and directories, preferably hard and symbolic links, too. It
would be nice to still be able to change attributes of a TarInfo before
addition. Please also add tests.
Claudiu Popa added the comment:
Any type of feedback regarding this approach will be appreciated.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21817
___
Jayanth Koushik added the comment:
The whole page on compound statements seems to be rife with inconsistencies.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22243
___
New submission from Tomas Groth:
Running this simple test script produces the traceback show below.
import urllib.request
page =
urllib.request.urlopen('http://legacy.biblegateway.com/versions/?vid=DN1933action=getVersionInfo#books')
Traceback (most recent call last):
File stdin, line 1, in
Changes by Claudiu Popa pcmantic...@gmail.com:
--
stage: - commit review
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13938
___
Changes by Claudiu Popa pcmantic...@gmail.com:
--
resolution: - rejected
stage: needs patch - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16599
___
Tomas Groth added the comment:
Small correction. Use this url for a working redirect instead of the one given
at the end of the first comment:
http://legacy.biblegateway.com/versions/?vid=ESVaction=getVersionInfo#books
--
___
Python tracker
Michael Foord added the comment:
This seems like a reasonable improvement, I'd be in favour. I'd be *slightly*
concerned that a test can override an explicit verbosity setting of the user,
but I guess that annoyance is up to the test writer (they should check for an
explicit setting first).
Senthil Kumaran added the comment:
Interesting. I had not noticed these with my run on Mac and neither did
Buildbots report. Looks like explicit closing of wfile do_GET method can be
cause of tis problem.
--
___
Python tracker
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22247
___
___
Changes by Claudiu Popa pcmantic...@gmail.com:
--
stage: - patch review
type: - behavior
versions: +Python 3.5 -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18374
Roundup Robot added the comment:
New changeset 48a77fbfd6cb by Senthil Kumaran in branch '3.4':
Fix issue22245 - Fix urllib2_localnet test.
http://hg.python.org/cpython/rev/48a77fbfd6cb
New changeset cb291294bdc8 by Senthil Kumaran in branch 'default':
merge from 3.4
Senthil Kumaran added the comment:
It was reproducible on my local machine too. Those errors were present and
somehow escaped me. Thanks for raising this.
Fixed these and tested in my local machine and test_urllib2_localnet was
successful.
--
assignee: - orsenthil
resolution: -
Nick Coghlan added the comment:
For the record, I just posted the QA reference to Stack Overflow:
https://stackoverflow.com/questions/25445439/what-does-syntaxerror-missing-parentheses-in-call-to-print-mean-in-python/
--
___
Python tracker
Claudiu Popa added the comment:
That makes sense. Quoting from the data model: When inheriting from a class
without __slots__, the __dict__ attribute of that class will always be
accessible, so a __slots__ definition in the subclass is meaningless.
In the current case, for the little-endian
Ram Rachum added the comment:
Hi Claudiu, sorry for the silence.
This output looks great. I'd love to see that go into Python.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21817
___
New submission from Alexander Patrakov:
See the example at
https://docs.python.org/2/library/socket.html#socket.getaddrinfo
socket.getaddrinfo(www.python.org, 80, 0, 0, socket.SOL_TCP)
As I am primarily a C programmer, it is quite surprising for me to see a SOL_*
being passed into the proto
Stefan Behnel added the comment:
I'm now getting duplicated slashes in URLs, e.g.:
https://new//foo.html
http://my.little.server/url//logo.gif
In both cases, the base URL that gets joined with the postfix had a trailing
slash, e.g.
http://my.little.server/url/; + logo.gif -
Nick Coghlan added the comment:
Issue #1500504 (the urischemes proposal that never got turned into a PyPI
package) has several additional test cases. This particular attachment is one
AMK cleaned up to run on Py3k:
http://bugs.python.org/file32591/urischemes.py
The module itself likely isn't
Serhiy Storchaka added the comment:
Issue 20689: socket.__all__
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22247
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
assignee: - berker.peksag
nosy: +berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21338
___
Antoine Pitrou added the comment:
Oh, I'm only proposing read-only access to the verbosity information. And
forcing output buffering would only last for the current test method, of course.
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset a21ddb1c41d2 by Brett Cannon in branch 'default':
Issue #19714: Tests for importlib.machinery.WindowsRegistryFinder.
http://hg.python.org/cpython/rev/a21ddb1c41d2
--
nosy: +python-dev
___
Python tracker
Brett Cannon added the comment:
Thanks for the patch, Claudiu. Sorry it took so long to apply, but you know
what I have been working on instead so I'm sure you understand. =)
--
resolution: - fixed
status: open - closed
___
Python tracker
Brett Cannon added the comment:
And Python 2.7.
--
status: pending - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22191
___
___
Miki Tebeka added the comment:
For zip file the help should probably be:
usage: python file.zip
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22240
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
stage: commit review - resolved
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19714
___
___
Brett Cannon added the comment:
The patch looks good, Jon! I'm running the test suite now to make sure nothing
odd happens from the change, but barring that this should be committed in
Python 3.4 and default shortly.
--
stage: - commit review
status: open - pending
Roundup Robot added the comment:
New changeset a77dc87a34ff by Brett Cannon in branch '3.4':
Issue #22191: Fix warnings.__all__.
http://hg.python.org/cpython/rev/a77dc87a34ff
New changeset aeb5fc7a9956 by Brett Cannon in branch 'default':
Merge for issue #22191 fix
Michael Foord added the comment:
Yep. I have no qualms about allowing test cases to switch on buffering.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22197
___
Roundup Robot added the comment:
New changeset 727fd4ead3fd by Brett Cannon in branch '2.7':
Issue #22191: Fix warnings.__all__.
http://hg.python.org/cpython/rev/727fd4ead3fd
--
___
Python tracker rep...@bugs.python.org
Changes by Brett Cannon br...@python.org:
--
resolution: - fixed
stage: commit review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22191
___
New submission from Simon Zack:
The python unittest module currently uses camel case. This feels rather
inconsistent with the rest of the python library, which is in lower case and
follows PEP8.
Would it be a good idea to add lower-case aliases, and possibly deprecate the
camel case methods
eryksun added the comment:
Since BigEndianStructure doesn't explicitly define the instance slots, they get
the default slots for __dict__ and __weakref__. It wouldn't make sense to
exclude these slots from instances of the Point2 subclass, so there's no
mechanism for that. You can only add
Antoine Pitrou added the comment:
That said, the BigEndianStructure and LittleEndianStructure subclasses should
define __slots__ = (). That removes the inconsistency.
That would probably be reasonable indeed. Anyone wants to write a patch?
--
nosy: +amaury.forgeotdarc, belopolsky,
Roundup Robot added the comment:
New changeset b834b1fa2aab by Berker Peksag in branch '3.4':
Issue #22150: Fix deprecated-removed directive in Sphinx 1.2.
http://hg.python.org/cpython/rev/b834b1fa2aab
New changeset 8f635f77e7e9 by Berker Peksag in branch 'default':
Issue #22150: Fix
Berker Peksag added the comment:
Thank you for your review, Ezio!
--
resolution: - fixed
stage: commit review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22150
Roundup Robot added the comment:
New changeset c2d71f9afa0b by Brett Cannon in branch 'default':
Issue #20152: Convert _multibytecodecs to Argument Clinic.
http://hg.python.org/cpython/rev/c2d71f9afa0b
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 2617db7e43a3 by Brett Cannon in branch 'default':
Issue #20152: Convert the grp module to Argument Clinic.
http://hg.python.org/cpython/rev/2617db7e43a3
--
___
Python tracker rep...@bugs.python.org
Brett Cannon added the comment:
To make it easier to track what is left to commit:
* grp
* spwd
* fcntl
* pyexpat
* array
* cmath [Martin says this no longer applies cleanly]
I should also mention all of these patches probably need to shift to `output
preset file` as well.
--
stage:
Brett Cannon added the comment:
To make it easier to track what is left to commit:
* spwd
* fcntl
* pyexpat
* array
* cmath [Martin says this no longer applies cleanly]
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20152
New submission from Berker Peksag:
/home/berker/projects/cpython/default/Doc/extending/newtypes.rst:985: ERROR:
Error in note directive:
invalid option block.
/home/berker/projects/cpython/default/Doc/faq/library.rst:700: ERROR: Error in
seealso directive:
invalid option block.
Alex Gaynor added the comment:
Uploaded patch adds the algorithm availability constants to the hashlib module.
--
components: +Extension Modules
keywords: +needs review, patch
Added file: http://bugs.python.org/file36436/backport-hashlib.diff
___
Alex Gaynor added the comment:
Attached patch backports the persistent FD for urandom.
--
components: +Extension Modules, Interpreter Core
keywords: +needs review, patch
Added file: http://bugs.python.org/file36437/backport-urandom.diff
___
Python
Roundup Robot added the comment:
New changeset 38688f0a0e04 by Berker Peksag in branch '3.4':
Issue #19447: Add a test case to py_compile.compile() to make sure
http://hg.python.org/cpython/rev/38688f0a0e04
New changeset efb0a3eb4e06 by Berker Peksag in branch 'default':
Issue #19447: Add a
Berker Peksag added the comment:
3.3 is in security-only mode and this issue has been fixed in 3.4. I've just
committed your test case to 3.4 and default. Thanks for the patch, Bohuslav.
--
assignee: - berker.peksag
components: +Library (Lib) -Build
nosy: +berker.peksag
resolution: -
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +belopolsky
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22246
___
New submission from Hristo Venev:
ssl.SSLWantReadError and ssl.SSLWantWriteError should inherit
io.BlockingIOError.
Generic code that works with non-blocking sockets will stop working with
SSLSockets.
Does anybody have any idea if SSLSocket.read() will need to write to the
underlying socket
Arfrever Frehtes Taifersar Arahesis added the comment:
You should use importlib.util.cache_from_source(bad_coding) instead of
bad_coding + 'c'.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19447
Berker Peksag added the comment:
Good point. Thank you Arfrever.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19447
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset d99014320220 by Berker Peksag in branch '3.4':
Issue #19447: Use importlib.util.cache_from_source() instead of ``bad_coding +
'c'``.
http://hg.python.org/cpython/rev/d99014320220
New changeset 78fff5310206 by Berker Peksag in branch 'default':
Roundup Robot added the comment:
New changeset b3aa30f474c4 by Brett Cannon in branch 'default':
Issue #20152: Port the spwd module to Argument Clinic.
http://hg.python.org/cpython/rev/b3aa30f474c4
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset c48980af7df2 by Brett Cannon in branch 'default':
Issue #20152: Port the pwd module to Argument Clinic.
http://hg.python.org/cpython/rev/c48980af7df2
--
___
Python tracker rep...@bugs.python.org
New submission from kernc:
ConfigParser does not handle files that specify options in the global section
(first option specified before any section is). This configuration behavior
is present in the configuration files in the wild [1, 2], and while the naive
workaround is simple, ... really?!
Roundup Robot added the comment:
New changeset 0c2792a8f9db by Brett Cannon in branch 'default':
Issue #20152: Port pyexpat to Argument Clinic.
http://hg.python.org/cpython/rev/0c2792a8f9db
--
___
Python tracker rep...@bugs.python.org
Brett Cannon added the comment:
To make it easier to track what is left to commit:
* fcntl [does not apply cleanly
* array
* cmath [Martin says this no longer applies cleanly]
--
___
Python tracker rep...@bugs.python.org
Łukasz Langa added the comment:
That's an interesting feature request. Parsing it only while `strict=False`
sounds like a good plan.
--
assignee: - lukasz.langa
nosy: +lukasz.langa
stage: - needs patch
type: behavior - enhancement
versions: -Python 2.7, Python 3.2
New submission from leiju:
See the simple test below:
failed on 13.3.0 Darwin Kernel Version 13.3.0, Python 2.7.8:
Python 2.7.8 (v2.7.8:ee879c0ffa11, Jun 29 2014, 21:07:35)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type
R. David Murray added the comment:
We tried going down this path with the Threading module in the python3
transiontion, and it was a mess. I don't think we are going to do it for any
other module.
--
nosy: +r.david.murray
___
Python tracker
leiju added the comment:
closed as cannot reproduce it anymore:
Python 2.7.8 (v2.7.8:ee879c0ffa11, Jun 29 2014, 21:07:35)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type help, copyright, credits or license for more information.
import re
p = '(abc)|(def)|(xyz)'
s =
Alex Gaynor added the comment:
Attached patch resolves the issue, includes a test.
--
keywords: +needs review, patch
Added file: http://bugs.python.org/file36438/t22244.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22244
Changes by Ned Deily n...@acm.org:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22248
___
___
Python-bugs-list mailing list
Terry J. Reedy added the comment:
This issue is about the SyntaxError message for eval functions, not the ast
module per se. My first response is that the reported message is not a bug and
that this issue should be closed as 'not a bug'.
(General reason) Trying to eval an expression preceded
Serhiy Storchaka added the comment:
assertlessequal looks non-readable and assert_less_equal is two characters
longer.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22250
Ezio Melotti added the comment:
This has been already proposed and rejected in the past.
It's not something that is going to happen (at least until Python 4 or 5).
--
nosy: +ezio.melotti
resolution: - rejected
stage: - resolved
status: open - closed
Jorgen Schäfer added the comment:
I do not understand how your comments apply to this bug. There is no
comment anywhere. There is a single string literal whose contents look
like a comment. The expression parses correctly without syntax error if you
add a few newlines in front. Could you
Terry J. Reedy added the comment:
Objects/unicodeobject.c linebreak is at 266. With 3.4.1:
'a\x0ab\x0bc\x0cd\x0d1c\x1c1d\x1d1e\x1e'.splitlines()
['a', 'b', 'c', 'd', '1c', '1d', '1e']
\x0a == \n, \x0d == \r
The \r\n pair is a special case, as promised, but other pairs are not.
Roundup Robot added the comment:
New changeset edb6b282469e by Ned Deily in branch '2.7':
Issue #21166: Prevent possible segfaults and other random failures of
http://hg.python.org/cpython/rev/edb6b282469e
New changeset e52d85f2e284 by Ned Deily in branch '3.4':
Issue #21166: Prevent possible
Ned Deily added the comment:
Committed for release in 2.7.9, 3.4.2, and 3.5.0
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21166
Roundup Robot added the comment:
New changeset c57cf191e759 by Ned Deily in branch '2.7':
Issue #22199: Make get_makefile_filename() available in Lib/sysconfig.py
http://hg.python.org/cpython/rev/c57cf191e759
--
nosy: +python-dev
___
Python tracker
Samuel Charron added the comment:
It's also at line #14941 for unicode strings if I understand correctly
With 3.4.0:
a\x85b\x1ec.splitlines()
['a', 'b', 'c']
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22232
Roundup Robot added the comment:
New changeset 404cf4c071c8 by Ned Deily in branch '2.7':
Issue #22199: update Misc/NEWS
http://hg.python.org/cpython/rev/404cf4c071c8
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22199
Changes by Steven Myint c...@stevenmyint.com:
--
nosy: +myint
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8296
___
___
Python-bugs-list mailing
Ned Deily added the comment:
Committed for release in 2.7.9
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22199
Terry J. Reedy added the comment:
I think 'target' can just be replaced by 'identifier'.
Using 'expression' (or 'expr' in the ast doc) for what should be 'exceptions:
identifier' or paranthesized tuple of identifiers;, is also too broad. However,
that must be enforced in the compiler rather
Michael Williamson added the comment:
Using 'expression' (or 'expr' in the ast doc) for what should be 'exceptions:
identifier' or paranthesized tuple of identifiers;, is also too broad.
However, that must be enforced in the compiler rather than the parser, and
compiler restrictions are
Changes by David Thiede davidrthi...@gmail.com:
--
nosy: +davet
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16808
___
___
Python-bugs-list
Éric Araujo added the comment:
Thanks Ned for analysing and cleanin up the mess :-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22199
___
___
kernc added the comment:
I, for one, would actually prefer if global options were parsed by default and
MissingSectionHeaderError was deprecated instead.
From what little specification available, INI format does **not** require
options be in sections [4, 5].
Additionally, Linux and Unix
Terry J. Reedy added the comment:
[When responding, please do not quote more than a line or two. If responding by
email, please delete the rest. Otherwise, the result is extra noise when
viewing online.]
You are right, I missed the outer 's, though my examples are not completely
irrelevant.
Terry J. Reedy added the comment:
You are right, only the result, and not the form of 'expression' is
constrained. I will let Jayanth propose other errors.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22243
Antoine Pitrou added the comment:
ssl.SSLWantReadError and ssl.SSLWantWriteError should inherit
io.BlockingIOError.
Generic code that works with non-blocking sockets will stop working with
SSLSockets.
I'll have to think about that, but in any case non-blocking SSL code needs to
be
New submission from Michael McAuliffe:
On Windows, I froze a script that uses multiprocessing with cx-freeze and
Python 3.4.1 that had freeze_support() in the if __name__ == '__main__'
section of the main module, and the resulting executable crashes with a
RuntimeError 'context has already
Gregory P. Smith added the comment:
use a frozenset for algorithms_guaranteed.
in the docs under more algor... may be available make the two variables
link to their docs. you might explicitly mention python 2.7.9 in that
paragraph.
you probably should use pystring_fromstring imstead of
Alex Gaynor added the comment:
New patch uses PyString_FromString.
To the other two points:
1) Python3 uses a mutable set for both of these, any reason for Python2 to be
inconsistent?
2) The docs in Python3 don't have this link either, I'm trying to minimize the
delta; if you think there
Gregory P. Smith added the comment:
Keeping the delta small makes sense. I'd use frozenset in 3 as well but its
unimportant. LGTM.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21307
___
R. David Murray added the comment:
See issue 7643 for some technical background. There are some other interesting
issues to read if you seach the tracker for 'splitlines unicode', one of which
is an open doc issue. Clearly the docs about this are inadequate.
Basically, though, I think you
Roundup Robot added the comment:
New changeset e0f681f4ade3 by Antoine Pitrou in branch 'default':
Issue #2527: Add a *globals* argument to timeit functions, in order to override
the globals namespace in which the timed code is executed.
http://hg.python.org/cpython/rev/e0f681f4ade3
--
Antoine Pitrou added the comment:
Thank you, Ben! Your patch is now pushed to the default branch.
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2527
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +lemburg
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21536
___
___
Python-bugs-list mailing
Antoine Pitrou added the comment:
Here is a patch. Doc updates still missing.
--
keywords: +patch
Added file: http://bugs.python.org/file36440/ssl_version.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20421
Benjamin Peterson added the comment:
Can't you just use et in PyArg_Parse?
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22244
___
Alex Gaynor added the comment:
Unfortunately no, the API accepts explicit Nones (in addition to simply not
passing the argument), and et errors on those.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22244
Antoine Pitrou added the comment:
You could do all the argument conversion in the Python SSLContext class and
then delegate to the base _SSLContext class...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22244
Alex Gaynor added the comment:
It's not clear to me that that's better, and it makes the diff with the Python3
version larger.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22244
___
Alex Gaynor added the comment:
Attached patch adds an additional test for a more interesting unicode path.
--
Added file: http://bugs.python.org/file36441/t22244.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22244
Jayanth Koushik added the comment:
The page on compound statements defines compound statements as:
compound_stmt ::= if_stmt
| while_stmt
| for_stmt
| try_stmt
| with_stmt
| funcdef
99 matches
Mail list logo