Jim DeLaHunt added the comment:
My Pull Request was closed, because apparently
https://github.com/python/cpython/ will not be the new GitHub repo for Python.
The actual repo will open on 11. Feb, I'm told. I will repeat the PR there.
Please sta
Jim DeLaHunt added the comment:
I've drafted some fairly restricted changes to the doctest documentation page.
They are in my Github branch,
https://github.com/JDLH/cpython/tree/Issue29428_doctest_docs . The diffs are at
https://github.com/JDLH/cpython/c
Jim DeLaHunt added the comment:
It looks like commit e7ffb99f842ebff97cffa0fc90b18be4e5abecf2 to the new GitHub
python/cpython repo, by Ryan Gonzalez, fixed the problems in Doc/conf.py,
Doc/Makefile, and Misc/NEWS . It did not fix the problems in Doc/make.bat or
Doc/faq/windows.rst . I
Jim DeLaHunt added the comment:
I submitted a PR https://github.com/python/cpython/pull/41 to the new Github
repo which finishes clearing the warnings in this bug report.
I would appreciate review and committing.
--
pull_requests: +43
___
Python
Jim DeLaHunt added the comment:
PR https://github.com/python/cpython/pull/41 to the new Github repo contains
the following wording in Doc/faq/windows.rst:
Python raises :exc:`IndentationError` or :exc:`TabError` if mixed tabs
and spaces are causing problems in leading whitespace.
You may also
Jim DeLaHunt added the comment:
Pull Request https://github.com/python/cpython/pull/45 submitted to new Github
repo.
I would appreciate a review.
I attempted to balance all the different opinions in the discussion below: stay
concise, but also improve the clarity.
--
pull_requests
New submission from Jim DeLaHunt:
When you run the Python interpreter in interactive mode, get a sys.ps1 prompt
(`...`), and type a comment-only or white-space-only line, the interpreter
responds with a sys.ps2 prompt (`...`), instead of a sys.ps1 prompt. This seems
wrong.
For example
New submission from Jim DeLaHunt:
When I run test.test_posix.PosixTester.test_getgroups on my Mac OS X system, it
fails:
% ./python.exe -m unittest -v test.test_posix.PosixTester.test_getgroups
test_getgroups (test.test_posix.PosixTester) ... FAIL
Jim DeLaHunt added the comment:
I have pushed a branch for this issue to my cpython fork:
https://github.com/JDLH/cpython/tree/bpo-29562_failing_test_getgroups_on_os_x
It modifies test_getgroups in test_posix.py to give better diagnostics in the
event of a test failure. It says specifically
New submission from Jim DeLaHunt:
The Devguide section 7.5.1 "Building the documentation" / "Using make /
make.bat" is out of date. The document lists 10 documentation targets for
`make`. The Doc/Makefile lists 17.
One important omission is `make check`, which
Jim DeLaHunt added the comment:
Per request from Brett Cannon, I've moved this issue to
https://github.com/python/devguide/issues/116 . Please continue the discussion
there.
--
___
Python tracker
<http://bugs.python.org/is
Jim DeLaHunt added the comment:
Thank you for the analysis, Eryk Sun.
You wrote, "the interpreter is correctly conveying that it's still tokenizing
the input; it hasn't compiled or executed any code." I think one important
question for this issue is, what meaning should
Jim DeLaHunt added the comment:
Some diagnosis.
Group `com.apple.sharepoint.group.1` appears to be related to a certain kind of
file sharing, but I don't have hard evidence.
Its only member was a test user I created as part of screen sharing with Apple
Support.
```
% dscacheutil -q
Jim DeLaHunt added the comment:
I guess I didn't state the things I find odd about what the new test_getgroups
results.
1. `os.getgroups()` used to return group (395, 'com.apple.access_ftp'), but no
longer does. I don't see a reason why.
2. `os.getgroups()` is returnin
Jim DeLaHunt added the comment:
The Mac OS 10.10 man page for initgroups(3) says:
"Processes should not use the group ID numbers from getgroups(2) to determine a
user's group membership. The list obtained from getgroups() may only be a
partial list of a user's group membersh
Jim DeLaHunt added the comment:
Jaysinh, thank you for checking. From your log, I see you are using Sphinx
version 1.3.6. I am seeing this problem with Sphinx version 1.5.2. I think
you need Sphinx 1.5.2 or later to see the warning message.
I notice my original bug description didn
Jim DeLaHunt added the comment:
> Note that the result of getgroups(2) is fixed on login, while "id -G"
> reflects the current state of the user database on macOS.
Wow, that's interesting! Thank you for this information.
The test code for test_getgroups does not mention
New submission from Jim Fulton:
I recently ported ZEO to asyncio.
We'd had a bug in our old asyncore-based server where the server would hang if
several connections were made and then immediately disconnected on Mac OS X.
This was due to an error-handling bug in our code that we fixed
New submission from Jim Fulton:
If the given ssl context has check_hostname set to False, then the
server_hostname shouldn't be required.
--
components: asyncio
messages: 269292
nosy: gvanrossum, haypo, j1m, yselivanov
priority: normal
severity: normal
status: open
New submission from Jim Fulton:
The event loop create_connection method can take a socket to create a
connection on an existing socket, including sockets obtained via an external
listener. If an SSL context is provided, however, it assumes it's creating a
client connection, maki
Jim Fulton added the comment:
FWIW, using uvloop avoids the hang.
--
___
Python tracker
<http://bugs.python.org/issue27386>
___
___
Python-bugs-list mailin
Jim Fulton added the comment:
It's not bug, it's a misfeature, IMO.
If you pass an SSL context and either don't pass a hostname or pass an empty
string, then server_hostname is required, even if check_hostname is false for
the context.
The fix is trivial. I'd be h
Jim Fulton added the comment:
This is already pretty minimal. There are no external dependencies.
--
___
Python tracker
<http://bugs.python.org/issue27
Jim Fulton added the comment:
Tests are also unstable with uvloop. (Although uvloop doesn't have
http://bugs.python.org/issue27386 at least.)
I was eventually able to wrestle the test into submission using asyncio.Server.
I suspect that some of this had to do with issues closing connec
Jim Fulton added the comment:
Guido, IMO, there's value in having the ability to accept connections
independently of handling them.
It wasn't clear to me from reading the documentation that create_connection is
only meant for making client connections, especially given that it c
Jim Fulton added the comment:
I agree that if create_server (or asyncio.Server) is buggy, it should be fixed!
However, IMO, it's useful to be able to accept a connection outside of an
asyncio event loop and then hand the loop the connected s
Jim Fulton added the comment:
I'm not sure I understand your question.
The documentation for create_connection,
https://docs.python.org/3/library/asyncio-eventloop.html#creating-connections
states that server_hostname is required if the host is empty. (I'm generalizing
"em
Jim Fulton added the comment:
Consider this a suggestion. Do with it what you will. I'm closing this as I
don't want to spend more time on it other than creating a PR if requested.
--
status: open -> closed
___
Python t
Jim Fulton added the comment:
No need to apologize! My capitulation was just due to the fact that this isn't
a big deal. (My tone probably came across as cranky; sorry)
WRT backward compatibility, I suspect that there's a bit of wiggle here between
loop implementations and I doubt
Jim Fulton added the comment:
OK, sure, I'll make a PR.
--
___
Python tracker
<http://bugs.python.org/issue27391>
___
___
Python-bugs-list mailing list
Jim Fulton added the comment:
Yury, I'm curious what you think the socket argument to create_connection is
about.
--
___
Python tracker
<http://bugs.python.org/is
Jim Fulton added the comment:
BTW, a problem with this proposal that I realized after submitting it is that
it changes an API that has multiple implementations, including implementations
outside of the Python codebase. Arguably, this would require a PEP, at which
point the change is no
Changes by Jim Fulton :
Removed file: http://bugs.python.org/file43540/echo.py
___
Python tracker
<http://bugs.python.org/issue27386>
___
___
Python-bugs-list mailin
Jim Fulton added the comment:
OK, I *was* able to simplify it a fair bit. I'm uploading a new version. I
left prints in because I think you'd find them helpful, but I'll upload another
version without prints.
--
Added file: http://bugs.python.org/fi
Jim Fulton added the comment:
Here's a version sans prints
--
Added file: http://bugs.python.org/file43581/echo-no-print.py
___
Python tracker
<http://bugs.python.org/is
Jim Fulton added the comment:
>> Yury, I'm curious what you think the socket argument to create_connection is
>> about.
>
> :) The current intended purpose of create_connection is to create a client
> connection. You're proposing to add a new argument -- serve
Jim Fulton added the comment:
See: https://bugs.launchpad.net/zodb/+bug/135108/comments/9
Sorry, I should have sent that link sooner. In my flailing to come up with a
simple case, I forgot the importance of that setting.
--
___
Python tracker
Jim Fulton added the comment:
Guido, are you saying that the script runs without hanging for you?
(If you get a boatload of tracebacks, that's due to another asyncio bug in
error handling.)
Are you running the version with prints?
This is an adaptation of the echo server and client fro
Jim Fulton added the comment:
Sorry, ignore my last message
--
___
Python tracker
<http://bugs.python.org/issue27392>
___
___
Python-bugs-list mailing list
Unsub
Jim Fulton added the comment:
Yuri, right you are. Thanks.
Марк, see https://bugs.launchpad.net/zodb/+bug/135108/comments/9
--
___
Python tracker
<http://bugs.python.org/issue27
Jim Fulton added the comment:
WRT CPython/sockets this problem doesn't happen if I use asyncore to accept
connections and hand them off to create_connection. :)
It also doesn't occur with uvloop, which I assume still uses sockets.
Also, FWIW, the relevant ZEO test passes if I use
Jim Fulton added the comment:
With SSL, the protocol is a little different clients and servers, although that
may just be in the handshake. I'm no SSL expert by any means. When you call
wrap_socket on an SSLContext, you can pass server_side, which defaults to
False. If you get this
Jim Fulton added the comment:
:)
I'm not a fan of monkey patching code in production, unless the code I'm monkey
patching is code I control. (And since releasing code now is a lot easier than
it used to be, I have much less occasion to monkey-patch code I control.)
(I'm a bi
New submission from Jim Fulton:
tl;dr TCP_NODELAY should be set by default and/or there should be a
proper way to set it.
I've ported ZEO, ZODB's client-server networking layer to asyncio.
Things were going pretty well. I've been developing on a
Mac. Yesterday, I ran s
Jim Fulton added the comment:
Gaaa, forgot to set meta data.
--
components: +asyncio
nosy: +gvanrossum, haypo, yselivanov
type: -> performance
versions: +Python 3.4, Python 3.5
___
Python tracker
<http://bugs.python.org/issu
Jim Fulton added the comment:
I forgot to switch to the asyncio branch of ZEO when testing on the
Amazon/RedHat linux. When I do, the tests run slow there too. Asyncio is dog
slow on every linux I've tried.
--
___
Python tracker
Jim Fulton added the comment:
Yury, I'd be fine with you making a PR. :)
Is there a similar update that can be made to uvloop?
--
___
Python tracker
<http://bugs.python.org/is
Changes by Jim Fulton :
--
type: behavior -> security
___
Python tracker
<http://bugs.python.org/issue27386>
___
___
Python-bugs-list mailing list
Unsubscrib
Jim Fulton added the comment:
I missed the point that you can get a transport's socket using get_extra_info.
IMO, this provides an adequate escape from the default and qualifies as a
"proper way to set it".
I still think the default should be to ena
Jim Fulton added the comment:
I'd still like to find a way to handle already accepted server sockets.
Can we decide on either:
- a server_side flag to create_connection or
- A new interface for handling an already accepted socket? I would
call this handle_connection, but I'll tak
Jim Fulton added the comment:
We need an executive (Guido) decision on the name of the new API. Yury wants
wrap_socket.
I don't like wrap_socket because:
- It implies that it's for wrapping client and server sockets.
(It shouldn't be for wrapping client sockets because
Jim Fulton added the comment:
> Why can't `wrap_socket` be used for wrapping client sockets?
TOOWTDI and create_connection.
I suppose we could remove (unadvertise) this functionality from
create_connection. Then we'd have code bloat because backward
Jim Fulton added the comment:
Here's a daft doc update.
--
keywords: +patch
Added file: http://bugs.python.org/file43718/connect_accepted_socket-doc.patch
___
Python tracker
<http://bugs.python.org/is
Jim Fulton added the comment:
Does the draft doc change look OK?
--
___
Python tracker
<http://bugs.python.org/issue27392>
___
___
Python-bugs-list mailin
Jim Fulton added the comment:
FTR another use case for this. :)
We have a ZEO applications where individual database users authenticate via
self-signed certs. The server's SSL connection has to have this collection of
certs. User CRUD operations can add and remove certs to authent
Jim Fulton added the comment:
idk if the patch got merged.
I just added the last comment for informational purposes. :)
Perhaps this issue can be closed.
--
___
Python tracker
<http://bugs.python.org/issue27
Jim Fulton added the comment:
WRT boolean for SSL, I think it's very common for clients to verify server
certificates, but relatively uncommon for servers to require client
certificates. The impression I have from reading docs and stack overflow posts
that the most common use case fo
Jim Fulton added the comment:
+1 restricting uvloop to AF_INET or AF_UNIX and SOCK_STREAM, at least until
someone requests something else.
--
___
Python tracker
<http://bugs.python.org/issue27
Jim Jewett added the comment:
What does overriding to put it back require?
Does it require a re-compile, or can it be done via a config file?
Taking it out of the default set sounds reasonable, but requiring a recompile
for people who want to retain backwards compatibility strikes me as too
Jim Jewett added the comment:
I think if the test is ensuring one line-ending type, then there should be
another test ensuring the other... but I think it would be best if there were a
single test file that had both types of line-endings, just to ensure that the
code doesn't cheat by re
Jim Jewett added the comment:
Is there a way to document why certain warnings are being suppressed, in case
someone wants to revisit the suppression later?
--
nosy: +Jim.Jewett
___
Python tracker
<https://bugs.python.org/issue25
Jim Jewett added the comment:
I think a python call is fine to require ... if they don't have the python
source they should have a support contract. I assume the advice followed is
intermediate, based on the earlier comment about xp and ie?
On Aug 26, 2016 9:46 AM, "Christian Heim
Jim Jewett added the comment:
I'm not sure I correctly understand skrah's proposal. If I do, then
(1) The first several lines ( "/* pymacro.h */" until "/* could go into a
separate header file */" ) would not be written at all, and are just there to
help r
Jim Jewett added the comment:
If I know that a Counter (or any class X) can be updated in place, I will be
surprised to find out that I'm using a different instance after a successful
in-place operation.
I would even consider that (replacement of the original instance) a security
Jim Jewett added the comment:
I wish there were an APIMismatchError superclass to unify
(AttributeError, TypeError). But the wart probably isn't enough to
justify the surgery.
On Thu, Nov 6, 2014 at 8:48 AM, Serhiy Storchaka wrote:
>
> Serhiy Storchaka added the comment:
>
>
Jim Jewett added the comment:
I interpreted Issue 15's closure as being about the distinction between
Application/webm vs Video/webm, etc.
As far as I understand it, the python stdlib doesn't actually care what the
major Mime type is, or, frankly, even whether the definition makes
New submission from Jim Carroll:
I reported this to the sqlite mailing list, and the comments I received
suggested the problem may by the python sqlite connector issue, so I'm opening
this as a bug report.
I understand that performing a SELECT and nested COMMIT on the same table is
Jim Carroll added the comment:
Hi David,
One more data point. Although I demonstrated the bug using the .execute()
method associated with a connection object -- you can also create the exact
problem using the .execute() method associated with cursors. This leaves no
means to COMMIT inside a
Jim Carroll added the comment:
Completely understood.
I recently found a workaround. Setting isolation_level to None seems to
mitigate the issue, ie:
db = sq.connect(':memory:', isolation_level=None)
I'm hoping to put some time in scrutinizing the c-api code later this w
New submission from Jim Carroll:
The following bit of code demonstrates a bug in how _strptime handles week 0.
The bug is an edge condition that specifically affects how it handles two days
before the first day of the new year
>>> for i in range(7):
... datetime.strptime('
Jim Carroll added the comment:
I understand. Actually, raising an exception would be perfectly acceptable as
well (possibly even more desirable).
I too experimented with the c-lib strptime() and discovered the negative values
of tm_mday. These results are good too -- as they clearly show the
Jim Carroll added the comment:
All the proposed patches are acceptable from my point of view, but it would be
really great if we could get the fix in the 2.x line. It seems unlikely there
could be any legacy code that would depend on the bug to exist (ie: to only be
wrong when then date
New submission from Jim Kubicek:
Python 3.4.2 (default, Dec 29 2014, 14:03:16)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import antigr
Jim Kubicek added the comment:
I do. I was just coming back here to post that very thing.
--
___
Python tracker
<http://bugs.python.org/issue23194>
___
___
Pytho
Jim Kubicek added the comment:
No, the behavior is the same in all cases
--
___
Python tracker
<http://bugs.python.org/issue23194>
___
___
Python-bugs-list mailin
Jim Jewett added the comment:
That sounds like a bug magnet to me; my mental model is that the codec
is my output; flushing it will push things out, and resetting it will
erase anything pending. I don't care if some implementation detail
means that some other object technically owns the b
New submission from Jim Bridgewater:
python hangs when this script is run and if it is allowed to continue running
OS X produces system out of memory errors
--
files: dome_projection.py
messages: 234593
nosy: jwbwater
priority: normal
severity: normal
status: open
title: python hangs
Jim Bridgewater added the comment:
Turns out an outer product of two million element vectors takes up a lot of
memory. Go figure.
--
resolution: -> not a bug
___
Python tracker
<http://bugs.python.org/issu
Jim Jewett added the comment:
Eric I realize that O (1) deletion is hard, and don't see a good way
around it without changing the implementation ... I just think that the
preserving the current C layout may be forcing an even more complicated
solution than neccessary. I am nervous
New submission from Jim Zajkowski:
The 2.7.0 download has zeros as version numbers on the .pkgs inside the
metapackage, which leads to the package database showing an installed version
of 0.
e.g.:
m-jamesez-darthpro:Downloads jamesez$ pkgutil --info
org.python.Python.PythonApplications-2.7
Jim Zajkowski added the comment:
Among the problems this causes, we can't correctly track which version is
present on our Macs (~6,000 systems) for upgrading.
--Jim
--
___
Python tracker
<http://bugs.python.org/is
Jim Jewett added the comment:
I've changed the stage to "test needed".
At a minimum, an interactive test should be written and added to the
documentation. Better would be an automated test (perhaps via subprocess).
The documentation should also be updated; at a minimum, th
Jim Jewett added the comment:
Terry: Was removing the public attribute keys OK?
--
nosy: +Jim.Jewett
___
Python tracker
<http://bugs.python.org/issue24
Jim Jewett added the comment:
Instead of using python directly in a subprocess, try calling a shell command
that in turns calls python. (Admittedly, this may look like the pipe
scenario...)
In theory, you could even drive another python interactively, using a GUI
runner, but I'm not
Jim Jewett added the comment:
On windows, when python is started from the command line without a GUI,
os.isatty(sys.stdin) raises an error, but os.isatty(sys.stdin.fileno()) returns
true.
Within IDLE, os.isatty(sys.stdin.fileno()) also raises an error, but
os.isatty(0), os.isatty(1), and
New submission from Jim Minter:
SQLite supports incremental I/O to blobs, i.e. the capability to stream reads
and writes to blobs without having to load the entire blob into memory first.
See https://www.sqlite.org/c3ref/blob_open.html for more details on the C API.
It'd be nice if it
New submission from Jim Jewett:
warnings.warn(stacklevel=2) is a longstanding idiom.
It broke in 3.3 because python itself added some additional infrastructure
frames in between; now stacklevel should be 8 or 10 in some releases.
issue24305 adds a workaround for 3.5, to ignore internal frames
Changes by Jim Jewett :
--
stage: -> needs patch
___
Python tracker
<http://bugs.python.org/issue25216>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from Jim Nasby:
In PyTuple_New, if the new tuple won't go on the free_list:
/* Check for overflow */
if (nbytes / sizeof(PyObject *) != (size_t)size ||
(nbytes > PY_SSIZE_T_MAX - sizeof(PyTupleObject) -
sizeof(
New submission from Jim Nasby:
The code for the set_all() example has a formatting bug:
return -1;
}
Py_DECREF(index);
}
it should be
return -1;
}
Py_DECREF(index);
}
--
assignee: docs@python
components: Documentation
New submission from Jim Jin:
PAYLOAD1 = b'\xce\xba\xe1\xbd\xb9\xcf\x83\xce\xbc\xce\xb5'
PAYLOAD2 = b'\xed\xa0\x80'
PAYLOAD3 = b'\x65\x64\x69\x74\x65\x64'
PAYLOAD = PAYLOAD1 + PAYLOAD2 + PAYLOAD3
PAYLOAD.decode('utf8') passes in P2.7.* and
Jim Jin added the comment:
Thank you very much for your help!
--
___
Python tracker
<http://bugs.python.org/issue26260>
___
___
Python-bugs-list mailing list
Unsub
New submission from Jim Jewett:
https://docs.python.org/3/library/dis.html includes a section describing the
various opcodes.
Current documentation: """
Coroutine opcodes
GET_AWAITABLE
Implements TOS = get_awaitable(TOS), where get_awaitable(o) returns o if o is a
corout
Jim Jewett added the comment:
I think the warning was helpful; it just had confusing wording.
Instead of: """
>>> def f():
... False
...
:2: SyntaxWarning: ignore constant statement
"""
perhaps: """
>>> def f():
... False
Jim Jewett added the comment:
Does (did?) the utf8 special case allow for a much faster startup time, by not
requiring all of the codecs machinery?
--
nosy: +Jim.Jewett
___
Python tracker
<http://bugs.python.org/issue25
Jim Jewett added the comment:
Even if Ethan's argument about an explicit start value were not convincing,
Mark + Raymond would count as authoritative for floats.
Anyone can reopen if needed; I just don't want the issue to languish forever if
there is at least grudging
Jim Jewett added the comment:
It feels a bit odd to say that I've performed a triage review given the three
people already involved -- but I did, and I think it is ready to commit.
I believe it is a bug fix, but too subtle a bug to justify backporting.
The only question is whether
Jim Jewett added the comment:
The modulus fixes it for exact numbers. It doesn't produce exactly the same
result with floats, because of rounding. Is that a problem?
--
nosy: +Jim.Jewett
___
Python tracker
<http://bugs.python.org/is
Jim Jewett added the comment:
Looks Good To Me
--
nosy: +Jim.Jewett
___
Python tracker
<http://bugs.python.org/issue27032>
___
___
Python-bugs-list mailin
Changes by Jim Jewett :
--
stage: -> needs patch
___
Python tracker
<http://bugs.python.org/issue27038>
___
___
Python-bugs-list mailing list
Unsubscrib
401 - 500 of 742 matches
Mail list logo