[issue19738] pytime.c loses precision under Windows

2013-11-23 Thread Larry Hastings
Larry Hastings added the comment: Martin: I think the best choice would be a decimal object--which, now that we have decimal in C, is probably sufficiently performant for serious consideration. -- nosy: +larry ___ Python tracker <h

[issue19722] Expose stack effect calculator to Python

2013-11-23 Thread Larry Hastings
Changes by Larry Hastings : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

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

2013-11-23 Thread Larry Hastings
Changes by Larry Hastings : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue19358] Integrate "Argument Clinic" into CPython build

2013-11-23 Thread Larry Hastings
Larry Hastings added the comment: Fixed. By the way, this checkin also added a tiny new feature to Argument Clinic: if the file hasn't changed, it doesn't bother to rewrite it (or touch it in any way). -- assignee: -> larry resolution: -> fixed stage: patch review

[issue19674] Add introspection information for builtins

2013-11-23 Thread Larry Hastings
Changes by Larry Hastings : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue19743] test_gdb failures

2013-11-23 Thread Larry Hastings
New submission from Larry Hastings: test_gdb started failing on me within the past few days. (I would have reported it sooner but I figured the omniscient CPython core dev community already knew about it.) The machine it's failing on is Ubuntu 13.10, 64-bit. -- components:

[issue19743] test_gdb failures

2013-11-23 Thread Larry Hastings
Larry Hastings added the comment: Please see the attached output from the test run. But here's a sample: == FAIL: test_lists (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of

[issue19734] test_venv.test_with_pip() fails on "AMD64 Ubuntu LTS 3.x" buildbot

2013-11-23 Thread Larry Hastings
Larry Hastings added the comment: Nick: I get that gdb failure, bisecting now. See #19743. -- ___ Python tracker <http://bugs.python.org/issue19734> ___ ___ Pytho

[issue19743] test_gdb failures

2013-11-23 Thread Larry Hastings
Larry Hastings added the comment: The first bad revision is: changeset: 87426:9f2a0043396b user:Antoine Pitrou date:Sat Nov 23 17:40:36 2013 +0100 files: Lib/test/test_gdb.py Tools/gdb/libpython.py description: Issue #19308: fix the gdb plugin on gdbs linked with Python

[issue19743] test_gdb failures

2013-11-23 Thread Larry Hastings
Larry Hastings added the comment: That's correct, it is skipped. -- ___ Python tracker <http://bugs.python.org/issue19743> ___ ___ Python-bugs-list m

[issue19743] test_gdb failures

2013-11-23 Thread Larry Hastings
Larry Hastings added the comment: The test passes if I turn on "--with-pydebug". And Antoine told me in IRC that he sees the failure if he turns off "--with-pydebug". So we're in business. -- ___ Python tracker <http:

[issue19743] test_gdb failures

2013-11-24 Thread Larry Hastings
Larry Hastings added the comment: Here's what I've figured out. If I build trunk then run: % gdb --batch -iex "add-auto-load-safe-path /home/larry/src/python/buildtrunk/python-gdb.py" --eval-command="set breakpoint pending yes" --eval-command="break bui

[issue19743] test_gdb failures

2013-11-24 Thread Larry Hastings
Larry Hastings added the comment: Sorry, both exceptions in the output of the traceback are: Python Exception 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte: -- ___ Python tracker <http://bugs.pyt

[issue19743] test_gdb failures

2013-11-24 Thread Larry Hastings
Larry Hastings added the comment: Antoine: your checked-in workaround makes the test pass. But I'm leaving this open because I'm still hoping David will take a look into it. -- ___ Python tracker <http://bugs.python.o

[issue19655] Replace the ASDL parser carried with CPython

2013-11-24 Thread Larry Hastings
Larry Hastings added the comment: Are the generated files *byte for byte* the same as produced by the existing parser generation process? -- ___ Python tracker <http://bugs.python.org/issue19

[issue19655] Replace the ASDL parser carried with CPython

2013-11-24 Thread Larry Hastings
Larry Hastings added the comment: The rule is, no new features. Bug and security fixes from now on. It isn't always clear whether or not something is a new "feature". In the case of such ambiguity, the decision is up to the sole discretion of the release manager. If you se

[issue17810] Implement PEP 3154 (pickle protocol 4)

2013-11-25 Thread Larry Hastings
Larry Hastings added the comment: Isn't it a little late to be changing the pickle protocol, now that we've hit feature-freeze? If you want to check something like this in you're going to have to make a good case for it. -- ___

[issue19743] test_gdb failures

2013-11-25 Thread Larry Hastings
Larry Hastings added the comment: If skipping them for optimized builds is the right call, then aren't we done here? Can we close this bug as fixed? -- ___ Python tracker <http://bugs.python.org/is

[issue17810] Implement PEP 3154 (pickle protocol 4)

2013-11-25 Thread Larry Hastings
Larry Hastings added the comment: I'll make you a deal. As long as the protocol remains 100% backwards and forwards compatible (3.4.0b1 can read anything written by trunk, and trunk can read anything written by 3.4.0b1), you can make optimizations until beta 2. After that you have to

[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-11-26 Thread Larry Hastings
Larry Hastings added the comment: I don't know enough about SSL to make a "feature vs bug/security fix" ruling on this. Can a second person who does--maybe Bill Janssen?--chime in? -- ___ Python tracker <http://bugs.pyt

[issue19509] No SSL match_hostname() in ftp, imap, nntp, pop, smtp modules

2013-11-26 Thread Larry Hastings
Larry Hastings added the comment: Okay, you have my permission to add match_hostname() and fix the security hole you cite. Can you have it done soon, so it can bake for a while in trunk before we cut beta 2? -- ___ Python tracker <h

[issue19802] socket.SO_PRIORITY is missing

2013-11-27 Thread Larry Hastings
Larry Hastings added the comment: It's *possible* but I'm willing to risk it. You have my permission to apply that patch. -- ___ Python tracker <http://bugs.python.o

[issue19819] reversing a Unicode ligature doesn't work

2013-11-27 Thread Larry Hastings
New submission from Larry Hastings: Read this today: http://mortoray.com/2013/11/27/the-string-type-is-broken/ In it the author talks about how the 'ffl' ligature breaks some string processing. He claimed that Python 3 doesn't uppercase it correctly--well, it does. Howev

[issue18716] Deprecate the formatter module

2013-11-30 Thread Larry Hastings
Larry Hastings added the comment: They're not on Python 3. I think we should keep the deprecation and let them roll their own when they upgrade. It's not like the module provides much functionality in the first place. -- ___ Python trac

[issue18885] handle EINTR in the stdlib

2013-12-01 Thread Larry Hastings
Larry Hastings added the comment: I don't want this checked in to 3.4. (Congratulations, this is my first "no" as a release manager!) -- ___ Python tracker <http://bugs.pyt

[issue19860] asyncio: Add context manager to BaseEventLoop?

2013-12-02 Thread Larry Hastings
Larry Hastings added the comment: Since this is a new library in 3.4, I can be more flexible. And since you're talking about adding a new feature (rather than changing or removing an existing feature), this has a vanishingly small chance of screwing anything up. Therefore I'm

[issue19860] asyncio: Add context manager to BaseEventLoop?

2013-12-02 Thread Larry Hastings
Larry Hastings added the comment: Okay, yeah. I assumed calling .close() was best practice. If it's not, then... Guido, since this is your library, I delegate the decision to you. You guys can add this any time before I tag beta 2 if Guido'

[issue3208] function annotation for builtin and C function

2013-12-03 Thread Larry Hastings
Larry Hastings added the comment: Argument Clinic theoretically could support annotations for builtins, though it's never been tested. I don't know if it makes sense to close this bug yet. -- ___ Python tracker <http://bugs.python.

[issue19296] Compiler warning when compiling dbm module

2013-12-05 Thread Larry Hastings
Larry Hastings added the comment: Why wouldn't "dbm_open((char *)file, flags, mode)" work? -- ___ Python tracker <http://bugs.python.org/issue19296> ___ __

[issue19296] Compiler warning when compiling dbm module

2013-12-05 Thread Larry Hastings
Larry Hastings added the comment: I suspect dbm_open predates the common availability of "const". I assert we can safely assume it won't overwrite the contents of the buffer. (Barring spectacular memory corruption bugs that "const" woul

[issue19927] Path-based loaders lack a meaningful __eq__() implementation.

2013-12-08 Thread Larry Hastings
Larry Hastings added the comment: Brett, could you weigh in please? -- ___ Python tracker <http://bugs.python.org/issue19927> ___ ___ Python-bugs-list mailin

[issue19846] print() and write() are relying on sys.getfilesystemencoding() instead of sys.getdefaultencoding()

2013-12-08 Thread Larry Hastings
Larry Hastings added the comment: Antoine: are you characterizing this as a "bug" rather than a "new feature"? I'd like to see more of a consensus before something like this gets checked in. Right now I see a variety of opinions. When I think "conservative app

[issue19343] Expose FreeBSD-specific APIs in resource module

2013-12-08 Thread Larry Hastings
Larry Hastings added the comment: I can live with this in 3.4 if you check it in before beta 2. -- ___ Python tracker <http://bugs.python.org/issue19343> ___ ___

[issue19846] Python 3 raises Unicode errors with the C locale

2013-12-09 Thread Larry Hastings
Larry Hastings added the comment: > The fact that write() uses sys.getfilesystemencoding() is either > a defect or a bad design (I leave the decision to you). I have good news for you. write() does not cal sys.getfilesystemencoding(), because the encoding is set at the time the file is

[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

2014-06-22 Thread Larry Hastings
Larry Hastings added the comment: Please clarify, what is my "false dilemma"? -- ___ Python tracker <http://bugs.python.org/issue19145> ___ ___ Python-b

[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

2014-06-24 Thread Larry Hastings
Larry Hastings added the comment: The main thing for me isn't that the function and its documentation-pseudocode are in sync (though in the long run this is desirable). What's important to me is that the function have a sensible, relevant signature in Python. There was simply

[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

2014-06-25 Thread Larry Hastings
Larry Hastings added the comment: > There is a way using *args and **kwds but that isn't any fun That's why, earlier, I said a "sensible" signature. Every function *could* get the signature "(*args, **kwargs)" but this imparts no useful semantic information

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-07-26 Thread Larry Hastings
Larry Hastings added the comment: This test also fails on Linux when using ZFS. -- nosy: +larry ___ Python tracker <http://bugs.python.org/issue19838> ___ ___

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-07-26 Thread Larry Hastings
Larry Hastings added the comment: Sorry to have such an awful configuration, but this approach won't fix the problem for me. I use a Linux "encrypted home directory", which uses crazy loopback mount logic to create an on-the-fly decrypted representation of my home director

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-07-26 Thread Larry Hastings
Larry Hastings added the comment: (By "this approach" I meant "the approach employed in the first patch posted". Sorry for the ambiguity.) -- ___ Python tracker <http://bug

[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-07-28 Thread Larry Hastings
Larry Hastings added the comment: Here's an updated patch. I cleaned it up a little. I think it's about ready to go in. Zachary, iirc you're a Windows guy and have helped with ensuring patches apply cleanly to Windows in the past. Can you give this a try on Windows? --

[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-07-28 Thread Larry Hastings
Larry Hastings added the comment: thanks! I'm flying from London to Brisbane (via Singapore), gonna take about a day. Now I have something to do on the flight ;-) (that and nullable ints) -- ___ Python tracker <http://bugs.python.org/is

[issue22096] Argument Clinic: add ability to specify an existing impl function

2014-07-29 Thread Larry Hastings
Larry Hastings added the comment: I'm with Martin. It would be a funny exception, where the reader'd get confused... why is the impl missing? Also, any halfway-decent optimizer will inline the impl into the parsing function, so this has no ru

[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-07-30 Thread Larry Hastings
Larry Hastings added the comment: Here's a fresh diff. I did some cleanup this time (Clinic now generates the #ifndef versions of the METHODDEF structures) and I believe solved everything MSVC complains about. Zachary, can you try this one? -- Added file: http://bugs.pytho

[issue20341] Argument Clinic: add "nullable ints"

2014-07-30 Thread Larry Hastings
Larry Hastings added the comment: Here's a fresh patch. After discussing with Martin at EuroPython, I moved the implementation into Python/getargs.c, and the prototypes into modsupport.h. I'm still using the example of "repeat.new" to show what it looks like and how

[issue20341] Argument Clinic: add "nullable ints"

2014-07-30 Thread Larry Hastings
Larry Hastings added the comment: Whoops, here's the patch. -- Added file: http://bugs.python.org/file36165/larry.nullable.ints.4.txt ___ Python tracker <http://bugs.python.org/is

[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-07-30 Thread Larry Hastings
Larry Hastings added the comment: Two small fixes from Zach (thanks again Zach!) and I updated against current trunk so it should apply cleanly. How's it look now? -- Added file: http://bugs.python.org/file36172/larry.clinicize.posixmodule.6

[issue20341] Argument Clinic: add "nullable ints"

2014-07-31 Thread Larry Hastings
Larry Hastings added the comment: FWIW, Martin agreed with me at EuroPython that "nullable int" is the proper name. So does Wikipedia: http://en.wikipedia.org/wiki/Nullable_type As for "repeat_new": like I said, I don't intend to check in this change when check

[issue9232] Allow trailing comma in any function argument list.

2014-07-31 Thread Larry Hastings
Larry Hastings added the comment: Moratorium's long over. Will this patch rise from the dead? -- nosy: +larry ___ Python tracker <http://bugs.python.org/i

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-03 Thread Larry Hastings
Larry Hastings added the comment: os.stat can return something more precise than nanosecond resolution? -- ___ Python tracker <http://bugs.python.org/issue19

[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-08-03 Thread Larry Hastings
Larry Hastings added the comment: Diff tweaked to undo the ill-concieved Py_RETURN_NONE change. Thanks, Zachary! Does it now compile and pass tests on Windows? -- Added file: http://bugs.python.org/file36240/larry.clinicize.posixmodule.7.diff

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-03 Thread Larry Hastings
Larry Hastings added the comment: So why can't you use the "ns" parameter for os.utime()? -- ___ Python tracker <http://bugs.python.org/issue19838> ___ __

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-03 Thread Larry Hastings
Larry Hastings added the comment: A cursory read of the source code suggests everybody is doing the right thing. Can you run this with a debug build of CPython, put a breakpoint in posix_utime, and check that when it's called for the second p.touch that it's correctly calling the

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-03 Thread Larry Hastings
Larry Hastings added the comment: And was the "time" argument passed in to utimes() set to NULL? -- ___ Python tracker <http://bugs.python.org/issue19838> ___ __

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-04 Thread Larry Hastings
Larry Hastings added the comment: The "no debug info" makes me think you're using a release build. Please recompile making sure that "-O0" and "-g" are both set. By default the makefile has "-O3" and "-g", so normally you just

[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-08-04 Thread Larry Hastings
Larry Hastings added the comment: Yeah, I've been meaning to mark all the Derby patches as 3.5. We're not adding new Clinic conversions to 3.4. -- ___ Python tracker <http://bugs.python.o

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-04 Thread Larry Hastings
Larry Hastings added the comment: Yup, you've got a debug build there. I'm baffled by that gdb "no debug info" line then. At line 4801 could you also print *utime print tv -- ___ Python tracker <http://bug

[issue20171] Derby #2: Convert 115 sites to Argument Clinic in Modules/_cursesmodule.c

2014-08-04 Thread Larry Hastings
Changes by Larry Hastings : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker <http://bugs.python.org/issue20171> ___ ___ Python-bugs-list mailing list Unsub

[issue20174] Derby #5: Convert 50 sites to Argument Clinic across 3 files

2014-08-04 Thread Larry Hastings
Larry Hastings added the comment: All the Derby patches should only go into trunk at this point. -- versions: +Python 3.5 -Python 3.4 ___ Python tracker <http://bugs.python.org/issue20

[issue20175] Derby #6: Convert 50 sites to Argument Clinic across 8 files

2014-08-04 Thread Larry Hastings
Larry Hastings added the comment: All the Derby patches should only go into trunk at this point. -- versions: +Python 3.5 -Python 3.4 ___ Python tracker <http://bugs.python.org/issue20

[issue20179] Derby #10: Convert 50 sites to Argument Clinic across 4 files

2014-08-04 Thread Larry Hastings
Larry Hastings added the comment: All the Derby patches should only go into trunk at this point. -- versions: +Python 3.5 -Python 3.4 ___ Python tracker <http://bugs.python.org/issue20

[issue20177] Derby #8: Convert 28 sites to Argument Clinic across 2 files

2014-08-04 Thread Larry Hastings
Larry Hastings added the comment: All the Derby patches should only go into trunk at this point. -- versions: +Python 3.5 -Python 3.4 ___ Python tracker <http://bugs.python.org/issue20

[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files

2014-08-04 Thread Larry Hastings
Larry Hastings added the comment: All the Derby patches should only go into trunk at this point. -- versions: +Python 3.5 -Python 3.4 ___ Python tracker <http://bugs.python.org/issue20

[issue20171] Derby #2: Convert 115 sites to Argument Clinic in Modules/_cursesmodule.c

2014-08-04 Thread Larry Hastings
Larry Hastings added the comment: All the Derby patches should only go into trunk at this point. -- ___ Python tracker <http://bugs.python.org/issue20171> ___ ___

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2014-08-04 Thread Larry Hastings
Larry Hastings added the comment: All the Derby patches should only go into trunk at this point. -- versions: +Python 3.5 -Python 3.4 ___ Python tracker <http://bugs.python.org/issue20

[issue20183] Derby #14: Convert 41 sites to Argument Clinic across 5 files

2014-08-04 Thread Larry Hastings
Larry Hastings added the comment: All the Derby patches should only go into trunk at this point. -- versions: +Python 3.5 -Python 3.4 ___ Python tracker <http://bugs.python.org/issue20

[issue20178] Derby #9: Convert 52 sites to Argument Clinic across 11 files

2014-08-04 Thread Larry Hastings
Larry Hastings added the comment: All the Derby patches should only go into trunk at this point. -- versions: +Python 3.5 -Python 3.4 ___ Python tracker <http://bugs.python.org/issue20

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2014-08-04 Thread Larry Hastings
Larry Hastings added the comment: All the Derby patches should only go into trunk at this point. -- versions: +Python 3.5 -Python 3.4 ___ Python tracker <http://bugs.python.org/issue20

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-08-04 Thread Larry Hastings
Larry Hastings added the comment: All the Derby patches should only go into trunk at this point. -- versions: +Python 3.5 -Python 3.4 ___ Python tracker <http://bugs.python.org/issue20

[issue20184] Derby #16: Convert 50 sites to Argument Clinic across 9 files

2014-08-04 Thread Larry Hastings
Larry Hastings added the comment: All the Derby patches should only go into trunk at this point. -- versions: +Python 3.5 -Python 3.4 ___ Python tracker <http://bugs.python.org/issue20

[issue20186] Derby #18: Convert 31 sites to Argument Clinic across 23 files

2014-08-04 Thread Larry Hastings
Larry Hastings added the comment: All the Derby patches should only go into trunk at this point. -- versions: +Python 3.5 -Python 3.4 ___ Python tracker <http://bugs.python.org/issue20

[issue20181] Derby #12: Convert 50 sites to Argument Clinic across 4 files

2014-08-04 Thread Larry Hastings
Larry Hastings added the comment: All the Derby patches should only go into trunk at this point. -- versions: +Python 3.5 -Python 3.4 ___ Python tracker <http://bugs.python.org/issue20

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-04 Thread Larry Hastings
Larry Hastings added the comment: I talked to puppet on IRC for a while and we figured out the following about his OS: * He has utime() and utimes(), but no utimensat(). * utimes() can write with *microsecond* resolution. * stat() reads the time with *nanosecond* resolution. (He has

[issue20586] Argument Clinic: functions with valid sig but no docstring have no __text_signature__

2014-08-04 Thread Larry Hastings
Larry Hastings added the comment: This looks reasonable to me. However I'd also change _PyType_GetDocFromInternalDoc() so that it also returns None if the first byte of the doc is \0. -- ___ Python tracker <http://bugs.python.org/is

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-04 Thread Larry Hastings
Larry Hastings added the comment: And to further confirm, on my Linux machine with a ZFS partition: * stat() returns nanosecond resolution. * I have utimensat(), which supports nanosecond resolution. * The test code correctly sets "utime.now = 1", so it correctly calls utimensat() w

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-04 Thread Larry Hastings
Larry Hastings added the comment: Attached is a simple C test case for the same behavior. On my Linux machine this prints "This is insane!" on a ZFS partition and "Everything is okay" on an ext4 partition. The test case won't work unmodified on FreeBSD. Try c

[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2014-08-04 Thread Larry Hastings
Larry Hastings added the comment: Those interested in this issue might also be interested in #19838, in which I demonstrate that utime(path, NULL) can set mtime to an *earlier* time on ZFS on Linux. -- title: Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS

[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-08-04 Thread Larry Hastings
Larry Hastings added the comment: Gonna keep an eye on the buildbots and make sure I haven't caused any new breakage. Otherwise... fingers crossed, I think it's done! Thanks for the help everybody (particularly Zach!). -- ___ Pyth

[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

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

[issue22120] Code Argument Clinic has a warning

2014-08-04 Thread Larry Hastings
Larry Hastings added the comment: The title for this bug was almost offensively generic; it was hard to find in my email. If this new one is inaccurate, fix it--but please pick something more specific. Attached is a patch for the "_return_value == -1" behavior for unsigned. --

[issue22120] Return converter code generated by Argument Clinic has a warning for unsigned types

2014-08-04 Thread Larry Hastings
Changes by Larry Hastings : -- title: Code Argument Clinic has a warning -> Return converter code generated by Argument Clinic has a warning for unsigned types ___ Python tracker <http://bugs.python.org/issu

[issue22120] Return converter code generated by Argument Clinic has a warning for unsigned types

2014-08-05 Thread Larry Hastings
Larry Hastings added the comment: Fixed and closed. I'm assuming Victor will break the other patch out into its own issue. Since IIUC there's no code in 3.4 that uses an unsigned integer return converter, I'm not backporting the fix. -- resolution: -> fixed st

[issue20291] Argument Clinic should understand *args and **kwargs parameters

2014-08-18 Thread Larry Hastings
Larry Hastings added the comment: So, let's think about this for a minute. What's the API that we *want* here? If your function has the signature (a, b, c=20, *args) and you call it with (1, 2, 3, 4, 5) should "args" be (4, 5), or (1, 2, 3, 4, 5)? I assert that the

[issue15237] Add capsule API to _decimal

2014-09-03 Thread Larry Hastings
Larry Hastings added the comment: I think #22194 is a duplicate issue. -- ___ Python tracker <http://bugs.python.org/issue15237> ___ ___ Python-bugs-list mailin

[issue22194] access to cdecimal / libmpdec API

2014-09-03 Thread Larry Hastings
Larry Hastings added the comment: I think this is a duplicate of #15237. -- nosy: +larry ___ Python tracker <http://bugs.python.org/issue22194> ___ ___ Python-bug

[issue22194] access to cdecimal / libmpdec API

2014-09-03 Thread Larry Hastings
Larry Hastings added the comment: Are there any other modules where the capsule API works in both CPython and PyPy? I thought capsule APIs were decidedly implementation-specific. Not that I'm not for it in theory. But this is some crazy uncharted hyper-compatibility territory we'

[issue21112] 3.4 regression: unittest.expectedFailure no longer works on TestCase subclasses

2014-09-07 Thread Larry Hastings
Larry Hastings added the comment: Note: current plan for 3.4.2 is to release at the end of the month. RC1 will be in about a week. -- ___ Python tracker <http://bugs.python.org/issue21

[issue21199] Python on 64-bit Windows uses signed 32-bit type for read length

2014-09-11 Thread Larry Hastings
Larry Hastings added the comment: Ping? -- ___ Python tracker <http://bugs.python.org/issue21199> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22366] urllib.request.urlopen shoudl take a "context" (SSLContext) argument

2014-09-19 Thread Larry Hastings
Larry Hastings added the comment: Alex said he needed this in order to implement PEP 476, and I thought PEP 476 was going in to 3.4 (hopefully for 3.4.2, which I'm tagging in like 24 hours). -- nosy: +larry ___ Python tracker

[issue21354] PyCFunction_New no longer exposed by python DLL breaking bdist_wininst installers

2014-09-20 Thread Larry Hastings
Larry Hastings added the comment: This is still not fixed. -- ___ Python tracker <http://bugs.python.org/issue21354> ___ ___ Python-bugs-list mailing list Unsub

[issue22461] Test failure: Lib/test/test_pydoc.py line 851, "topic?key=def"

2014-09-22 Thread Larry Hastings
New submission from Larry Hastings: I get a test failure in the regression test suite. This appears to be the important bit: Traceback (most recent call last): File "/tmp/Python-3.4.2rc1/Lib/test/test_pydoc.py", line 851, in test_url_requests self.assertEqual(res

[issue22461] Test failure: Lib/test/test_pydoc.py line 851, "topic?key=def"

2014-09-22 Thread Larry Hastings
Larry Hastings added the comment: FWIW, 3.4.2rc1 is based on 7af0315bdfe0. (The release process creates a couple additional changesets.) The failure is on my laptop, Ubuntu 14.04 x64. -- ___ Python tracker <http://bugs.python.org/issue22

[issue21431] 3.4.1rc1 test_pydoc fails: pydoc_data.topics.topics values are type "bytes" not "str"

2014-09-22 Thread Larry Hastings
Larry Hastings added the comment: If this is fixed, then how come I hit it again today? -- ___ Python tracker <http://bugs.python.org/issue21431> ___ ___ Pytho

[issue21431] 3.4.1rc1 test_pydoc fails: pydoc_data.topics.topics values are type "bytes" not "str"

2014-09-22 Thread Larry Hastings
Larry Hastings added the comment: Oh, because it was only fixed today. As Emily Litella used to say... never mind! -- ___ Python tracker <http://bugs.python.org/issue21

[issue22203] inspect.getargspec() returns wrong spec for builtins

2014-09-26 Thread Larry Hastings
Larry Hastings added the comment: We should be able to get proper signatures for 3.5. For 3.4, probably the best thing is to prevent the signature / raise an error. -- ___ Python tracker <http://bugs.python.org/issue22

[issue22568] Use of "utime" as variable name in Modules/posixmodule.c causes errors

2014-10-06 Thread Larry Hastings
Larry Hastings added the comment: I don't understand. If utime is a *function*, then the local variable should simply take precedence. Do you possibly mean that utime is a *macro*? What compilation error do you get? -- ___ Python tracker

[issue19973] Deprecate pyio

2013-12-13 Thread Larry Hastings
New submission from Larry Hastings: Does it make sense to finally deprecate pyio, so we can eventually delete it? -- messages: 206060 nosy: larry priority: normal severity: normal status: open title: Deprecate pyio versions: Python 3.5 ___ Python

[issue19973] Deprecate pyio

2013-12-13 Thread Larry Hastings
Changes by Larry Hastings : -- nosy: +pitrou ___ Python tracker <http://bugs.python.org/issue19973> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19973] Deprecate pyio

2013-12-13 Thread Larry Hastings
Larry Hastings added the comment: I hadn't! I guess we're signed up to maintain two implementations of a bunch of things for eternity, then. -- resolution: -> wont fix stage: -> committed/rejected status: open -> closed ty

[issue19846] Python 3 raises Unicode errors with the C locale

2013-12-13 Thread Larry Hastings
Larry Hastings added the comment: > "The fact that write() -> open() relies on sys.getfilesystemencoding() > (respectively locale.getpreferredencoding()) at default as encoding is > either a defect or a bad design (I leave the decision to you)." > > Or am I overlo

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