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

2012-03-06 Thread Jim Jewett
Jim Jewett added the comment: On Tue, Mar 6, 2012 at 1:05 PM, Guido van Rossum Jim Jewett: >>...  If they're just adding new keys, or even deleting other >> (==> NOT the one being looked up) keys, why should that >> keep them from finding the existing, unchang

[issue7652] Merge C version of decimal into py3k.

2012-03-06 Thread Jim Jewett
Jim Jewett added the comment: On Tue, Mar 6, 2012 at 3:07 PM, Stefan Krah > Jim Jewett wrote: >> (1)  I think this module would benefit greatly from a map explaining >>      what each file does, and perhaps from some reorganization. > Just MAP.txt in the top level direc

[issue13897] Move fields relevant to sys.exc_info out of frame into generator/threadstate

2012-03-06 Thread Jim Jewett
Jim Jewett added the comment: I think the latest patch is indeed cleaner. -- nosy: +Jim.Jewett ___ Python tracker <http://bugs.python.org/issue13897> ___ ___

[issue7652] Merge C version of decimal into py3k.

2012-03-07 Thread Jim Jewett
Jim Jewett added the comment: On Wed, Mar 7, 2012 at 5:28 AM, Stefan Krah added the comment: > OK, as a basis for discussion I've added: > http://hg.python.org/features/cdecimal/file/8b75c2825508/Modules/_decimal/FILEMAP.txt That is indeed very helpful. So helpful that now I unde

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

2012-03-08 Thread Jim Jewett
Jim Jewett added the comment: On Thu, Mar 8, 2012 at 7:43 PM, STINNER Victor wrote: > Python < 3.3 retries the lookup an unlimited number of times which > lead to a crash, that's the issue fixed by my change. How does it lead to a crash? I think it just leads to an infinite

[issue13903] New shared-keys dictionary implementation

2012-03-09 Thread Jim Jewett
Jim Jewett added the comment: >> As of Feb 28, 2012, the PEP mentions an additional >> optimization of storing the values in an array indexed >> by (effectively) key insertion order, rather than key >> position. ("Alternative Implementation") >> It st

[issue13903] New shared-keys dictionary implementation

2012-03-09 Thread Jim Jewett
Jim Jewett added the comment: On Fri, Mar 9, 2012 at 12:13 PM, Jim Jewett > So to get beneath 2/3 without lots of reallocation > probably requires knowing when the key set is likely > to be complete, and that is indeed more complex than > the current changes.  (That said, you ha

[issue14239] Uninitialised variable in _PyObject_GenericSetAttrWithDict

2012-03-09 Thread Jim Jewett
Jim Jewett added the comment: So the risk is that descr may be given garbage memory that just happens to look like an object with 1 reference, so that it really does a decref and tries to re-deallocate whatever was there before. I would rather see the change at the top of the function; just

[issue14169] compiler.compile fails on "if" statement in attached file

2012-03-09 Thread Jim Jewett
Jim Jewett added the comment: If I understood correctly, that *is* the minimal case, which suggests some sort of size problem. That said, I could not duplicate on 2.6.2, nor with py_compile.compiler in 3.2.2; I am not currently sufficiently motivated to install another version just for

[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

[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. """

[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

[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()."

[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

[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

[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

[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

[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

[issue20974] email module docs say not compatible with current python version

2014-03-18 Thread Jim Jewett
New submission from Jim Jewett: http://docs.python.org/3.4/library/email.html#package-history The table ends with email version 5.1, distributed with Python 3.2, and compatible with Python 3.0 to 3.2. Since Python 3.3 and 3.4 also distribute 5.1.0, I'm betting that the actual compatib

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

2014-03-18 Thread Jim Jewett
Jim Jewett added the comment: OK, if I understand *that* correctly, (1) The locking mechanism doesn't really work, and that is too complicated to fix in this issue. A new issue would be fine. (2) The locking failure messes up the Table Of Contents, but that is too comprehensive a c

[issue11352] Update cgi module doc

2014-03-20 Thread Jim Jewett
Jim Jewett added the comment: I have now also looked at cgi-doc.patch, and it is not strictly documentation changes. I have no informed opinion on the the additional changes, but I don't think they should go in as "doc change". -- ___

[issue19385] dbm.dumb should be consistent when the database is closed

2014-04-23 Thread Jim Jewett
Jim Jewett added the comment: _check_closed sounds like you expect it to be closed, and might even assert that it is closed, except that you want the check run even in release mode and/or it might fail. Since being closed is actually the unexpectedly broken state, I would prefer that you

[issue19385] dbm.dumb should be consistent when the database is closed

2014-04-23 Thread Jim Jewett
Jim Jewett added the comment: I think the requested timing regression was for the non-broken case. When the database has NOT been closed, and keys() still works, will it be way slower than before? Note that I am not asking you to do that test (though the eventual committer might); the

[issue19714] Add tests for importlib.machinery.WindowsRegistryFinder

2014-04-23 Thread Jim Jewett
Jim Jewett added the comment: Pinging Martin ... earlier comments seem to have been completed. -- nosy: +Jim.Jewett ___ Python tracker <http://bugs.python.org/issue19

[issue16104] Compileall script: add option to use multiple cores

2014-04-25 Thread Jim Jewett
Jim Jewett added the comment: ProcessPoolExecutor already defaults to using cpu_count if max_workers is None. Consistency with that might be useful too. (and a default of 1 to mean nothing in parallel is sensible...) -- nosy: +Jim.Jewett

[issue21362] concurrent.futures does not validate that max_workers is proper

2014-04-28 Thread Jim Jewett
Jim Jewett added the comment: I confirm the bug. The patch looks good. -- nosy: +Jim.Jewett ___ Python tracker <http://bugs.python.org/issue21362> ___ ___ Pytho

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

2014-04-28 Thread Jim Jewett
Jim Jewett added the comment: pinging David Watson: What is the status? If I understand correctly, (and I may well not), you have already opened other issues for parts of this, and (only) the final patch is ready for patch (and hopefully) commit review. Is this correct

[issue20974] email module docs say not compatible with current python version

2014-04-28 Thread Jim Jewett
Jim Jewett added the comment: I don't know for sure if the compatibility claims are correct, but the patch looks good. -- stage: -> commit review ___ Python tracker <http://bugs.python.org

[issue16104] Compileall script: add option to use multiple cores

2014-04-28 Thread Jim Jewett
Jim Jewett added the comment: Trying to put bounds on the disagreements. Does anyone disagree with any of the following: (1) compileall currently runs single-threaded in a single process. (2) This enhancement intends to allow parallelization by process. (3) Users MAY need to express

[issue6839] zipfile can't extract file

2014-04-30 Thread Jim Jewett
Jim Jewett added the comment: I'm leaving it as "needs patch" because it isn't clear exactly what a committer should do. I think the current intent is to make the changes listed in zipfile_???_filename_mismatch_v2.patch (which are not listed as reviewable -- but th

[issue6839] zipfile can't extract file

2014-04-30 Thread Jim Jewett
Jim Jewett added the comment: Presumably the stacklevel applies to all versions; verifying that it warns about the right code location is important enough to require a test case. -- ___ Python tracker <http://bugs.python.org/issue6

[issue6839] zipfile can't extract file

2014-04-30 Thread Jim Jewett
Jim Jewett added the comment: On Wed, Apr 30, 2014 at 3:05 PM, Adam Polkosnik wrote: > test.zip up there is the test case for this change. Is there any other test > case needed? ah; I see the confusion. test.zip is test *data*. When I asked for a test *case*, I meant something that e

[issue6839] zipfile can't extract file

2014-04-30 Thread Jim Jewett
Jim Jewett added the comment: On Wed, Apr 30, 2014 at 3:11 PM, Adam Polkosnik > I've got some test cases where the zlib_forward_slash.patch doesn't cut it. My recommendation (and I could be convinced otherwise) would be to replace if fname_str != zinfo.orig_filename:

[issue6839] zipfile can't extract file

2014-05-02 Thread Jim Jewett
Jim Jewett added the comment: On Fri, May 2, 2014 at 1:14 AM, Adam Polkosnik > The problems documented here are related to two cases (both apparently > arriving from world of windows): Good! I had thought you had even more! > 1. two relative paths with inverted slash in one of t

[issue19385] dbm.dumb should be consistent when the database is closed

2014-05-13 Thread Jim Jewett
Jim Jewett added the comment: Did you try 3.5 without the patch, in case the issue is not with his code? On May 13, 2014 7:23 AM, "Serhiy Storchaka" wrote: > > Serhiy Storchaka added the comment: > > Claudiu, your benchmark is broken, it measure a no-op.

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

2014-06-02 Thread Jim Jewett
Jim Jewett added the comment: I'm still not seeing why these changes are sufficiently desirable to justify the code churn. Nor am I seeing test or doc changes that would explain the advantages of the new way, and prevent future regressions. I agree that the changes would make the signa

[issue21667] Clarify status of O(1) indexing semantics of str objects

2014-06-10 Thread Jim Jewett
Jim Jewett added the comment: I think the new wording is an improvement, but keeping the changes minimal left it in an awkward in-between state. Proposal: A string is a sequence of Unicode code points. Strings can include any sequence of code points, including some which are semantically

[issue21667] Clarify status of O(1) indexing semantics of str objects

2014-06-10 Thread Jim Jewett
Jim Jewett added the comment: And even my rewrite showed path dependency; a slight further improvement is to re-order encoding ahead of bytes. I also added a paragraph that I hope answers the speed issue. Proposal: A string is a sequence of Unicode code points. Strings can include any

[issue12561] Compiler workaround for wide string constants in Modules/getpath.c (patch)

2014-06-13 Thread Jim Jewett
Jim Jewett added the comment: Following up on Mark Lawrence's comment: http://bugs.python.org/issue12572 is collecting the patches required to compile under HP/UX, and the patch there supersedes those on this issue. Closing. -- nosy: +Jim.Jewett resolution: -> duplicat

[issue21719] Returning Windows file attribute information via os.stat()

2014-06-13 Thread Jim Jewett
Jim Jewett added the comment: Added version 3.5; is 3.4 somehow still correct? Set stage to patch review as there are still comments to deal with, but it looks pretty close to commit review. -- nosy: +Jim.Jewett stage: -> patch review versions: +Python

[issue21749] pkgutil ImpLoader does not support frozen modules

2014-06-13 Thread Jim Jewett
Jim Jewett added the comment: As best I can tell, this renames the original get_code to _get_code, and then delegates to it after handling the imp.PY_FROZEN case ... why not just add imp.PY_FROZEN to the if/elif chain in the original method? I also note that the call to self._fix_name doesn&#

[issue21748] glob.glob does not sort its results

2014-06-13 Thread Jim Jewett
Jim Jewett added the comment: I agree with R. David Murray, but it may be worth adding a clarification sentence (or an example with sorted) to the documentation. Changing status to Pending, in hopes that any doc changes would be quick. -- nosy: +Jim.Jewett resolution: -> not a

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-06-13 Thread Jim Jewett
Jim Jewett added the comment: (1) The patch is just to docs, not code, so I'm not entirely sure that I understood it properly. (2) The new semantics are a huge mess to explain. This might be because the old semantics were bad, but the result is the same. I think it would be bette

[issue21753] subprocess shell=True on Windows character escaping

2014-06-13 Thread Jim Jewett
New submission from Jim Jewett: Inspired by https://mail.python.org/pipermail/python-dev/2014-June/135029.html and the following thread. """ Normal Windows behavior: >hg status --rev ".^1" M mercurial\commands.py ? pysptest.py >hg status --rev .^

<    1   2   3   >