[issue29521] Minor warning messages when compiling documentation

2017-02-10 Thread Jim DeLaHunt
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

[issue29428] Doctest documentation unclear about multi-line fixtures

2017-02-10 Thread Jim DeLaHunt
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

[issue29521] Minor warning messages when compiling documentation

2017-02-11 Thread Jim DeLaHunt
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&#x

[issue29521] Minor warning messages when compiling documentation

2017-02-11 Thread Jim DeLaHunt
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

[issue29387] Tabs vs spaces FAQ out of date

2017-02-11 Thread Jim DeLaHunt
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

[issue29428] Doctest documentation unclear about multi-line fixtures

2017-02-12 Thread Jim DeLaHunt
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

[issue29561] Interactive mode gives sys.ps2 not sys.ps1 after comment-only line

2017-02-14 Thread Jim DeLaHunt
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

[issue29562] test_getgroups of test_posix fails (on OS X 10.10)

2017-02-14 Thread Jim DeLaHunt
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

[issue29562] test_getgroups of test_posix fails (on OS X 10.10)

2017-02-14 Thread Jim DeLaHunt
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

[issue29563] Update Devguide about building documentation.

2017-02-14 Thread Jim DeLaHunt
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

[issue29563] Update Devguide about building documentation.

2017-02-15 Thread Jim DeLaHunt
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

[issue29561] Interactive mode gives sys.ps2 not sys.ps1 after comment-only line

2017-02-15 Thread Jim DeLaHunt
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

[issue29562] test_getgroups of test_posix fails (on OS X 10.10)

2017-02-15 Thread Jim DeLaHunt
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

[issue29562] test_getgroups of test_posix fails (on OS X 10.10)

2017-02-15 Thread Jim DeLaHunt
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

[issue29562] test_getgroups of test_posix fails (on OS X 10.10)

2017-02-15 Thread Jim DeLaHunt
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

[issue29520] Documentation uses deprecated "defindex.html" Sphinx template

2017-02-18 Thread Jim DeLaHunt
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&#

[issue29562] test_getgroups of test_posix fails (on OS X 10.10)

2017-02-19 Thread Jim DeLaHunt
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

[issue27386] Asyncio server hang when clients connect and immediately disconnect

2016-06-25 Thread Jim Fulton
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

[issue27391] server_hostname should only be required when checking host names

2016-06-26 Thread Jim Fulton
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

[issue27392] Add a server_side keyword parameter to create_connection

2016-06-26 Thread Jim Fulton
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

[issue27386] Asyncio server hang when clients connect and immediately disconnect

2016-06-26 Thread Jim Fulton
Jim Fulton added the comment: FWIW, using uvloop avoids the hang. -- ___ Python tracker <http://bugs.python.org/issue27386> ___ ___ Python-bugs-list mailin

[issue27391] server_hostname should only be required when checking host names

2016-06-29 Thread Jim Fulton
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

[issue27386] Asyncio server hang when clients connect and immediately disconnect

2016-06-29 Thread Jim Fulton
Jim Fulton added the comment: This is already pretty minimal. There are no external dependencies. -- ___ Python tracker <http://bugs.python.org/issue27

[issue27392] Add a server_side keyword parameter to create_connection

2016-06-29 Thread Jim Fulton
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

[issue27392] Add a server_side keyword parameter to create_connection

2016-06-29 Thread Jim Fulton
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

[issue27392] Add a server_side keyword parameter to create_connection

2016-06-29 Thread Jim Fulton
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

[issue27391] server_hostname should only be required when checking host names

2016-06-29 Thread Jim Fulton
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

[issue27391] server_hostname should only be required when checking host names

2016-06-29 Thread Jim Fulton
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

[issue27391] server_hostname should only be required when checking host names

2016-06-29 Thread Jim Fulton
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

[issue27391] server_hostname should only be required when checking host names

2016-06-29 Thread Jim Fulton
Jim Fulton added the comment: OK, sure, I'll make a PR. -- ___ Python tracker <http://bugs.python.org/issue27391> ___ ___ Python-bugs-list mailing list

[issue27392] Add a server_side keyword parameter to create_connection

2016-06-29 Thread Jim Fulton
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

[issue27392] Add a server_side keyword parameter to create_connection

2016-06-29 Thread Jim Fulton
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

[issue27386] Asyncio server hang when clients connect and immediately disconnect

2016-06-29 Thread Jim Fulton
Changes by Jim Fulton : Removed file: http://bugs.python.org/file43540/echo.py ___ Python tracker <http://bugs.python.org/issue27386> ___ ___ Python-bugs-list mailin

[issue27386] Asyncio server hang when clients connect and immediately disconnect

2016-06-29 Thread Jim Fulton
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

[issue27386] Asyncio server hang when clients connect and immediately disconnect

2016-06-29 Thread Jim Fulton
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

[issue27392] Add a server_side keyword parameter to create_connection

2016-06-29 Thread Jim Fulton
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

[issue27392] Add a server_side keyword parameter to create_connection

2016-06-29 Thread Jim Fulton
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

[issue27386] Asyncio server hang when clients connect and immediately disconnect

2016-06-29 Thread Jim Fulton
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

[issue27392] Add a server_side keyword parameter to create_connection

2016-06-29 Thread Jim Fulton
Jim Fulton added the comment: Sorry, ignore my last message -- ___ Python tracker <http://bugs.python.org/issue27392> ___ ___ Python-bugs-list mailing list Unsub

[issue27386] Asyncio server hang when clients connect and immediately disconnect

2016-06-29 Thread Jim Fulton
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

[issue27386] Asyncio server hang when clients connect and immediately disconnect

2016-06-29 Thread Jim Fulton
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

[issue27392] Add a server_side keyword parameter to create_connection

2016-06-29 Thread Jim Fulton
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

[issue27392] Add a server_side keyword parameter to create_connection

2016-06-29 Thread Jim Fulton
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

[issue27456] TCP_NODELAY

2016-07-05 Thread Jim Fulton
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

[issue27456] TCP_NODELAY

2016-07-05 Thread Jim Fulton
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

[issue27456] TCP_NODELAY

2016-07-05 Thread Jim Fulton
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

[issue27456] TCP_NODELAY

2016-07-05 Thread Jim Fulton
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

[issue27386] Asyncio server hang when clients connect and immediately disconnect

2016-07-06 Thread Jim Fulton
Changes by Jim Fulton : -- type: behavior -> security ___ Python tracker <http://bugs.python.org/issue27386> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue27456] TCP_NODELAY

2016-07-07 Thread Jim Fulton
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

[issue27392] Add a server_side keyword parameter to create_connection

2016-07-09 Thread Jim Fulton
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

[issue27392] Add a server_side keyword parameter to create_connection

2016-07-09 Thread Jim Fulton
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

[issue27392] Add a server_side keyword parameter to create_connection

2016-07-09 Thread Jim Fulton
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

[issue27392] Add a server_side keyword parameter to create_connection

2016-07-14 Thread Jim Fulton
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

[issue27392] Add a server_side keyword parameter to create_connection

2016-07-18 Thread Jim Fulton
Jim Fulton added the comment: Does the draft doc change look OK? -- ___ Python tracker <http://bugs.python.org/issue27392> ___ ___ Python-bugs-list mailin

[issue27392] Add a server_side keyword parameter to create_connection

2016-08-07 Thread Jim Fulton
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

[issue27392] Add a server_side keyword parameter to create_connection

2016-08-08 Thread Jim Fulton
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

[issue27392] Add a server_side keyword parameter to create_connection

2016-08-09 Thread Jim Fulton
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

[issue27392] Add a server_side keyword parameter to create_connection

2016-08-09 Thread Jim Fulton
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

[issue27850] Remove 3DES from cipher list (sweet32 CVE-2016-2183)

2016-08-25 Thread Jim Jewett
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

[issue27425] Tests fail because of git's newline preferences on Windows

2016-08-25 Thread Jim Jewett
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

[issue25878] CPython on Windows builds with /W3, not /W4

2016-08-25 Thread Jim Jewett
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

[issue27850] Remove 3DES from cipher list (sweet32 CVE-2016-2183)

2016-08-26 Thread Jim Jewett
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

[issue16612] Integrate "Argument Clinic" specialized preprocessor into CPython trunk

2013-02-13 Thread Jim Jewett
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

[issue22766] collections.Counter's in-place operators should return NotImplemented for unsupported types

2014-11-03 Thread Jim Jewett
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

[issue22766] collections.Counter's in-place operators should return NotImplemented for unsupported types

2014-11-06 Thread Jim Jewett
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: > >

[issue16329] mimetypes does not support webm type

2014-12-03 Thread Jim Jewett
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

[issue23129] sqlite3 COMMIT nested in SELECT returns unexpected results

2014-12-29 Thread Jim Carroll
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

[issue23129] sqlite3 COMMIT nested in SELECT returns unexpected results

2014-12-29 Thread Jim Carroll
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

[issue23129] sqlite3 COMMIT nested in SELECT returns unexpected results

2014-12-30 Thread Jim Carroll
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

[issue23136] BUG in how _strptime() handles week 0

2014-12-30 Thread Jim Carroll
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('

[issue23136] BUG in how _strptime() handles week 0

2014-12-31 Thread Jim Carroll
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

[issue23136] BUG in how _strptime() handles week 0

2015-01-02 Thread Jim Carroll
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

[issue23194] Antigravity prints osascript errors in OS X Yosemite

2015-01-08 Thread Jim Kubicek
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

[issue23194] Antigravity prints osascript errors in OS X Yosemite

2015-01-08 Thread Jim Kubicek
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

[issue23194] Antigravity prints osascript errors in OS X Yosemite

2015-01-08 Thread Jim Kubicek
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

[issue14014] codecs.StreamWriter.reset contract not fulfilled

2015-01-13 Thread Jim Jewett
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

[issue23307] python hangs on call to numpy.outer

2015-01-23 Thread Jim Bridgewater
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

[issue23307] python hangs on call to numpy.outer

2015-01-23 Thread Jim Bridgewater
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

[issue16991] Add OrderedDict written in C

2015-05-25 Thread Jim Jewett
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

[issue24502] OS X 2.7 package has zeros for version numbers in sub-packages

2015-06-24 Thread Jim Zajkowski
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

[issue24502] OS X 2.7 package has zeros for version numbers in sub-packages

2015-06-24 Thread Jim Zajkowski
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

[issue24294] DeprecationWarnings should be visible by default in the interactive REPL

2015-08-18 Thread Jim Jewett
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

[issue24790] Idle: improve stack viewer

2015-08-18 Thread Jim Jewett
Jim Jewett added the comment: Terry: Was removing the public attribute keys OK? -- nosy: +Jim.Jewett ___ Python tracker <http://bugs.python.org/issue24

[issue24294] DeprecationWarnings should be visible by default in the interactive REPL

2015-08-20 Thread Jim Jewett
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

[issue24294] DeprecationWarnings should be visible by default in the interactive REPL

2015-08-20 Thread Jim Jewett
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

[issue24905] Allow incremental I/O to blobs in sqlite3

2015-08-21 Thread Jim Minter
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

[issue25216] Warnings stacklevel frames to skip

2015-09-22 Thread Jim Jewett
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

[issue25216] Warnings stacklevel frames to skip

2015-09-22 Thread Jim Jewett
Changes by Jim Jewett : -- stage: -> needs patch ___ Python tracker <http://bugs.python.org/issue25216> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue25587] Useless addition in PyTuple_New

2015-11-08 Thread Jim Nasby
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(

[issue26142] Formatting bug on https://docs.python.org/2.7/c-api/intro.html

2016-01-17 Thread Jim Nasby
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

[issue26260] utf8 decoding inconsistency between P2 and P3

2016-02-01 Thread Jim Jin
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

[issue26260] utf8 decoding inconsistency between P2 and P3

2016-02-01 Thread Jim Jin
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

[issue26286] dis module: coroutine opcode documentation clarity

2016-02-04 Thread Jim Jewett
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

[issue26204] compiler: ignore constants used as statements (don't emit LOAD_CONST+POP_TOP)

2016-02-09 Thread Jim Jewett
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

[issue25937] DIfference between utf8 and utf-8 when i define python source code encoding.

2016-02-10 Thread Jim Jewett
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

[issue26324] sum() incorrect on negative zeros

2016-02-10 Thread Jim Jewett
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

[issue26312] Raise SystemError on programmical errors in PyArg_Parse*()

2016-02-10 Thread Jim Jewett
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

[issue26296] colorys rgb_to_hls algorithm error

2016-02-10 Thread Jim Jewett
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

[issue27032] Remove deprecated html.parser.HTMLParser.unescape()

2016-05-23 Thread Jim Jewett
Jim Jewett added the comment: Looks Good To Me -- nosy: +Jim.Jewett ___ Python tracker <http://bugs.python.org/issue27032> ___ ___ Python-bugs-list mailin

[issue27038] Make os.DirEntry exist

2016-05-23 Thread Jim Jewett
Changes by Jim Jewett : -- stage: -> needs patch ___ Python tracker <http://bugs.python.org/issue27038> ___ ___ Python-bugs-list mailing list Unsubscrib

<    1   2   3   4   5   6   7   8   >