Roundup Robot added the comment:
New changeset ceb14ecc1942 by R David Murray in branch '3.4':
#11726: Make linecache docs reflect that all files are treated the same.
https://hg.python.org/cpython/rev/ceb14ecc1942
New changeset 1a5c72f9ff53 by R David Murray in branch 'default':
Merge: #11726:
Mark Mikofski added the comment:
1. J morton: just install Anacondahttp://continuum.io/downloads
2. I will take a look at the msi and see if I can accommodate both installs in
the same installer
--
___
Python tracker rep...@bugs.python.org
R. David Murray added the comment:
Isn't there some discussion somewhere that if iter(x) returns x you probably
have buggy code? Maybe it is io that is broken, design-wise. I think there
was another issue related to iter(file) recently...someone surprised by the
fact that you can't iterate
R. David Murray added the comment:
I think that that patch that Victor committed is incorrect, and that Thomas's
patch is closer to correct. People *do* use linecache with files other than
python source files, and as far as I can see we are not going to stop
supporting that. Given the
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23700
___
Benjamin Peterson added the comment:
lgtm
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22958
___
___
Python-bugs-list
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: commit review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23681
___
Skip Montanaro added the comment:
time.strptime('2015 3 20 0', '%Y %m %d %w')
time.struct_time(tm_year=2015, tm_mon=3, tm_mday=20, tm_hour=0, tm_min=0,
tm_sec=0, tm_wday=6, tm_yday=79, tm_isdst=-1)
All date values are known, the problem is that they contradict.
Garbage in, garbage out.
Roundup Robot added the comment:
New changeset b8ceb071159f by Victor Stinner in branch 'default':
Issue #22181: Run aclocal; autoconf; autoheader to regenerate configure
https://hg.python.org/cpython/rev/b8ceb071159f
--
___
Python tracker
Roundup Robot added the comment:
New changeset 104c55bc2276 by Serhiy Storchaka in branch '3.4':
Issue #23681: Fixed Python 2 to 3 poring bugs.
https://hg.python.org/cpython/rev/104c55bc2276
New changeset 817f1f47824c by Serhiy Storchaka in branch 'default':
Issue #23681: Fixed Python 2 to 3
Steve Dower added the comment:
@Mark: You can't - MSIs have a single flag indicating whether they should
elevate or not. That's why I moved the 3.5 installer to a new format.
Unfortunately, since we're in a transitional state, admin privileges are
necessary to install the new CRT version, but
R. David Murray added the comment:
Can you provide an example email in a simple reproducer script?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23727
___
Steve Dower added the comment:
Updated the patch, mainly because of the changes that have gone in over the
last week (especially _Py_read and _Py_write).
--
Added file: http://bugs.python.org/file38615/23524_4.patch
___
Python tracker
Mark Lawrence added the comment:
I believe that this can be closed as fixed, would someone like to do the
honours please.
--
nosy: +steve.dower, tim.golden, zach.ware
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9445
R. David Murray added the comment:
There's actually an issue about exactly that broken-per-docs issue for io. IMO
if the goal of calling close is to close only things that are generator objects
or pretending to be one, the method should have been named close_generator or
something.
Changes by R. David Murray rdmur...@bitdance.com:
--
Removed message: http://bugs.python.org/msg238746
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23687
___
Changes by R. David Murray rdmur...@bitdance.com:
Removed file: http://bugs.python.org/file38612/py2.JPG
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23687
___
Steve Dower added the comment:
The patch is obsolete, but Martin is correct - we can drop the detection
completely. Any concerns?
(Reading through the issue, there may be some value in a more general
GetFinalPathNameByHandle wrapper that can get VOLUME_NAME_DOS if available and
Steve Dower added the comment:
Right now I'm inclined to reject it completely, if only for backwards
compatibility (there was certainly strong opposition on python-dev recently).
That said, there's some ongoing discussion about what a python.org installation
is meant to look like, which may
Paddy McCarthy added the comment:
Can we now:
1. Move os.path.commonprefix to str.commonprefix or string.commonprefix
2. Deprecate the use of os.path.commonprefix
3. Add os.path.commonpath
4. Update the documentation.
This seems to have lingered for too long and yet people have been willing
Mark Lawrence added the comment:
Should we try to implement this in 3.5, hold it until 3.6, reject it completely
or what?
--
nosy: +BreamoreBoy, tim.golden
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15011
R. David Murray added the comment:
Duplicate of issue 22936.
--
nosy: +r.david.murray
resolution: - duplicate
stage: - resolved
status: open - closed
superseder: - traceback module has no way to show locals
versions: -Python 2.7, Python 3.4, Python 3.6
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +n
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22936
___
___
Python-bugs-list mailing
Steve Dower added the comment:
I think my patch queue went bad somewhere - a few lines disappeared. New patch.
--
Added file: http://bugs.python.org/file38616/23524_5.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23524
New submission from Raymond Hettinger:
Attaching an updated patch with documentation updates and tests.
--
Added file: http://bugs.python.org/file38617/deque_insert_index_copy4.diff
___
Python tracker rep...@bugs.python.org
Changes by Steve Dower steve.do...@microsoft.com:
--
nosy: -steve.dower
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23727
___
___
Serhiy Storchaka added the comment:
When appending fails, the deque is left in changed state. I would do it in
different way. First append new item (can fail), and then make circular shift
(never fail). This also should be faster (up to 2 times). Most code can be
shared between rotate() and
R. David Murray added the comment:
It would also be helpful to have a patch with minimum changes (that is, do not
reflow the lines).
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23725
Neil Girdhar added the comment:
Removed a confusing and outdated comment in Lib/importlib/_bootstrap.py
--
Added file: http://bugs.python.org/file38613/starunpack39.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2292
Steve Dower added the comment:
Updated the patch, since there's been a lot of checkins.
I also removed the pyconfig.h changes and updated the #ifdef in posixmodule.c
to enable truncate/ftruncate and define PATH_HAVE_FTRUNCATE.
And I know in the last review I said I'd switch to _Py_wopen(),
Serhiy Storchaka added the comment:
This is worth a discussion on Python-Dev.
http://comments.gmane.org/gmane.comp.python.devel/152025
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22832
Roundup Robot added the comment:
New changeset 33a6e2587aad by Victor Stinner in branch 'default':
Issue #23715: signal.sigwaitinfo() and signal.sigtimedwait() are now retried
https://hg.python.org/cpython/rev/33a6e2587aad
--
nosy: +python-dev
___
STINNER Victor added the comment:
New issue #23719: port test_eintr to Windows.
--
dependencies: +PEP 475: port test_eintr to Windows
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23648
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23715
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
components: +Tests, Windows
nosy: +steve.dower, tim.golden, zach.ware
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23719
___
New submission from STINNER Victor:
Currently, test_eintr is complelty skipped on Windows. time.sleep() was also
patched on Windows to retry when interrupted by a signal (issue #23646) and I
was able to see a different when testing manually.
test_eintr is currently implemented with
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23476
___
___
Python-bugs-list mailing list
Vadim Markovtsev added the comment:
+1
--
nosy: +Vadim Markovtsev
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23720
___
___
Python-bugs-list
Brett Cannon added the comment:
I did one final pass on the patch and only had wording comments, so tweak those
and it LGTM. Assigned to Serhiy since it's obviously his patch. =)
Only other thing is to either open up a separate bug or at least apply the
fixes to the stdlib in Python 3.4 as
Serhiy Storchaka added the comment:
I think it should fall in the same category as Py_RETURN_TRUE or
Py_RETURN_NONE. Sure, it's easy to reimplement, but a lot of extensions
need it; why should everyone need to write the same code in a dozen
different ways? I specifically want this usable in
Skip Montanaro added the comment:
I don't think this is a bug. From the 2.7.9 docs:
The default values used to fill in any missing data when more accurate values
cannot be inferred are (1900, 1, 1, 0, 0, 0, 0, 1, -1).
--
nosy: +skip.montanaro
___
Gregory P. Smith added the comment:
I do not object to the removal of the 0xfff from the stdlib library code
if these functions have actually been fixed to always return unsigned now.
(double check the behavior, and if good, just do it!)
But I think the docs should still mention that
Serhiy Storchaka added the comment:
Thanks you for your patch Alex.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22832
___
Steve Dower added the comment:
Any chance of a review on the newest patch?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23524
___
___
Terry J. Reedy added the comment:
99% of Python users should be getting a distribution rather than the
python.org installers.
I do not understand this at all. Why? My understanding is that at least some
of the separate distributions are separate gardens cut off from the wider
Roundup Robot added the comment:
New changeset a3c9c2c92b87 by Serhiy Storchaka in branch 'default':
Issue #22832: Tweaked parameter names for fcntl module to better match
https://hg.python.org/cpython/rev/a3c9c2c92b87
--
nosy: +python-dev
___
Python
Steve Dower added the comment:
My understanding is that at least some of the separate distributions are
separate gardens cut off from the wider pip-accessible python ecosystem.
Maybe some are, but certainly not all of them. There are sometimes
cross-dependencies that require you to go to
New submission from Zbyszek Jędrzejewski-Szmek:
tempfile docs can use some refreshing.
--
components: Library (Lib)
files: 0001-docs-update-description-of-TemporaryFile-and-tempfil.patch
keywords: patch
messages: 238713
nosy: zbysz
priority: normal
severity: normal
status: open
title:
Serhiy Storchaka added the comment:
Except one line with dubious spacing the patch LGTM.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23705
___
Tim Graham added the comment:
Patch updated to fix conflict in NEWS. Could we have it committed to ensure it
gets fixed in the next 3.2 released?
--
Added file: http://bugs.python.org/file38609/secure-httponly-3.2-backport.diff
___
Python tracker
Changes by Demian Brecht demianbre...@gmail.com:
--
nosy: +demian.brecht
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23662
___
___
New submission from Brett Cannon:
In environments where bytecode generation is thoroughly controlled, it would be
nice if there was a way to specify that the bytecode file is externally
guaranteed to be up-to-date, and thus skip any stat call involving bytecode
verification. Could be
Serhiy Storchaka added the comment:
Except brackets the patch LGTM.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22832
___
___
Antoine Pitrou added the comment:
What is the benefit?
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23723
___
___
STINNER Victor added the comment:
Isn't there some discussion somewhere that if iter(x) returns x you probably
have buggy code?
I agree that the issue comes from TextIOWrapper.__iter__(),
BufferedReader.__iter__() and FileIO.__iter__() returns simply return
self *and* have a close method.
Serhiy Storchaka added the comment:
Agree. But may be at least emit a warning?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23717
___
___
Wolfgang Maier added the comment:
OTOH, it would be very hard to change the way fileobjects compared to designing
yield from differently so I'd still blame it partly.
Maybe it is unfortunate that generators have a close method instead of, say,
__close__ ?
--
Serhiy Storchaka added the comment:
For a namedtuple such as turtle.Vec2D there is no significant difference in the
time of unpickling. But for simpler type it is.
$ ./python -m timeit -s 'import pickle, turtle; global I' -s 'class I(int):
pass' -s 'p = pickle.dumps([I(i) for i in
Wolfgang Maier added the comment:
You are probably right that the io classes are broken.
From https://docs.python.org/3/library/stdtypes.html#iterator-types:
Once an iterator’s __next__() method raises StopIteration, it must continue to
do so on subsequent calls. Implementations that do not
New submission from Eugene Toder:
As far as I can tell, if a new class does not add any new fields, and its base
class doesn't use GC, there's no reason to enable GC for the new class.
This is useful for creating lightweight wrappers around classes implemented in
C.
--
files:
Paul Moore added the comment:
99% of Python users should be getting a distribution rather than the
python.org installers
I'm not at all convinced by this logic. On Windows, as far as I'm aware, the
only major Python distributions are Anaconda and Enthought, both of which are
intended
Changes by Serhiy Storchaka storch...@gmail.com:
--
components: +Interpreter Core
nosy: +serhiy.storchaka
stage: - patch review
versions: +Python 3.5 -Python 3.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23726
Charles-François Natali added the comment:
Could you regenerate your latest patch?
It doesn't show properly in the review tool.
Also, what's with the assert?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23618
Serhiy Storchaka added the comment:
class UserIntSlots(int):
... __slots__ = ()
... def __repr__(s): return '5'
...
(4).__class__ = UserIntSlots
2+2
5
type(2+2)
class '__main__.UserIntSlots'
It looks weird.
--
___
Python tracker
Serhiy Storchaka added the comment:
See also issue4903.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22341
___
___
Python-bugs-list mailing
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23306
___
___
Charles-François Natali added the comment:
Well, all the syscalls which can blocki can fail with EINTR, so all
I:O related one.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23648
___
Antoine Pitrou added the comment:
It would be nice to add a test for the RuntimeError case.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23705
___
Serhiy Storchaka added the comment:
These notes was added by Gregory in r68535. Ask him if they still are needed.
--
nosy: +gregory.p.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22341
Gregory P. Smith added the comment:
This would avoid the need to modify an interpreter to have this optimization.
In this mode the potentially expensive stat() call is avoided. No need to
ensure that the pyc file's embedded timestamp matches the py file's timestamp.
The only use of this
New submission from Brian Peterson:
Hey,
So here we go:
When an email header goes over a line break, rfc2231
(https://tools.ietf.org/html/rfc2231) specifies that it get formatted in such a
way that the line break is stripped out. This formatting looks like, for
example:
filename*0=my
Changes by Ned Deily n...@acm.org:
--
assignee: - docs@python
components: +Documentation -Library (Lib)
nosy: +docs@python
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23725
New submission from Serhiy Storchaka:
zlib.adler32(), zlib.crc32(), and binascii.crc32() always return 32-bit
unsigned integer in Python 3. binascii.crc_hqx() almost always returns 16-bit
unsigned integer. But there is an exception. The result can negative only when
arguments of
Eugene Toder added the comment:
Agreed, but this is not new. This works without my change:
class Tuple(tuple):
... __slots__ = ()
... def __repr__(self): return 'Imma tuple!'
...
().__class__ = Tuple
()
Imma tuple!
--
Wolfgang Maier added the comment:
@bkabrda
not sure, but it may have to do with when exactly the object gets garbage
collected
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23700
___
STINNER Victor added the comment:
I didn't understand the issue.
$ python2
b'A'[0] == 65
False
$ python3
Python 3.4.1 (default, Nov 3 2014, 14:38:10)
b'A'[0] == 65
True
Oh ok, now I get it: Python 2 and Python 3 behaves differently when comparing a
string of a single byte and an integer.
Serhiy Storchaka added the comment:
Updated patch addresses Paul's and Demian's comments.
Converting the format_string parameter to positional parameter can break
third-party code, so this needs a deprecation period.
--
Added file:
Roundup Robot added the comment:
New changeset 597a87099713 by Victor Stinner in branch 'default':
Issue #23696: Chain ZipImportError to the OSError
https://hg.python.org/cpython/rev/597a87099713
--
nosy: +python-dev
___
Python tracker
Changes by STINNER Victor victor.stin...@gmail.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23696
___
Terry J. Reedy added the comment:
I closed #23665 in favor of this one. Raymond's take: msg238108
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5680
___
Terry J. Reedy added the comment:
#5680 has 3 different patches. I have not reviewed them yet. I will link to
Raymond's message there.
--
nosy: +terry.reedy
resolution: - duplicate
stage: needs patch - resolved
status: open - closed
superseder: - Command-line arguments when running
Antoine Pitrou added the comment:
I wasn't aware of that :-o
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23726
___
___
Python-bugs-list
Steve Dower added the comment:
my guess (conceded, this is based on no actual metrics) would be that 99% of
Windows users use the python.org installers, certainly not the other way
around.
Based on numbers I've heard it's certainly a majority currently using the
python.org installers, but
Changes by Eric V. Smith e...@trueblade.com:
--
components: +email -Windows
nosy: +barry, r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23727
___
Serhiy Storchaka added the comment:
May be we should forbid assigning the __class__ attribute of basic builtin
types (especially internable, such as int, str, bytes, tuple, bool, NoneType).
--
___
Python tracker rep...@bugs.python.org
Eugene Toder added the comment:
Actually, this is rather new -- new in 3.5. The check was relaxed in #22986:
https://hg.python.org/cpython/rev/c0d25de5919e
Previously only heap types allowed re-assigning __class__.
--
___
Python tracker
Raymond Hettinger added the comment:
Here's my comment from the duplicate tracker item:
--
A number of IDEs support menu options to set the execution environment for
programs under development and testing. In particular, it would be nice if
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23726
___
___
101 - 188 of 188 matches
Mail list logo