Serhiy Storchaka added the comment:
The patch can be simpler. And there is yet one similar bug, for unicode strings.
--
Added file: http://bugs.python.org/file36544/asobj_empty_sequence_2.patch
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
If there are no objections I'll commit the patch soon.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20912
___
Martin Panter added the comment:
With this patch, there is no longer any implication that the returned object
implements the “addinfourl” interface. Perhaps that should be added back. Or
maybe add it to the HTTPResponse class documentation itself? There is a comment
that says the methods are
Serhiy Storchaka added the comment:
If there are no objections I'll commit the patch soon.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22215
___
Roundup Robot added the comment:
New changeset dd1e21f17b1c by Serhiy Storchaka in branch '2.7':
Issue #1: Backported fixes from Python 3 (issue #18960).
http://hg.python.org/cpython/rev/dd1e21f17b1c
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset dd1e21f17b1c by Serhiy Storchaka in branch '2.7':
Issue #1: Backported fixes from Python 3 (issue #18960).
http://hg.python.org/cpython/rev/dd1e21f17b1c
--
nosy: +python-dev
___
Python tracker
Serhiy Storchaka added the comment:
If there are no objections I'll commit the patch soon.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6
___
Roundup Robot added the comment:
New changeset 13cd8ea4cafe by Serhiy Storchaka in branch '3.4':
Issue #1: Add tests for compile() with source encoding cookie.
http://hg.python.org/cpython/rev/13cd8ea4cafe
New changeset 9d335a54d728 by Serhiy Storchaka in branch 'default':
Issue #1: Add
Serhiy Storchaka added the comment:
If there are no objections I'll commit the patch soon.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22219
___
Serhiy Storchaka added the comment:
If there are no objections I'll commit the patch soon.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15513
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1
___
STINNER Victor added the comment:
If there are no objections I'll commit the patch soon.
Replacing TypeError with ValueError is fine. TypeError was a bad choice. If an
application relies on TypeError to check for null character, it's easy to
replace except TypeError: with except (TypeError,
STINNER Victor added the comment:
You may also take a look at these 2 issues: #13617 and #21147 (not directly
related to this oe).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22215
___
Changes by Jonas Wagner jonas.wag...@epfl.ch:
--
nosy: +Sjlver
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5309
___
___
Python-bugs-list mailing
Jonas Wagner added the comment:
Is there a reason this has not landed? The patch works perfectly for me, except
for one issue:
@@ -268,6 +275,9 @@
if self.undef:
self.undef = self.undef.split(',')
+if self.parallel:
+
Serhiy Storchaka added the comment:
Thank you Victor. Here is a patch which is synchronized with the tip and
addresses your comment about a null character.
--
Added file:
http://bugs.python.org/file36546/valueerror_embedded_nul_character_2.patch
Serhiy Storchaka added the comment:
Could you please answer my comments Victor?
--
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13617
Stefan Behnel added the comment:
Yes, please. The sequential build in distutils is very annoying.
(too late for Py3.4, though, I guess...)
--
nosy: +scoder
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
Added a comment on Rietveld.
--
components: +Extension Modules
nosy: +serhiy.storchaka
stage: - needs patch
type: - behavior
versions: +Python 2.7, Python 3.4
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
Looks as all builds since #415 are successful.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue0
___
___
New submission from STINNER Victor:
Running Python 2 test suite with python -3 -Wd displays a lot of
DeprecationWarning warnings. Just one example:
/home/haypo/prog/python/2.7/Lib/test/test_ssl.py:2368: DeprecationWarning:
urllib.urlopen() has been removed in Python 3.0 in favor of
New submission from Martin Panter:
This is regarding the Python 3 documentation for binascii.crc32(),
https://docs.python.org/dev/library/binascii.html#binascii.crc32. It
repeatedly recommends correcting the sign by doing crc32() 0x, but it
is not immediately clear why. Only after
Serhiy Storchaka added the comment:
Thank you Benjamin for explanation.
Here is a patch which adds all three required checks in the close() method and
adds a check for files count in write methods. Implementing other checks in
write methods is too laborious.
As far as test_zipfile64 is
Serhiy Storchaka added the comment:
Why test_support.check_py3k_warnings is not used in test_calltips.py? Or may be
change the test to 1+0, 1//0 or 1.0/0.0?
--
nosy: +serhiy.storchaka, terry.reedy
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
Could you make a review Nick?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13968
___
___
Python-bugs-list
mirabilos added the comment:
Just for the record, please do not assume all shells behave like GNU bash.
--
nosy: +mirabilos
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22187
___
Jonas Wagner added the comment:
With this patch, and on Ubuntu 14.04, occasionally modules fail to build with
the following error:
*** WARNING: renaming _testbuffer since importing it failed: dlopen: cannot
load any more object with static TLS
I'm not 100% sure if this is really due to the
New submission from Gael Robin:
The first line of the Refactoring Principle subsection of the Rationale section
contains the following typo :
It should be possible to take an section of code
should be
It should be possible to take a section of code
--
assignee: docs@python
R. David Murray added the comment:
That is true, but sh-alikes (posix standard) are the only ones we support in
commands. subprocess (which commands was folded in to in python3) also
supports windows cmd to the extent we've managed, but that's all we are
committed to support.
--
Steve Dower added the comment:
Antoine almost certainly thought about this with pathlib and may know about the
change, or at least have some decent context on it.
I'm more inclined to think that os.path.isabs(r\\server) should also return
False, since it's not a path that can be opened
Steve Dower added the comment:
Patch attached. (Kinda feel like this was too simple...)
--
keywords: +patch
Added file: http://bugs.python.org/file36549/22299_1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22299
Antoine Pitrou added the comment:
Under Windows, pathlib's absolute means a fully qualified path as defined in
http://msdn.microsoft.com/en-us/library/aa365247%28v=vs.85%29.aspx
PureWindowsPath(c:).is_absolute()
False
PureWindowsPath(/).is_absolute()
False
PureWindowsPath(c:/).is_absolute()
Steve Dower added the comment:
My experience says the main reason people want to know whether the path is
absolute is to figure out whether to do `Path.cwd() / path` or not. According
to that MSDN page, they shouldn't because the path starts with // (that is,
the last character and the
eryksun added the comment:
It should only skip _ext_to_normal for an already extended path, i.e. a path
that starts with ext_namespace_prefix. Otherwise it needs to call
_ext_to_normal. For example:
Strip the prefix in this case:
os.path._getfinalpathname('C:\\Windows')
Steve Dower added the comment:
Just did a double-take, but that output for Path('server\\').parts[0] is
actually correct...
Path('server\\').parts[0]
'server'
print(Path('server\\').parts[0])
\\server\\
--
___
Python tracker
Steve Dower added the comment:
Ah, thought it was too simple. I didn't realise that _getfinalpathname adds the
prefix.
New patch soon.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22299
Serhiy Storchaka added the comment:
It looks to me that rather handling of //server/ is buggy than //server.
//server is just the same as /server or ///server. But //server/ looks
as an UNC path with empty () mount point. This is invalid path and we can't
create valid path from this path by
Steve Dower added the comment:
Strips the prefix if it wasn't in the original path - otherwise, keeps it.
--
Added file: http://bugs.python.org/file36550/22299_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22299
eryksun added the comment:
Isn't this bug about the root of a share case with ntpath.isabs in 3.x and
2.7 (splitdrive was backported)? For example:
os.path.isabs(//server/share)
False
os.path.splitdrive('//server/share')
('//server/share', '')
vs.
Terry J. Reedy added the comment:
Please just change '1/0' to '1//0'. Any expression that raises something other
than NameError or AttributeError will do. .get_entity evals user code and Idle
previously crashed when other exceptions were not caught. Thanks, Serhiy, for
catching this.
The
Changes by Serhiy Storchaka storch...@gmail.com:
--
versions: +Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4945
___
___
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
versions: +Python 2.7 -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue900092
___
Serhiy Storchaka added the comment:
The rest of the patch LGTM.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22340
___
___
Python-bugs-list
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: - needs patch
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17651
___
Jakub Wilk added the comment:
I think what mirabilos meant (and what I should have mentioned in my initial
message) is that even sh-alikes don't necessarily behave the same way as bash:
$ bash test.sh
乗
$ ksh test.sh
乗
$ dash test.sh
test.sh: 2: test.sh: Syntax error: Unterminated quoted
Antoine Pitrou added the comment:
Serhiy, you may be right. I'd suggest opening a python-dev discussion to gather
more feedback.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22302
___
Antoine Pitrou added the comment:
As far as I can say, the patch looks fine to me. Thanks, Steve.
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22299
___
eryksun added the comment:
//server is just the same as /server or ///server.
Repeated slashes aren't collapsed at the start of a Windows path. Here's what I
get in Windows 7:
os.listdir('/server')
[]
os.listdir('//server')
Traceback (most recent call last):
File
Roundup Robot added the comment:
New changeset 0675b3a55941 by Victor Stinner in branch '2.7':
Issue #22340: Fix Python 3 warnings in Python 2 tests
http://hg.python.org/cpython/rev/0675b3a55941
--
nosy: +python-dev
___
Python tracker
Mark Lawrence added the comment:
Can this be closed or what?
--
versions: +Python 3.5 -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8840
___
STINNER Victor added the comment:
Ok, I replaced 1/0 with 1//0 in IDLE tests.
I also changed the context manager in test_collections, the sets module is just
deprecated, it's not a Python 3 specific warning.
Thanks for the review Serhiy.
--
resolution: - fixed
status: open - closed
Mark Lawrence added the comment:
Surely a test issue can be closed after two years?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15934
___
___
Terry J. Reedy added the comment:
I made two style comments, one an expansion of a previous comment. I believe
all other previous comments were handled ok.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6
Roundup Robot added the comment:
New changeset 407653078135 by Victor Stinner in branch '2.7':
Issue #22340: Fix test_collections if the sets module was already imported
http://hg.python.org/cpython/rev/407653078135
--
___
Python tracker
Lauri Tirkkonen added the comment:
Patch attached to set CONFINCLUDEDIR to --includedir. There's additionally some
hardcoded assumptions in sysconfig and distutils.sysconfig about the include
paths, of which this patch fixes some.
What it doesn't address is sysconfig.get_path with 'include'
Ben Roberts added the comment:
Going to close this down - implementing rich comparisons for values() does feel
like the correct solution... but I don't think it's possible to implement
__eq__ in better than nlogn time (and possibly space).
So nothing can realistically be done, yeah.
Terry J. Reedy added the comment:
The docstring is unchanged from before the behavior change and to me still has
problems a. to d. listed in msg106698. The manual entry seems too longs to
just copy, but I would not know know to condense it.
--
___
New submission from Kevin Christopher Henry:
When I use venv to create a new virtual environment in Windows I'm given two
activate scripts, a .bat file and a .ps1 file (which is consistent with the
documentation).
However, bash (and probably the other shells as well) works just fine in
Roundup Robot added the comment:
New changeset 4b03ae00a76b by Benjamin Peterson in branch 'default':
use correct article (closes #22342)
http://hg.python.org/peps/rev/4b03ae00a76b
--
nosy: +python-dev
resolution: - fixed
stage: - resolved
status: open - closed
Roundup Robot added the comment:
New changeset bc4e26755a13 by Serhiy Storchaka in branch '3.4':
Issue #20643: Removed unneeded (and wrong) class directives.
http://hg.python.org/cpython/rev/bc4e26755a13
New changeset 060e347c9a23 by Serhiy Storchaka in branch 'default':
Issue #20643: Removed
Akima added the comment:
As eryksun pointed out, I created this bug report to report on one issue; that
\\server\share isn't being consider absolute by os.path.isabs when it should be
considered absolute.
I found this bug when I was writing a basic config file parsing module. One of
the
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: docs@python - serhiy.storchaka
resolution: - fixed
stage: patch review - resolved
status: open - closed
versions: +Python 3.5 -Python 3.3
___
Python tracker rep...@bugs.python.org
New submission from py.user:
Now, it's very inconvenient to learn this documentation. It's not compact
(could be reduced in 2 or even 3 times). It repeats itself: many examples
copy-pasted unchangeably. And it cites to terms that placed under those cites,
so people should start at the bottom
New submission from Zbyszek Jędrzejewski-Szmek:
This is the last link on https://www.python.org/doc/versions/.
--
assignee: docs@python
components: Documentation
messages: 226457
nosy: docs@python, zbysz
priority: normal
severity: normal
status: open
title:
Changes by Ned Deily n...@acm.org:
--
assignee: docs@python - benjamin.peterson
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22345
___
Changes by Benjamin Peterson benja...@python.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22345
___
Kevin Norris added the comment:
I'm a little concerned about this fix. In particular, if I understand the
design of the patch correctly, it is intended to produce this behavior:
Path('C:/foo').resolve() != Path('//?/C:/foo').resolve()
Since both paths are valid and both paths refer to
Changes by Ned Deily n...@acm.org:
--
nosy: +michael.foord
versions: +Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22344
___
___
Nick Coghlan added the comment:
Mostly looks good to me, just two comments:
1. Is there a reason the helper function is glob2 rather than either _glob2
or else something more self-documenting?
2. match a files in the docs and docstrings doesn't read correctly. match
any files, perhaps?
Ethan Furman added the comment:
My apologies for the confusion, and thanks for tracking it down.
I'll get the patch in, but I'm curious how you actually use these Enums? Is
this a way to easily handle multiple aliases?
--
___
Python tracker
Changes by Brian Curtin br...@python.org:
--
nosy: -brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue900092
___
___
Python-bugs-list
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19280
___
___
Python-bugs-list
Kiss György added the comment:
Is this a way to easily handle multiple aliases?
You mean this MultiValueEnum implementation? (If not I don't understand the
question, could you elaborate?)
No, this is the opposite of aliases, because an alias is when the same value
have multiple names, but
eryksun added the comment:
Maybe for an extended path it could try _getfinalpathname without the prefix.
If it isn't a valid path or the result isn't the same as _getfinalpathname
including the prefix, then skip calling _ext_to_normal. For example:
def resolve(self, path):
s =
New submission from Thomas Kluyver:
From PEP 411:
A package will be marked provisional by a notice in its documentation page and
its docstring. The following paragraph will be added as a note at the top of
the documentation page:
The X package has been included in the standard library
Roundup Robot added the comment:
New changeset f8f3e83c9528 by Guido van Rossum in branch 'default':
Add PEP-411-compliant note about asyncio being provisional. Fixes issue #22346.
http://hg.python.org/cpython/rev/f8f3e83c9528
--
nosy: +python-dev
Guido van Rossum added the comment:
Thanks!
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22346
___
Changes by Ned Deily n...@acm.org:
--
nosy: +ncoghlan, vinay.sajip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22343
___
___
Python-bugs-list
Martin Panter added the comment:
See also https://bugs.python.org/issue6626#msg91205, which mentions using a
list of tuples instead of a dictionary, which sounds like it might help with
this issue. Doing it that way you might be able avoid some duplication in the
lists.
--
nosy:
New submission from Martin Panter:
The documentation says that guess_type() takes a URL, but:
mimetypes.guess_type(http://example.com;)
('application/x-msdownload', None)
I suspect the MS download is a reference to *.com files (like DOS's
command.com). My current workaround is to strip out
Ethan Furman added the comment:
Right. We can still use the alias machinery to accomplish this task for us,
and avoid the metaclass hacking:
-- python2 sample code
# -*- coding: utf-8 -*-
from enum import Enum
class MultiValueEnum(Enum):
def
paul j3 added the comment:
Attached is a patch for 3.5.0 dev that adds UsageGroups. Now different 'kinds'
are implemented as subclasses, which are accessed via the registry:
_XorUsageGroup - replicate action of MutuallyExclusiveGroups
_AndUsageGroup - an inclusive group
Kiss György added the comment:
Oh, wow. I never really understood what _find_new_ did, now I do.
I'm not sure what you are trying to accomplish there.
Exactly that, I'm just not as good. Oh well at least I found a bug! :) Thanks
for the enlightenment!
If the patch goes in, I also would like
Serhiy Storchaka added the comment:
Thank you Nick.
1. Is there a reason the helper function is glob2 rather than either
_glob2 or else something more self-documenting?
Only consistency with other helper functions (glob0, glob1).
2. match a files in the docs and docstrings doesn't read
Changes by Serhiy Storchaka storch...@gmail.com:
Added file: http://bugs.python.org/file36555/glob_recursive_6.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13968
___
85 matches
Mail list logo