New submission from Charles Merriam :
On page:
https://docs.python.org/3.8/library/itertools.html
In the heading summary, in the "Iterators terminating on the shortest input
sequence:" section, in the "zip_longest()" table row, in the "Arguments"
column, the te
Charles Merriam added the comment:
Hi Cheryl,
No. I've dealt with the Team Python long cycles for random pull requests
before.
Charles
On Fri, Apr 12, 2019 at 2:27 PM Cheryl Sabella
wrote:
>
> Cheryl Sabella added the comment:
>
> Good catch! In the same section
Change by Charles P :
--
pull_requests: +12852
___
Python tracker
<https://bugs.python.org/issue31525>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Charles P :
https://github.com/python/cpython/blob/master/Lib/distutils/util.py#L106-L131
Due to the split('/') and os.path.join(), this function converts an absolute
path of the form "C:/foobar" into a relative "C:foobar", which is li
New submission from Charles Merriam :
It is unexpected to testers and users to ArgParse that it terminates the
process; one usually expects an error code. Fix by modifying documentation to
section 16.4.4 The parse_args() Method.
Change the words "Return the populated namespace."
Charles Machalow added the comment:
Antti, is there a place in the ctypes documentation that explicitly says ctypes
is not meant to be used cross-platform? If not, shouldn't that be mentioned?
I think ultimately ctypes should default to standard OS/compiler behavior, but
should allo
Charles Machalow added the comment:
All of Python is implicitly cross platform. If something isn't actually cross
platform, it should be mentioned explicitly in the documentation. For example
see the mmap documentation, it explicitly say on Unix it does X, on Windows it
does Y. We shou
New submission from Charles Jones:
The docs for http2time state that "None is returned if [...] the time is
outside the representable range". However, it is raising a ValueError when a
year larger than datetime.MAXYEAR is provided (actually raised downstream by
calendar.date()).
To
Charles Merriam added the comment:
Some more information to just nail this thing that's been here forever.
1. This has been an issue in Python since at least 2001.
2. It is a duplicate of the item 441129 which was closed as won't fix.
3. It is bug in curses implementations.
4. T
New submission from Charles Merriam:
https://docs.python.org/3/library/curses.html#curses.cursxy
The symbol 'getsxy' does not exist in the curses library. The correct symbol
is 'getxy'.
--
assignee: docs@python
components: Documentation
messages: 218986
nosy: C
Charles Merriam added the comment:
My typo. Documentation verbiage was included in the bug report.
Submitting a patch to the documentation is a harder than just
rewriting the library. I speak English, MarkDown, HTML, JavaScript,
and even RST. I don't speak Sphinx, DocBook, or TeX.
O
New submission from Charles Newey:
URL: https://docs.python.org/2/tutorial/controlflow.html#pass-statements
Quoted verbatim:
"""
The pass statement does nothing. It can be used when a statement is required
syntactically but the program requires no action. For example:
>
Charles Newey added the comment:
Your point about using "pass" with the "with" statement sounds like a better
example than using "pass" in a loop.
Perhaps even something like adding a note to the example to clarify it:
"""
# Don't use this in
Charles Newey added the comment:
@David I have no idea either (no having written much of that sort of code
myself either), but that looks more sensible.
I'm just nitpicking really, anyway.
--
___
Python tracker
<http://bugs.python.org/is
New submission from Charles Mason :
Steps to reproduce:
1) Add to sys.path a path that does not exist
2) Import a module, any module. This invokes get_path_importer over
every element of sys.path. The NullImporter __init__ method is called
and an instance created for each non-existing path
New submission from Charles Cazabon :
Worker processes with multiprocessing.Pool live for the duration of the
Pool. If the tasks they run happen to leak memory (from a C extension
module, or from creating cycles of unreachable objects, etc) or open
files or other resources, there's no eas
Changes by Charles Cazabon :
Removed file: http://bugs.python.org/file14946/worker-lifetime-python2.6.2.patch
___
Python tracker
<http://bugs.python.org/issue6
Changes by Charles Cazabon :
Added file: http://bugs.python.org/file14947/worker-lifetime-python2.6.2.patch
___
Python tracker
<http://bugs.python.org/issue6963>
___
___
Charles Cazabon added the comment:
Alright, I'll add those. Thanks for looking at it; first pass was
mostly to ensure it wouldn't be wasted work.
--
___
Python tracker
<http://bugs.python.
Changes by Charles Cazabon :
Removed file: http://bugs.python.org/file14947/worker-lifetime-python2.6.2.patch
___
Python tracker
<http://bugs.python.org/issue6
Charles Cazabon added the comment:
Updated patch attached; handles some of the Pool methods that weren't
handled before. Now includes documentation and unit test additions as well.
--
Added file: http://bugs.python.org/file14987/worker-lifetime-python2.6.2.
Charles Cazabon added the comment:
Jesse: this is ready for your review now. Thanks,
Charles
--
___
Python tracker
<http://bugs.python.org/issue6963>
___
___
Charles Cazabon added the comment:
Can someone review this patch? I believe it's sufficient for inclusion
now, as it includes docs and unit tests, but if anything about it
requires further attention I'd be happy to listen to change requests.
We'd like get this into mainline whe
Charles Cazabon added the comment:
Okay, thanks, Jesse. Didn't realize the Con was on.
--
___
Python tracker
<http://bugs.python.org/issue6963>
___
___
Charles Cazabon added the comment:
Hi Jesse -- Any chance you'll be able to review this in time for it to
make it into trunk for the 2.7 alpha release?
Charles
--
___
Python tracker
<http://bugs.python.org/i
Charles Cazabon added the comment:
Ping... two alphas into 2.7. Have you had a chance to review this
functionality?
Thanks.
--
___
Python tracker
<http://bugs.python.org/issue6
New submission from Charles Solar :
I am compiling python on AIX 5.3. The normal configure and make works, except
it fails to compile the unicodedata module. The assembler reports a bunch of
these errors:
Error: value of 0001268b too large for field of 2 bytes at
006d
Charles Solar added the comment:
Seems as though python 2.7 should not support --disable-unicode so this ticket
is invalid. I just googled python disable unicode, but it seems that the
decision to never disable unicode is recent.
Closing
--
status: open -> clo
Changes by Charles Solar :
Removed file: http://bugs.python.org/file17403/config.log
___
Python tracker
<http://bugs.python.org/issue8767>
___
___
Python-bugs-list mailin
New submission from Charles Solar :
On solaris, if you build a 64 bit python and use it to build an extension, it
will not properly link the module.
Apparently solaris requires the -m64 flag in the linker as well as the compile
steps. Python distutils successfully compiles all the object
New submission from Charles Harris:
The lastest Python 3.6 pre-release broke a number of NumPy tests. The failing
tests are of the sort
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter('always')
...
And the failure seems to be that nothing i
Charles Harris added the comment:
Probably this commit: https://hg.python.org/cpython/rev/aaee06743c61 .
--
___
Python tracker
<http://bugs.python.org/issue28
Charles Harris added the comment:
The failing tests don't use the context manager mentioned in msg278976 and
which was fixed. In any case, the failures are new an appeared today. A failing
test may be viewed at:
https://github.com/numpy/numpy/blob/master/numpy/lib/tests/test_nanfunctio
Charles Harris added the comment:
I downloaded the tarball and installed the release here and got the same
errors. We setup the tests in developement mode by turning some warnings into
errors, in particular DeprecationWarnings and RuntimeWarnings, and suppressing
others. The tests that are
Charles Harris added the comment:
You probably need to run NumPy 1.12 to see the problem. Tt looks like the new
suppress_warnings context manager is what has been broken. Note that is was
broken by 3.6 before, fixed, and now seems to be broken again
Charles Harris added the comment:
The NumPy 1.12.0b1 tarball is available on PyPI if you want to download it.
--
___
Python tracker
<http://bugs.python.org/issue28
Charles Harris added the comment:
I ran with Python 3.6.0rc1 (default, Dec 7 2016, 14:00:51) and get the same
errors in both NumPy 1.13.0-dev and 1.12. But I gave you a wrong suggestion, we
disable some test errors for releases, which is what is on PyPI, and that is
doubtless why you don
Charles Harris added the comment:
OK, you fixed what broke us before. If I revert our fixes the problem goes
away. So, thanks I guess ;)
You can close this.
--
___
Python tracker
<http://bugs.python.org/issue28
Charles Brossollet added the comment:
Here with python 2.7.13 and Visual Studio 2013, I get hit by the problem and it
looks like link.exe needs the /MANIFEST keyword. Voting to get it fixed!
--
nosy: +Charles Brossollet
___
Python tracker
<h
New submission from Charles G.:
Environment:
Python 3.5.2
Visual Studio 2015 Update 2
Windows 7
amd64
I tried to build python with pgo (build.bat --pgo) but found that no
python35!1.pgc or python!1.pgc was created. Then I run the tests one by one
while checking the existence of python35!1
Charles G. added the comment:
Community Edition. PGO is available in the Community Edition since at least VS
2012.
--
___
Python tracker
<http://bugs.python.org/issue27
Charles G. added the comment:
The compiler itself supports PGO in the Community Edition. I'm not sure about
the IDE (not using it). Since I compiled python using the batch file (with
msbuild) so it is not limited by the features of th
Charles G. added the comment:
Tried with Visual Studio Community 2015 Update 3 with same result.
--
___
Python tracker
<http://bugs.python.org/issue27509>
___
___
New submission from Charles Henry:
Python 2.6 and 2.7 each have a bad definition of the class RawConfigParser
It is immediately apparent in the __init__ function which begins with:
class RawConfigParser:
def __init__(self, defaults=None, dict_type=dict):
self._dict = dict_type
New submission from Charles Nodell:
This patch just extends test coverage on the random library by a few lines.
--
components: Tests
files: mywork.patch
keywords: patch
messages: 245956
nosy: Charles Nodell
priority: normal
severity: normal
status: open
title: Increased Test Coverage
Charles Nodell added the comment:
Sounds fine! I look forward to seeing how to do this properly!
--
___
Python tracker
<http://bugs.python.org/issue24533>
___
___
New submission from Charles Machalow:
Large sized fields in Structures lead to incorrect string representations
because it is assuming that because the size is so large, it must be a bit
field instead of a byte field.
class bugStruct(Structure):
_pack_ = 1
_fields_
Changes by Charles Machalow :
Removed file: http://bugs.python.org/file41297/ctypesBug.py
___
Python tracker
<http://bugs.python.org/issue25858>
___
___
Python-bugs-list m
Charles Machalow added the comment:
Adding file with code to reproduce.
--
Added file: http://bugs.python.org/file41298/ctypesBug.py
___
Python tracker
<http://bugs.python.org/issue25
Changes by Charles Machalow :
Added file: http://bugs.python.org/file41299/ctypesBug.py
___
Python tracker
<http://bugs.python.org/issue25858>
___
___
Python-bugs-list m
Changes by Charles Machalow :
Removed file: http://bugs.python.org/file41298/ctypesBug.py
___
Python tracker
<http://bugs.python.org/issue25858>
___
___
Python-bugs-list m
New submission from Charles Daffern:
The shlex.quote and pipes.quote functions do not quote shell keywords.
Example shell keywords: done, time, coproc, while
Presumably the intent of the quote functions is to prevent the resulting string
from altering the syntax of the script it is inserted
Charles Daffern added the comment:
It's definitely a corner case (in argv[0] position + is keyword), but here's an
example:
>>> import subprocess
>>> import shlex
>>> subprocess.call(shlex.quote("done"), shell=True)
/bin/sh: 1: Syntax error: &
Charles Daffern added the comment:
In that case, should the documentation specify that shlex.quote is unsuitable
for quoting command names?
--
___
Python tracker
<http://bugs.python.org/issue26
Charles Daffern added the comment:
>To be sure that it is existing program, you can use shutil.which()
I'd like to clear this up a little because this is worded as if
shutil.which()'s success implies that the shell will not fail.
Here is the setup to demonstrate:
>>> im
New submission from Charles Daffern:
Example code demonstrating the problem:
# {{{
import argparse
def try_args(*args):
parser = argparse.ArgumentParser()
parser.add_argument("-a")
print("Trying:", args)
try:
print(parser.parse_args(args))
New submission from Charles Stephens:
Back through the mists of time, there was a change to strip square brackets
IPv6 address host literals in HTTPConnection._get_hostport():
https://hg.python.org/cpython/diff/433606e9546c/Lib/httplib.py
However, the code mixed tabs and spaces and was
Charles Stephens added the comment:
Er, that is HTTPConnection._set_hostport() not _get_hostport()
--
___
Python tracker
<http://bugs.python.org/issue28
Changes by Charles Stephens :
--
title: httplib/http.client HTTPConnection._get_hostport() regression ->
httplib/http.client HTTPConnection._set_hostport() regression
___
Python tracker
<http://bugs.python.org/issu
Charles Stephens added the comment:
I misapplied the term 'regression'. My intent was to describe how original
author's change revision 433606e9546c was refactored to make it perform
incorrectly.
Without the scope specifier, the outcome is the same when HTTPConnection is
inst
Charles Stephens added the comment:
Example with patch applied:
Python 2.7.6 (default, Oct 26 2016, 20:33:50)
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import httplib
>>> con1 = h
Charles Stephens added the comment:
Our internal use case is happening through requests via urllib3 for parsing.
Essentially requests is taking the URL, passing it to urllib3 for parsing.
urllib3 is returning a namedtuple of type Url which includes a host and port
property which is being fed
Charles Stephens added the comment:
Not when passing it to getaddrinfo().
--
___
Python tracker
<http://bugs.python.org/issue28539>
___
___
Python-bugs-list mailin
Charles Stephens added the comment:
Yes, I'm working on patching urllib3 to preprocess the host argument to
HTTPConnection. However, it makes sense to strip square brackets regardless.
--
___
Python tracker
<http://bugs.python.org/is
Charles-François Natali added the comment:
Looks good to me.
--
nosy: +neologix
stage: patch review -> commit review
___
Python tracker
<http://bugs.python.org/issu
Charles-François Natali added the comment:
> 2) http://sources.redhat.com/bugzilla/show_bug.cgi?id=12453
We actually had another issue due to this particular libc bug:
http://bugs.python.org/issue6059
Basically, the problem is that if some libraries are dynamically
loaded in an interlea
Charles-François Natali added the comment:
Oh, and BTW, for the "Backtrace stopped: frame did not save the PC", you might
want to install the libc-dbg package. This might help in finding precisely
where it's crashing.
--
___
Python
Charles-François Natali added the comment:
> I think I got it: pthread_setaffinity_np() does not crash.
Nice.
Out of curiosity, I just looked at the source code, and it just does
sched_setaffinity(thread->tid), so you can do the same with
sched_setaffinity(syscall(SYS_gettid)) f
Charles-François Natali added the comment:
> If we have access (and as I understood from Victor's post we do):
> pthread_getaffinity_np() also exists on FreeBSD, which would be
> an advantage.
Yes, but I see several drawbacks:
- as noted by Victor, it's really easy to crash
Charles-François Natali added the comment:
> Do you mean that signal.pthread_kill() should be removed? This function is
> very useful and solve some issues that cannot be solved differently. At the
> same time, I don't think that it's possible to workaround the crashes. A
Changes by Charles-François Natali :
--
resolution: -> invalid
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue12975>
___
___
Pyth
Changes by Charles-François Natali :
Removed file: http://bugs.python.org/file23150/unnamed
___
Python tracker
<http://bugs.python.org/issue12975>
___
___
Python-bug
Charles-François Natali added the comment:
> According to the following article, a fsync is also needed on the
> directory after a rename. I don't understand if is it always needed for
> an atomic rename, or if we only need it for the "atomic write" pattern.
It'
Charles-François Natali added the comment:
> I'd prefer to disable the misbehaving functions entirely on arm.
-10
If we start disabling features on platforms with partly bogus implementations,
we might as well drop threading on OpenBSD, sendmsg() on OS-X, etc.
Furthermore, it'
Charles-François Natali added the comment:
Hello,
According to http://fxr.watson.org/fxr/ident?v=NETBSD;im=3;i=EVFILT_TIMER
EVFILT_TIMER is defined on NetBSD.
As for MirBSD, with all due respect, it really looks like a niche platform,
definitely not officially supported by Python.
Of course
Charles-François Natali added the comment:
Since this patch alone won't be enough to support MirBSD (and is required only
for MirBSD), I suggest you to post the complete patch, and rename this issue
"add support for MirBSD platform", or something along those lines.
That way,
New submission from Charles-François Natali :
Now that sendmsg()/recvmsg() are exposed in socketmodule, we could use them to
replace the ad-hoc FD-passing routines used by multiprocessing.reduction.
Antoine suggested adding sendfd()/recvfd() methods to socket objects, but I'm
not sure
Charles-François Natali added the comment:
> I don't think that it's a problem to remove private functions.
>
Alright.
> Is it mandatory to send a non-empty message (first argument for sendmsg, b'x'
> in your patch)? The original C function sends a random byt
Changes by Charles-François Natali :
Added file: http://bugs.python.org/file23166/multiprocessing_fd-1.diff
___
Python tracker
<http://bugs.python.org/issue12981>
___
___
Changes by Charles-François Natali :
Removed file: http://bugs.python.org/file23156/multiprocessing_fd.diff
___
Python tracker
<http://bugs.python.org/issue12981>
___
___
Charles-François Natali added the comment:
I only tried on Linux.
By the way, what's the simplest way to create a personal clone to test patches
on some of the buildbots before committing them?
--
___
Python tracker
<http://bugs.py
Charles-François Natali added the comment:
It's a dupe of issue #8426: the Queue isn't full, but the underlying pipe is,
so the feeder thread blocks on the write to the pipe (actually when trying to
acquire the lock protecting the pipe from concurrent access).
Since the children
New submission from Charles-François Natali :
Since the rewrite in pure Python of multiprocessing.Connection (issue #11743),
multiprocessing.Connection sends and receives the length of the data (used as
header) in host byte order.
This will break if the connection's endpoints are on ma
Changes by Charles-François Natali :
--
nosy: haypo, neologix
priority: normal
severity: normal
stage: needs patch
status: open
title: _XOPEN_SOURCE usage on Solaris
type: behavior
versions: Python 3.3
___
Python tracker
<http://bugs.python.
New submission from Charles-François Natali :
While testing issue #12981, I stumbled on a problem on OpenIndiana buildbot:
"""
test test_multiprocessing crashed -- Traceback (most recent call last):
File
"/export/home/buildbot/64bits/custom.cea-indiana-amd64/build/Lib/test
Charles-François Natali added the comment:
> Did you try it on Linux, FreeBSD and/or Windows?
It works fine on Linux, FreeBSD, OS X and Windows, but not on Solaris: see
issue #12999.
--
dependencies: +_XOPEN_SOURCE usage on Solaris
___
Pyt
Charles-François Natali added the comment:
Hello Benny,
> As requested, here is the full patch for MirBSD support. The diff was taken
> against version 2.7.2. It is really quite easy, you just need to handle
> MirBSD like OpenBSD.
> With this patch, I can successfully compile an
Charles-François Natali added the comment:
Here's a patch taking into account the fact that
multiprocessing.reduction might not be available and importing it can
raise an ImportError (which is already the case with the C
implementation, but multiprocessing.reduction tests have been
Changes by Charles-François Natali :
Removed file: http://bugs.python.org/file23166/multiprocessing_fd-1.diff
___
Python tracker
<http://bugs.python.org/issue12
New submission from Charles-François Natali :
http://www.python.org/dev/buildbot/all/builders/x86 FreeBSD 7.2
3.x/builds/2129/steps/test/logs/stdio
"""
==
FAIL: testRecvmsgTrunc (test.test_socket
Charles-François Natali added the comment:
> "Since the rewrite in pure Python of multiprocessing.Connection (issue
> #11743), multiprocessing.Connection sends and receives the length of the data
> (used as header) in host byte order."
>
> I don't think so,
Charles-François Natali added the comment:
> "It works fine on Linux, FreeBSD, OS X and Windows, but not on Solaris: see
> issue #12999."
>
> Oh, thank for testing before committing :) It's hard to debug multiprocessing.
Yes. Especially when you stumble upon a kern
Changes by Charles-François Natali :
Removed file: http://bugs.python.org/file23180/multiprocessing_fd-2.diff
___
Python tracker
<http://bugs.python.org/issue12
Charles-François Natali added the comment:
> I had a look at this patch, and the FD passing looked OK, except
> that calculating the buffer size with CMSG_SPACE() may allow more
> than one file descriptor to be received, with the extra one going
> unnoticed - it should use CMSG_L
Changes by Charles-François Natali :
--
resolution: -> fixed
stage: patch review -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.or
Charles-François Natali added the comment:
I committed the patch to catch the ImportError in test_multiprocessing.
I'll commit the other patch (pure Python version) in a couple days.
> Ah, no, you're right - that's fine. Sorry for the false alarm.
No problem. As they say,
Charles-François Natali added the comment:
> The patch includes a test case, but like the other recently-added
> tests for the function, it isn't guarded against
> multiprocessing.reduction being unavailable. Issue #12981 has a
> patch "skip_reduction.diff" (already
Charles-François Natali added the comment:
Here's an updated patch, with more tests.
Please review!
--
keywords: +needs review
nosy: +haypo
stage: patch review -> commit review
Added file: http://bugs.python.org/file23225/socketcan_
Charles-François Natali added the comment:
> - dummy question: why an address is a tuple with 1 string instead of just
> the string? Does AF_UNIX also uses a tuple of 1 string?
I think the reason behind the tuple is future proofing.
Here's the definition of `struct sockaddr_can`
Changes by Charles-François Natali :
Removed file: http://bugs.python.org/file23225/socketcan_v4.patch
___
Python tracker
<http://bugs.python.org/issue10141>
___
___
Pytho
101 - 200 of 2227 matches
Mail list logo