[issue20727] Improved roundrobin itertools recipe

2014-02-24 Thread Larry Hastings
Larry Hastings added the comment: The patch attached to this issue has changes to Lib/test/test_itertools.py. -- ___ Python tracker <http://bugs.python.org/issue20

[issue16074] Bad error message in os.rename, os.link, and os.symlink

2014-02-24 Thread Larry Hastings
Larry Hastings added the comment: It's fine that we're not fixing this in 3.3, but since this did get fixed in 3.4, I propose dropping 3.3 from the version list and changing the resolution to "fixed". *waves magic wand* -- resolution: wont fix -> fixed stage: n

[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-02-26 Thread Larry Hastings
Changes by Larry Hastings : -- nosy: -larry ___ Python tracker <http://bugs.python.org/issue20778> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-02-26 Thread Larry Hastings
Larry Hastings added the comment: > Barring c++, are we using any C compilers that don't support inlines? CPython advertises itself as C89 compliant, and C89 doesn't have inlines. You need to go to C99 to get inlines. And before you ask--yes, we support a compiler that is not

[issue20784] 'collections.abc' is no longer defined when collections is imported

2014-02-26 Thread Larry Hastings
Larry Hastings added the comment: I'm pretty sure that if you import "x", there are zero guarantees that "x.y" will work. The offical line is that you must explicitly import all the deepest submodules you use. So I don&#

[issue20784] 'collections.abc' is no longer defined when collections is imported

2014-02-26 Thread Larry Hastings
Larry Hastings added the comment: > So, it's a very common idiom. "Common" doesn't imply "correct" or "supported". There are plenty of other packages/modules who don't import their subpackages/submodules during initialization. Unless expli

[issue20283] Wrong keyword parameter name in regex pattern methods

2014-03-03 Thread Larry Hastings
Larry Hastings added the comment: Why can't you remove the "= NULL" from the Clinic input for "string"? -- ___ Python tracker <http:

[issue20848] 3.4 cherry-pick: b637064cc696 Improve enum subclass behavior

2014-03-03 Thread Larry Hastings
Larry Hastings added the comment: Why can't you build the docs on your system? "make html" works for me every time--it even downloads the packages it needs. -- ___ Python tracker <http://bugs.pyt

[issue20807] 3.4 cherry pick: 82ec02db7fe6 & ec42ab5e0cb3 Windows installer fixes, pip uninstall failure

2014-03-06 Thread Larry Hastings
Larry Hastings added the comment: ok. -- ___ Python tracker <http://bugs.python.org/issue20807> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19021] AttributeError in Popen.__del__

2014-03-06 Thread Larry Hastings
Larry Hastings added the comment: So you're asking that I cherry pick six revisions here? 6a1711c96fa6 fa160c8145e5 efaf12106d68 7ecee9e0dc58 10ea3125d7b8 488ccbee6ee6 -- ___ Python tracker <http://bugs.python.org/is

[issue20807] 3.4 cherry pick: 82ec02db7fe6 & ec42ab5e0cb3 Windows installer fixes, pip uninstall failure

2014-03-06 Thread Larry Hastings
Changes by Larry Hastings : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue20807> ___ ___ Python-bugs-list

[issue20831] 3.4 cherry-pick: 7b3c40510a08 Windows uninstaller doesn't uninstall completly Python 3.4

2014-03-06 Thread Larry Hastings
Larry Hastings added the comment: ok. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue20831> ___ ___ Pyth

[issue20832] 3.4 cherry-pick: 9459f517d854 Update Windows installer to SQLite from 3.8.1 to 3.8.3.1.

2014-03-06 Thread Larry Hastings
Larry Hastings added the comment: ok. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue20832> ___ ___ Pyth

[issue20829] 3.4 cherry pick: c9861ec8754c Fix signatures for dict.__delitem__ and property.__delete__

2014-03-06 Thread Larry Hastings
Larry Hastings added the comment: ok. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue20829> ___ ___ Pyth

[issue20834] 3.4 cherry-pick: de81e0fe4905 Pydocs module docs server not working on Windows.

2014-03-06 Thread Larry Hastings
Larry Hastings added the comment: ok. I agree it's not critical, but on the other hand it's low-risk. -- ___ Python tracker <http://bugs.python.o

[issue20834] 3.4 cherry-pick: de81e0fe4905 Pydocs module docs server not working on Windows.

2014-03-06 Thread Larry Hastings
Changes by Larry Hastings : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue20834> ___ ___ Python-bugs-list

[issue20808] 3.4 cherry pick: 6a1711c96fa6 (Popen.__del__ traceback)

2014-03-06 Thread Larry Hastings
Larry Hastings added the comment: According to #19021, this actually requires six revisions: 6a1711c96fa6 fa160c8145e5 efaf12106d68 7ecee9e0dc58 10ea3125d7b8 488ccbee6ee6 Is that correct? -- ___ Python tracker <http://bugs.python.org/issue20

[issue20848] 3.4 cherry-pick: b637064cc696 Improve enum subclass behavior

2014-03-06 Thread Larry Hastings
Larry Hastings added the comment: ok. (I thought the change to not-automatically-getting-sphinx was deferred?) -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue20843] 3.4 cherry-pick: a9058b772807 fix tracemalloc doc

2014-03-06 Thread Larry Hastings
Larry Hastings added the comment: ok. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue20843> ___ ___ Pyth

[issue20850] 3.4 cherry pick: ea827c809765 fix pkgutil.find_loader

2014-03-06 Thread Larry Hastings
Larry Hastings added the comment: ok. -- nosy: +larry resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue20850> ___ __

[issue20830] 3.4 cherry-pick: 16f91d87ff39: "pip install " didn't work on Windows

2014-03-06 Thread Larry Hastings
Changes by Larry Hastings : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue20830> ___ ___ Python-bugs-list

[issue20830] 3.4 cherry-pick: 16f91d87ff39: "pip install " didn't work on Windows

2014-03-06 Thread Larry Hastings
Larry Hastings added the comment: ok. And, my cherry-picking automation will automatically sort the revisions by original checkin order. -- ___ Python tracker <http://bugs.python.org/issue20

[issue20818] 3.4 cherry pick: 5fa3f6d82d61 and a8470f88e7b4 - OS X installer use SQLite 3.8.3.1 (instead of 3.8.3)

2014-03-06 Thread Larry Hastings
Larry Hastings added the comment: ok. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue20818> ___ ___ Pyth

[issue20789] [3.4] cherrypick 5dec1604322c: old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-03-06 Thread Larry Hastings
Larry Hastings added the comment: ok. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue20789> ___ ___ Pyth

[issue20808] 3.4 cherry pick: 6a1711c96fa6 (Popen.__del__ traceback)

2014-03-06 Thread Larry Hastings
Larry Hastings added the comment: What do you want me to do? Hold off while you determine the correct set of changes, or proceed with these six? (p.s. rebasing = headache, so having the right set of changes up front would be super-swell

[issue19021] AttributeError in Popen.__del__

2014-03-07 Thread Larry Hastings
Larry Hastings added the comment: Those six revisions have been cherry-picked into 3.4.0. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue20808] 3.4 cherry pick: 6a1711c96fa6 (Popen.__del__ traceback)

2014-03-07 Thread Larry Hastings
Larry Hastings added the comment: ok. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue20808> ___ ___ Pyth

[issue5872] New C API for declaring Python types

2009-10-29 Thread Larry Hastings
Larry Hastings added the comment: Antoine: As the patch matured I would obviously provide documentation and examples and such. The point of submitting the patch in this form was a) so it was alive somewhere besides my hard drive, and b) to get some public review from the core team to ensure I

[issue5872] New C API for declaring Python types

2009-10-29 Thread Larry Hastings
Larry Hastings added the comment: Whoops! I think I'll finish that unfinished sentence. "The patch attempts to mitigate this as much as possible with the backwards-compatibility" header file; it minimizes as much as possible the changes you need to perform to get your code

[issue5561] platform.python_version_tuple returns tuple of ints, should be strings

2009-03-25 Thread Larry Hastings
New submission from Larry Hastings : The documentation for platform.python_version_tuple() says: "Returns the Python version as tuple (major, minor, patchlevel) of strings." In 2.4 and 2.5 it correctly returned a tuple of strings. In 2.6 it returns a tuple of ints. In 2.4 a

[issue1569040] Speed up using + for string concatenation

2009-03-29 Thread Larry Hastings
Larry Hastings added the comment: I'm not saying that killing a two-year-old DOA patch is the wrong move--though I hold out hope that lazy string concatenation in CPython will yet happen. But you shouldn't kill this patch just because you think it has something to do with "st

[issue1569040] Speed up using + for string concatenation

2009-03-31 Thread Larry Hastings
Larry Hastings added the comment: rhettinger: It's a bit unfair to paint the lazy string concatenation patch with the adjective "ropes", then point out ropes have been rejected many times. Lazy string concatenation objects are a form of specialized rope but they don't sh

[issue1569040] Speed up using + for string concatenation

2009-03-31 Thread Larry Hastings
Larry Hastings added the comment: Thanks for pointing that out! I think I found it; the discussion is actually about lazy string slices, and it starts here: http://mail.python.org/pipermail/python-dev/2000-February/002317.html If I were to resubmit lazy string slices (which wouldn't be in

[issue5630] Update CObject API so it is safe and regular

2009-03-31 Thread Larry Hastings
New submission from Larry Hastings : The CObject API has two flaws. First, there is no usable type safety mechanism. You can store a void *object, and a void *description. There is no established schema for the description; it could be an integer cast to a pointer, or it could point to memory

[issue5630] Update CObject API so it is safe and regular

2009-04-01 Thread Larry Hastings
Larry Hastings added the comment: dalcinl: I made the destructor the first argument because APIs where arguments move around irritate me. In the existing CObject API, the destructor is "always" the last argument--which means in practice it is either the second or third argument, de

[issue5630] Update CObject API so it is safe and regular

2009-04-01 Thread Larry Hastings
Larry Hastings added the comment: Sorry, in editing I forgot to finish my sentence. In the middle of the second paragraph, the sentence should read: But 90% of the time all you'll need is PyCObject_FromVoidPtr(). My other editing mistakes will just have to

[issue5630] Update CObject API so it is safe and regular

2009-04-02 Thread Larry Hastings
Larry Hastings added the comment: Having slept on it, I agree that we only need one API to create an object. Since passing in a "context" will be relatively rare, users who need that can use PyCObject_SetContext(). I'll remove PyCObject_FromVoidPtrWithContext() i

[issue5676] Fix "make clean" in py3k/trunk

2009-04-02 Thread Larry Hastings
New submission from Larry Hastings : "make clean" fails in my tree. There's an inscrutable new directory, "@test", which is chmod 400, and therefore "find" isn't allowed to descend into it, so it fails and aborts the clean early. I don't know what

[issue5630] Create alternatieve CObject API that is safe and clean

2009-04-06 Thread Larry Hastings
Larry Hastings added the comment: I discussed this off-list with GvR. He was primarily concerned with fixing the passing-around-a-vtable C API usage of CObject, but he wanted to preserve as much backwards compatibility as possible. In the end, he suggested I create a new API and leave CObject

[issue5708] Tiny code polishing to unicode_repeat

2009-04-06 Thread Larry Hastings
New submission from Larry Hastings : Two minor tweaks to unicode_repeat: * If the number of repeats (len) is < 1, we're always going to return the empty Unicode string. So I incr and return unicode_empty. * The current code has "if (done < nchars)" around the first copy

[issue5676] Fix "make clean" in py3k/trunk

2009-04-06 Thread Larry Hastings
Larry Hastings added the comment: So what's the fix? I upgraded to r71304 and it still does this. Worse, it adds all sorts of complaints to "make test"--and it actually slows down hg. (hg can't cd into that directory, so it gives up on creating its inotify socket.) Can

[issue5676] Fix "make clean" in py3k/trunk

2009-04-06 Thread Larry Hastings
Larry Hastings added the comment: % rm -rf @test rm: cannot remove `...@test': Permission denied And, before you helpfully chime in with "chmod", yes I know how to run that too. I stuck in and figured it out. The bug: "test_on_error" in "test_shutil" is

[issue5676] Fix "make clean" in py3k/trunk

2009-04-06 Thread Larry Hastings
Larry Hastings added the comment: Crapdoodles, I didn't update the patch to get the "regrtest" change I threw in at the last minute. Please see the "v2" patch. -- Added file: http://bugs.python.org/file13640/lch.t

[issue5676] shutils test fails on ZFS (on FUSE, on Linux)

2009-04-09 Thread Larry Hastings
Larry Hastings added the comment: The analysis I wrote on 2009/4/6 is correct, but I just discovered another important detail: it only happens on my ZFS partition. I'm using ZFS on Linux, via FUSE. No wonder I'm the only person it's happening to! I don't know whether it&

[issue5676] shutils test fails on ZFS (on FUSE, on Linux)

2009-04-09 Thread Larry Hastings
Larry Hastings added the comment: I should be more specific: patch was written against py3k/trunk r71404. Though I imagine a very similar patch could be written for 2.7 (or 2.6 if appropriate). -- ___ Python tracker <http://bugs.python.

[issue5676] shutils test fails on ZFS (on FUSE, on Linux)

2009-04-16 Thread Larry Hastings
Larry Hastings added the comment: Done and done. I also changed cleanup_test_droppings() in Lib/test/regrtest.py; it now chmods the, uh, droppings before it attempts their removal. -- Added file: http://bugs.python.org/file13699/lch.test_shutil.r71641.diff

[issue5630] Create alternatieve CObject API that is safe and clean

2009-04-16 Thread Larry Hastings
Larry Hastings added the comment: I've updated the patch: * Capsule now has a custom repr that includes whatever name is set. * I've updated the documentation to talk about Capsules and not CObjects; the documentation discusses naming your capsules. * PyCapsule_Import now takes a

[issue5630] Create alternatieve CObject API that is safe and clean

2009-04-16 Thread Larry Hastings
Larry Hastings added the comment: Whoopsie-daisy, I forgot to touch up a whole lot of places to match the new API. Attached is an updated patch; here's what changed: * The documentation is now much better; there is a capsule.rst, and cobject.rst has a deprecation warning. * Added a deprec

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-04-20 Thread Larry Hastings
New submission from Larry Hastings : This patch changes "ntpath" so all functions handle UNC paths. In a Windows path string, a UNC path functions *exactly* like a drive letter. This patch means that the Python path split/join functions treats them as if they were. Fo

[issue5818] Fix five small bugs in the bininstall and altbininstall pseudotargets

2009-04-22 Thread Larry Hastings
New submission from Larry Hastings : Makefile.pre.in as checked in has several small bugs: First, the altbininstall target runs "ln -s" without first ensuring the destination doesn't exist. If you run "make install" twice, without manually deleting $prefix/bin/python3

[issue5818] Fix five small bugs in the bininstall and altbininstall pseudotargets

2009-04-22 Thread Larry Hastings
Larry Hastings added the comment: Minor correction for the "First" bug mentioned: altbininstall is running "ln", not "ln -s". -- ___ Python tracker <

[issue5819] Add PYTHONPREFIXES environment variable

2009-04-23 Thread Larry Hastings
New submission from Larry Hastings : The attached patch adds support for a new environment variable, PYTHONPREFIXES. PYTHONPREFIXES is similar to PYTHONUSERBASE: it lets you add "prefix directories" to be culled for site packages. It differs from PYTHONUSERBASE in three ways: * PYTH

[issue5819] Add PYTHONPREFIXES environment variable

2009-04-23 Thread Larry Hastings
Larry Hastings added the comment: Whoops, didn't classify the patch before submission. -- components: +Library (Lib) type: -> feature request versions: +Python 3.1 ___ Python tracker <http://bugs.python.or

[issue5819] Add PYTHONPREFIXES environment variable

2009-04-23 Thread Larry Hastings
Larry Hastings added the comment: Thanks for your battle-tested feedback, Mr. Bicking! I reply inline. > The biggest problem is that the environmental variable is inherited by > subprocesses. [...] Another problem is that scripts aren't really > sticky with respect to t

[issue5872] New C API for declaring Python types

2009-04-28 Thread Larry Hastings
New submission from Larry Hastings : EXECUTIVE SUMMARY I've written a patch against py3k trunk creating a new function-based API for creating extension types in C. This allows PyTypeObject to become a (mostly) private structure. THE PROBLEM Here's how you create an extension type

[issue5880] Remove unneeded "context" pointer from getters and setters

2009-04-29 Thread Larry Hastings
New submission from Larry Hastings : PyGetSetDef has a "void *context" field. This field is passed in to the get and set functions implementing the property. The field is almost never used, so it adds unnecessary complexity. Clearly, YAGNI. There are two places in CPython where i

[issue5880] Remove unneeded "context" pointer from getters and setters

2009-04-29 Thread Larry Hastings
Larry Hastings added the comment: Whoops, forgot to categorize the issue before submitting it. -- components: +Interpreter Core type: -> feature request versions: +Python 3.1 ___ Python tracker <http://bugs.python.org/iss

[issue5881] Remove extraneous backwards-compatibility attributes from some modules

2009-04-29 Thread Larry Hastings
New submission from Larry Hastings : While hacking on CPython I noticed a couple of attributes that were there strictly for backwards compatibility with ancient modules or pure mistakes. They are: _hashlib.hash.digestsize pwd.struct_pwent _sha224.digestsize _sha256.digestsize _sha384

[issue5676] shutils test fails on ZFS (on FUSE, on Linux)

2009-04-29 Thread Larry Hastings
Larry Hastings added the comment: Ping? Is the fate of this patch waiting on anything I can help with? In case it helps you decide, you don't see this behavior on a ZFS partition on Mac OS X. It appears to only happen under FUSE. So it's just me and my computers. (And

[issue5630] Create alternative CObject API that is safe and clean

2009-04-29 Thread Larry Hastings
Larry Hastings added the comment: Added a test case for capsules to _testcapimodule.c, and updated to the latest trunk. -- title: Create alternatieve CObject API that is safe and clean -> Create alternative CObject API that is safe and clean Added file: http://bugs.python.

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-03 Thread Larry Hastings
Larry Hastings added the comment: I've generated a new patch, attached. I don't know why you had trouble applying. I tested this one with a clean tree and "patch -p1 < ..." and it applied cleanly. If it fails again, how about I upload the three modified files? I

[issue5630] Create alternative CObject API that is safe and clean

2009-05-04 Thread Larry Hastings
Larry Hastings added the comment: Updated patch based on impressively thorough Rietveld feedback from Benjamin Peterson. Thanks, Benjamin! This patch should not be considered final; we already know the API documentation in the comments in Include/pycapsule.h needs to change (somehow

[issue5880] Remove unneeded "context" pointer from getters and setters

2009-05-04 Thread Larry Hastings
Larry Hastings added the comment: Mark Dickinson: no extension module would ever *need* it. One could reproduce the functionality with stub intermediary functions, as follows: PyObject *my_getter_with_context(PyObject *self, void *context) { /* ... / } PyObject *my_getter_A(PyObject *self

[issue5880] Remove unneeded "context" pointer from getters and setters

2009-05-04 Thread Larry Hastings
Larry Hastings added the comment: Oh, and, I looked at pyephem. It uses the context field to... store an integer. In this case, the offset in a structure where it's going to pull out a value (float or double). This code would probably be clearer if forced to make do without the &qu

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-04 Thread Larry Hastings
Larry Hastings added the comment: Sweet jumping rhubarb! I didn't know about this "for ...: else:" construct in Python. When I was editing it I thought it was my editor stumbling over a tab, and the "else" went with the "if" *inside* the "for".

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-04 Thread Larry Hastings
Larry Hastings added the comment: As promised, a fresh patch. Note that the current formulation of that troublesome loop in relpath() is *very* much on purpose. The removal of the "else" is no longer a bug :) -- Added file: http://bugs.python.org/file13890/lch.ntpath.r

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-04 Thread Larry Hastings
Larry Hastings added the comment: Sorry for the quick double-patch, but I realized that there was no test for the obverse case, where "path" is / and "curdir" is non-empty. So I threw in some more tests. -- Added file: http://bugs.python.org/file13891/lch.

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-04 Thread Larry Hastings
Larry Hastings added the comment: I stared at it some more. Now I understand what "for ... : else:" was for in the original. The "else: i += 1" ensures that if the "for" loop runs to completion "i" is set to the length of the shorter of the t

[issue5630] Create alternative CObject API that is safe and clean

2009-05-05 Thread Larry Hastings
Larry Hastings added the comment: dalcinl: Thanks, I've fixed the doc wrt writing "int" where I meant "void *". As for using "disambiguate" in many places: there are a couple of sentences that are repeated in the documentation for several functions. Those re

[issue5938] Noddy examples haven't been updated to match PEP 3123

2009-05-05 Thread Larry Hastings
New submission from Larry Hastings : The changes in PEP 3123 require that all type objects be statically declared with PyVarObject_HEAD_INIT. However, the Noddy examples in Doc/ still use PyObject_HEAD_INIT. -- assignee: georg.brandl components: Documentation messages: 87214 nosy

[issue5939] Ensure that PyCapsule_GetPointer calls in ctypes handle errors appropriately

2009-05-05 Thread Larry Hastings
New submission from Larry Hastings : If my patch in issue 53046 is accepted, I hereby agree to figure out if the calls to PyCapsule_GetPointer() in Modules/_ctypes/callproc.c need more error checking or what. -- components: Interpreter Core messages: 87215 nosy: benjamin.peterson, larry

[issue5938] Noddy examples haven't been updated to match PEP 3123

2009-05-05 Thread Larry Hastings
Larry Hastings added the comment: Whoops, I thought PEP 3123 applied to 2.7 as well. PEP *3*123. Duh, me slow today. -- versions: -Python 2.7 ___ Python tracker <http://bugs.python.org/issue5

[issue5630] Create alternative CObject API that is safe and clean

2009-05-05 Thread Larry Hastings
Larry Hastings added the comment: A nice fresh patch, against r72309. Incorporates changes based on Benjamin's latest batch of Rietveld comments. They're thinning out, so we must be near the end--and with a day to spare. Also strips out almost-all documentation from "pyca

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-05 Thread Larry Hastings
Larry Hastings added the comment: Whoops, yeah, that was me forgetting that in py3k itertools.izip became just "zip". I'll remove it in my branch in case I generate another patch. -- ___ Python tracker <http://bugs.py

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-05 Thread Larry Hastings
Larry Hastings added the comment: Just 'cause I like you, here's an updated patch. The only change is the removal of "import itertools" and the update of the base version. -- Added file: http://bugs.python.org/file13896/lc

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-05 Thread Larry Hastings
Larry Hastings added the comment: I've never understood what is the "philosophical problem" per se. It's clear from his implementation--Guido created "splitunc" when he removed my patch--that he thinks these should be precise string operations. Whereas I propos

[issue5946] Fix spelling error in Capsule docs

2009-05-05 Thread Larry Hastings
New submission from Larry Hastings : In the comments for the Capsule patch: http://bugs.python.org/issue5630 dalcinl correctly pointed out that I had misspelled "disambiguate", which I missed. This patch fixes that mistake. -- assignee: georg.brandl components: Documenta

[issue5947] Deprecate CObject

2009-05-05 Thread Larry Hastings
New submission from Larry Hastings : With the Capsule API patch accepted, I'd like to officially deprecate CObject. This patch causes Python to emit a single runtime warning the first time a CObject is constructed in a particular Python instance. If those aren't the right seman

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-05 Thread Larry Hastings
Larry Hastings added the comment: I don't know what would be proper, but I'm happy to change it if you think that's best. -- ___ Python tracker <http://bugs.py

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-06 Thread Larry Hastings
Larry Hastings added the comment: I tested your patch and it looks good to me. I didn't get the deprecation warning on ntpath.splitunc unless I disabled all warnings. -- ___ Python tracker <http://bugs.python.org/i

[issue5947] Deprecate CObject

2009-05-06 Thread Larry Hastings
Larry Hastings added the comment: It's 12:45am, and I've already learned my New Thing for the day. I didn't know about PendingDeprecationWarning. That's just exactly what CObject should throw. Attached is a new patch. The two CObject constructors now throw a PendingDepr

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

2010-06-08 Thread Larry Hastings
Larry Hastings added the comment: I noticed this a while ago. And FWIW it's not just 3.x; I see this same behavior in 2.6. I've whipped up a test case, attached, which runs in both Python 2 and Python 3. The test runs "sys.interpreter -V" four times: it tries all the c

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

2010-06-08 Thread Larry Hastings
Larry Hastings added the comment: I realize we're down to the wire, but would it be too late to fix this in 2.7? It is a genuine bug, and it won't break any correct code. -- ___ Python tracker <http://bugs.python.

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

2010-06-08 Thread Larry Hastings
Changes by Larry Hastings : -- versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/issue7839> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2010-06-08 Thread Larry Hastings
Larry Hastings added the comment: Sorry for spamming updates, but here's two more things to consider. 1) What does it do on Windows? For all I know all four combinations work fine there and we should preserve the existing functionality. 2) All four combinations work fine if you c

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

2010-06-08 Thread Larry Hastings
Larry Hastings added the comment: Zsolt: an excellent idea! That shouldn't change the semantics of the function, and therefore is strictly a bug fix. Which means we could potentially backport it, yes? Obviously we only need to change it between string / list if we're going to

[issue6807] No such file or directory: 'msisupport.dll' in msi.py

2010-07-11 Thread Larry Hastings
Larry Hastings added the comment: Why did you assign this to me? I don't know why my name is on this bug in the first place. Is it possible you were thinking of another Larry? -- ___ Python tracker <http://bugs.python.org/i

[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2016-12-06 Thread Larry Hastings
Larry Hastings added the comment: I assert that Argument Clinic's / PyArg_ParseTuple's handling of bool is correct. * Python has a well-established concept of "truth": https://docs.python.org/3/library/stdtypes.html#truth-value-testing The C equivalent is, ind

[issue28933] AC: Accept None as a Py_ssize_t default value

2016-12-10 Thread Larry Hastings
Larry Hastings added the comment: You propose an automatic conversion of "None" into "-1"? That's awful. Please don't commit that patch to CPython. -- ___ Python tracker <

[issue28933] AC: Accept None as a Py_ssize_t default value

2016-12-10 Thread Larry Hastings
Larry Hastings added the comment: It looks like you did it with a converter for 28754. That's okay. But not in the default implementation. -- ___ Python tracker <http://bugs.python.org/is

[issue28754] Argument Clinic for bisect.bisect_left

2016-12-10 Thread Larry Hastings
Larry Hastings added the comment: FWIW, pypy uses defaults of lo=0, hi=None. https://bitbucket.org/pypy/pypy/src/25da7bc9719457aee57547993833d5168ba6aded/lib-python/2.7/bisect.py?at=default&fileviewer=file-view-default -- ___ Python tracker &

[issue28754] Argument Clinic for bisect.bisect_left

2016-12-10 Thread Larry Hastings
Larry Hastings added the comment: Okay, but do it with a converter function, not by changing the default behavior for Py_ssize_t. The vast majority of uses of Py_ssize_t should not accept None. -- ___ Python tracker <http://bugs.python.

[issue28754] Argument Clinic for bisect.bisect_left

2016-12-10 Thread Larry Hastings
Larry Hastings added the comment: We don't *have* to use a converter function, no. But consider: someone somewhere will have to convert a PyObject * into a Py_ssize_t, also accepting None. Doing it in a converter function means we can easily share the code with bisect_right, which s

[issue20191] resource.prlimit(int, int, str) crashs

2016-12-10 Thread Larry Hastings
Larry Hastings added the comment: Sorry, Argument Clinic doesn't support automatic tuple unpacking for arguments. It was almost never used, I don't think it was ever a good idea, and it would have made an already-too-complicated program even more comp

[issue28933] AC: Accept None as a Py_ssize_t default value

2016-12-12 Thread Larry Hastings
Larry Hastings added the comment: I don't want this change committed to CPython, you can do what you need with a converter so do that. -- ___ Python tracker <http://bugs.python.org/is

[issue28933] AC: Accept None as a Py_ssize_t default value

2016-12-13 Thread Larry Hastings
Larry Hastings added the comment: Since this is the first time anybody has needed it, I suggest the latter. -- ___ Python tracker <http://bugs.python.org/issue28

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-01 Thread Larry Hastings
Larry Hastings added the comment: This is currently blocking the release of 3.5.3 rc1. -- ___ Python tracker <http://bugs.python.org/issue29057> ___ ___ Python-bug

[issue29094] Regression in zipfile writing in 2.7.13

2017-01-01 Thread Larry Hastings
Larry Hastings added the comment: If this is fixed, can we close this issue? This release blocker is one of two issues blocking 3.5.3 rc1. -- ___ Python tracker <http://bugs.python.org/issue29

[issue29006] 2.7.13 _sqlite more prone to "database table is locked"

2017-01-01 Thread Larry Hastings
Changes by Larry Hastings : -- nosy: +larry ___ Python tracker <http://bugs.python.org/issue29006> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-01 Thread Larry Hastings
Larry Hastings added the comment: Can this be marked closed now? -- ___ Python tracker <http://bugs.python.org/issue29057> ___ ___ Python-bugs-list mailin

<    13   14   15   16   17   18   19   20   21   22   >