Roundup Robot added the comment:
New changeset ac826284fdd1 by Serhiy Storchaka in branch '2.7':
Issue #19193: Improved cross-references in the tutorial.
http://hg.python.org/cpython/rev/ac826284fdd1
New changeset 012380d57e44 by Serhiy Storchaka in branch '3.3':
Issue #19193: Improved
Serhiy Storchaka added the comment:
Thank you Georg for the review.
--
assignee: docs@python - serhiy.storchaka
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
Updated patch addresses more Georg's comments.
--
Added file: http://bugs.python.org/file32011/refs.builtins_3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19190
Serhiy Storchaka added the comment:
Updated patch addresses Georg's comments.
--
Added file: http://bugs.python.org/file32012/refs.distutils_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19196
STINNER Victor added the comment:
You should mention the change in Misc/NEWS.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19158
___
___
Armin Rigo added the comment:
Better remove this field if its value is now useless anyway. If someone needs
it again for a similar reason, he can contribute a patch like I did in 2002 :-)
--
___
Python tracker rep...@bugs.python.org
Esa Peuha added the comment:
The wanted patch seems to be very simple: change PendingDeprecationWarning to
DeprecationWarning on line 24 of Lib/formatter.py but only for Python 3.5 (i.e.
no need to do anything until 3.4 is released).
On a related note, should formatter be added to PEP 4?
New submission from Esa Peuha:
Here are some additions to documentation of a few functions:
all, any: alternative definitions using functools.reduce
enumerate: alternative definition using zip and itertools.count
sum: equivalent definition using functools.reduce and operator.add
Georg Brandl added the comment:
Most of these changes should not be applied: the alternate equivalents in
terms of reduce() will not help understanding, Equivalents for reduce() may be
useful, but I would limit them to one per case, possibly even just one function
that covers both cases.
Roundup Robot added the comment:
New changeset 9b855a701e28 by Serhiy Storchaka in branch '2.7':
Issue 19195: Improved cross-references in C API documentation.
http://hg.python.org/cpython/rev/9b855a701e28
New changeset f0491617b098 by Serhiy Storchaka in branch '3.3':
Issue 19195: Improved
Roundup Robot added the comment:
New changeset 7565df5939de by Serhiy Storchaka in branch '2.7':
Issue #19190: Improve cross-references in builtin types and functions
documentation.
http://hg.python.org/cpython/rev/7565df5939de
New changeset 207e1e1cb17a by Serhiy Storchaka in branch '3.3':
Roundup Robot added the comment:
New changeset e0b9e0ed561a by Serhiy Storchaka in branch '2.7':
#19196: Improved cross-references in distutils documentation.
http://hg.python.org/cpython/rev/e0b9e0ed561a
New changeset 0879b60de41f by Serhiy Storchaka in branch '3.3':
#19196: Improved
Serhiy Storchaka added the comment:
Thank you for the review Georg.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19195
Serhiy Storchaka added the comment:
Thank you for the review Georg.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19190
Serhiy Storchaka added the comment:
Thank you for the review Georg.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19196
Roundup Robot added the comment:
New changeset 372abcca25fc by Serhiy Storchaka in branch '2.7':
#19194: Improved cross-references in the fcntl module documentation.
http://hg.python.org/cpython/rev/372abcca25fc
New changeset 9015a84d694e by Serhiy Storchaka in branch '3.3':
#19194: Improved
Serhiy Storchaka added the comment:
Thank you for the review Georg.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19194
New submission from Serhiy Storchaka:
Here is a patch which fixes internal references in the howto of the curses
module.
--
assignee: docs@python
components: Documentation
files: refs.curses-howto.patch
keywords: patch
messages: 199291
nosy: akuchling, docs@python, serhiy.storchaka
Changes by Serhiy Storchaka storch...@gmail.com:
--
dependencies: +Improve cross-references in curses howto
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18758
___
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file32014/refs.curses-howto.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19203
___
Changes by Serhiy Storchaka storch...@gmail.com:
Added file: http://bugs.python.org/file32015/refs.curses-howto.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19203
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
dependencies: +Improve cross-references in urllib documentation
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18758
___
New submission from Serhiy Storchaka:
Here is a patch which fixes internal references in the documentation of the
urllib package.
--
assignee: docs@python
components: Documentation
files: refs.urllib.patch
keywords: patch
messages: 199292
nosy: docs@python, orsenthil, serhiy.storchaka
Roundup Robot added the comment:
New changeset 3ce0102e4c1f by Victor Stinner in branch 'default':
Close #19199: Remove ``PyThreadState.tick_counter`` field
http://hg.python.org/cpython/rev/3ce0102e4c1f
--
nosy: +python-dev
resolution: - fixed
stage: - committed/rejected
status: open
Changes by Christian Heimes li...@cheimes.de:
--
nosy: christian.heimes
priority: normal
severity: normal
status: open
title: Don
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19205
___
New submission from Itamar Turner-Trauring:
In certain situations it is best to avoid doing file I/O. For example, a
program that runs in an event loop may wish to avoid any potentially blocking
operations; reading from a file usually is fast, but can sometimes take
arbitrary long. Another
New submission from Christian Heimes:
The site module is loaded at every startup. Nowadays it imports the re and the
sysconfig modules. The re module is used for venv config parsing and inside
sysconfig. sysconfig is loaded to find the location of the user's site-packages
directory.
Changes by Christian Heimes li...@cheimes.de:
--
keywords: +patch
Added file: http://bugs.python.org/file32017/site_no_re.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19205
___
New submission from Serhiy Storchaka:
Here is a patch which fixes internal references in the documentation of the os,
os.path and posix modules.
--
assignee: docs@python
components: Documentation
files: refs.os.patch
keywords: patch
messages: 199296
nosy: docs@python, loewis,
Changes by Serhiy Storchaka storch...@gmail.com:
--
dependencies: +Improve cross-references in os documentation
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18758
___
Roundup Robot added the comment:
New changeset c0f3d18d79fd by Georg Brandl in branch 'default':
Closes #19200: small grammar fix in multiprocessing docs. Thanks to Elazar
Gershuni.
http://hg.python.org/cpython/rev/c0f3d18d79fd
--
nosy: +python-dev
resolution: - fixed
stage: -
New submission from Tymoteusz Paul:
What happens (and how to reproduce):
import base64
str = GET
http://www.google.com.hk/search?q=hotels+near+airportpws=1igu=1ip=0.0.0.0safe=imagesgl=CNgll=39.913889,116.391667near=chinahl=zh-CN
HTTP/1.0\nContent-Length: 0\nUser-Agent: Opera/9.80 (X11; Linux
Serhiy Storchaka added the comment:
And here is a patch with small changes which doesn't worth separated issue.
--
keywords: +patch
stage: - patch review
Added file: http://bugs.python.org/file32019/refs.patch
___
Python tracker
Georg Brandl added the comment:
Looks good, except that buffer doesn't really correspond to bytearray. No
memoryview involved there?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18758
Serhiy Storchaka added the comment:
No. BytesWarning is related only to bytes and bytearray.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18758
___
Georg Brandl added the comment:
OK then -- so much the better.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18758
___
___
Python-bugs-list
New submission from Christian Heimes:
The patch removes import copyreg from the os module and moves the
registration of the hooks to copyreg. This speeds up the startup of the
interpreter a tiny bit.
--
files: os_no_copyreg.patch
keywords: patch
messages: 199303
nosy: christian.heimes
Georg Brandl added the comment:
+1
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19209
___
___
Python-bugs-list mailing
STINNER Victor added the comment:
I don't know the copyreg module! Does it have a unit test for the registered os
objects? If not, how can it be tested manually?
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
Christian Heimes added the comment:
import os
import pickle
pickle.dumps(os.stat(.))
Serhiy Storchaka added the comment:
What will happen when do not register stat_result and statvfs_result at all?
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19209
Changes by Ethan Furman et...@stoneleaf.us:
--
nosy: +ethan.furman
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19201
___
New submission from Stephen Tucker:
If a tuple consists of a single unicode object with non-ASCII characters in it,
the printing of the tuple causes the non-ASCII characters to appear correctly
as characters.
If the tuple contains such a unicode object and anything else (even if it
contains
Christian Heimes added the comment:
You can still pickle and unpickle the objects but the result is no longer
platform-independent as it refers to posix or nt instead of os.
import os, pickle, pickletools
pickletools.dis(pickle.dumps(os.stat(.)))
0: \x80 PROTO 3
2: cGLOBAL
Changes by Senthil Kumaran sent...@uthcode.com:
--
versions: +Python 3.3, Python 3.4 -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19097
___
Brett Cannon added the comment:
Esa is right; this is a placeholder bug to remind me to do this in Python 3.5.
And Esa is also right about adding formatter to PEP 4; I'll reopen the original
bug to remind me to do that.
--
___
Python tracker
Changes by Brett Cannon br...@python.org:
--
dependencies: +Deprecate the formatter module
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19165
___
Brett Cannon added the comment:
Need to add a note to PEP 4.
--
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18716
___
___
Senthil Kumaran added the comment:
Addressing storchaka's review comments. Here is the updated patch.
--
Added file: http://bugs.python.org/file32021/19092-v2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19097
Esa Peuha added the comment:
How would you give a single definition of reduce() that helps people to
understand both 2-arg and 3-arg variants? The way it is implemented in C is
impossible to duplicate in pure Python; the best you could do is a hack that
works unless someone *tries* to break
Eric V. Smith added the comment:
Can you provide some code which demonstrates this?
It's easier to address this if we have known working (or non-working) examples.
Thanks.
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
Georg Brandl added the comment:
What about
def reduce(function, iterable, initializer=None):
it = iter(iterable)
if initializer is None:
value = next(it)
else:
value = initializer
for element in it:
value = function(value, element)
return value
Changes by Barry A. Warsaw ba...@python.org:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19205
___
___
Python-bugs-list mailing
Changes by Barry A. Warsaw ba...@python.org:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19209
___
___
Python-bugs-list mailing
Changes by Barry A. Warsaw ba...@python.org:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9548
___
___
Python-bugs-list mailing
Peter Otten added the comment:
Be aware that for a 1-tuple the trailing comma is mandatory:
print (uäöü) # this is a string despite the suggestive parens
äöü
print (uäöü,) # this is a tuple
(u'\xe4\xf6\xfc',)
--
nosy: +peter.otten
___
Python
R. David Murray added the comment:
You are looking for the (new in Python 3) 'validate' option of b64decode:
base64.b64decode(bGET
http://www.google.com.hk/search?q=hotels+near+airportpws=1igu=1ip=0.0.0.0safe=imagesgl=CNgll=39.913889,116.391667near=chinahl=zh-CN;,
validate=True)
Traceback
Changes by Alexander Belopolsky alexander.belopol...@gmail.com:
--
superseder: - Use a set for interned strings
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1507011
___
Alexander Belopolsky added the comment:
This exact issue was discussed in #19187 and #7224 many years ago.
--
nosy: +belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19187
___
Alexander Belopolsky added the comment:
The first reference above should have been to #1507011.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19187
___
New submission from Ethan Glasser-Camp:
I have a library lib. lib/__init__.py does the following:
from .subdir import a
from . import a
import sys
print(sys.modules['lib.a'])
This code fails with a KeyError. It seems that despite the second line, lib.a
does not get imported.
Eric V. Smith added the comment:
This isn't strictly related to printing a tuple. It's the difference between
str() and repr():
print (uäöü) # uses str
äöü
print repr(uäöü)
u'\xe4\xf6\xfc'
When the tuple is printed, it uses the repr of its constituent parts.
--
STINNER Victor added the comment:
Can't we modify the qualified name instead?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19209
___
___
R. David Murray added the comment:
I believe that this is because once you execute the first line, 'a' exists as a
name in the 'lib' namespace, so 'from . import a' sees that 'a' already exists,
and does nothing. The same import sequence in abc.py will put 'a' into the
'abc' namespace, but
Georg Brandl added the comment:
But for pickling something, you have to import pickle, which always imports
copyreg anyway, doesn't it?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19209
Ethan Glasser-Camp added the comment:
Thanks for the explanation. I had a feeling I was overlooking something obvious
but couldn't figure out what it was. Feel free to close as invalid.
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 369fabf9b2ba by Tim Peters in branch '3.3':
Issue 19158: a rare race in BoundedSemaphore could allow .release() too often.
http://hg.python.org/cpython/rev/369fabf9b2ba
New changeset 9ddc33174ddf by Tim Peters in branch 'default':
Issue 19158: a
Christian Heimes added the comment:
Exactly, the pickle module depends on the copyreg module. It's a submodule that
acts as a registry for pickle-related lookups and hooks. My patch just moves
the registration of these hooks out of the os module into the copyreg module.
--
Changes by R. David Murray rdmur...@bitdance.com:
--
resolution: - invalid
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19211
___
Georg Brandl added the comment:
I don't see a problem with that.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19209
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
How much this speed up the startup of the interpreter?
Proposed patch looks contrary to purpose of the copyreg module.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19209
Christian Heimes added the comment:
The site and sysconfig module are too intermingled to remove the import of
sysconfig from the site module. However the sysconfig module doesn't use the re
module in most cases anymore. The parsing functions for Makefile and pyconfig.h
are only used by
Matteo Cafasso added the comment:
On 07/10/13 13:32, Richard Oudkerk wrote:
Richard Oudkerk added the comment:
I think misuse is an exageration. Various functions change some state and
return a value that is usually ignored, e.g. os.umask(), signal.signal().
These functions are compliant
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19187
___
___
Python-bugs-list
STINNER Victor added the comment:
Raymond FWIW, I'm dubious that there will be any benefit from this at all.
The savings of one-pointer is the dictionary is likely to be insignificant
compared to the size of the string object themselves.
As I wrote in python-dev, the dictionary is usually
Christian Heimes added the comment:
The speedup is minimal but it's a start.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19209
___
___
STINNER Victor added the comment:
os_no_copyreg.patch looks good to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19209
___
___
Serhiy Storchaka added the comment:
Raymond's patch looks even more cumbersome than previous code. And it doesn't
work in some cases:
it = itertools.cycle([-2, -1])
class Index:
... def __index__(self): return next(it)
...
itertools.repeat(42, times=Index())
repeat(42, -1)
--
Serhiy Storchaka added the comment:
I don't think we should tangent code for such tiny benefit. copyreg is
lightweight module specially designed to break coupling of the code.
--
___
Python tracker rep...@bugs.python.org
Alexander Belopolsky added the comment:
In embedded systems, every byte of memory counts
It is not just embedded systems. The range 192 KB to 1.5 MB is where typical
L2 cache sizes are these days. I would expect that the intern dictionary is
accessed very often and much more often than
Serhiy Storchaka added the comment:
I afraid that adding new parameter to the set_contains_key function will slow
down other set operations. It will be better return a key as the result of the
function (NULL if not found).
--
___
Python tracker
Richard Oudkerk added the comment:
These functions are compliant with POSIX standards and the return values
are actually useful, they return the previously set masks and handlers,
often are ignored but in complex cases it's good to know their previous
state.
Yes. But my point was that
R. David Murray added the comment:
Looking at the source, the suppression of errors is clearly intentional.
Looking at the change that added the TypeError check, we see this from Jeremy
Hilton in March 2002 (9c2ca37bdeec):
It appears that getcomments() can get called for classes defined
Christian Heimes added the comment:
The current implementation doesn't check the trust settings and purpose of
certs.
CertGetCertificateContextProperty() with CERT_ENHKEY_USAGE_PROP_ID returns a
ASN.1 structure. I just have to figure out how to parse the CTL_USAGE struct ...
R. David Murray added the comment:
Updating the patch to address Stephen's review comments (thanks, Stephen!).
The biggest change is adding a MIMEPart class, and renaming MIMEMessage to
EmailMessage. Other significant changes are: only moving 'Content-*' headers
in 'make' methods, adding
bruno Piguet added the comment:
I apologise for coming back to this issue lately, after its closing.
I must have misconfigured something in my tracking system.
Thank-you everybody for the work done, especiallly the careful handling and
documenting of the case only if password is present in
New submission from Caitlin Potter:
LinkedIn
Python,
I'd like to add you to my professional network on LinkedIn.
- Caitlin
Caitlin Potter
Freelance Developer at freelance software developer self employed
Toronto, Canada Area
Confirm that you know Caitlin Potter:
New submission from Alexander Boyd:
Tested on 3.3.2 and 2.6.6.
On Oracle Linux, platform.linux_distribution detects the current distribution
as Red Hat Enterprise Linux:
import platform
platform.linux_distribution()
('Red Hat Enterprise Linux Server', '6.2', 'Santiago')
I would have
Antoine Pitrou added the comment:
Updated patch for 3.4.
--
nosy: +benjamin.peterson, christian.heimes
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9548
Changes by Antoine Pitrou pit...@free.fr:
Added file: http://bugs.python.org/file32025/bootlocale2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9548
___
R. David Murray added the comment:
Serhiy's review comments were addressed by changes made on the master patch
issue.
Closing this one in favor of that one.
--
resolution: - out of date
stage: patch review - committed/rejected
superseder: - Master patch for content manager addtion
Changes by R. David Murray rdmur...@bitdance.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18785
___
___
R. David Murray added the comment:
Closing in favor of the master patch issue 18891.
--
resolution: - out of date
stage: patch review - committed/rejected
status: open - closed
superseder: - Master patch for content manager addtion to email package.
R. David Murray added the comment:
Closing in favor of the master patch issue 18891.
--
resolution: - out of date
stage: patch review - committed/rejected
status: open - closed
superseder: - Master patch for content manager addtion to email package.
R. David Murray added the comment:
Nothing stops us from have a post-mortem discussion on a closed issue :)
The rationale for only doing the check for .netrc is that that is
backward-compatibility-wise fairly safe, because other tools will already be
insisting on the same security. But for
Changes by R. David Murray rdmur...@bitdance.com:
--
Removed message: http://bugs.python.org/msg199343
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19212
___
Changes by R. David Murray rdmur...@bitdance.com:
--
status: open - closed
title: Invitation to connect on LinkedIn - Spam
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19212
___
Bill Sobel added the comment:
I'd like to suggest a easy fix here (I saw this was closed, but the posters
were asking for a behavior change). With this fix there is no behavior change
to callers or new parameters to the API.
if remaining = 4.0:
maxDelay = 1
else:
maxDelay = .05
R. David Murray added the comment:
You might expect that, but platform.linux_distribution is basing its report on
what is in /etc/xxx-version or xxx-release. Most likely this is an Oracle
bug, although they might be providing both their own version file and the
version file for the RH
Antoine Pitrou added the comment:
Indeed, this is a feature, even though it may seem an odd one.
--
nosy: +pitrou
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19210
1 - 100 of 117 matches
Mail list logo