[issue21629] clinic.py --converters fails

2014-06-11 Thread Larry Hastings
Larry Hastings added the comment: Confirmed. -- assignee: -> larry stage: -> needs patch ___ Python tracker <http://bugs.python.org/issue21629> ___ ___

[issue21629] clinic.py --converters fails

2014-06-11 Thread Larry Hastings
Changes by Larry Hastings : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue21520] Erroneous zipfile test failure if the string 'bad' appears in pwd

2014-06-11 Thread Larry Hastings
Larry Hastings added the comment: With this patch applied the test passes. (Patch is against 3.4 branch.) Look good? -- keywords: +patch Added file: http://bugs.python.org/file35567/larry.bad.zipfile.1.diff ___ Python tracker <h

[issue16145] Abort in _csv module

2012-11-01 Thread Larry Hastings
Larry Hastings added the comment: Roundup knows I'm the release manager for 3.4? It's well-informed! ;-) -- ___ Python tracker <http://bugs.python.o

[issue15880] os.path.split() and long UNC names

2012-11-12 Thread Larry Hastings
Larry Hastings added the comment: ISTM that fixing this for 3.x (3? 4?) is worthwhile though. Or did somebody already fix it in 3.x? -- ___ Python tracker <http://bugs.python.org/issue15

[issue16490] "inspect.getargspec()" and "inspect.getcallargs()" don't work for builtins

2012-11-17 Thread Larry Hastings
Changes by Larry Hastings : -- assignee: -> larry ___ Python tracker <http://bugs.python.org/issue16490> ___ ___ Python-bugs-list mailing list Unsubscri

[issue16490] "inspect.getargspec()" and "inspect.getcallargs()" don't work for builtins

2012-11-17 Thread Larry Hastings
Larry Hastings added the comment: I'm working on a solution for this--expect an announcement on c.l.p-d in, oh, a week. -- ___ Python tracker <http://bugs.python.org/is

[issue16490] "inspect.getargspec()" and "inspect.getcallargs()" don't work for builtins

2012-12-03 Thread Larry Hastings
Larry Hastings added the comment: http://mail.python.org/pipermail/python-dev/2012-December/122920.html -- ___ Python tracker <http://bugs.python.org/issue16

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

2012-12-04 Thread Larry Hastings
New submission from Larry Hastings: This bug tracker entry is to track adding "Argument Clinic" to CPython trunk. Please see http://mail.python.org/pipermail/python-dev/2012-December/122920.html for more information. -- assignee: larry components: Interpreter Core messag

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

2012-12-07 Thread Larry Hastings
Larry Hastings added the comment: Sorry for the delay; this head cold is slowing me down. Here's the current state of Argument Clinic as a patch for review. I look forward to your comments! -- Added file: http://bugs.python.org/file28248/larry.clinic.patch.

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

2012-12-08 Thread Larry Hastings
Larry Hastings added the comment: Antoine, Stefan: There doesn't appear to be a bright line separating "this should get a PEP" from "this doesn't need a PEP". That said, changes to the C API for CPython don't seem to merit PEPs very often, the recent "

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

2012-12-09 Thread Larry Hastings
Larry Hastings added the comment: I disagree that the Clinic DSL is "verbose". Certainly I find it more succinct than what we do now. On the other hand, the syntax you proposed in the python-dev message you cite is insufficient to the task. Consider a function that takes a &quo

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

2012-12-09 Thread Larry Hastings
Larry Hastings added the comment: What lines end with a colon? -- ___ Python tracker <http://bugs.python.org/issue16612> ___ ___ Python-bugs-list mailin

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

2012-12-10 Thread Larry Hastings
Larry Hastings added the comment: Ah. In that case, may I rewrite your critique as "[...] some lines may end with a semicolon, some lines may not, some assignment signs ("=") permit spaces around them, some don't." The semicolon is optional, permitted explicitly so y

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

2012-12-13 Thread Larry Hastings
Larry Hastings added the comment: I don't think we can solve the problem of the output being too long for your liking. Personally I like the output; I find it eminently readable, and making it shorter would impair that. I think in the majority of uses Clinic will be a win for readab

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

2012-12-14 Thread Larry Hastings
Larry Hastings added the comment: I have no current plan to write a PEP. I don't know how to settle the difference of opinion here; the easiest thing would be if you convinced Guido we needed one. -- ___ Python tracker <http://bugs.py

[issue16656] os.listdir() returns unusable bytes result on Windows

2012-12-14 Thread Larry Hastings
Larry Hastings added the comment: I'm a little confused. FindFirstFile is an ANSI API, so we get a narrow string back. We call PyBytes_FromString(), which expects a narrow string and returns a bytes object. Who's trying (and failing) to encode th

[issue16801] Preserve original representation for integers / floats in docstrings

2012-12-28 Thread Larry Hastings
New submission from Larry Hastings: The line declaring the function dbm.open looks like this: def open(file, flag='r', mode=0o666): The docstring for dbm.open looks like this: open(file, flag='r', mode=438) Obviously 438==0o666. But the author used the octal re

[issue16801] Preserve original representation for integers / floats in docstrings

2012-12-28 Thread Larry Hastings
Larry Hastings added the comment: (I was also considering proposing using annotations to tell the parser we want the original representation in the docstring, but I suspect that's a bad idea. That would instantly restrict the untamed frontier that is annota

[issue16801] Preserve original representation for integers / floats in docstrings

2012-12-28 Thread Larry Hastings
Larry Hastings added the comment: Okay, counter-proposal time. We add a new field to the Parameter object, the preferred string representation of the default. If the parameter has a default, it is always a string, by default repr(parameter_default_value); if the parameter has no default

[issue16801] Preserve original representation for integers / floats in docstrings

2013-02-05 Thread Larry Hastings
Larry Hastings added the comment: Georg: what other functions do you know of where (as you suggest) the signature could be improved? -- ___ Python tracker <http://bugs.python.org/issue16

[issue16038] ftplib: unlimited readline() from connection

2013-02-09 Thread Larry Hastings
Larry Hastings added the comment: My spies are everywhere! You cannot hide your black heart, Pitrou. -- ___ Python tracker <http://bugs.python.org/issue16

[issue17187] Python segfaults from improperly formed and called function

2013-02-11 Thread Larry Hastings
New submission from Larry Hastings: Python 3.3 added a nice new feature: if you don't supply enough positional parameters to a function, it tells you the names of the positional parameters you omitted. Unfortunately, the code that prints this error message assumes that the function is

[issue17187] Python segfaults from improperly formed and called function

2013-02-11 Thread Larry Hastings
Changes by Larry Hastings : -- keywords: +patch Added file: http://bugs.python.org/file29044/lch.bandaid.for.malformed.fn.crash.1.patch ___ Python tracker <http://bugs.python.org/issue17

[issue1518] Fast globals/builtins access (patch)

2013-02-11 Thread Larry Hastings
Larry Hastings added the comment: It sort of looks like this was closed because we assumed we were moving to Unladen Swallow. We're not. Should this be reopened? -- nosy: +larry ___ Python tracker <http://bugs.python.org/i

[issue17190] _FAST opcodes do no range checking

2013-02-11 Thread Larry Hastings
New submission from Larry Hastings: The implementations for LOAD_FAST, STORE_FAST, and DELETE_FAST don't check that the index is <= the size of fastlocals. So it's a snap to crash the interpreter with hand-written bytecode, by going past the end of the fastlocals array. Kaboom!

[issue17190] _FAST opcodes do no range checking

2013-02-12 Thread Larry Hastings
Larry Hastings added the comment: I'm not surprised it was discussed to death long ago. And I can get behind wontfix. But let me just say that a) I think an uncrashable Python interpreter is a laudable goal, and steps we can take towards that should not be dismissed out of hand. b) I

[issue19101] "make touch" broke "x86 Ubuntu Shared 3.x" buildbot

2013-09-27 Thread Larry Hastings
New submission from Larry Hastings: Can you fix this before I tag 3.4a3 please? -- assignee: pitrou components: Build keywords: buildbot messages: 198466 nosy: larry, pitrou priority: high severity: normal stage: needs patch status: open title: "make touch" broke "x86 Ub

[issue19101] "make touch" broke "x86 Ubuntu Shared 3.x" buildbot

2013-09-27 Thread Larry Hastings
Larry Hastings added the comment: Sorry, here: http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x -- ___ Python tracker <http://bugs.python.org/issue19

[issue19109] 'TestTCPServer' is not defined

2013-09-27 Thread Larry Hastings
New submission from Larry Hastings: The Win32 buildbots just started failing: http://buildbot.python.org/all/waterfall?category=3.x.stable They fail with this traceback: test test_logging crashed -- Traceback (most recent call last): File "../lib/test/regrtest.py", lin

[issue19260] "int" comment in marshal.c is outdated

2013-10-14 Thread Larry Hastings
New submission from Larry Hastings: In r_string() (read a string) in marshal.c we see this comment: /* The result fits into int because it must be <=n. */ read = fread(p->buf, 1, n, p->fp); This comment was first committed in r36501 by MvL. Back then the "read" and

[issue19260] "int" comment in marshal.c is outdated

2013-10-14 Thread Larry Hastings
Larry Hastings added the comment: Martin: The code is not statically type-safe, but it is mechanically safe, which I think is why you wrote the comment in the first place. The return value of fread() is size_t, but the "read" variable is Py_ssize_t. So the function *could* the

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-17 Thread Larry Hastings
Larry Hastings added the comment: Does it break anything? (Besides, possibly, itself?) -- ___ Python tracker <http://bugs.python.org/issue19262> ___ ___ Pytho

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-17 Thread Larry Hastings
Larry Hastings added the comment: If its breakage is restricted to itself (and its tests) then you have my blessing to check it in. (Sorry, can't help you with the test expertise.) -- ___ Python tracker <http://bugs.python.org/is

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

2013-10-17 Thread Larry Hastings
Larry Hastings added the comment: Attached is a patch against current trunk merging Argument Clinic. I already got the go-ahead to merge (took a poll in python-dev, got lots of +1s), but I still wanted to post it here to let it soak a little, even only if it's just a day. Unless some

[issue16612] Integrate "Argument Clinic" into CPython trunk

2013-10-17 Thread Larry Hastings
Larry Hastings added the comment: Spelling corrections from Arfrever (thanks Arfrever!), and some eentsy teensy weentsy bugfixes from me. And with a dramatic new patch number just so everybody can keep it straight. -- title: Integrate "Argument Clinic" specialized pr

[issue16612] Integrate "Argument Clinic" into CPython trunk

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: Incorporated suggestions from Antoine and Berker Peksag. Thanks! -- Added file: http://bugs.python.org/file32205/larry.clinic.patch.6.diff ___ Python tracker <http://bugs.python.org/issue16

[issue16612] Integrate "Argument Clinic" into CPython trunk

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: I played with that at one point. Guido suggested it was a bad idea. If you redirect stuff into a second file then you have way more points of failure--the files could get out sync, for example. I tend to agree. We could, however, change Clinic so it generated

[issue16612] Integrate "Argument Clinic" into CPython trunk

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: Incorporated a small change from Antoine and a ton of small changes from Serhiy. Thanks guys! -- Added file: http://bugs.python.org/file32212/larry.clinic.patch.7.diff ___ Python tracker <http://bugs.python.

[issue18709] SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: So, this is fixed, but there's some suspicion of a memory leak? If that's true, maybe we could mark this as closed then open a new bug for the leak? This shows up as a big scary "release blocker" against 3.4, and I'm like

[issue18747] Re-seed OpenSSL's PRNG after fork

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: I can't follow all this. Is this considered fixed in 3.4 or not? -- ___ Python tracker <http://bugs.python.org/is

[issue16043] xmlrpc: gzip_decode has unlimited read()

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: Ping. Can we get this fixed before beta 1? -- ___ Python tracker <http://bugs.python.org/issue16043> ___ ___ Python-bugs-list m

[issue16039] imaplib: unlimited readline() from connection

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: Ping. Please fix before "beta 1". -- ___ Python tracker <http://bugs.python.org/issue16039> ___ ___ Python-bugs-l

[issue16042] smtplib: unlimited readline() from connection

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: Can we get this fixed in more recent versions? Like, maybe, trunk, before "beta 1"? -- ___ Python tracker <http://bugs.python.o

[issue16040] nntplib: unlimited readline() from connection

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: Ping. Please fix before "beta 1". -- ___ Python tracker <http://bugs.python.org/issue16040> ___ ___ Python-bugs-l

[issue16041] poplib: unlimited readline() from connection

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: Ping. Please fix before "beta 1". -- ___ Python tracker <http://bugs.python.org/issue16041> ___ ___ Python-bugs-l

[issue16037] httplib: header parsing is unlimited

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: Ping. Please fix before "beta 1". -- ___ Python tracker <http://bugs.python.org/issue16037> ___ ___ Python-bugs-l

[issue16038] ftplib: unlimited readline() from connection

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: Ping. Please fix before "beta 1". -- ___ Python tracker <http://bugs.python.org/issue16038> ___ ___ Python-bugs-l

[issue18509] CJK decoders should return MBERR_EXCEPTION on PyUnicodeWriter error

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: Victor, are you going to write a patch for this before beta 1? -- ___ Python tracker <http://bugs.python.org/issue18509> ___ ___

[issue19279] UTF-7 to UTF-8 decoding crash

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: Ping. Please fix before "beta 1". -- ___ Python tracker <http://bugs.python.org/issue19279> ___ ___ Python-bugs-l

[issue18509] CJK decoders should return MBERR_EXCEPTION on PyUnicodeWriter error

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: It's a month before beta 1. This weekend is alpha 4; it'd be nice if it were fixed for that, of course, but that does not seem likely. -- ___ Python tracker <http://bugs.python.o

[issue16612] Integrate "Argument Clinic" into CPython trunk

2013-10-19 Thread Larry Hastings
Larry Hastings added the comment: Checked in. Thanks everybody! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue18606] Add statistics module to standard library

2013-10-19 Thread Larry Hastings
Larry Hastings added the comment: Mr. D'Aprano emailed me about getting this in for alpha 4. Since nobody else stepped up, I volunteered to check it in for him. There were some minor ReST errors in statistics.rst but I fixed 'em. -- no

[issue18235] _sysconfigdata.py wrong on AIX installations

2013-10-19 Thread Larry Hastings
Changes by Larry Hastings : -- nosy: +larry ___ Python tracker <http://bugs.python.org/issue18235> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18606] Add statistics module to standard library

2013-10-19 Thread Larry Hastings
Larry Hastings added the comment: Checked in. Thanks, Mr. D'Aprano! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.pyth

[issue19293] test_asyncio hanging for 1 hour

2013-10-19 Thread Larry Hastings
Larry Hastings added the comment: There's also a test that hangs for 1 hour on the Ubuntu x86 buildbot. Sample failure: http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/8803/ -- nosy: +larry ___ Python tracker

[issue17123] Add OCSP support to ssl module

2013-10-21 Thread Larry Hastings
Changes by Larry Hastings : -- nosy: -larry ___ Python tracker <http://bugs.python.org/issue17123> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19358] Integrate "Argument Clinic" into CPython build

2013-10-22 Thread Larry Hastings
New submission from Larry Hastings: Somebody needs to figure out how to best integrate Argument Clinic into the build. Antoine, I think you said it sounded like... "fun"? Maybe? Anyway, I'm hoping you're willing to take a stab at it. If not please assign the issue

[issue19358] Integrate "Argument Clinic" into CPython build

2013-10-22 Thread Larry Hastings
Larry Hastings added the comment: Drat! -- ___ Python tracker <http://bugs.python.org/issue19358> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16113] Add SHA-3 (Keccak) support

2013-10-23 Thread Larry Hastings
Changes by Larry Hastings : -- nosy: -larry ___ Python tracker <http://bugs.python.org/issue16113> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16113] Add SHA-3 (Keccak) support

2013-10-23 Thread Larry Hastings
Larry Hastings added the comment: Victor: a "new feature" is not a "release blocker". -- priority: release blocker -> normal ___ Python tracker <http://

[issue16113] Add SHA-3 (Keccak) support

2013-10-23 Thread Larry Hastings
Larry Hastings added the comment: "release blocker" means "the release cannot go out until this issue is solved". Adding SHA-3, while nice, is simply not something I am going to hold up 3.4 for, full stop. Please stop marking this issue a

[issue16113] Add SHA-3 (Keccak) support

2013-10-23 Thread Larry Hastings
Changes by Larry Hastings : -- nosy: -larry ___ Python tracker <http://bugs.python.org/issue16113> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16113] Add SHA-3 (Keccak) support

2013-10-23 Thread Larry Hastings
Larry Hastings added the comment: You guys are making me cranky. Please stop adding me to this issue. -- ___ Python tracker <http://bugs.python.org/issue16

[issue16113] Add SHA-3 (Keccak) support

2013-10-23 Thread Larry Hastings
Larry Hastings added the comment: *sigh* fine. But the title of the issue is no longer accurate. And, Christian, I generate the 3.4 maintenance branch during the release process, not before. So if you have to remove sha3 you're going to have to remove it from

[issue19358] Integrate "Argument Clinic" into CPython build

2013-10-23 Thread Larry Hastings
Larry Hastings added the comment: I thought it'd be more like, write a special C program that probes to see if you have a built python in the current directory, and if not looks on the path for a python3 (>=3.3), and if it finds a python it can use it runs Clinic on its arguments. T

[issue19358] Integrate "Argument Clinic" into CPython build

2013-10-24 Thread Larry Hastings
Larry Hastings added the comment: > Well, why is clinic 3.3 only? It would be slightly easier > if it accepted any "python3" executable. Patches welcome! I have bigger fish to fry. -- ___ Python tracker <http://bugs.py

[issue19358] Integrate "Argument Clinic" into CPython build

2013-10-25 Thread Larry Hastings
Larry Hastings added the comment: For a long time it was actually 3.4+ only. I was depending on a particular AST node that wasn't exposed to Python until 3.4 trunk. But that went away, and I tried it with 3.3 and it worked fine, so I labeled it 3.3+. For all I know it works fine unde

[issue19390] clinic.py: unhandled syntax error

2013-10-25 Thread Larry Hastings
Larry Hastings added the comment: You're proposing that Clinic allow => ? -- ___ Python tracker <http://bugs.python.org/issue19390> ___ ___ Python-bugs-lis

[issue19390] clinic.py: unhandled syntax error

2013-10-27 Thread Larry Hastings
Larry Hastings added the comment: Fixed. And, yeah, Clinic actually uses ast.parse where it can. (FWIW, most of the parser was re-written by Dmitry Jemerov during the PyCon US 2013 sprints, though I wound up re-re-writing most of what he did.) -- assignee: -> larry resolut

[issue19378] Clean up Python 3.4 API additions in the dis module

2013-11-03 Thread Larry Hastings
Larry Hastings added the comment: Would this be a good time for me to ask about publishing the stack effect info? I had to write my own parallel implementation of it for my assembler, so I found it irritating that Python doesn't provi

[issue19655] Replace the ASDL parser carried with CPython

2013-11-19 Thread Larry Hastings
Larry Hastings added the comment: A week before beta? How confident are you in this new parser? -- nosy: +larry ___ Python tracker <http://bugs.python.org/issue19

[issue19664] UserDict test assumes ordered dict repr

2013-11-20 Thread Larry Hastings
New submission from Larry Hastings: If you run Lib/test/test_userdict.py enough times, sooner or later it'll produce a spurious error. I wrote a shell script that ran "./python -m test test_userdict" a zillion times; here's a snippet of output from running that script: [

[issue19474] Argument Clinic causing compiler warnings about uninitialized variables

2013-11-20 Thread Larry Hastings
Larry Hastings added the comment: Sigh. If dataflow analysis could inline the static _impl function, it would notice that there are no code paths where the variable is uninitialized and gets used. But I'm not surprised compilers aren't that sophisticated. So I beat the problem to

[issue19664] UserDict test assumes ordered dict repr

2013-11-20 Thread Larry Hastings
Larry Hastings added the comment: I don't know for sure--I haven't stepped through it--but here's an informed guess. It relies on key collision. The first dict is created the normal way. It contains two values, "one" (set to 1) and "two" (set to 2), inser

[issue19674] Add introspection information for builtins

2013-11-20 Thread Larry Hastings
New submission from Larry Hastings: Let's see if we can get introspection information for builtins using the Clinic for 3.4. Georg suggested part of the approach while we were hanging out in Tokyo. I'd considered it previously before but dispensed with the idea because it seemed

[issue19674] Add introspection information for builtins

2013-11-20 Thread Larry Hastings
Larry Hastings added the comment: If you review, you can ignore the changes to the .c files, those only got touched because of the new autogenerated "def (" lines in the docstrings. No other changes there. -- ___ Python trac

[issue19674] Add introspection information for builtins

2013-11-20 Thread Larry Hastings
Larry Hastings added the comment: (Well, except for Object/methodobject.c.) -- ___ Python tracker <http://bugs.python.org/issue19674> ___ ___ Python-bugs-list m

[issue19674] Add introspection information for builtins

2013-11-20 Thread Larry Hastings
Changes by Larry Hastings : -- nosy: +ncoghlan ___ Python tracker <http://bugs.python.org/issue19674> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19674] Add introspection information for builtins

2013-11-20 Thread Larry Hastings
Larry Hastings added the comment: I was deliberately trying to avoid something that a person might do by accident. Also, "def (" is consistently only five bytes, whereas "pterodactyl (" or whatever will often be much longer, in case static data size is a concern. But

[issue19674] Add introspection information for builtins

2013-11-21 Thread Larry Hastings
Changes by Larry Hastings : -- nosy: +barry ___ Python tracker <http://bugs.python.org/issue19674> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19674] Add introspection information for builtins

2013-11-21 Thread Larry Hastings
Larry Hastings added the comment: I changed it to "(". Patch attached. Still works. -- Added file: http://bugs.python.org/file32763/larry.introspection.for.builtins.patch.2.txt ___ Python tracker <http://bugs.python.o

[issue19674] Add introspection information for builtins

2013-11-22 Thread Larry Hastings
Larry Hastings added the comment: Anybody have a better name for __textsig__ ? -- ___ Python tracker <http://bugs.python.org/issue19674> ___ ___ Python-bugs-list m

[issue19722] Expose stack effect calculator to Python

2013-11-22 Thread Larry Hastings
New submission from Larry Hastings: Attached is a patch exposing the old opcode_stack_effect() function to Python. The patch does the following: * renames opcode_stack_effect() to PyCompile_OpcodeStackEffect() * removes the "static" modifier from PyCompile_OpcodeStackEffect()

[issue19722] Expose stack effect calculator to Python

2013-11-22 Thread Larry Hastings
Larry Hastings added the comment: (Sponging around for a reviewer ;-) -- ___ Python tracker <http://bugs.python.org/issue19722> ___ ___ Python-bugs-list mailin

[issue19722] Expose stack effect calculator to Python

2013-11-22 Thread Larry Hastings
Changes by Larry Hastings : -- nosy: +brett.cannon ___ Python tracker <http://bugs.python.org/issue19722> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19722] Expose stack effect calculator to Python

2013-11-22 Thread Larry Hastings
Larry Hastings added the comment: New patch, incorporating Antoine's comments. Thanks, Antoine! -- Added file: http://bugs.python.org/file32782/larry.expose.stack.effect.patch.2.diff ___ Python tracker <http://bugs.python.org/is

[issue19723] Argument Clinic should add markers for humans

2013-11-22 Thread Larry Hastings
Larry Hastings added the comment: You find the big /*[clinic checksum: b6ded2204fd0aab263564feb5aae6bac840b5b94]*/ marker insufficient? Perhaps this is simply something we will quickly get used to. How about we let this sit for a while and see what other people think. p.s. I accept your

[issue19659] Document Argument Clinic

2013-11-22 Thread Larry Hastings
Larry Hastings added the comment: I quite agree. My plan is to write a quick HOWTO for now to get people up and running for now, then flesh it out into a full document. But I'm working like crazy right now to get a couple things done before

[issue19723] Argument Clinic should add markers for humans

2013-11-22 Thread Larry Hastings
Larry Hastings added the comment: > However, to bikeshed a little, I would prefer > "preprocessor" instead of "clinic", since jokes > tend to wear off if one sees then too often. "Argument Clinic" is the name of the tool. The marker /*[clinic]*/ was

[issue19674] Add introspection information for builtins

2013-11-22 Thread Larry Hastings
Larry Hastings added the comment: I went with __text_signature__. I also did some more polishing, and added / fixed the unit tests, and even added a Misc/NEWS. Is it good enough to go in before the beta? -- Added file: http://bugs.python.org/file32785

[issue19358] Integrate "Argument Clinic" into CPython build

2013-11-22 Thread Larry Hastings
Larry Hastings added the comment: Attached is a patch to at least add a "make clinic" target for the UNIX-like platforms. This doesn't add anything for the Windows build. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file32786/larry.m

[issue19358] Integrate "Argument Clinic" into CPython build

2013-11-22 Thread Larry Hastings
Larry Hastings added the comment: Okay, there's more than one way to skin this cat. This version uses os.walk(). -- ___ Python tracker <http://bugs.python.org/is

[issue19358] Integrate "Argument Clinic" into CPython build

2013-11-22 Thread Larry Hastings
Larry Hastings added the comment: (Whoops, forgot to attach the new diff.) -- Added file: http://bugs.python.org/file32788/larry.make.clinic.patch.2.diff ___ Python tracker <http://bugs.python.org/issue19

[issue19722] Expose stack effect calculator to Python

2013-11-22 Thread Larry Hastings
Larry Hastings added the comment: stack_effect will never know about EXTENDED_ARG. Instead, you simply pass the already-extended arg as the second argument. Making the second argument support a default of None will be slightly inconvenient, but I'll do it if you think it's a big i

[issue19730] Clinic fixes: add converters with length, version directive

2013-11-22 Thread Larry Hastings
New submission from Larry Hastings: Two minor changes for Argument Clinic. * Added a "version" directive, so a programmer can require a specific version (or better) of Clinic. * Finished off support for all the 'legacy' converters. The ones today were those tha

[issue19694] test_venv failing on one of the Ubuntu buildbots

2013-11-23 Thread Larry Hastings
Larry Hastings added the comment: Are you sure the problem is fixed? I still see the same error on the same buildbot. http://buildbot.python.org/all/builders/AMD64%20Ubuntu%20LTS%203.x/builds/3168/steps/test/logs/stdio -- ___ Python tracker <h

[issue19722] Expose stack effect calculator to Python

2013-11-23 Thread Larry Hastings
Larry Hastings added the comment: Attached is revision 3 of the patch. I'm gonna check it in pretty soon, so as to make beta (and feature freeze). I changed the API so the oparg is optional, and it raises if it gets one it shouldn't have or didn't get one when it should. -

[issue19730] Clinic fixes: add converters with length, version directive, "self converter"

2013-11-23 Thread Larry Hastings
Larry Hastings added the comment: Attached is a fresh patch. I added a third new feature: the "self converter", which allows you to change the type of (or rename) self. For an example of its use, check out dbm.dbm.get in Modules/_dbmmodule.c. -- title: Clinic fixes: add

[issue19674] Add introspection information for builtins

2013-11-23 Thread Larry Hastings
Larry Hastings added the comment: Fresh patch attached. pydoc now uses inspect.signature instead of inspect.getfullargspec to generate the arguments for the function, and supports builtins. That's everything :D Planning on checking this in pretty soon, to get it in for beta (

<    5   6   7   8   9   10   11   12   13   14   >