[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-12-23 Thread Stephen J. Turnbull
Stephen J. Turnbull added the comment: Re: msg124528 Yes, XEmacs installs a signal handler on what are normally fatal errors. (I don't know about GNU Emacs but they probably do too.) The handler has two functions: to display a Lisp backtrace and to output a message explaining how to r

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I obviously misunderstood the instruction about 'x-' and will remove that. Should I leave the entry where it is or move as Éric suggested? -- Added file: http://bugs.python.org/file20149/mimetypes

[issue10730] add .svgz to mimetypes.suffix_map and .svg to types_map

2010-12-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: r87460 -- resolution: -> accepted status: open -> closed ___ Python tracker <http://bugs.python.org/issue10730> ___ ___

[issue9090] Error code 10035 calling socket.recv() on a socket with a timeout (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)

2010-12-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.6 is closed except for security fixes, which this does not seem to be. If the problem is in 2.7, then it potentially could be fixed there, but with the same caveats. I will let Antoine reclose if he thinks appropriate. -- nosy: +terry.reedy stage

[issue10733] plistlib rejects strings containing control characters

2010-12-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mitchell: 2.6 is closed to revision except for security issues -- nosy: +terry.reedy resolution: wont fix -> versions: +Python 3.2 -Python 2.6 ___ Python tracker <http://bugs.python.org/issu

[issue10738] webbrowser.py bug with Opera on Linux

2010-12-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: According to the linked doc, Opera has '-noraise' but not '-raise' as a command line option (to not raise window when receiving remote commands). It does have '"raise()"' (with quotes and parens, but not "n

[issue10742] memoryview.readonly attribute is not documented

2010-12-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with addition. Patch look OK to my limited .rst knowledge. To be more parallel to the other entries, the text might say "A bool indicating whether ..." -- nosy: +terry.reedy stage: -> patch review versions: +Python 3.

[issue10756] Error in atexit._run_exitfuncs [...] Exception expected for value, str found

2010-12-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -BreamoreBoy ___ Python tracker <http://bugs.python.org/issue10756> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10757] zipfile.write, arcname should be bytestring

2010-12-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +aimacintyre stage: -> unit test needed type: compile error -> behavior versions: +Python 3.2 ___ Python tracker <http://bugs.python.org/i

[issue10762] strftime('%f') segfault

2010-12-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified problem with 3.2b1 on 32-bit winxp machine. IDLE restarts after pythonw crashes. -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue10

[issue10733] plistlib rejects strings containing control characters

2010-12-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker <http://bugs.python.org/issue10733> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10768] Bug in scrolledtext

2010-12-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since 'methods' is converted to a set in the next line, there is no need for lists. Instead, use | and delete the conversion. methods = vars(Pack).keys() + vars(Grid).keys() + vars(Place).keys() methods = set(methods).difference(text_meth

[issue10769] ast: provide more useful range information

2010-12-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: A request limited only to fixing the current field for attribute may get more traction than a request for a new field. Can you dig into to code to get any idea why the difference between attributes versus indexes and parameters? -- nosy: +terry.reedy

[issue10769] ast: provide more useful range information

2010-12-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: FWIW, I find the current behavior for attributes to be surprising, to the point where at first glance it almost looks like a bug. Which is to say, I would have expected 'col' to point to the first non-whitespace column after the '.'. If

[issue10738] webbrowser.py bug with Opera on Linux

2010-12-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.2,3.1,2.7: r87553, r87554, r87555 -- assignee: -> terry.reedy components: +Library (Lib) resolution: -> fixed status: open -> closed type: -> behavior ___ Python tracker <http://bugs.python

[issue10792] Compile() and 'Windows/Mac newlines'

2010-12-29 Thread Terry J. Reedy
New submission from Terry J. Reedy : In python-list thread "Does Python 3.1 accept \r\n in compile()?" jmfauth notes that compile('print(999)\r\n', '', 'exec') works in 2.7 but not 3.1 (and 3.2 not checked) because 3.1 sees '\r' as SyntaxErr

[issue10792] Compile() and 'Windows/Mac newlines'

2010-12-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I made a mistake in testing. Sorry for the noise. -- resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue10537] OS X IDLE 2.7 from 64-bit installer hangs when you paste something.

2010-12-30 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: OS X IDLE 2.7rc1 from 64-bit installer hangs when you paste something. -> OS X IDLE 2.7 from 64-bit installer hangs when you paste something. ___ Python tracker <http://bugs.python.org/issu

[issue6864] IDLE 2.6.1 locks up on Mac OS 10.6

2010-12-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: According to Ronald (msg92914) and Ned (msg92923) this particular issue is 2.6 only (and fixed in 2.7 because of patches not backported). 2.6 is in security fix only mode. So unless someone claims that this is a security issue (and Barry agrees) or reports

[issue4685] IDLE will not open (2.6.1 on WinXP pro)

2010-12-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.6 is now security fix only. -- nosy: +terry.reedy resolution: -> out of date status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue2708] IDLE subprocess error

2010-12-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.0 is closed to fixed and 2.6 is security fix only. This is otherwise a duplicate of similar issues. -- nosy: +terry.reedy resolution: -> out of date status: open -> closed ___ Python tracker

[issue10799] Improve webbrowser.open doc (and, someday, behavior?)

2010-12-30 Thread Terry J. Reedy
New submission from Terry J. Reedy : webbrowser.open (and two aliases): 1. document return value, which seems to be: True if a browser tab or window is opened, regardless of whether or not the url is found; False otherwise. 2. document that (on Windows, at least) the default browser only gets

[issue6285] Silent abort on XP help document display

2010-12-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: webbrowser appears to be designed to return True/False if it does/or not open a browser window (regardless of site response). (I opened #10799 for a doc addition.) I believe an exception would likely indicate a bug therein. So I only wrapped the Windows

[issue2710] error: (10035, 'The socket operation could not complete without blocking')

2010-12-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: If there is no verification that there is a bug in 2.7/3.1,2, then I think this should be closed. -- nosy: +terry.reedy versions: -Python 2.6 ___ Python tracker <http://bugs.python.org/issue2

[issue10771] descriptor protocol documentation has two different definitions of "owner" class

2010-12-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: For future reference, the 'trunk' branch was frozen with the release of 2.7 in June 2010. However, this particular text is unchanged since in 2.7.1 and still in 3.2b2 (except for removal of 'new style'.) -

[issue10772] Several actions for argparse arguments missing from docs

2010-12-31 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +bethard versions: +Python 3.2 -Python 3.3 ___ Python tracker <http://bugs.python.org/issue10772> ___ ___ Python-bugs-list m

[issue10782] Not possible to cross-compile due to poor detection of %lld support in printf

2010-12-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Requests for information should go to python-list or other support forums. That said, does the response settle this issue, so that it can be closed, or is there still a claim that something should be changed in the Python repository? -- nosy

[issue10786] unittest.TextTextRunner does not respect redirected stderr

2010-12-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since the current behavior matches the current doc, "class unittest.TextTestRunner(stream=sys.stderr, descriptions=True, verbosity=1, runnerclass=None, warnings=None) A basic test runner implementation which prints results on standard error. ..."

[issue10787] [random.gammavariate] Add the expression of the distribution in a comprehensive form for random.gammavariate

2010-12-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: >From reading the Wikipedia article, I might conclude that beta = 1/theta, but >from reading random.py, beta=theta. I think this much should be clarified, but >without giving the formula in a hard to read text form. Perhaps the random doc >

[issue10789] Lock.acquire documentation is misleading

2010-12-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since threading is written in Python, one might expect Lock to be written in Python and its methods to accept keywords. However, threading.py (3.2) has _acquire_lock = _thread.acquire_lock Lock = _aquire_lock so threading.Lock objects are C-coded

[issue10794] Infinite recursion while garbage collecting loops indefinitely

2010-12-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.6 is finished except for possible security patches. This should be verified in a current release, preferably 3.2 -- nosy: +terry.reedy stage: -> needs patch versions: +Python 2.7 -Python 2.6 ___ Python trac

[issue6285] Silent abort on XP help document display

2010-12-31 Thread Terry J. Reedy
Changes by Terry J. Reedy : Removed file: http://bugs.python.org/file20199/z6285.diff ___ Python tracker <http://bugs.python.org/issue6285> ___ ___ Python-bugs-list mailin

[issue6285] Silent abort on XP help document display

2010-12-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified the bug by creating a copy of idlelib/help.txt, making the new help entry, testing it, deleting the copy, and retesting -- IDLE silently disappears. (A copy is necessary because IDLE checks that the file exists and gives a similar message as in

[issue6285] Silent abort on XP help document display

2010-12-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Bug and fix also apply to missing Idlelib/help.txt. r87601 News entry for 3.2. Thanks Scott. -- ___ Python tracker <http://bugs.python.org/issue6

[issue10789] Lock.acquire documentation is misleading

2011-01-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: OK, I will add defaults in the texts and condense them a bit at the same time. Will post patches for review. "Arguments that can't be given as kwargs are presented with brackets." I think this should be stated in the introduction to the Lib man

[issue8350] Document lack of support for keyword arguments in C functions

2011-01-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think that the warning that things are not always as they seem should be repeated in the front of the library manual where the pseudo-arg names are actual used, so the library manual stands on its own. In any case, I believe a lot of people use the lib ref

[issue8350] Document lack of support for keyword arguments in C functions

2011-01-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: If there is no indication in the lib manual as to which parameter names and defaults are real and which are fake, then the safe guideline is to never use keywards for library functions and methods and always pass everything positionally. Slightly more

[issue10789] Lock.acquire documentation is misleading

2011-01-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: I responded to the general questions on #8350. -- ___ Python tracker <http://bugs.python.org/issue10789> ___ ___ Python-bug

[issue10751] REMOTE_USER and Remote-User collision in wsgiref

2011-01-02 Thread Phillip J. Eby
Phillip J. Eby added the comment: I don't understand. HTTP_REMOTE_USER is not the name of a standard CGI variable - it's REMOTE_USER. It would help if you could show code for what client/proxy/server combination has this problem, what happens when that code runs, and what you want

[issue10751] REMOTE_USER and Remote-User collision in wsgiref

2011-01-04 Thread Phillip J. Eby
Phillip J. Eby added the comment: I'm still baffled. How does this matter to anything? The HTTP headers you describe would end up in an HTTP_REMOTE_USER environment variable, with no impact on REMOTE_USER. REMOTE_USER could only be set by an actual web server, not via an HTTP header.

[issue10751] REMOTE_USER and Remote-User collision in wsgiref

2011-01-04 Thread Phillip J. Eby
Phillip J. Eby added the comment: You say it "would" do this. Have you actually *tested* it? Looking at the code in wsgiref again, I don't think it does what you think it does. The '_' substitution is done to keyword arguments for header *parameters* only; it&#x

[issue2193] Cookie Colon Name Bug

2011-01-05 Thread John J Lee
John J Lee added the comment: karl: I'm not clear precisely what it is that you want to draw our attention to. Note this bug is about parsing of Cookie headers by servers, not production of Set-Cookie headers by servers. -- ___ Python tr

[issue2193] Cookie Colon Name Bug

2011-01-05 Thread John J Lee
John J Lee added the comment: Again, I don't think this is relevant, because the bug is about servers parsing Cookie: headers. Note that that string (the value of the Cookie: header) may be generated by a different server than the server that parses it (see the trac example mentioned i

[issue2193] Cookie Colon Name Bug

2011-01-05 Thread John J Lee
John J Lee added the comment: Yes, interoperability is good. Do you have a specific concern about the change that I proposed? If not, and you're instead just trying to ensure conformance, by all means read the draft specification that you pointed out and look for reasons why my sugg

[issue2193] Cookie Colon Name Bug

2011-01-05 Thread John J Lee
John J Lee added the comment: Yes, interoperability is good. Do you have a specific concern about the change that I proposed? If not, and you're instead just trying to ensure conformance, by all means read the draft specification that you pointed out and look for reasons why my sugg

[issue10686] email.Generator should use unknown-8bit encoded words for headers with 8 bit data

2011-01-06 Thread Stephen J. Turnbull
Stephen J. Turnbull added the comment: I agree with you that according to RFC1428, use of unknown-8bit is implicitly recommended. However, note that the RFC itself is not standards-track. I agree with your interpretation that in this context the email module should be considered a gateway

[issue10845] test_multiprocessing failure under Windows

2011-01-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: On xp, changing from -m test to -m test.regrtest removed the extra craziness during and after the test run that I reported on pydev. I think making at least a tempory fix to whatever -m test runs should be a release blocker so only individual tests and not

[issue10834] Python 2.7 x86 IDLE fails to run in Windows 7

2011-01-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Changed title based on 'command line works fine'. You might try running test suite, 'python -m test.regrtest' from Command Window in python27 directory on both this and other system. (It takes about 20 min, so minimize and do somet

[issue10838] subprocess __all__ is incomplete

2011-01-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: My understanding is much like Toshio's: ambiguous (typically, undocumented or omitted from __all__) non-underscored names should be resolved, with the three possible outcomes listed, on a case-by-case basis. -- nosy: +terry.

[issue10849] Backport test/__main__

2011-01-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: The possible downside, as with any new feature, is that code using the new feature will not run on on previous micro (x.y.z) releases. In this case, one can run the tests using the new feature. >>> from test import __main__ == CPython 3.2b2 (r32b2:8

[issue10828] Cannot use nonascii utf8 in names of files imported from

2011-01-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: (Ingemar: one can easily test import statements without pyqt, let alone qt ;-) With 3.2b2 on our Win7, 64 bit machine, files with a Japanese name run but apparently cannot be imported. a.py: print('something') ^|.py: print('other')

[issue1372770] email.Header should preserve original FWS

2011-01-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker <http://bugs.python.org/issue1372770> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3080] Full unicode import system

2011-01-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: If I edit a file with IDLE, save it, and successfully run it (perhaps to test it), then when I edit a second file that imports the first, I expect the import to work. It does not always (see #10828). Import is part of the core definition of the language

[issue10828] Cannot use nonascii utf8 in names of files imported from

2011-01-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: ANSI code page? I have no idea how to find out and many would not even know what such a thing exists. It is an HP laptop sold in the US. I think bugs in core syntax should have high priority. I appreciate your work toward fixing it. -- versions

[issue9844] calling nonexisting function under __INSURE__

2011-01-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: If the source will not compile with __INSURE__ defined, then perhaps no one has ever tried to do that with 3.x. That would suggest that the ifdef could be removed. In any case, the non-function call should be removed. Is the other function called anywhere

[issue9904] Cosmetic issues that may warrant a fix in symtable.h/c

2011-01-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think this needs at least two patches: one to change comments, another to remove two fields. Can you prepare something? -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue9

[issue3821] trace module bug when using --missing

2011-01-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2 -Python 3.0 ___ Python tracker <http://bugs.python.org/issue3821> ___ ___ Python-bugs-list mailing list Unsub

[issue2986] difflib.SequenceMatcher not matching long sequences

2011-01-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: needs patch -> committed/rejected ___ Python tracker <http://bugs.python.org/issue2986> ___ ___ Python-bugs-list mai

[issue10875] Update Regular Expression HOWTO

2011-01-09 Thread Terry J. Reedy
New submission from Terry J. Reedy : 0. Does 'Release 0.05' at the top have any useful current meaning? or could it be deleted? 1. Introduction: The history paragraph "The re module was added in Python 1.5, and provides Perl-style regular expression patterns. Earlier versions

[issue10225] Fix doctest runable examples in python manual

2011-01-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: As I understand this, your patch would fix numerous errors in the docs, but has not been applied. It would be nice to get the fixes into 3.2. What sort of feedback do you want? Proofreading of text? Recheck of doctest? Does sphinx suppress doctest comments

[issue10875] Update Regular Expression HOWTO

2011-01-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that the .rst should not have two copies and that any windows.chm specific fixup should be in the tool. Right now, right clicking gives a context menu with one item: Properties. Clicking that brings up a dialog box with a url that can be copied. Good

[issue10875] Update Regular Expression HOWTO

2011-01-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since I think I know how to do it, easily, I will try to derive the 2.7 patch. In Matching Characters, I think "The following predefined special sequences are available:" should be expanded to "The following predefined special sequences

[issue10877] Make Tools (and subdirs) a package (and subpackages)

2011-01-09 Thread Terry J. Reedy
New submission from Terry J. Reedy : Given that sys.path includes ".../python32" adding the requisite empty __init__.py to Tools/ and, for instance, demo/ would allow >>> from Tools.demo.redemo import main; main() to work (I tried it with Scripts instead of demo in b2). No

[issue10877] Make Tools (and subdirs) a package (and subpackages)

2011-01-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +georg.brandl ___ Python tracker <http://bugs.python.org/issue10877> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10875] Update Regular Expression HOWTO

2011-01-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I applied patch to 3.2, 3.1 in r87904, r87905. Thanks. I had to re-edit for 2.7: r87909. I made a separate small patch for my suggested addition to Matching Characters. Could someone check that it is correct, given that re.rst contains the target directive

[issue10875] Update Regular Expression HOWTO

2011-01-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks. r87911,r87912 -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue10875] Update Regular Expression HOWTO

2011-01-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: and r87918 for 2.7, with bytes -> byte string -- ___ Python tracker <http://bugs.python.org/issue10875> ___ ___ Python-

[issue10875] Update Regular Expression HOWTO

2011-01-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- Removed message: http://bugs.python.org/msg125954 ___ Python tracker <http://bugs.python.org/issue10875> ___ ___ Python-bugs-list m

[issue10875] Update Regular Expression HOWTO

2011-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Correction: r87912 and r87913 for 3.x -- ___ Python tracker <http://bugs.python.org/issue10875> ___ ___ Python-bugs-list mailin

[issue10225] Fix doctest runable examples in python manual

2011-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Doctest runs on .rst files, which are plain text files, finds and reports errors, and reports no errors when the errors are fixed. See #10875 where is was very helpful. So your last comment puzzles me. In any case, your patch is too big to digest at once. I

[issue10225] Fix doctest runable examples in python manual

2011-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: There are two reasons I forward ported the changes. 1. Without running doctest on doc examples, they sometimes have errors either originally, after patches to the doc, or after patches to Python. On other issues, I found 4 errors in the json doc (probably

[issue8771] Socket freezing under load issue on Mac.

2011-01-12 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker <http://bugs.python.org/issue8771> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2710] error: (10035, 'The socket operation could not complete without blocking')

2011-01-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: This can be reopened if the problem ever appears in a current issue. -- resolution: -> out of date status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue1602] windows console doesn't print or input Unicode

2011-01-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: http://www.python.org/dev/peps/pep-0011/ says Name: Win9x, WinME, NT4 Unsupported in: Python 2.6 (warning in 2.5 installer) Code removed in: Python 2.6 Only xp+ now. email sent to webmaster@... Even if the best fix only applies to win7

[issue10935] wsgiref.handlers.BaseHandler and subclasses of str

2011-01-19 Thread Phillip J. Eby
Phillip J. Eby added the comment: Doesn't matter how unpythonic it is: the spec calls for exact types and has done so for six years already, so it's a bit late to do anything about it. (And any version of Python that allowed string subclasses was in violation of the spec and there

[issue10935] wsgiref.handlers.BaseHandler and subclasses of str

2011-01-19 Thread Phillip J. Eby
Phillip J. Eby added the comment: One of the original reasons was to make it easier for server authors writing C code to interface with WSGI. C APIs that operate on lists and dicts often do not do what you would expect, when called on a subclass. Essentially, this could lead to an app that

[issue10951] gcc 4.6 warnings

2011-01-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I took a look at an example of each type. Sign-compare, Parser/node.c, 94 if (required_capacity > PY_SIZE_MAX / sizeof(node)) I presume PY_SIZE_MAX and sizeof(node) are both unsigned. So is, conceptually, required_capacity, but it is defined as an

[issue10935] wsgiref.handlers.BaseHandler and subclasses of str

2011-01-20 Thread Phillip J. Eby
Phillip J. Eby added the comment: PyString_AsString() only "works on subclasses" if their internal representation is the same as type str. So we can't say "subclass of str" without *also* specifying that the subclass store its contents in exactly the same way

[issue10935] wsgiref.handlers.BaseHandler and subclasses of str

2011-01-21 Thread Phillip J. Eby
Phillip J. Eby added the comment: Implicit knowledge in your own head about what might or might not be a good idea to program is not the same thing as a specification. "type(x) is str" is a good specification in this context, while "string subclasses, but only if they'

[issue10935] wsgiref.handlers.BaseHandler and subclasses of str

2011-01-21 Thread Phillip J. Eby
Phillip J. Eby added the comment: 1. WSGI is a *Python* spec, not a *CPython* spec, so CPython implementation details have little bearing on how the spec should work. Most non-CPython implementations have a native string type optimized for their runtime or VM (i.e. Jython and IronPython

[issue10909] thread hang, possibly related to print

2011-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: What happens if you run your program without IDLE? (either with right-click and run or run from Command Prompt window?) I would not be surprised if your problems go away. IDLE runs a saved file in a separate pythonw process. Printing (or writing) to stdout

[issue10922] Unexpected exception when calling function_proxy.__class__.__call__(function_proxy)

2011-01-21 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.5, Python 2.6 ___ Python tracker <http://bugs.python.org/issue10922> ___ ___ Python-bugs-list mailin

[issue10925] Document pure Python version of integer-to-float correctly-rounded conversion

2011-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I see there is already something similar for true division. I find +q_max, shift_max = 1 << sig_bits, sys.float_info.max_exp - sig_bits easier to read as two lines +q_max = 1 << sig_bits +shift_max = sys.float_info.max_exp - sig_bits

[issue10909] thread hang, possibly related to print

2011-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: FWIW, I downloaded, edited for 3.2, and ran. 45 minutes later, with counter in box near 16000, and output sequence looking about the same as initially, I killed with Task Manager (also on winxp). You might try same on your system. -- Added file: http

[issue10957] Python developer FAQ grammar error

2011-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: In general, the website is separate from Python code and documentation and website issues should be sent to webmas...@python.org, not here, as code/doc committers cannot change web pages. However, this particular page (dev/faq) has being pulled into the (hg

[issue10954] No warning for csv.writer API change

2011-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Failing when passed a bytesIO object seems reasonable. I question the bit about newlines though. The doc does not specify that newlines='' is needed on output. While is says it is needed for input, why? Why is a mix of '\n', '\r

[issue10954] No warning for csv.writer API change

2011-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Changing csv api is a feature request that could only happen in 3.3. -- nosy: +skip.montanaro type: behavior -> feature request versions: +Python 3.3 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker &l

[issue10970] "string".encode('base64') is not the same as base64.b64encode("string")

2011-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Questions should generally be asked on python-list or its mirrors. The docs do not say that the result should be exactly, byte-for-byte, the same. base64 module refers to RFC 3548. Both our doc and the RFC describe variations. The base64 codec does '

[issue10909] thread hang, possibly related to print

2011-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I ran the 2.7 file (on 2.7) and after several minutes, threadA stopped printing, but no error message. Antoine, could improvement from 2.7 to 3.2 have anything to new with the new implementation of the Global Interpreter Lock? Scott, if you can do your

[issue10541] regrtest.py -T broken

2011-01-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker <http://bugs.python.org/issue10541> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10987] Bizarre pickle -- exception interaction bug

2011-01-22 Thread Terry J. Reedy
New submission from Terry J. Reedy : Tool/scripts/find_recursionlimit.py includes test_cpickle() which, like the other test_xxx functions, is supposed to raise a RuntimeError when the recursion limit is reached. It appears to work correctly on 3.1 and I presume previously. On 3.2

[issue10987] Bizarre pickle -- exception interaction bug

2011-01-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.2rc1 on WinXP. I got hanging behavior with both interpreter and IDLE. -- ___ Python tracker <http://bugs.python.org/issue10

[issue11000] Doc: ast.parse parses source, not just expressions

2011-01-24 Thread Terry J. Reedy
New submission from Terry J. Reedy : "ast.parse(expr, filename='', mode='exec') Parse an expression into an AST node. Equivalent to compile(expr, filename, mode, ast.PyCF_ONLY_AST)." but "compile(source, ...) Compile the source into a code or AST objec

[issue11000] Doc: ast.parse parses source, not just expressions

2011-01-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: r88172, r88173, r88175 -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue9045] 2.7rc1: 64-bit OSX installer is not built with 64-bit tkinter

2011-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have the impression that there has been progress on tcl/tk on Apple in the last 7 months. Should this issue still be open, and if so, for both 2.7 and 3.2? -- nosy: +terry.reedy ___ Python tracker <h

[issue11029] Crash, 2.7.1, Tkinter and threads and line drawing

2011-01-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: There are other gui libraries with Python interfaces that you can look at. I agree that something in doc about how to feed data from multiple threads would be nice. -- nosy: +terry.reedy type: crash -> behavior versions: +Python

[issue2193] Cookie Colon Name Bug

2011-01-30 Thread John J Lee
John J Lee added the comment: I agree with And Clover that Carsten Klein's comments in #msg127366 are not correct, for the reason that And stated. Also, Carsten repeats again the idea that the trac issue is about the trac server failing to generate appropriate cookies -- but that issu

[issue11077] Tkinter is not thread safe

2011-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'Thread' is not found in the somewhat skimpy tkinter doc. Given the general state of Python with threads, I think it reasonable to take 'not thread-safe' as the default, making this a feature request. In any case, the point is moot unt

[issue11085] expose _abcoll as collections.abc

2011-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: However done, I would prefer separation also. -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue11

[issue11096] Multiple turtle tracers

2011-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.6 is only open for security fixes. In 3.x "The methods Turtle.tracer(), Turtle.window_width() and Turtle.window_height() have been eliminated. Methods with these names and functionality are now available only as methods of Screen." So it

<    9   10   11   12   13   14   15   16   17   18   >