[issue10533] defaultdict constructor with a concrete value

2010-11-25 Thread Steve Holden
Steve Holden st...@holdenweb.com added the comment: On 11/25/2010 11:48 AM, Eric Smith wrote: Eric Smith e...@trueblade.com added the comment: How about: from collections import defaultdict class defaultdict_value(defaultdict): def __init__(self, value): defaultdict

[issue10533] defaultdict constructor with a concrete value

2010-11-25 Thread Steve Holden
Steve Holden st...@holdenweb.com added the comment: On 11/25/2010 1:44 PM, Ɓukasz Langa wrote: To sum up: if you don't find the idea of adding `fallbackdict' (possibly with an different *short* name) worth it, then I'm +1 on correcting the docs in terms of __missing__ and leaving

[issue9083] At least some Tools utilities are still Python 2

2010-06-25 Thread Steve Holden
New submission from Steve Holden st...@holdenweb.com: C:\Users\sholden\python31\python \python31\Tools\webchecker\wcgui.py Traceback (most recent call last): File \python31\Tools\webchecker\wcgui.py, line 63, in module from Tkinter import * ImportError: No module named Tkinter This makes

[issue8943] Bug in InteractiveConsole

2010-06-26 Thread Steve Holden
Changes by Steve Holden st...@holdenweb.com: -- nosy: +holdenweb ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8943 ___ ___ Python-bugs-list

[issue9124] Mailbox module demonstrates infeasibly slow performance

2010-06-30 Thread Steve Holden
New submission from Steve Holden st...@holdenweb.com: The attached program completes in less than half a second under Python 2.5. Under Python 3 it takes almost three minutes on the same system. The issue appears to be heavy use of decoding, at least in a Windows system, during creation

[issue9124] Mailbox module demonstrates infeasibly slow performance

2010-06-30 Thread Steve Holden
Changes by Steve Holden st...@holdenweb.com: Added file: http://bugs.python.org/file17810/test.mailbox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9124

[issue9124] Mailbox module demonstrates infeasibly slow performance

2010-06-30 Thread Steve Holden
Changes by Steve Holden st...@holdenweb.com: Added file: http://bugs.python.org/file17811/test2.5.out ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9124

[issue9124] Mailbox module demonstrates infeasibly slow performance

2010-06-30 Thread Steve Holden
Changes by Steve Holden st...@holdenweb.com: Added file: http://bugs.python.org/file17812/test3.1.out ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9124

[issue9124] Mailbox module demonstrates infeasibly slow performance

2010-06-30 Thread Steve Holden
Steve Holden st...@holdenweb.com added the comment: Thread at http://aspn.activestate.com/ASPN/Mail/Message/python-dev/3873005 refers to this issue. Posted files are already attached herewith. -- ___ Python tracker rep...@bugs.python.org http

[issue8118] PYTHON_API_VERSION needs to be bumped?

2010-07-23 Thread Steve Holden
Steve Holden st...@holdenweb.com added the comment: With the 2.7 release now completed should we close this issue? There's nothing to be done about the 2.6 issue. -- nosy: +holdenweb ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue7839] Popen should raise ValueError if pass a string when shell=False or a list when shell=True

2010-07-23 Thread Steve Holden
Steve Holden st...@holdenweb.com added the comment: The test program Larry provided does not appear to function as intended on Windows, and runs without either producing error messages or requiring interactive input. Here's a typical output, in this case from Python 3.1 on Vista: C:\Users

[issue1116520] Prefix search is filesystem-centric

2010-08-09 Thread Steve Holden
Steve Holden st...@holdenweb.com added the comment: Personally I think it's just as relevant as it always was, particularly with the introduction of importlib, but Brett will have a more informed opinion. I won't be surprised if this issue is closed as wontfix

[issue10000] mark more tests as CPython specific

2010-09-30 Thread Steve Holden
Steve Holden st...@holdenweb.com added the comment: Of course, but better some record than none due to the overwhelming nature of the task. At least someone else can carry the torch from here. -- nosy: +holdenweb ___ Python tracker rep

[issue2801] Py30a5 float.is_integer() raises ValueError

2011-11-04 Thread Steve Holden
Steve Holden st...@holdenweb.com added the comment: ValueError: (11, 'Resource temporarily unavailable') looks to me like a Cygwin error relating to Windows' DLLs and the difficulty of mapping them to unique memory locations. I very much doubt it's a real issue with Python, so closing

[issue12580] Documentation error in Decimal module

2011-07-17 Thread Steve Holden
New submission from Steve Holden st...@holdenweb.com: We see in the Quick-Start Tutorial (py3k section 8.4.1) the following example: Decimal(3.14) Decimal('3.140124344978758017532527446746826171875') In actua; fact one would expect an exception from that code, which should

[issue12580] Documentation error in Decimal module

2011-07-17 Thread Steve Holden
Changes by Steve Holden st...@holdenweb.com: -- components: +Documentation ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12580 ___ ___ Python-bugs

[issue12580] Documentation error in Decimal module

2011-07-17 Thread Steve Holden
Steve Holden st...@holdenweb.com added the comment: Sorry about that. I was using 3.1, as you will have gathered. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12580

[issue13208] Problems with urllib on windows

2012-05-24 Thread Steve Holden
Steve Holden st...@holdenweb.com added the comment: I have just tested this against the 2.7.1 release on Windows 7 and it runs fine. I suspect there may have been some transient error with the reporter's system or network, but if this still fails for him then reopening will be appropriate

[issue13208] Problems with urllib on windows

2012-05-24 Thread Steve Holden
Steve Holden st...@holdenweb.com added the comment: Oops, sorry, meant to close this issue. Hope that's OK. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13208

[issue20809] isabspath receiving path value on None in ditdutils.dist.py

2014-02-28 Thread Steve Holden
Steve Holden added the comment: I hope the title change is helpful. It's not clear from the report what module is being installed, or even whether that is a relevant factor. -- nosy: +holdenweb title: isabspath fails if path is None - isabspath receiving path value on None

[issue20809] isabspath receiving path value of None in ditdutils.dist.py

2014-02-28 Thread Steve Holden
Steve Holden added the comment: Typo, sorry -- title: isabspath receiving path value on None in ditdutils.dist.py - isabspath receiving path value of None in ditdutils.dist.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue20809] isabspath receiving path value of None in distutils.dist.py

2014-02-28 Thread Steve Holden
Steve Holden added the comment: Further typo, sorry again. -- title: isabspath receiving path value of None in ditdutils.dist.py - isabspath receiving path value of None in distutils.dist.py ___ Python tracker rep...@bugs.python.org http

[issue20809] isabspath receiving path value of None in distutils.dist.py

2014-02-28 Thread Steve Holden
Steve Holden added the comment: The submitted patch does not approach the issue, since the real question is WHY is the function being passed a None argument in the first place. Without extensive testing there would be no guarantees that this change would not result in breakage elsewhere

[issue21074] Too aggressive constant folding

2014-03-28 Thread Steve Holden
Steve Holden added the comment: Is a fix really required? Are we really supposed to protect programmers from their own folly by second-guessing when constant folding might be required and when it might not? How is hte interpreter supposed to know the function isn't called? The simple

[issue19871] json module won't parse a float that starts with a decimal point

2014-03-28 Thread Steve Holden
Steve Holden added the comment: How about: A simple JSON decoder that converts between JSON string representations and Python data structures? -- nosy: +holdenweb ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19871

[issue20098] email policy needs a mangle_from setting

2014-03-28 Thread Steve Holden
Steve Holden added the comment: This is an easy issue? -- nosy: +holdenweb ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20098 ___ ___ Python-bugs

[issue21904] Multiple closures accessing the same non-local variable always see the same value

2014-07-02 Thread Steve Holden
New submission from Steve Holden: When repeated use of a nonlocal variable is made (e.g. to define multiple functions in a loop) ideally the closure should reflect the value of the local variable at the time of use. This should at least be explicitly documented if the behavior is considered

[issue21904] Multiple closures accessing the same non-local variable always see the same value

2014-07-02 Thread Steve Holden
Steve Holden added the comment: Indeed the issue is that the pointer is to the local variable rather than its value at time of closure defnition. Not being familiar with the way cells are used, I am unsure as to how the closure keeps the whole namespace alive (that would seem to require

[issue21904] Multiple closures accessing the same non-local variable always see the same value

2014-07-02 Thread Steve Holden
Steve Holden added the comment: I believe (though my belief is untrammeled by anything as useful as knowledge of the code: my diagnostic skills are largely psychic) that the cell essentially takes over the reference from the local namespace of the about-to-terminate lexically surrounding

[issue7423] nested generator expression produces strange results

2014-07-02 Thread Steve Holden
Steve Holden added the comment: In my experience the devs are pretty well in touch with the user base (though they don't always acknowledge its input). If you leave a programming language at the first sign of wart I fear yo may eventually run out of languages. -- nosy: +holdenweb

[issue26449] Tutorial on Python Scopes and Namespaces uses confusing 'read-only' terminology

2016-02-29 Thread Steve Holden
Steve Holden added the comment: I don't agree there is any place for the term "read-only" in this document. A reader who doesn't understand it or seeks clarification is likely to end up at a page like https://en.wikipedia.org/wiki/Read-only. I submit that nowhere except the doc

[issue27680] Reduce Github pull request rate

2016-08-04 Thread Steve Holden
Steve Holden added the comment: I don't seem to be able to activate the PR template, but if you are happy it works then I guess this would be a belt-and-braces change. If nobody merges it and it gets closed that's fine, but if it obviates just a few pull requests it will save both the core

[issue27680] Reduce Github pull request rate

2016-08-04 Thread Steve Holden
New submission from Steve Holden: I have seen a relatively large number of pull requests via the Github mirror repository, because would-be contributors presumably just look on Github and, having found Python there, assume this is the place for contributions. The standard README file gives

[issue27680] Reduce Github pull request rate

2016-08-04 Thread Steve Holden
Steve Holden added the comment: Hmm, not sure I quite understand how to interact with this tracker. So here's an updated patch that I thought I had already submitted ... -- Added file: http://bugs.python.org/file44006/README2.patch ___ Python

[issue27680] Reduce Github pull request rate

2016-08-04 Thread Steve Holden
Steve Holden added the comment: Hmm. Tried making a PR to a forked copy and didn't see it. Probably just incompetence on my part. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue15443] datetime module has no support for nanoseconds

2016-07-20 Thread Steve Holden
Steve Holden added the comment: BTW, I presume it's a bug in the issue tracker that my view of this message ends after a few lines of msg166386? Makes it rather difficult to track the issue! -- ___ Python tracker <rep...@bugs.python.org>

[issue15443] datetime module has no support for nanoseconds

2016-07-12 Thread Steve Holden
Steve Holden added the comment: Just wanted to add a couple of comments here in case there's any interest. In our missions to make the world's market data available we deal with financial exchanges, many of whom are already recording event data at nanosecond resolution. Further, I believe

[issue15443] datetime module has no support for nanoseconds

2016-07-12 Thread Steve Holden
Steve Holden added the comment: Just wanted to add a couple of comments here in case there's any interest. In our missions to make the world's market data available we deal with financial exchanges, many of whom are already recording event data at nanosecond resolution. Further, I believe

[issue27842] Order CSV header fields

2016-08-23 Thread Steve Holden
Steve Holden added the comment: Sorry, deleted the originally submitted (incorrect) patch file. -- Added file: http://bugs.python.org/file44203/csv.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27842] Order CSV header fields

2016-08-23 Thread Steve Holden
New submission from Steve Holden: It's sometimes annoying that a csv.DictReader doesn't retain the field ordering given in the first line of the file. Sometimes it matters. This patch converts the reader so that it returns an OrderedDict rather than a plain dict, thereby retaining

[issue27842] Order CSV header fields

2016-08-23 Thread Steve Holden
Changes by Steve Holden <st...@holdenweb.com>: Removed file: http://bugs.python.org/file44202/csv.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue27842] Order CSV header fields

2016-08-24 Thread Steve Holden
Steve Holden added the comment: Testing could be interesting. I'm thinking of generating five random string keys with a couple of rows of data, creating csv StringIOs (using pure Python) for all 120 combinations and verifying that they read back in the order they were written. We should also

[issue27842] Order CSV header fields

2016-08-30 Thread Steve Holden
Steve Holden added the comment: A pleasure. Pretty heavily committed at present, but all Python related so maybe there'll be more small positive improvements. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue28205] Add optional suffix to str.join

2016-09-19 Thread Steve Holden
Steve Holden added the comment: If you are going to add such a keyword argument, wouldn't it make sense to maintain compatibility with print, and use end=terminator? -- nosy: +holdenweb ___ Python tracker <rep...@bugs.python.org>

[issue15443] datetime module has no support for nanoseconds

2016-09-16 Thread Steve Holden
Steve Holden added the comment: I agree on reflection that a single nanoseconds integral value makes more sense. This then requires refactoring of the existing code so that existing tests continue to pass using a microsecond property. Code using ONLY nanoseconds is a disjoint case, for which

[issue27842] Order CSV header fields

2016-08-26 Thread Steve Holden
Steve Holden added the comment: OK, here's what I think should be close to the final patch. I've updated the documentation, rebuilt it and verified it reads OK, and confirmed that the new code passes all tests except those skipped for platform reasons (I think they expect a Windows

[issue27842] Order CSV header fields

2016-08-26 Thread Steve Holden
Steve Holden added the comment: Is there another way? :) Sent from my iPhone > On 26 Aug 2016, at 12:16, Raymond Hettinger <rep...@bugs.python.org> wrote: > > > Raymond Hettinger added the comment: > > Consider using itertools.permutations() to generate the 120 ca

[issue1116520] Prefix search is filesystem-centric

2016-12-25 Thread Steve Holden
Steve Holden added the comment: Don't forget that the built-in modules may need to be available before the zipimporter is. A long time ago (when sys.metapath was introduced) I experimented with imports from non-filesystem sources and that hit me until I realised what was going on. S Steve

[issue26732] multiprocessing sentinel resource leak

2017-07-28 Thread Steve Holden
Steve Holden added the comment: IIRC sockets can be marked as inheritable or not. It seems to me it would be a useful enhancement to allow the same determination for the pipes. -- nosy: +holdenweb ___ Python tracker <rep...@bugs.python.org>

[issue15443] datetime module has no support for nanoseconds

2018-07-05 Thread Steve Holden
Change by Steve Holden : -- nosy: -holdenweb ___ Python tracker <https://bugs.python.org/issue15443> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37490] poor documentation for .startswith, .endswith

2019-07-03 Thread Steve Holden
Steve Holden added the comment: "Is the same as" is a little misleading - "gives the same result as" would be better, since there is little doubt actually slicing the subject strings would be massively less efficient in looping contexts. The re module offers the sta

[issue34311] locale.format() and locale.format_string() cast Decimals to float

2020-01-11 Thread Steve Holden
Steve Holden added the comment: Verified. Methododology: 1. Copied test_localise.py from the PR into a master checkout. 2. Added a null locale.localize. 3. Verified that all new tests failed. .. code-block:: Ran 64 tests in 0.023s FAILED (errors=4, skipped=4) (base) blockhead:cpython

[issue8943] Bug in InteractiveConsole /pickle

2020-10-28 Thread Steve Holden
Change by Steve Holden : -- nosy: -holdenweb ___ Python tracker <https://bugs.python.org/issue8943> ___ ___ Python-bugs-list mailing list Unsubscribe: