Zachary Ware added the comment:
I finally managed to get a review posted on Rietveld, which should have sent
you an email (sorry for the delay!).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22261
David Szotten added the comment:
not sure i follow. we need a different message if e.g. an integer is passed in
updated the patch to only run the unicode check for non-strings
or do you have a suggestion for an error message that works nicely in both
cases?
--
Added file:
New submission from Rebecka:
The cookielib module uses time.time(), which produces a timestamp in the local
timezone (as read from the system time?), as the timestamp against which
expiration dates in cookies are compared.
However, typical usage of HTTP cookies would be specifying the
New submission from Edward O:
_make_iterencode in python2.7/json/encoder.py encodes custom enum types
incorrectly (the label will be printed without '') because of these lines
(line 320 in 2.7.6):
elif isinstance(value, (int, long)):
yield buf + str(value)
in constract,
Changes by Edward O edoubray...@gmail.com:
--
title: json encoding broken for - 2.7 json encoding broken for enums
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22297
___
New submission from Julius Lehmann-Richter:
In Lib/warnings.py the _show_warning function catches IOError with the
commented intention to ward against an invalid file:
def _show_warning(message, category, filename, lineno, file=None, line=None):
Hook to write a warning to a file; replace
Michael Foord added the comment:
Switching to Mock instead of MagicMock may help, as that doesn't have the magic
proxies at all. (patch has an argument to specify which class of Mock should be
used to create the mock object, MagicMock is just the default.)
Other wise using __slots__ would be
New submission from Kevin Norris:
Run Python as an administrator:
import pathlib
pth = pathlib.Path('//?/C:/foo.')
pth.mkdir()
pth.resolve().rmdir()
Traceback (most recent call last):
File stdin, line 1, in module
File C:\Python34\lib\pathlib.py, line 1141,
Kevin Norris added the comment:
When the directory name is '...', the error is different:
pth = pathlib.Path('//?/C:/...')
pth.mkdir()
pth.resolve().rmdir()
Traceback (most recent call last):
File stdin, line 1, in module
File C:\Python34\lib\pathlib.py, line
Roundup Robot added the comment:
New changeset 8e13ad4e5ae6 by Victor Stinner in branch 'default':
Issue #22287: On UNIX, _PyTime_gettimeofday() now uses
http://hg.python.org/cpython/rev/8e13ad4e5ae6
--
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/issue22287
___
New submission from Nick Coghlan:
The Python 2.7 What's New now has a section recording the feature updates in
maintenance releases.
Because of the live docs updates, these need to be added on the day of the
release, rather than being able to be done in advance.
--
assignee:
Roundup Robot added the comment:
New changeset 668e0bf30042 by Victor Stinner in branch 'default':
Issue #22043: _PyTime_Init() now checks if the system clock works.
http://hg.python.org/cpython/rev/668e0bf30042
--
nosy: +python-dev
___
Python
Roundup Robot added the comment:
New changeset 76bc15c918b1 by Victor Stinner in branch 'default':
Issue #22043: Simplify time.perf_counter() on Windows
http://hg.python.org/cpython/rev/76bc15c918b1
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset ab81b4cdc33c by Victor Stinner in branch 'default':
Issue #22043: Oops, fix perf_counter() on UNIX if no monotonic clock is
http://hg.python.org/cpython/rev/ab81b4cdc33c
--
___
Python tracker
STINNER Victor added the comment:
Ok, I prepared Python for monotonic clock, I attached an updated patch. It is
now much simpler.
pymonotonic-3.patch:
* time.monotonic() is now always available
* _PyTime_Init() ensures that the operating system provides a monotonic clock
and that the clock
Doug Zongker added the comment:
So, what happens now? What do I need to do to make progress on this?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22185
___
Terry J. Reedy added the comment:
Are you planning to un-defer the PEP, and remove the Deferral section?
The PEP proposes 5 'phases'. How does that mesh with 2 'steps'?
Gregory's message is helpful to me. The Idle startup needs to be documented
(AFAIK only code now ) and modified. Internal
Terry J. Reedy added the comment:
I agree that this is a bad idea.
1. Cookies are generally a nuisance. I like the fact that docs.python.org is
(apparently) cookie free and that python sites only use a few short-lived
cookies. The complications you propose would be a nuisance to create and
Terry J. Reedy added the comment:
2.7 does not get enhancements and Lu's comment suggests that the enhancement is
already in 3.x.
--
nosy: +terry.reedy
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +ezio.melotti, pitrou, rhettinger
stage: - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22297
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +pitrou
stage: - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22299
___
___
Antoine Pitrou added the comment:
Why is it a pathological path? Can you explain?
--
nosy: +steve.dower, tim.golden, zach.ware
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22299
___
Terry J. Reedy added the comment:
3.1-3.3 only get security fixes. 3.4 outputs write to closed file, so it
appears to have the same issue. The proposed change seems reasonable to me, as
a bugfix.
--
nosy: +terry.reedy
stage: - test needed
versions: +Python 3.4, Python 3.5 -Python 3.2
New submission from Michele Orrù:
maker hello! In
https://docs.python.org/2/library/smtplib.html#smtplib.SMTP.starttls I read::
maker If keyfile and certfile are provided, these are passed to the socket
module’s ssl() function.
maker socket.ssl() exists, though it is not documented (not even
Alex Gaynor added the comment:
Attached patch fixes this up.
--
keywords: +needs review, patch
nosy: +alex
Added file: http://bugs.python.org/file36505/t22301.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22301
Changes by Terry J. Reedy tjre...@udel.edu:
--
stage: - patch review
versions: -Python 3.1, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22301
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: -Python 3.1, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22294
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
stage: - patch review
versions: -Python 3.1, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22269
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4277
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +lars.gustaebel
stage: - patch review
versions: -Python 3.1, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22163
Changes by Terry J. Reedy tjre...@udel.edu:
--
stage: - patch review
versions: -Python 3.1, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22141
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
stage: needs patch - patch review
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16037
Steve Dower added the comment:
Is resolve() using an *A() API rather than *W()? The \\?\ prefix does not work
with *A() APIs.
Also, names that are all dots are not supported by Windows at all. I'd expect
mkdir() to fail on that, but the \\?\ prefix disables some validation, so it's
possible
Terry J. Reedy added the comment:
Looking further, already fixed in 3.x
--
nosy: +terry.reedy
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16037
Antoine Pitrou added the comment:
resolve() should use the *W APIs since it is using only functions from the os
module with str objects. Perhaps you want to double-check that, since I don't
have a Windows VM anymore.
--
___
Python tracker
Arfrever Frehtes Taifersar Arahesis added the comment:
Python 3.2 still receives security fixes.
--
resolution: fixed -
status: closed - open
versions: +Python 3.2 -Python 3.4, Python 3.5
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
Or perhaps we should remove the function to wrap_socket(), which is just an
implementation detail?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22301
eryksun added the comment:
The \\?\ extended-path prefix bypasses normal path processing. The path is
passed directly to the filesystem driver. For example, to accommodate the POSIX
namespace, NTFS allows any character except NUL and slash, so it happily
creates a directory named foo.. This
Steve Dower added the comment:
Removing the _ext_to_normal() call in resolve() looks like the right fix to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22299
___
R. David Murray added the comment:
Remove the reference, you mean? As in just delete the confusing line? Since
we want to encourage people to use the context, that sounds reasonable for 3.x
at least.
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
Does one of you want to provide a patch? (with tests)
--
stage: test needed - needs patch
versions: +Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22299
Terry J. Reedy added the comment:
(When responding via email, please delete the quoted test (except possibly for
a line or two) as it constitutes noise when viewing the web page.)
On my updated win7, I get with 3.4.1
import os.path
userDir = os.path.expanduser('~')
userDir
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +serhiy.storchaka
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6639
___
Terry J. Reedy added the comment:
Bug was fixed. Enhancements are out of date for 2.x and OP will not pursue for
3.x, and should be a separate issue anyway.
--
nosy: +terry.reedy
resolution: - fixed
stage: - resolved
status: open - closed
___
Terry J. Reedy added the comment:
David, do you agree with either of the proposed changes?
--
nosy: +terry.reedy
versions: +Python 3.4, Python 3.5 -Python 2.6, Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
Changes by Terry J. Reedy tjre...@udel.edu:
--
resolution: - wont fix
stage: test needed - resolved
status: open - closed
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: -Python 3.1, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20468
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
stage: - needs patch
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17286
Roundup Robot added the comment:
New changeset 4cce39cfe46c by Antoine Pitrou in branch '3.4':
Issue #22185: Fix an occasional RuntimeError in threading.Condition.wait()
caused by mutation of the waiters queue without holding the lock.
http://hg.python.org/cpython/rev/4cce39cfe46c
New
Changes by Terry J. Reedy tjre...@udel.edu:
--
resolution: - out of date
stage: - resolved
status: open - closed
versions: -Python 2.6, Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6895
Antoine Pitrou added the comment:
It only needed someone to push your patch, which I just did.
Thank you very much Doug, your contribution is appreciated!
--
resolution: - fixed
stage: - resolved
status: open - closed
___
Python tracker
Mark Lawrence added the comment:
#6550 and #11267 have been closed as out of date as asynchat and asyncore are
effectively deprecated in favour of asyncio so can't this go the same way?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
New submission from Akima:
A UNC path pointing to the root of a share is not being recognised as an
absolute path when it should be.
See this interpreter session.
PythonWin 3.3.5 (v3.3.5:62cf4e77f785, Mar 9 2014, 10:35:05) [MSC v.1600 64 bit
(AMD64)] on win32.
Portions Copyright 1994-2008
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12319
___
___
Python-bugs-list
New submission from Antoine Pitrou:
SSLContext.load_verify_locations() probably takes into account the
SSL_CERT_FILE and SSL_CERT_DIR environment variables, when set. This should
allow us to write a better test than the existing, minimal one.
--
components: Tests
messages: 226092
Julian Gindi added the comment:
Anything else need to be done on this patch?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18983
___
___
eryksun added the comment:
It's a relative path if the share name lacks a trailing slash. Consider the
hidden share //server/C$ for the C: drive. C: is a relative path, while
C:/ is an absolute path. Similarly //server/C$ is relative, while
//server/C$/ is absolute.
--
nosy: +eryksun
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22163
___
___
Python-bugs-list
Antoine Pitrou added the comment:
Well, it would be logical if pathlib gave special meaning to trailing slashes,
which it (still) doesn't :-) I'm still not fond of encoding path
characteristics in the path string itself.
(and what about symlinks? etc.)
--
Changes by Antoine Pitrou pit...@free.fr:
--
title: pathlib glob issues - pathlib glob ignores trailing slash in pattern
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22276
___
Roundup Robot added the comment:
New changeset c499cc2c4a06 by Antoine Pitrou in branch 'default':
Issue #22098: ctypes' BigEndianStructure and LittleEndianStructure now define
an empty __slots__ so that subclasses don't always get an instance dict.
http://hg.python.org/cpython/rev/c499cc2c4a06
Changes by Antoine Pitrou pit...@free.fr:
--
resolution: - fixed
stage: commit review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22098
___
Terry J. Reedy added the comment:
If you have not, please check if this issue applies to 3.4, and post a 3.4
version of the test file.
In the absence of a standard, I am not sure if this is a bug, and even if we
call it such, whether 2.7 should be changed.
--
nosy: +terry.reedy
Drekin added the comment:
I realized that the behavior I want can be achieved by setting
PyOS_ReadlineFunctionPointer to a function calling sys.stdin.readline().
However I found another problem: Python REPL just doesn't work, when
sys.stdin.encoding is UTF-16-LE. The tokenizer
Antoine Pitrou added the comment:
without breaking obvious applications
without breaking *existing* applications ;-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17620
___
Antoine Pitrou added the comment:
Why does PyOS_Readline return *char, rather than Python string object?
For historical reasons and now for compatibility: we can't change the hook's
signature without breaking obvious applications, obviously.
If necessary, we could add a new hook that would
R. David Murray added the comment:
Milan's patch should be correct. It would be nice to have a reproducer.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1481032
___
R. David Murray added the comment:
I'm not sure that a trailing '/' is a path characteristic in the same sense
that a symlink is. Whether the path has a trailing slash or not has meaning
both to the user and to the OS. pathlib isn't just modeling actual path
objects on the file system, but
New submission from Terry J. Reedy:
https://docs.python.org/2/library/multiprocessing.html#examples
contains several examples in Python2 code that need to be updated for Python 3.
Richard, if you have them in .py files, perhaps you could run them through 2to3
and then test.
# Example where a
sbspider added the comment:
How do you want me to about fixing the issues you suggested - another patch?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22261
___
Terry J. Reedy added the comment:
Sorry, copied and pasted from the wrong place. Forget this.
--
resolution: - not a bug
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22304
Terry J. Reedy added the comment:
The same example failing is the subject of #5879.
--
resolution: - duplicate
status: open - closed
superseder: - multiprocessing - example pool of http servers fails on
windows socket has no attribute fromfd
___
Zachary Ware added the comment:
Another patch would be perfect :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22261
___
___
Python-bugs-list
eryksun added the comment:
On second thought, while the parallels between drives and shares are nice,
beyond that this makes no sense to me.
http://hg.python.org/cpython/file/c0e311e010fc/Lib/ntpath.py#l91
Windows uses hidden environment variables (e.g. =C:) for the working
directory on each
Terry J. Reedy added the comment:
r50094 was for 2.7 (see msg216242, part of #21204 that is a partly a duplicate
of this). Running in 2.7.8, the message has changed to
PicklingError: Can't pickle type 'thread.lock': it's not found as
thread.lock
The example has been removed in 3.x. I think
Terry J. Reedy added the comment:
This was never discussed as a security issue. Why do you think it is? Users
wasting their *own* time is different for wasting the time of a remote server
in a DoS attack.
--
___
Python tracker
Antoine Pitrou added the comment:
I frankly don't think silencing more exceptions is a good idea. If someone
decided to close sys.stderr without setting sys.stderr to None I'd say it's a
programming error and deserves to be notified...
--
nosy: +brett.cannon, pitrou
Antoine Pitrou added the comment:
A server can include a HTTP client. It's actually quite common these days,
given the number of services which are exposed as REST APIs.
Now, unless Georg plans to do a new 3.2 release some day, it's not very useful
to discuss the inclusion of the fix in 3.2.
Antoine Pitrou added the comment:
Oops, sorry for the bogus un-nosying.
--
nosy: +Julius.Lehmann-Richter, terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22298
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
resolution: - wont fix
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15418
___
Terry J. Reedy added the comment:
I verified Marks 3.4.1 result with Idle.
It strikes me as a bug that a function that maps a unicode format string to a
unicode string with interpolations added should ever encode the format to
bytes, lets alone using using an encoding that fails or loses
endolith added the comment:
The fundamental purpose of doctest is to test that examples in documentation
work correctly:
To check that a module’s docstrings are up-to-date by verifying that all
interactive examples still work as documented.
To perform regression testing by verifying
Terry J. Reedy added the comment:
If sys.stderr is set to None, then if file is None: file = sys.stderr will
have no effect and 'file.write' raises AttributeError: 'NoneType' object has
no attribute 'write' (actual quote). Do you propose to catch that? If not,
it is not much of an
Changes by Terry J. Reedy tjre...@udel.edu:
--
stage: - patch review
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2445
___
Tim Peters added the comment:
This should remain closed. It's a feature that doctest demands exact textual
equality, and that the only way to override this is with one of the `#doctest:`
flags. What you see is what you get - exactly is one of doctest's
fundamental design goals.
If you
Terry J. Reedy added the comment:
3.1 is finished and Georg decided to skip 3.2.
--
nosy: +terry.reedy
resolution: - fixed
stage: needs patch - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Terry J. Reedy tjre...@udel.edu:
--
resolution: - out of date
stage: test needed - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1660009
___
Terry J. Reedy added the comment:
Unless someone claims and can show that there is a bug in current cpython on
current Windows (not xp), I think this should be closed. Josh, I interpret
your post(s) as suggesting that there is not, or am I over-interpreting.
--
nosy: +terry.reedy
Terry J. Reedy added the comment:
Security fix only versions do not get doc fixes.
--
versions: -Python 3.1, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21910
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: -Python 2.6, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14566
___
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10536
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2943
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: +Python 3.5 -Python 3.1, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18454
___
Terry J. Reedy added the comment:
For whatever difference it makes, the 3.x docs now *are* being built with 3.x.
--
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1812
___
96 matches
Mail list logo