[issue8502] support plurals in pygettext

2013-11-19 Thread A.M. Kuchling
A.M. Kuchling added the comment: Applied my documentation patch. New changeset 4fe87b5df2d0 by Andrew Kuchling in branch '3.3': #1098749: re-word gettext docs to not encourage using pygettext so much. http://hg.python.org/cpython/rev/4fe87b5df2d0

[issue16042] smtplib: unlimited readline() from connection

2013-11-12 Thread A.M. Kuchling
A.M. Kuchling added the comment: Serhiy, your version of the patch for 2.7 looks fine. I've attached a version of the patch for 3.3. A change is needed to the MockFile object provided by Lib/test/mock_socket.py -- Added file: http://bugs.python.org/file32590/3.3-fix.txt

[issue1500504] Alternate RFC 3986 compliant URI parsing module

2013-11-12 Thread A.M. Kuchling
A.M. Kuchling added the comment: Here's a slightly modified version of urischeme.py that can be run under Python 3 and compares its results with urllib.parse, printing out the mismatches. The major differences seem to be 1) urischeme fills in the default port if it's not explicitly provided

[issue15858] tarfile missing entries due to omitted uid/gid fields

2013-11-11 Thread A.M. Kuchling
A.M. Kuchling added the comment: Here's the changes from patch.py, put into patch format. I took out the inlining for ntb() and support for different tarfile APIs, and also replaced the use of .split(,1)[0] by .partition(). -- nosy: +akuchling Added file: http://bugs.python.org

[issue16776] Document PyCFunction_New and PyCFunction_NewEx functions

2013-11-11 Thread A.M. Kuchling
A.M. Kuchling added the comment: Here's a patch that contains text for a description of these two functions. However, I can't figure out what section they would belong in. They don't really belong in http://docs.python.org/3.4/c-api/structures.html, which is for the C structures. Also note

[issue16776] Document PyCFunction_New and PyCFunction_NewEx functions

2013-11-11 Thread A.M. Kuchling
A.M. Kuchling added the comment: Mis-clicked and forgot to attach the patch. -- Added file: http://bugs.python.org/file32578/16776.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16776

[issue8502] support plurals in pygettext

2013-11-11 Thread A.M. Kuchling
A.M. Kuchling added the comment: Here's an updated version of the documentation patch, that doesn't encourage using pygettext so much. It also updates Barry Warsaw's e-mail address and makes some other small edits. -- nosy: +akuchling Added file: http://bugs.python.org/file32579

[issue10552] Tools/unicode/gencodec.py error

2013-11-10 Thread A.M. Kuchling
A.M. Kuchling added the comment: For the Mac issue, we could just delete the mapping files before processing them. I've attached a patch that modifies the Makefile. -- nosy: +akuchling Added file: http://bugs.python.org/file32565/10552-remove-apple-files.txt

[issue1097797] Encoding for Code Page 273 used by EBCDIC Germany Austria

2013-11-10 Thread A.M. Kuchling
A.M. Kuchling added the comment: Committed this to 3.4. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1097797

[issue19544] Port distutils as found in Python 2.7 to Python 3.x.

2013-11-10 Thread A.M. Kuchling
A.M. Kuchling added the comment: I went through Python 2.7's Misc/NEWS file and collected the entries for Distutils-related issues that were applied. Perhaps we can check the individual entries on this list, and see which ones are still present in Python 3.x and which ones got reverted

[issue19544] Port distutils as found in Python 2.7 to Python 3.x.

2013-11-10 Thread A.M. Kuchling
A.M. Kuchling added the comment: Issue #11104 also made some functionality work in both 2.7 and 3.2, though it's not clear that the problem stemmed from the distutils2 revert. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue1180] Option to ignore or substitute ~/.pydistutils.cfg

2013-11-10 Thread A.M. Kuchling
A.M. Kuchling added the comment: Here's a patch to restore the --no-user-cfg switch to 3.4. If someone will take a quick look at the patch for sanity, I can apply it. -- keywords: +needs review resolution: fixed - stage: - patch review versions: +Python 3.4 -Python 2.7, Python 3.1

[issue6516] reset owner/group to root for distutils tarballs

2013-11-10 Thread A.M. Kuchling
A.M. Kuchling added the comment: Here's an updated patch, to be applied against the default branch. -- nosy: +akuchling stage: - patch review Added file: http://bugs.python.org/file32571/3.4-patch.txt ___ Python tracker rep...@bugs.python.org http

[issue19544] Port distutils as found in Python 2.7 to Python 3.x.

2013-11-10 Thread A.M. Kuchling
A.M. Kuchling added the comment: Patches for the default branch have been added to issue1180 (option to ignore ~/.pydistutils.cfg) and issue6516 (setting the owner/group in Distutils-built tarballs). Please double-check those patches; I can apply them

[issue6516] reset owner/group to root for distutils tarballs

2013-11-10 Thread A.M. Kuchling
Changes by A.M. Kuchling a...@amk.ca: -- versions: +Python 3.4 -Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6516

[issue3849] FUD in documentation for urllib.urlopen()

2013-11-06 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- keywords: -easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3849 ___ ___ Python-bugs-list mailing

[issue626452] Support RFC 2392 in email package

2013-11-06 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- keywords: -easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue626452 ___ ___ Python-bugs-list mailing

[issue634412] RFC 2387 in email package

2013-11-06 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- keywords: -easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue634412 ___ ___ Python-bugs-list mailing

[issue8799] Hang in lib/test/test_threading.py

2013-11-06 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- keywords: -easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8799 ___ ___ Python-bugs-list mailing

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

2013-11-06 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- keywords: -easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7839 ___ ___ Python-bugs-list mailing

[issue11965] Simplify context manager in os.popen

2013-11-06 Thread A.M. Kuchling
A.M. Kuchling added the comment: Closing this issue; I agree with Ronald's assessment. -- nosy: +akuchling resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11965

[issue1348] httplib closes socket, then tries to read from it

2013-11-06 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- resolution: - invalid status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1348

[issue1671676] test_mailbox is hanging while doing gmake test on HP-UX v3

2013-11-06 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- status: open - languishing ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1671676 ___ ___ Python-bugs

[issue7593] Computed-goto patch for RE engine

2013-11-06 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7593

[issue834840] Unhelpful error message from cgi module

2013-11-06 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue834840

[issue8003] Fragile and unexpected error-handling in asyncore

2013-11-06 Thread A.M. Kuchling
A.M. Kuchling added the comment: asyncore is no longer maintained, so this will not get fixed. -- nosy: +akuchling resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8003

[issue7061] Improve turtle module documentation

2013-11-06 Thread A.M. Kuchling
A.M. Kuchling added the comment: Is there anything left to do for this issue? -- nosy: +akuchling ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7061

[issue6868] Check errno of epoll_ctrl

2013-11-06 Thread A.M. Kuchling
A.M. Kuchling added the comment: I don't understand the bug being reported. The code you quote should probably be written as if (result 0 errno == EBADF), but the block's net effect is to ignore an error by resetting result and errno. It doesn't matter if we occasionally set result

[issue1565525] tracebacks eat up memory by holding references to locals and globals when they are not wanted

2013-09-15 Thread A.M. Kuchling
A.M. Kuchling added the comment: Ping! I'd like to change the function name to clear_frames() and then commit this. Antoine or anyone, want to disagree with using clear_frames() as the name? -- ___ Python tracker rep...@bugs.python.org http

[issue16042] smtplib: unlimited readline() from connection

2013-09-15 Thread A.M. Kuchling
A.M. Kuchling added the comment: The patch requires a little adjusting to apply against 2.6. -- nosy: +akuchling Added file: http://bugs.python.org/file31772/smtplib-2.6.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue16042] smtplib: unlimited readline() from connection

2013-09-15 Thread A.M. Kuchling
A.M. Kuchling added the comment: Here's a final proposed version of the patch for 2.6 that adds a test. Changes made: * code now raises SMTPResponseException instead of a new SMTPLineTooLong exception; bwarsaw deemed that adding a new exception class was changing the module API. * we

[issue16038] ftplib: unlimited readline() from connection

2013-09-15 Thread A.M. Kuchling
A.M. Kuchling added the comment: For 2.6 I'll make a revised version of Giampaolo's patch that doesn't add a new exception class. Rationale: Adding a new exception class changes the API of the module, which we'd like to avoid. If someone is writing 2.6 code that wants to catch

[issue16042] smtplib: unlimited readline() from connection

2013-09-15 Thread A.M. Kuchling
A.M. Kuchling added the comment: I took Serhiy's suggestion and just moved up the 'if size' check in the loop. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16042

[issue16038] ftplib: unlimited readline() from connection

2013-09-15 Thread A.M. Kuchling
A.M. Kuchling added the comment: 2.6 version of the patch. Changes from Giampaolo's version of the patch: * 2.6 didn't have FTP over TLS, so the patch changes slightly to adapt. * Removed the LineTooLong exception class and just raise Error instead. (This repeats the message text for Line

[issue16039] imaplib: unlimited readline() from connection

2013-09-15 Thread A.M. Kuchling
A.M. Kuchling added the comment: Updated version of the patch against 2.6 that adds a test. Thanks for the fix, Emil! -- nosy: +akuchling Added file: http://bugs.python.org/file31778/imaplib.txt ___ Python tracker rep...@bugs.python.org http

[issue1565525] tracebacks eat up memory by holding references to locals and globals when they are not wanted

2013-09-10 Thread A.M. Kuchling
A.M. Kuchling added the comment: I'm happy to change the function name, though I'll note that the traceback module does have print_tb(), format_tb() and extract_tb(). I'm OK with both of Victor's suggestions but personally slightly prefer traceback.clear_frames(tb). Rationale: People who

[issue1565525] tracebacks eat up memory by holding references to locals and globals when they are not wanted

2013-09-08 Thread A.M. Kuchling
A.M. Kuchling added the comment: Here's a patch implementing traceback.clear_tb_frames(). (Feel free to bikeshed about the name.) One more substantial question: the top frame of the traceback is possibly still running. Currently the code skips it by doing an initial 'tb = tb.tb_next

[issue1565525] tracebacks eat up memory by holding references to locals and globals when they are not wanted

2013-09-08 Thread A.M. Kuchling
A.M. Kuchling added the comment: Revised version of the patch: catches RuntimeError instead of skipping the first frame; adds versionadded tag; adds entry to NEWS and whatsnew files. -- Added file: http://bugs.python.org/file31692/clear-tb-frames-2.txt

[issue18562] Regex howto: revision pass

2013-08-18 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18562

[issue18562] Regex howto: revision pass

2013-08-18 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- stage: patch review - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18562

[issue18445] Tools/Script/Readme is outdated

2013-08-18 Thread A.M. Kuchling
A.M. Kuchling added the comment: Seydou: thanks for the patch! I've applied it to 3.4. -- nosy: +akuchling resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http

[issue18562] Regex howto: revision pass

2013-08-17 Thread A.M. Kuchling
A.M. Kuchling added the comment: Slightly revised version that modifies the discussion of when to pre-compile a regex and when to not bother. I don't think this is a very important issue, so I don't think it needs a long discussion. -- Added file: http://bugs.python.org/file31348

[issue18562] Regex howto: revision pass

2013-07-26 Thread A.M. Kuchling
New submission from A.M. Kuchling: I read through the 3.3 regex howto and have made various edits in the attached patch. * describe how \w is different when used in bytes and Unicode patterns. * describe re.ASCII flag to change that behaviour. * remove a personal reference ('I generally

[issue12716] Reorganize os docs for files/dirs/fds

2013-06-29 Thread A.M. Kuchling
A.M. Kuchling added the comment: Closing this issue after a week. Mike Hoy: thanks for your patch. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12716

[issue4199] add shorthand global and nonlocal statements

2013-06-29 Thread A.M. Kuchling
A.M. Kuchling added the comment: Bumping version to 3.4. I'll send a note to python-dev about this issue. -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4199

[issue18113] Memory leak in curses.panel

2013-06-24 Thread A.M. Kuchling
A.M. Kuchling added the comment: I believe the most recent 2 commits fix the segfault problem, so I'll now close this again. Please re-open if there are further issues with the bugfix. -- resolution: - fixed stage: commit review - committed/rejected status: open - closed

[issue18280] Documentation is too personalized

2013-06-22 Thread A.M. Kuchling
A.M. Kuchling added the comment: I've looked through the matches. I/O and the -I command-line switch are false positives. Many references in the FAQ (How do I do X?), but those don't need to be fixed. I think personalized references are most problematic when they're expressing

[issue18220] In itertools.islice() make prototype like in help()

2013-06-21 Thread A.M. Kuchling
A.M. Kuchling added the comment: This bug is entirely too cryptic. What exactly is the problem you're trying to fix? -- nosy: +akuchling ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18220

[issue12716] Reorganize os docs for files/dirs/fds

2013-06-21 Thread A.M. Kuchling
A.M. Kuchling added the comment: Mike Hoy: a later patch (http://bugs.python.org/issue14626) changed the API in the os module so that the wrappers for *at() functions went away; fchmod() now takes several different forms of argument and calls the correct function under the hood

[issue12716] Reorganize os docs for files/dirs/fds

2013-06-21 Thread A.M. Kuchling
A.M. Kuchling added the comment: I didn't see any other constants that aren't close to the function they're used with. Can this issue be closed, or are there other changes to make? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue4153] Unicode HOWTO up to date?

2013-06-20 Thread A.M. Kuchling
A.M. Kuchling added the comment: As far as I can tell, there are no other outstanding suggestions for howto updates, so I'll now close this item. Feel free to re-open or file a new item if there are further improvements that can be made. -- resolution: - fixed stage: commit review

[issue18272] In itertools recipes there is a typo in __builtins__

2013-06-20 Thread A.M. Kuchling
A.M. Kuchling added the comment: Thanks for your report! I've corrected the error on the 3.3 and 3.4 branches. -- nosy: +akuchling ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18272

[issue18250] In itertools.repeat() object shadows object()

2013-06-20 Thread A.M. Kuchling
A.M. Kuchling added the comment: Thanks for your bug report and patch, but I agree that we can't change this. The repeat() function really does take 'object' as the keyword argument: from itertools import * list(repeat(times=3, object='abc')) ['abc', 'abc', 'abc'] repeat(times=3, element

[issue18113] Memory leak in curses.panel

2013-06-16 Thread A.M. Kuchling
A.M. Kuchling added the comment: serhiy.storchaka: good point! I wonder if, for strict correctness, we should only incref obj (the new object) if set_panel_userptr() returns OK and not an error code. I've attached a new version of the patch that does this check, and also adds a test. (OTOH

[issue18113] Memory leak in curses.panel

2013-06-15 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- nosy: +akuchling ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18113 ___ ___ Python-bugs-list mailing

[issue18113] Memory leak in curses.panel

2013-06-15 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- stage: needs patch - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18113

[issue18113] Memory leak in curses.panel

2013-06-15 Thread A.M. Kuchling
A.M. Kuchling added the comment: Thanks for the bug report! I've committed a fix to the 2.7 and 3.3 branches that retrieves the existing userptr and Py_DECREFs it if it's not null. This seems to fix the leak. -- assignee: - akuchling resolution: - fixed status: open - closed

[issue18179] SMTP.local_hostname is undocumented

2013-06-14 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- nosy: +akuchling ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18179 ___ ___ Python-bugs-list mailing

[issue18155] csv.Sniffer.has_header doesn't escape characters used in regex

2013-06-14 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- nosy: +akuchling ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18155 ___ ___ Python-bugs-list mailing

[issue11352] Update cgi module doc

2013-06-14 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- nosy: +akuchling ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11352 ___ ___ Python-bugs-list mailing

[issue1611154] os.path.exists(file/) failure on Solaris 9

2013-06-13 Thread A.M. Kuchling
A.M. Kuchling added the comment: Here's an updated version of the patch. It at least compiles and runs on MacOS, but I don't have a Solaris installation to check whether it still fixes the problem on Solaris 9. Note that, according to http://en.wikipedia.org/wiki/Solaris_(operating_system

[issue18177] Typo in Documents

2013-06-10 Thread A.M. Kuchling
A.M. Kuchling added the comment: Confirmed. I think this is a general typographic issue in the PDF documentation. If I cut-and-paste the datetime.isoformat(sep='T') line from the PDF, the single quotes are pasted as U+2019 RIGHT SINGLE QUOTE. Looking at the library.tex file built by make

[issue14015] surrogateescape largely missing from documentation

2013-06-09 Thread A.M. Kuchling
A.M. Kuchling added the comment: Here's a proposed patch that touches the Sphinx documentation and a docstring in codecs.py. The text is slightly revised from my current revisions to the Unicode howto. help(open) says See the documentation for codecs.register for a list of the permitted

[issue14015] surrogateescape largely missing from documentation

2013-06-08 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- nosy: +akuchling ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14015 ___ ___ Python-bugs-list mailing

[issue4153] Unicode HOWTO up to date?

2013-06-08 Thread A.M. Kuchling
A.M. Kuchling added the comment: Continuing my tour of the howtos, here's a patch making many of the changes discussed here and on issue13997. Changes made: * state that python3 source encoding is UTF-8, and give examples * mention surrogateescape in the 'tips and tricks' section

[issue4153] Unicode HOWTO up to date?

2013-06-08 Thread A.M. Kuchling
A.M. Kuchling added the comment: Updated version of my patch, which adds two more todo items and handles Ezio's review comments: * Switch from Greek examples to French, and remove non-Latin-1 characters. * Change language for bytes.decode to but supports a few more possible handlers

[issue18066] Remove SGI-specific code from pty.py

2013-06-01 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18066

[issue1554133] PyOS_InputHook() and related API funcs. not documented

2013-05-28 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- resolution: - fixed stage: commit review - committed/rejected status: open - closed versions: -Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1554133

[issue16102] uuid._netbios_getnode() is outdated

2013-05-28 Thread A.M. Kuchling
A.M. Kuchling added the comment: This patch seems obviously correct to me, so it should be applied. It looks like there's already a test in test_uuid.py that exercises _netbios_getnode() if the netbios module is importable, so there's no test to add, though maybe we need a buildbot that has

[issue18020] html.escape 10x slower than cgi.escape

2013-05-28 Thread A.M. Kuchling
A.M. Kuchling added the comment: Matt's patch looks good to me. It removes two module-level dicts, but they're marked as internal, so that's OK. There's already a test case that exercises html.escape(), so I don't think any additional tests are needed. -- nosy: +akuchling

[issue967161] pty.spawn() enhancements

2013-05-26 Thread A.M. Kuchling
A.M. Kuchling added the comment: It looks like the problem on OpenIndiana with #2489 was fixed. As of May 25th, the 3.x build on OpenIndiana is a green. http://buildbot.python.org/all/builders/x86%20OpenIndiana%203.x/builds/5962 So, 2) is a misunderstanding and 1) was carried out in #2489

[issue18066] Remove SGI-specific code from pty.py

2013-05-26 Thread A.M. Kuchling
New submission from A.M. Kuchling: pty.py contains some code that tries to do 'import sgi' and then does something SGI-specific. sgimodule.c was dropped in 3.0alpha1, so this code is now useless. The attached patch removes it; I'm posting the code review largely in case someone wants

[issue17700] Update Curses HOWTO for 3.4

2013-05-26 Thread A.M. Kuchling
A.M. Kuchling added the comment: I can't make sense of unget_wch. I used this test program: import curses def main(stdscr): stdscr.addstr(0,0, Key) stdscr.refresh() curses.ungetch(0x0149) while True: ch = stdscr.get_wch() stdscr.addstr(1,1, repr(ch

[issue1554133] PyOS_InputHook() and related API funcs. not documented

2013-05-24 Thread A.M. Kuchling
A.M. Kuchling added the comment: Here's a proposed patch to the c-api manual that describes these two pointers. I put them in the 'very high-level API' section. Maybe they belong in the Operating System Utilities section instead, but I think they're intertwined with the interpreter loop

[issue1554133] PyOS_InputHook() and related API funcs. not documented

2013-05-24 Thread A.M. Kuchling
A.M. Kuchling added the comment: One question about the patch: how to give the prototype expected for the function? I currently have it as: char *(*PyOS_ReadlineFunctionPointer)(FILE *stdin, FILE *stdout, char *prompt) Would it be better with a trivial function name, as in: char *func(FILE

[issue17955] Minor updates to Functional HOWTO

2013-05-20 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17955

[issue17955] Minor updates to Functional HOWTO

2013-05-20 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- stage: commit review - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17955

[issue16024] Doc cleanup regarding path=fd, dir_fd, follow_symlinks, etc

2013-05-14 Thread A.M. Kuchling
A.M. Kuchling added the comment: Kaleb Robertson's changes look good. Larry, do you want to go ahead and commit this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16024

[issue17955] Minor updates to Functional HOWTO

2013-05-14 Thread A.M. Kuchling
A.M. Kuchling added the comment: Updated version of the patch: * uses 'r' instead of 'N'. * removes the old outline and some notes at the end. * minor rewriting. -- Added file: http://bugs.python.org/file30257/functional.txt ___ Python tracker rep

[issue17955] Minor updates to Functional HOWTO

2013-05-11 Thread A.M. Kuchling
New submission from A.M. Kuchling: I read through the 3.x Functional HOWTO, and it only seems to require a few minor updates. The attached patch: * adds a forward link to skip the theoretical discussion in the first section. * remove stray extra comma * clarify what filterfalse

[issue5901] missing meta-info in documentation pdf

2013-05-10 Thread A.M. Kuchling
A.M. Kuchling added the comment: This seems to be fixed now. I downloaded python-3.3.1-docs-pdf-letter.tar.bz2 and ran pdfinfo on using.pdf: Title: Python Setup and Usage Subject: Keywords: Author: Guido van Rossum, Fred L. Drake, Jr., editor Creator

[issue17700] Update Curses HOWTO for 3.4

2013-05-09 Thread A.M. Kuchling
A.M. Kuchling added the comment: I've just verified that I still have commit access to the repo, so unless someone has any further suggested changes to the patch, I'll go ahead and commit it to trunk. Should I also commit it to the 3.3 branch? Victor: I'm willing to improve the HOWTO's

[issue17700] Update Curses HOWTO for 3.4

2013-05-09 Thread A.M. Kuchling
A.M. Kuchling added the comment: Applied to 3.3 and 3.4. I'll leave this issue open for a week so that Victor can comment on Unicode/wide-characters. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17700

[issue14878] Improve documentation for generator.send method

2013-05-09 Thread A.M. Kuchling
A.M. Kuchling added the comment: Thanks for the patch! -- nosy: +akuchling resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14878

[issue17700] Update Curses HOWTO for 3.4

2013-04-29 Thread A.M. Kuchling
A.M. Kuchling added the comment: Updated version of the patch, applying many changes suggested by merwok: * use ~curses.funcname notation for links. * use 3-hyphen em-dash * minor fixes to various examples * rewrap long paragraphs (this makes the diff larger -- sorry!) -- Added file

[issue17700] Update Curses HOWTO for 3.4

2013-04-29 Thread A.M. Kuchling
A.M. Kuchling added the comment: Victor: I would like to add a section about using Unicode characters with curses, but found little material about doing that in either Python or the underlying C API. Do you have any suggested references or example code that I could look at? (It's probably

[issue17729] advocacy howto improvements

2013-04-22 Thread A.M. Kuchling
A.M. Kuchling added the comment: I suggest just dropping this HOWTO. It was written to contrast using Python with using only a low-level language such as C. Today there may still be some people arguing over whether to use a low-level or high-level language, but I think the idea of using

[issue17700] Update Curses HOWTO for 3.4

2013-04-12 Thread A.M. Kuchling
A.M. Kuchling added the comment: Updated version of the patch: * Correct the errors reported in the review. * Restore 3-space indents. * Mention the LINES and COLS variables. * Add more links to the final section. I believe everything in the howto also applies to 3.3; it would be fine if you

[issue17686] Doc using/unix broken link (http://linuxmafia.com/)

2013-04-12 Thread A.M. Kuchling
A.M. Kuchling added the comment: Perhaps http://en.opensuse.org/Portal:Packaging is a good replacement. -- nosy: +akuchling ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17686

[issue17700] Update Curses HOWTO for 3.4

2013-04-11 Thread A.M. Kuchling
New submission from A.M. Kuchling: Here's a patch updating the Curses HOWTO for 3.4 that can be applied to the default branch. Changes: * curses.wrapper.wrapper is now just curses.wrapper * Mention window.encoding and its effect on Unicode. * Describe getkey() as well as getch() * Improve

[issue16754] Incorrect shared library extension on linux

2013-04-02 Thread A.M. Kuchling
A.M. Kuchling added the comment: I just tried building trunk on MacOS 10.6.8, and make install fails with this traceback: Traceback (most recent call last): File ./setup.py, line 2175, in module main() File ./setup.py, line 2170, in main Tools/scripts/2to3, Tools/scripts/pyvenv

[issue6683] smtplib authentication - try all mechanisms

2012-11-03 Thread A.M. Kuchling
A.M. Kuchling added the comment: The attached patch against trunk (3.4) exercises the multiple-authentication functionality; the SMTP server advertises four different authentication methods, and the code will try CRAM-MD5 first, which will fail, but LOGIN succeeds. If this patch is OK

[issue9109] absolute import cleanups for Python 3

2012-11-03 Thread A.M. Kuchling
A.M. Kuchling added the comment: It seems to me that this issue was fixed for Python 3.3 by commit 2dd046be2c88 for #2377, which made importlib the implementation of __import__(). Python/import.c now raises a ValueError if level 0, and the docstring has been corrected to have 'level=0

[issue16024] Doc cleanup regarding path=fd, dir_fd, follow_symlinks, etc

2012-11-03 Thread A.M. Kuchling
A.M. Kuchling added the comment: Patch looks good with two small changes. * for consistency's sakes is used in 2 places; this should be sake, not the plural sakes. * Normally the *path* argument specified to functions: 'specified to' sounds wrong, and IMHO would be better as 'provided

[issue11166] No exit when daemon thread is running.

2012-11-03 Thread A.M. Kuchling
A.M. Kuchling added the comment: Closing, since the original reporter believes the problem was fixed. -- nosy: +akuchling resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11166

[issue9584] Allow curly brace expansion

2012-11-03 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9584 ___ ___ Python-bugs

[issue9584] Allow curly brace expansion

2012-11-03 Thread A.M. Kuchling
A.M. Kuchling added the comment: Help is still needed to debug the failing test_glob.py on Windows. I just tried this patch against 3.4trunk. The first hunk of the glob.py patch doesn't apply because 'for name in glob1(None, basename): yield name' was changed to 'yield from glob1(None

[issue7695] missing termios constants

2012-11-03 Thread A.M. Kuchling
A.M. Kuchling added the comment: Patch seems clearly correct; compiles works on MacOS. We could just apply this. -- nosy: +akuchling versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7695

[issue15076] Sometimes couldn't import os, shown 'import site' failed, use -v for trackback

2012-11-03 Thread A.M. Kuchling
A.M. Kuchling added the comment: Installation bug; nothing to fix. -- nosy: +akuchling resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15076

[issue14713] PEP 414 installation hook fails with an AssertionError

2012-11-03 Thread A.M. Kuchling
A.M. Kuchling added the comment: Duplicate of #9974. The tokenizer is choking on lines that end in '\'. So even this can't be parsed: a = 1 + \ 2 -- nosy: +akuchling superseder: - tokenizer.untokenize not invariant with line continuations

<    1   2   3   4   5   6   >