[issue12684] profile does not dump stats on exception like cProfile does

2012-03-14 Thread Jim Jewett
Jim Jewett added the comment: If I read that patch right, it ignores (and does not even reraise) SystemExit (unchanged), but other Exceptions currently block the dump (and your patch causes them to still dump). (1) Why is SystemExit ignored? (2) There should be tests to show that there

[issue14318] clarify http://docs.python.org/dev/library/time.html#time.steady

2012-03-15 Thread Jim Jewett
Changes by Jim Jewett : -- assignee: docs@python components: Documentation nosy: Jim.Jewett, docs@python priority: normal severity: normal status: open title: clarify http://docs.python.org/dev/library/time.html#time.steady type: enhancement versions: Python 3.3

[issue14318] clarify "may not" in time.steady docs

2012-03-15 Thread Jim Jewett
New submission from Jim Jewett : http://docs.python.org/dev/library/time.html#time.steady Current: """Return the current time as a floating point number expressed in seconds. This clock advances at a steady rate relative to real time and it may not be adjusted. The referen

[issue14279] packaging.pypi should support flat directories of distributions

2012-03-15 Thread Jim Fulton
Jim Fulton added the comment: Note that "ala a directory of files" wasn't meant to imply local files. It could be a directory of files served via a HTTP (or sftp) server. -- ___ Python tracker <http://bugs.pyt

[issue14280] packaging.pypi should not require checksums

2012-03-15 Thread Jim Fulton
Jim Fulton added the comment: I just clarified that 14279 doesn't imply local files. I'd be fine with a warning about lack of checksums for downloads. -- ___ Python tracker <http://bugs.python.o

[issue9290] IDLE and Command line present different behavior for sys.stdin

2012-03-15 Thread Jim Jewett
Jim Jewett added the comment: msvcrt.getwch has a similar failure, returning (2**16)-1. Because of this, getpass.win_getpass (used as getpass.getpass on windows) echoes the password when using Idle (even without a subprocess), but does not echo passwords when from a command-line python

[issue14234] CVE-2012-0876 (hash table collisions CPU usage DoS) for embedded copy of expat

2012-03-15 Thread Jim Jewett
Jim Jewett added the comment: Looking at http://sourceforge.net/projects/expat/files/expat/2.1.0/, so long as XML_ATTR_INFO isn't defined at compile time, the changes are all considered bugfixes, and the XML_SetHashSalt is the only other changed API. Is a potential Denial of Service r

[issue10576] Add a progress callback to gcmodule

2012-03-20 Thread Jim Jewett
Jim Jewett added the comment: gccallback4a.patch is a few changes to gccallback4.patch. Most are just spelling or grammar in comments, but I did modify the test case so that the Uncollectable loop had *multiple* objects with __del__ methods. -- nosy: +Jim.Jewett Added file: http

[issue14386] Expose dictproxy as a public type

2012-03-22 Thread Jim Jewett
Jim Jewett added the comment: > The problem is to reject sequence in dictproxy constructor. Why? Just because you can't delegate in quite the same way? A sequence *does* meet the (immutable) Mapping interface; it just won't happen to have any non-integer keys. Or are you

[issue14318] clarify "may not" in time.steady docs

2012-03-23 Thread Jim Jewett
Jim Jewett added the comment: (1) How does the user control (or even find out) which clock is used by time.steady()? If the answer is time.steady(clock=QueryPerformanceCounter) then there is no need for strict=?, but then I'm not sure what the point of time.steady itself is. I had

[issue14413] whatsnew deprecation tweak

2012-03-26 Thread Jim Jewett
New submission from Jim Jewett : http://www.python.org/~gbrandl/build/html2/whatsnew/3.3.html#pep-393-flexible-string-representation "The packaging module replaces the distutils module" All other deprecation messages list the deprecated object first, such as "platform.p

[issue14410] argparse typo

2012-03-26 Thread Jim Jewett
Jim Jewett added the comment: Patch is doc-only, and looks good to me. -- nosy: +Jim.Jewett ___ Python tracker <http://bugs.python.org/issue14410> ___ ___ Pytho

[issue14417] dict RuntimeError workaround

2012-03-26 Thread Jim Jewett
New submission from Jim Jewett : Per the 3.3 WhatsNew: """issue 14205: A dict lookup now raises a RuntimeError if the dict is modified during the lookup. If you implement your own comparison function for objects used as dict keys and the dict is shared by multiple threads, acce

[issue13608] remove born-deprecated PyUnicode_AsUnicodeAndSize

2012-03-26 Thread Jim Jewett
Jim Jewett added the comment: It is now a useful function, as PyUnicode_AsUnicode defers to it. It is still born-deprecated, but that may be unavoidable, as all use of the wstr format is deprecated. -- ___ Python tracker <http://bugs.python.

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-26 Thread Jim Jewett
Jim Jewett added the comment: See http://bugs.python.org/issue14417 -- ___ Python tracker <http://bugs.python.org/issue14205> ___ ___ Python-bugs-list mailin

[issue14417] dict RuntimeError workaround

2012-04-05 Thread Jim Jewett
Jim Jewett added the comment: >> A counter can be added to dictobject.c.patch to avoid >> an infinite loop. > But why bother? Without a termination condition, how is this different from just reverting the original change? Is it just the slightly improvemen

[issue9141] Allow objects to decide if they can be collected by GC

2012-04-05 Thread Jim Jewett
Jim Jewett added the comment: I think the second patch is a fairly straightforward enhancement to the existing situation. It still feels a bit like an awkward half-measure, though. (1) If a class does have a finalizer, instances should still be able to say "Go ahead and collect me, I

[issue14502] Document better what happens on releasing an unacquired lock

2012-04-05 Thread Jim Jewett
Jim Jewett added the comment: At least put the information inside some disclaimers about "normally"; even the stdlib has some fake locks that let you release a lock someone else holds. (I think I found them in in workarounds for threading not being available, such as the dummy

[issue14502] Document better what happens on releasing an unacquired lock

2012-04-05 Thread Jim Jewett
Jim Jewett added the comment: On Thu, Apr 5, 2012 at 5:38 PM, Antoine Pitrou wrote: > Antoine Pitrou added the comment: > Not sure what you're talking about. The doc patch is about unacquired > locks, not locks that someone else (another thread) holds. Isn't one common r

[issue14502] Document better what happens on releasing an unacquired lock

2012-04-06 Thread Jim Jewett
Jim Jewett added the comment: On Fri, Apr 6, 2012 at 5:57 AM, Antoine Pitrou wrote: > Antoine Pitrou added the comment: >> > Not sure what you're talking about. The doc patch is about unacquired >> > locks, not locks that someone else (another thread) holds. >

[issue9141] Allow objects to decide if they can be collected by GC

2012-04-06 Thread Jim Jewett
Jim Jewett added the comment: > I don't think 2 is important. Does the context of the call matter? > It is merely a question of whether a finalizer will or will not do > something trivial. It would affect how I would write such functions. If I knew that it wouldn't

[issue14478] Decimal hashing very slow, could be cached

2012-04-06 Thread Jim Jewett
Jim Jewett added the comment: @Jimbofbx: You are correct that a value has to be reserved to indicate that the hash hasn't been (or can't be) computed, but python uses -1 instead of zero. An integer can't return itself because a hash is an unboxed integer; that said, there is

[issue14502] Document better what happens on releasing an unacquired lock

2012-04-06 Thread Jim Jewett
Jim Jewett added the comment: > I have a lock that may or may not be currently held when I release it, > and now I know I can just catch RuntimeError in that case. Only if you're willing to make assumptions about the threading model and the source of locks. And I fear the cur

[issue6167] Tkinter.Scrollbar: the activate method needs to return a value, and set should take only two args

2012-04-06 Thread Jim Jewett
Jim Jewett added the comment: (1) Why did you change the name of the parameter from index to element? If the underlying engine also accepts indices (e.g., self.activate(4) ) then the name should stay. If it really is only meaningful to use the name of an element -- maybe it should still

[issue9141] Allow objects to decide if they can be collected by GC

2012-04-06 Thread Jim Jewett
Jim Jewett added the comment: On Fri, Apr 6, 2012 at 4:03 PM, Daniel Stutzbach added the comment: >> __del__ methods do run, even if an object was collected by the cycle >> detector.  And they can't do any harm that couldn't also be done by a C >> finalizer

[issue14502] Document better what happens on releasing an unacquired lock

2012-04-08 Thread Jim Jewett
Jim Jewett added the comment: On Fri, Apr 6, 2012 at 10:32 PM, R. David Murray wrote: > R. David Murray added the comment: > I, on the other hand, would prefer if it were made part of the API contract > that an > error is raised, and to fix any stdlib implementations *of th

[issue14502] Document better what happens on releasing an unacquired lock

2012-04-09 Thread Jim Jewett
Jim Jewett added the comment: Vinay, The current question is what contract locks should follow, and whether all locks should follow it. Would it be acceptable for logging._releaseLock to raise a RuntimeError if the lock hadn't previously been acquired? In other words, would it be accep

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-04-09 Thread Jim Jewett
Jim Jewett added the comment: @Brian -- to clarify, (1) Does issue3561.diff completely supersede prependpath_in-progress.diff? (And should that be the one currently subject to review?) (2) What happens with multiple installations? Do users have to manually unset the path to avoid

[issue14538] HTMLParser: parsing error

2012-04-09 Thread Jim Jewett
Jim Jewett added the comment: What do you think it should do? My thought is that meta tags may or may not be void, but certainly should not be nested. As XML, I would parse that as *missing closing tag But for html, there is more cleanup. The catch is that this module

[issue10408] Denser dicts and linear probing

2012-04-09 Thread Jim Jewett
Jim Jewett added the comment: FWIW, doing a linear probe only within a cache line (changing the 1's bit) before applying perturb might also be useful -- and the results may change if the size of a dictentry were reduced. (Mark Shannon's now-integrated patch doesn't actually

[issue14478] Decimal hashing very slow, could be cached

2012-04-10 Thread Jim Jewett
Jim Jewett added the comment: Stefan Krah has a good point. Since the only cost is an extra slot, and this is for users who have already chosen to use Decimal instead of a more efficient (but possibly less accurate) representation, even without the native speedups to Decimal ... I guess

[issue14538] HTMLParser: parsing error

2012-04-12 Thread Jim Jewett
Jim Jewett added the comment: -1 on that particular patch. (with only whitespace between "/" and ">") strikes me as obviously intending to close the tag, and a reasonably common error. I can't think of any reason to support nested meta tags while not supporti

[issue14538] HTMLParser: parsing error

2012-04-12 Thread Jim Jewett
Jim Jewett added the comment: This issue is also marked for (bugfix-only) 2.7 and 3.2. Unless there is a specification somewhere (or at least an editor's draft), I can't really see any particular parse as a bugfix. Was the goal just to make the parse finish, as opposed to sto

[issue14569] pystate.c #ifdef ordering problem

2012-04-12 Thread Jim Jewett
New submission from Jim Jewett : The C linkage is guarded by WITH_THREAD. The 'extern "C" {' and '}' declarations should be in effect regardless of threading. Note that the bug can only be triggered by compiling without threads, but with a C++ compiler; this

[issue14569] pystate.c #ifdef ordering problem

2012-04-12 Thread Jim Jewett
Jim Jewett added the comment: http://hg.python.org/cpython/file/0f114b855824/Python/pystate.c#l25 #ifdef WITH_THREAD #include "pythread.h" static PyThread_type_lock head_mutex = NULL; /* Protects interp->tstate_head */ #define HEAD_INIT() (void)(head_mutex |

[issue14538] HTMLParser: parsing error

2012-04-12 Thread Jim Jewett
Jim Jewett added the comment: On Thu, Apr 12, 2012 at 7:26 PM, Ezio Melotti wrote: > If HTMLParser doesn't parse as the HTML5 specs say, > then it's considered a bug. I had thought that was the goal of the html5lib, and that HTMLParser was explicitly aiming at a much reduced m

[issue14538] HTMLParser: parsing error

2012-04-13 Thread Jim Jewett
Jim Jewett added the comment: It sounds like this is a case where the docs should mention an external library; perhaps something like changing the intro of http://docs.python.org/dev/library/html.parser.html from: """ 19.2. html.parser — Simple HTML and XHTML parser Source

[issue14562] urllib2 maybe blocks too long

2012-04-13 Thread Jim Jewett
Jim Jewett added the comment: It would be helpful to have a testcase, so that it will stay fixed. -- nosy: +Jim.Jewett ___ Python tracker <http://bugs.python.org/issue14

[issue14562] urllib2 maybe blocks too long with small chunks

2012-04-13 Thread Jim Jewett
Changes by Jim Jewett : -- title: urllib2 maybe blocks too long -> urllib2 maybe blocks too long with small chunks ___ Python tracker <http://bugs.python.org/issu

[issue14555] clock_gettime/settime/getres: Add more clock identifiers

2012-04-13 Thread Jim Jewett
Jim Jewett added the comment: Any particular reason not to add those? -- nosy: +Jim.Jewett ___ Python tracker <http://bugs.python.org/issue14555> ___ ___ Pytho

[issue9303] Migrate sqlite3 module to _v2 API to enhance performance

2012-04-13 Thread Jim Jewett
Jim Jewett added the comment: I can't speak for GSoC or Gerhard, but it strikes me as a reasonable first step. An alternatives woube be writing it with fallbacks (so older sqlite can still be used, though less efficiently). It would also be nice to clean up at least one call

[issue14569] pystate.c #ifdef ordering problem

2012-04-16 Thread Jim Jewett
Jim Jewett added the comment: On Fri, Apr 13, 2012 at 6:19 AM, Antoine Pitrou added the comment: > I don't think you need anyone's permission to commit such a fix :) Well, *I* would, since I don't have commit privs, and don't currently have a C dev environment wit

[issue14567] http.server query string handling is incorrect and inefficient

2012-04-16 Thread Jim Jewett
Changes by Jim Jewett : -- title: http.server query string handling incorrect and inefficient -> http.server query string handling is incorrect and inefficient ___ Python tracker <http://bugs.python.org/issu

[issue14580] imp.reload can fail for sub-modules

2012-04-16 Thread Jim Jewett
Jim Jewett added the comment: (Note that the two patches are not cumulative; both would need to be applied.) -- nosy: +Jim.Jewett stage: -> patch review ___ Python tracker <http://bugs.python.org/issu

[issue14601] PEP sources not available as documented

2012-04-16 Thread Jim Jewett
New submission from Jim Jewett : PEP 12 states: """ To get the source this (or any) PEP, look at the top of the HTML page and click on the date & time on the "Last-Modified" line. It is a link to the source text in the Python repository. """

[issue37422] Documentation on the change of __path__ in Python 3

2019-06-26 Thread Jim Li
New submission from Jim Li : In Python 2, `__path__` used to be a list, so all of the operations available to list are available, e.g., `insert`; you can also do indexing; e.g., `__path__[0]`. However, I believe that starting from Python 3, it seems to be a , and a lot of operations that

[issue37423] 2to3 wraps a already bracketed print statement with another brackets

2019-06-26 Thread Jim Li
New submission from Jim Li : I encountered this issue when I was running 2to3 on a package, Python version 3.7.2, CentOS 7. To reproduce this bug, create a file called test.py and paste the following code into it def testSomeRequest(self): request = {"someRequest"

[issue37423] 2to3 wraps a already bracketed print statement with another brackets

2019-06-26 Thread Jim Li
Jim Li added the comment: Thanks Eric. That does make sense. The code wasn't really Python 3, it was migrated from 2.7, which uses some Python 3 syntax. As a side note, if you run 2to3 on this instead of the previous `print(response.next_page_token)` print(response) Then 2to3 woul

[issue37422] Documentation on the change of __path__ in Python 3

2019-06-27 Thread Jim Li
Jim Li added the comment: Hi Eric, Sorry for the late reply. I think I did not accurately describe the issue at all. As a minimal example, set up two virtual environments, one from 2.7.x, one from 3.7.2. When you are in the virtual environment, do - pip install protobuf==3.3.0 - python (to

[issue37422] Documentation on the change of __path__ in Python 3

2019-06-27 Thread Jim Li
Jim Li added the comment: Ah, that started to make sense. To be honest I didn't really pay much attention to the _namespace's documentation, I only looked at that of __path__ and somehow expected it to mention that certain namespace won't be a type anymore. I will re-read yo

[issue29269] test_socket failing in solaris

2017-06-20 Thread Jim Crigler
Jim Crigler added the comment: I'm having the same problem with gcc 6.2. Is there any update? -- nosy: +Jim Crigler ___ Python tracker <http://bugs.python.org/is

[issue30963] xxlimited.c XxoObject_Check should be XxoObject_CheckExact

2017-07-18 Thread Jim Jewett
New submission from Jim Jewett: https://github.com/python/cpython/blob/master/Modules/xxlimited.c#L28 #define XxoObject_Check(v) (Py_TYPE(v) == Xxo_Type) assumes that the type cannot be subclassed, but does not say so. Since this is demo code, it would be better to use something like

[issue25910] Fixing links in documentation

2017-07-25 Thread Jim Ferrara
Changes by Jim Ferrara : -- pull_requests: +2917 ___ Python tracker <http://bugs.python.org/issue25910> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31240] Add lazy evaluation support for dict.setdefault()

2017-08-19 Thread Jim Dennis
New submission from Jim Dennis: Code such as mydict.setdefault('eggs', []) will needlessly incur the cost of instantiating a list even when 'eggs' is already a valid key in mydict. collections.defaultdict will not do this. detecting and automatically calling "cal

[issue31280] Namespace packages in directories added to path aren't importable if packages from the same namespace are in site-packages

2017-08-25 Thread Jim Fulton
New submission from Jim Fulton: I'm having an issue importing from namespaces packages whose directories are added to sys.path and have other packages from the same namespace in site-packages. To reproduce: - Create a virtualenv and install zc.buildout in it (``envdir/bin/pip in

[issue31280] Namespace packages in directories added to path aren't importable if packages from the same namespace are in site-packages

2017-08-25 Thread Jim Fulton
Jim Fulton added the comment: No, but I managed to unattach it, because "Choose File" always feels like a submit button to me. Sorry. Attached. -- Added file: http://bugs.python.org/file47101/z.py ___ Python tracker <http://bu

[issue31280] Namespace packages in directories added to path aren't importable if packages from the same namespace are in site-packages

2017-08-26 Thread Jim Fulton
Jim Fulton added the comment: Wow, OK. It didn't occur to me to look for .pth files. (Buildout doesn't use them.) I guess this is a pip bug or misfeature. I'll head over to pypa. Thanks! -- stage: -> resolved status: open -> closed _

[issue31280] Namespace packages in directories added to path aren't importable if packages from the same namespace are in site-packages

2017-08-26 Thread Jim Fulton
Jim Fulton added the comment: See: https://github.com/pypa/pip/issues/4695 -- ___ Python tracker <http://bugs.python.org/issue31280> ___ ___ Python-bugs-list m

[issue31470] Py_Initialize documentation wrong

2017-09-14 Thread Jim Jewett
New submission from Jim Jewett: Per https://docs.python.org/3/c-api/init.html#initializing-and-finalizing-the-interpreter Py_Initialize() "should be called before using any other Python/C API functions; with the exception of Py_SetProgramName(), Py_SetPythonHome() and Py_SetPath()."

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

2017-09-17 Thread Jim Fulton
Jim Fulton added the comment: OMG, >1year. :) This was always a minor issue. I still think the current asyncio behavior is dumb, but whatever. FWIW, I tripped on this when adding SSL support to ZEO, which is a client-server *database* protocol used by ZODB, having nothing to do with

[issue35789] Typo in unittest.mock docs

2019-01-20 Thread Jim Carroll
New submission from Jim Carroll : There is a typo in the unittest.mock documentation found at https://docs.python.org/3/library/unittest.mock.html. There are seven(7) instances of the word assret, where the author clearly intended assert. -- assignee: docs@python components

[issue35789] Typo in unittest.mock docs

2019-01-20 Thread Jim Carroll
Jim Carroll added the comment: Never mindi see this issue has been reported previously and the typo is considered intentional. -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue29428] Doctest documentation unclear about multi-line fixtures

2017-04-17 Thread Jim DeLaHunt
Jim DeLaHunt added the comment: Bump. Could I get a few more eyes looking at the current state of https://github.com/python/cpython/pull/45/ ? * @bitdancer made some suggestions. I accepted some, and replied to others where I think we should keep looking for common ground. I'd like t

[issue30484] Garbage Collector can cause Segfault whilst iterating dictionary items

2017-05-26 Thread Jim Wright
New submission from Jim Wright: We discovered this issue whilst using h5py (HDF5 python library) under python 3.5.2 on Ubuntu 16.04.2 x86_64. The construct used is very dubious, and I will separately be raising an issue with the h5py team. However I thought you might like to know there is a

[issue30484] Garbage Collector can cause Segfault whilst iterating dictionary items

2017-05-30 Thread Jim Wright
Jim Wright added the comment: Hi Jelle, I think you're right about master; it looks like this very recent change: https://github.com/python/cpython/pull/1657 could have fixed the issue, but I didn't find it whilst doing my original investigation of the issue o

[issue25910] Fixing links in documentation

2017-06-03 Thread Jim Fulton
Jim Fulton added the comment: Zope Corporation no longer exists. Any references to it should be in the past tense and without a link. (The http://www.zope.org is for the Zope Foundation, which is a different thing.) -- ___ Python tracker <h

[issue25910] Fixing links in documentation

2017-06-05 Thread Jim Fulton
Jim Fulton added the comment: +1 -- ___ Python tracker <http://bugs.python.org/issue25910> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue30593] sqlite3 executescript does not respect isolation_level?

2017-06-09 Thread Jim Jewett
Jim Jewett added the comment: Do you have a test case that could be used to verify a patch? (Or even a full patch?) -- nosy: +Jim.Jewett stage: -> needs patch type: -> behavior ___ Python tracker <http://bugs.python.org/i

[issue30594] Refcounting mistake in _ssl.c

2017-06-09 Thread Jim Jewett
Jim Jewett added the comment: Serhiy -- do your last two messages mean that this is now resolved? -- nosy: +Jim.Jewett ___ Python tracker <http://bugs.python.org/issue30

[issue30596] Add close() to multiprocessing.Process

2017-06-11 Thread Jim Jewett
Jim Jewett added the comment: Then why not just call join as part of the default close method? -- nosy: +Jim.Jewett ___ Python tracker <http://bugs.python.org/issue30

[issue30596] Add close() to multiprocessing.Process

2017-06-12 Thread Jim Jewett
Jim Jewett added the comment: Could join be called in a background thread, or even asynchronously? That seems like mixing paradigms, but ... On Jun 12, 2017 3:15 AM, "Antoine Pitrou" wrote: > > Antoine Pitrou added the comment: > > That's a good question. close

[issue22107] tempfile module misinterprets access denied error on Windows

2019-03-12 Thread Jim Maloy
Jim Maloy added the comment: This issue persists as of today (March 2019), in Python 3.7.2 (64 bit) running on Windows 10. I gather from the comments that fixing it is no trivial matter, although I don't fully understand why. The hang of "several seconds" that was original

[issue32611] Tkinter taskbar icon (Windows)

2018-01-21 Thread Minion Jim
New submission from Minion Jim : When using Python version 3.6.4, Tkinter shows a blank icon on the taskbar. This means any Tkinter window including IDLE and a blank one. Unfortunately, I don't have a screenshot to show this as I reinstalled version 3.6.3 which works perf

[issue32611] Tkinter taskbar icon (Windows)

2018-01-27 Thread Minion Jim
Minion Jim added the comment: Hi, thanks for your email. I hope to get round to sending you a screenshot by the end of today but I am quite busy right now. Many thanks, Elisha Elisha Paine Ranelagh School Confidentiality and Disclaimer: This email and its

[issue32611] Tkinter taskbar icon (Windows)

2018-01-27 Thread Minion Jim
Minion Jim added the comment: Please see the attached gif for a demonstration (I am using Windows 10 Home) -- Added file: https://bugs.python.org/file47413/tkinter glitch.gif ___ Python tracker <https://bugs.python.org/issue32

[issue32611] Tkinter taskbar icon (Windows)

2018-01-28 Thread Minion Jim
Minion Jim added the comment: This isn't just IDLE. On the GIF, I also demonstrate other Tkinter windows which is why have been led to believe it is an underlying Tkinter problem rather than IDLE. -- ___ Python tracker <https://bugs.py

[issue32611] Tkinter taskbar icon (Windows)

2018-01-30 Thread Minion Jim
Minion Jim added the comment: Sorry for posting this as a bug :-( When I reupdated (again) it sorted itself out (for whatever reason). So once again sorry for wasting your time. -- ___ Python tracker <https://bugs.python.org/issue32

[issue31040] mimetypes.add_type should complain when you give it an undotted ext

2017-11-19 Thread Jim Jewett
Jim Jewett added the comment: Ideally, use .startswith('.') Instead if find, but this is a clear UI fix. First pull request fixes doc, second fixes code. OK to apply both. -- nosy: +Jim.Jewett stage: -> commit review ___ Python tr

[issue25910] Fixing links in documentation

2017-12-06 Thread Jim Fulton
Change by Jim Fulton : -- nosy: -j1m ___ Python tracker <https://bugs.python.org/issue25910> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue33649] asyncio docs overhaul

2018-07-02 Thread Jim DeLaHunt
Jim DeLaHunt added the comment: I'm a developer using Python in my application. I just spent the last couple of weeks learning about asyncio with the present documentation. I am very happy to see that work is underway for improved documentation. I would be glad to take on writing tas

[issue34063] binhex REASONABLY_LARGE = 32768 so what is 128000

2018-07-06 Thread Jim Jewett
New submission from Jim Jewett : binhex defines a module-wide constant of REASONABLY_LARGE = 32768 # Minimal amount we pass the rle-coder Later on, in 5 locations it does either ifp.read(128000) or ifp.read_rsrc(128000) It isn't clear why a different constant is used, let alone

[issue34071] repr(task) raises AssertionError for coros which loop.create_task accepts; complications ensue

2018-07-08 Thread Jim DeLaHunt
New submission from Jim DeLaHunt : In Python 3.6.5, Task.__repr__() with raise an AssertionError for certain, arguably incorrect, coroutines which the instantiation of Task() accepts. repr(task) thus fails with an AssertionError, instead of returning a string which describes the task object

[issue34071] repr(task) raises AssertionError for coros which loop.create_task accepts; complications ensue

2018-07-08 Thread Jim DeLaHunt
Jim DeLaHunt added the comment: This is what I observe when I run my original program with Python 3.7.0. Notice that the Task object instantiation fails with a clear error message: % python -c 'import sys; print(sys.version)' 3.7.0 (default, Jun 28 2018, 06:01:52) [Clang 8.

[issue34176] Asyncio StreamReader fails to close Transport

2018-07-20 Thread Jim DeLaHunt
New submission from Jim DeLaHunt : Asyncio's StreamReaderProtocol[1] often returns True from Protocol.eof_received(). This tells the Transport that "closing the transport is up to the protocol" [2]. However, StreamReaderProtocol does not call Transport.close().

[issue33129] Add kwarg-only option to dataclass

2018-07-26 Thread Jimbo Jim
Jimbo Jim added the comment: first post in bugs.python.org... are people normally scary around here? Another usecase of keyword-only arguments is that I can mix default and non-default fields in any order. This could be achieved by either marking all fields as read-only, or by implicitly

[issue15100] Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile

2018-08-13 Thread Jim Jewett
Jim Jewett added the comment: (Note: I am talking only about the disclosure issue; file corruption would ideally be fixed as far back as possible, though I would be somewhat sympathetic to a "nah, that ain't security, too late" argument.) My current UI shows this as re

[issue17180] shutil copy* unsafe on POSIX - they preserve setuid/setgit bits

2018-08-13 Thread Jim Jewett
Jim Jewett added the comment: My current UI shows this as relevant *only* to 3.4 and 3.5. If it really has been fixed in 3.6, and the fix can't be backported, I think the risk of breaking backup programs is enough to argue for doing nothing more than a doc change. Anyone still usin

[issue18341] enhancements zlib.compress/decompress to accept Py_buffer

2013-07-01 Thread Jim Carroll
New submission from Jim Carroll: We were looking to squeak maximum performance out of zlib.compress. We noticed in py3k, zlib.compress already accepts Py_buffer’s, but in 2.x, compress required strings. We’ve modified the compress (and decompress for orthogonal completeness), see the

[issue10042] functools.total_ordering fails to handle NotImplemented correctly

2013-07-08 Thread Jim Jewett
Jim Jewett added the comment: On Mon, Jul 8, 2013 at 3:30 AM, Nick Coghlan wrote: > The key difference between them relates to the following different approaches > to handling unknown types in __eq__: > @functools.total_ordering > class TotallyOrderedEqualsReturnsFalse: ... >

[issue10042] functools.total_ordering fails to handle NotImplemented correctly

2013-07-10 Thread Jim Jewett
Jim Jewett added the comment: > Since this is such an incredibly niche edge case > (the ordered comparison has to return NotImplemented > while __eq__ returns True), *and* the types are explicitly supposed to ordered, based on what is being tested > I remaining consistent with

[issue12029] Catching virtual subclasses in except clauses

2012-05-23 Thread Jim Jewett
Jim Jewett added the comment: When does the performance hit occur? If it is only when an exception has been raised, and its own class is not listed by the except clause, then I personally wouldn't worry about it; tracing the MRO *could* get arbitrarily long already; it just doesn

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-05-25 Thread Jim Jewett
Jim Jewett added the comment: Chris Lambacher On Wed, Apr 25, 2012 at 10:50 AM, Martin v. Löwis added the comment: > lambacck: I'm -1, but I'm willing to yield ... > regular users won't have to deal with negative > consequences that enabling this by default may have.

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-05-25 Thread Jim Jewett
Jim Jewett added the comment: On Thu, May 24, 2012 at 8:11 PM, Brian Curtin added the comment: > does anyone think something like this dialog http://i.imgur.com/18zPD.png be > helpful? yes. > After choosing the directory to install to and before choosing > the features, i

[issue14684] zlib set dictionary support inflateSetDictionary

2012-06-21 Thread Jim Jewett
Jim Jewett added the comment: Just saw this on the checkins list; where are the other options documented? """ PyDoc_STRVAR(compressobj__doc__, -"compressobj([level]) -- Return a compressor object.\n" +"compressobj([level[, method[, wbits[, memlevel[, strategy[

[issue15100] Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile

2014-03-18 Thread Jim Jewett
Jim Jewett added the comment: Is this really only 3.4? Since it is security-related, it seems like it should be at least considered for older versions as well. -- nosy: +Jim.Jewett ___ Python tracker <http://bugs.python.org/issue15

[issue16043] xmlrpc: gzip_decode has unlimited read()

2014-03-18 Thread Jim Jewett
Jim Jewett added the comment: I'm putting it back to release blocker, because 3.3 should decide whether to fix it/call it security/remove itself from the list. The patch contains several small changes. I like the spelling fix (gsip -> gzip) in a test method, but otherwise, I pr

[issue1599254] mailbox: other programs' messages can vanish without trace

2014-03-18 Thread Jim Jewett
Jim Jewett added the comment: What is the status here? As best I can tell from a skim, (a) It should be broken into at least three separate issues. (Though maybe some can just be closed instead of separated?) (b) None of them are security holes, so we missed 2.5 and 2.6, and should now

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-03-18 Thread Jim Jewett
Jim Jewett added the comment: I am changing this from "High" to "Release blocker", because I think 3.3 should make an explicit decision about whether to remove itself from the Affected Versions list. 3.4 probably should too, since it is now in bug-fix mode. Then this

[issue1508475] transparent gzip compression in urllib

2014-03-18 Thread Jim Jewett
Jim Jewett added the comment: This is an enhancement, so I am changing the affected version from 3.3 to 3.5. It is python-only, which works well with the cheeseshop. That said, the patch is truly short; if that is really sufficient, it could almost go into the documentation as a recipe

[issue11352] Update cgi module doc

2014-03-18 Thread Jim Jewett
Jim Jewett added the comment: What is the status of this? Have any of the changes been applied? Are any of the other patches still appropriate? Is this now dependent on any other issues/any non-doc updates? -- nosy: +Jim.Jewett ___ Python tracker

<    1   2   3   4   5   6   7   8   >