[issue11395] print(s) fails on Windows with long strings

2011-03-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Likewise, this fails with 3.2:: import os os.write(1, ba * 66000) -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11395

[issue11395] print(s) fails on Windows with long strings

2011-03-04 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11395 ___ ___

[issue11395] print(s) fails on Windows with long strings

2011-03-04 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: It's probably a Windows limitation regarding the number of bytes that can be written to stdout in one write. As for the difference between python versions, what does python -c import sys; print(sys.getsizeof('a')) return ? --

[issue11373] Fix 2 new typos in the docs

2011-03-04 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: Please fix the word Builtin to Built-in as well. Thank you. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11373 ___

[issue11373] Fix 2 new typos in the docs

2011-03-04 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11373 ___ ___ Python-bugs-list

[issue11395] print(s) fails on Windows with long strings

2011-03-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: no, it works with 3.2b2 (r32b2:87398), and fails with 3.2 final (r32:88445) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11395

[issue11395] print(s) fails on Windows with long strings

2011-03-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Extract of issue #1602: WriteConsoleW has one bug that I know of, which is that it a href=http://tahoe-lafs.org/trac/tahoe-lafs/ticket/1232;fails when writing more than 26608 characters at once/a. That's easy to work around by

[issue11395] print(s) fails on Windows with long strings

2011-03-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Extract of the WriteConsole Function: The storage for this buffer is allocated from a shared heap for the process that is 64 KB in size. The maximum size of the buffer will depend on heap usage.

[issue11395] print(s) fails on Windows with long strings

2011-03-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This changed with r87824 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11395 ___ ___

[issue11388] Implement MutableSequence.clear()

2011-03-04 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Please also update the table entry for MutableSequence in Doc/library/collections.abc.rst -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11388

[issue11395] print(s) fails on Windows with long strings

2011-03-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This changed with r87824 Yes, I changed Python to open all files in binary mode. With Python 3.2, you can open sys.std* streams in binary mode using -u command line option (u like unbuffered, not Unicode ;-)). --

[issue11395] print(s) fails on Windows with long strings

2011-03-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Indeed, Python3.1 fails with the -u option. Before r87824, the C call to write() performed CRLF conversion. In the implementation of MSVCRT, a local buffer is used (1025 chars in vs8.0, 5*1024 in vs10.0), so WriteFile is called with

[issue11395] print(s) fails on Windows with long strings

2011-03-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Anyway, use os.write() to write unicode into the Windows console is not the right thing to do. We should use WriteConsoleW(): #1602 is the correct fix for this issue. -- ___ Python

[issue11395] print(s) fails on Windows with long strings

2011-03-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I'm writing bytes here: os.write(1, bb * 66000) And WriteConsole has the same issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11395

[issue11395] print(s) fails on Windows with long strings

2011-03-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: And WriteConsole has the same issue. print() (sys.stdout and sys.stderr) should use WriteConsoleW() and use small chunks (smaller than 64 KB, I don't know the safest size). -- ___

[issue11388] Implement MutableSequence.clear()

2011-03-04 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Documentation fix and some unit tests committed in revision 88742 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11388 ___

[issue11395] print(s) fails on Windows with long strings

2011-03-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: IIUC, this is a Windows bug? Is there any easy workaround for us? -- versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11395

[issue11395] print(s) fails on Windows with long strings

2011-03-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: It may be a windows bug, but it's also an a python regression! A fix is to limit the number of chars: === --- D:/py3k/Modules/_io/fileio.c (revision 87824) +++

[issue9802] Document 'stability' of builtin min() and max()

2011-03-04 Thread Stephen Evans
Stephen Evans step...@recombinant.co.uk added the comment: As suggested by Mark following my post on comp.lang.python I am adding further comments to the discussion on this (closed) issue. For a more mathematical consideration of the issue: Stepanov, Alexander and Paul McJones. 2009. Elements

[issue3080] Full unicode import system

2011-03-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: r88746: Add PyModule_NewObject() function r88747: Add PyImport_AddModuleObject() and PyImport_ExecCodeModuleObject() -- ___ Python tracker rep...@bugs.python.org

[issue11368] Document why xml.etree.ElementTree.Element has no reference to parent

2011-03-04 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: I still struggling to find a way to apply http://effbot.org/zone/element.htm#accessing-parents in my specific case. Unfortunately, it doesn't seem trivial to me. -- ___ Python tracker

[issue7305] urllib2.urlopen() segfault using SSL on Solaris

2011-03-04 Thread david
david db.pub.m...@gmail.com added the comment: I have also hit this bug. It is slightly interesting that urllib is able to connect to hosts that trigger a segfault under urllib2 without an issue... -- nosy: +db ___ Python tracker

[issue11368] Document why xml.etree.ElementTree.Element has no reference to parent

2011-03-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This is a question for comp.lang.python ;-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11368 ___

[issue9276] pickle should support methods

2011-03-04 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: I don't have the time and the ability to write the patch that implements this. I'll be happy to write tests if you think this will help. -- ___ Python tracker rep...@bugs.python.org

[issue11396] add format handler to bytes object

2011-03-04 Thread nestor
New submission from nestor nestornis...@gmail.com: Many programs written for Python 2.x use simple string interpolation to create byte strings with specific layout, this is gone in 3.x. Is it possible to support the format method but maybe only supporting field names like '{}' '{1}{2}'

[issue11396] add format handler to bytes object

2011-03-04 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: There have been a number of discussions about this, but no concrete proposal. The last one I recall was to add a __bformat__ method, but I couldn't find the email trail just now. See also issue 3982. -- nosy: +eric.smith

[issue11396] add format handler to bytes object

2011-03-04 Thread nestor
nestor nestornis...@gmail.com added the comment: My search fu has failed me this time. This is indeed a duplicate of issue 3982. I think the issue is real and not going to go away, but finding a beautiful solution has been elusive so far. -- resolution: - duplicate

[issue11396] add format handler to bytes object

2011-03-04 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: I found part of the discussion I was looking for: http://mail.python.org/pipermail/python-dev/2010-July/102252.html -- status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6059] uuid.uuid4 cause segfault in emesene

2011-03-04 Thread Izidor Matušov
Izidor Matušov izidor.matu...@gmail.com added the comment: This bug is still present in Gentoo. Find while trying to Steps to reproduce 1, install gentoo (testing on amd64 machine) 2, run commands in python from gtk import glade import uuid uuid.uuid4() It results in Segmentation fault.

[issue6059] uuid.uuid4 cause segfault in emesene

2011-03-04 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6059 ___ ___ Python-bugs-list mailing

[issue11397] os.path.realpath() may produce incorrect results

2011-03-04 Thread Mikhail Kovtun
New submission from Mikhail Kovtun mikhail.kov...@duke.edu: This bug appears in Python 2.4, 2.5, 2.6; not tested in Python 2.7. How to reproduce on Linux: {{{ $ mkdir ~/testsymlinks $ cd ~/testsymlinks $ mkdir adir $ ln -s ../adir adir/blink $ mkdir -p adir/cdir/ddir $ ln -s adir/cdir/ddir/..

[issue6059] uuid.uuid4 cause segfault in emesene

2011-03-04 Thread Izidor Matušov
Izidor Matušov izidor.matu...@gmail.com added the comment: After searching at Gentoo's bugzilla, I've found that there is probably problem in gentoo's libuuid library implementation: http://bugs.gentoo.org/show_bug.cgi?id=317557 -- ___ Python

[issue1553375] Add traceback.print_full_exception()

2011-03-04 Thread Daniel Stutzbach
Changes by Daniel Stutzbach stutzb...@google.com: -- nosy: +stutzbach versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1553375 ___

[issue11369] Add caching for the isEnabledFor() computation

2011-03-04 Thread William Hart
William Hart whart...@gmail.com added the comment: Vinay: Yes, the bulk of the time was spent in getEffectiveLevel(). Since that method is only called by isEnabledFor(), it made sense to cache isEnabledFor(). But, that probably reflects the characteristics of my use of logging. I never call

[issue9427] logging.error('...', exc_info=True) should display upper frames, too

2011-03-04 Thread Daniel Stutzbach
Changes by Daniel Stutzbach stutzb...@google.com: -- dependencies: +Add traceback.print_full_exception() nosy: +stutzbach versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9427

[issue6059] uuid.uuid4 cause segfault in emesene

2011-03-04 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: Gentoo uses standard libuuid.so from util-linux without any custom patches. Izidor Matušov actually reproduced https://bugs.gentoo.org/show_bug.cgi?id=351897. -- ___

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

2011-03-04 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___ ___ Python-bugs-list

[issue11395] print(s) fails on Windows with long strings

2011-03-04 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- components: +Windows ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11395 ___ ___

[issue6059] ctypes/uuid-related segmentation fault

2011-03-04 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: Steps to reproduce segmentation fault: python2.7 -c 'import cairo, uuid; print(uuid.uuid1().hex)' -- assignee: - theller components: +ctypes -Extension Modules nosy: +theller title: uuid.uuid4 cause segfault

[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

2011-03-04 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: M.-A. Lemburg wrote: Raymond Hettinger wrote: Raymond Hettinger rhettin...@users.sourceforge.net added the comment: If you agree, Raymond, I'll backport the patch. Yes. That will address Antoine's legitimate concern about making other

[issue11373] Fix 2 new typos in the docs

2011-03-04 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: I am uploading a patch that fixes both of these typos in the docs. Please apply it and keep up the good work. -- versions: +Python 3.1, Python 3.2, Python 3.3 Added file: http://bugs.python.org/file20998/stdtypes_2.patch

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-04 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11393 ___

[issue11398] http_proxy on windows won't function due to incorrect case handling

2011-03-04 Thread chris nojima
New submission from chris nojima chrisnoj...@gmail.com: There is an issue where on windows os.environ keys are all uppercase. If i run set a=hello, in python it will appear as a key A. urllib.request.getproxies_environment looks for all _proxy environment vars by looking for _proxy. Since

[issue11399] python.exe -u fails to parse input to the interactive interpreter

2011-03-04 Thread Santoso Wijaya
New submission from Santoso Wijaya santoso.wij...@gmail.com: Observe: C:\Users\santaC:\Python27\python.exe -u Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] on win32 Type help, copyright, credits or license for more information. print 'Hello world' File stdin,

[issue11399] cmd.exe: python.exe -u fails to parse input to the interactive interpreter

2011-03-04 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- title: python.exe -u fails to parse input to the interactive interpreter - cmd.exe: python.exe -u fails to parse input to the interactive interpreter ___ Python tracker rep...@bugs.python.org

[issue11399] cmd.exe: python.exe -u fails to parse input to the interactive interpreter

2011-03-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Amazing. This issue is unreported for years, Victor fixes it in python3, and *then* we get two bug reports for it against 2.7 in as many months :) Anyway, this is a duplicate of issue 11098. If you have a real use case for this, we

[issue11399] cmd.exe: python.exe -u fails to parse input to the interactive interpreter

2011-03-04 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah, I'm wrong, this has been reported earlier issue 707576. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11399 ___

[issue11400] Remove reference to pre 1.5 assignment behavior

2011-03-04 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: In Language Ref, 6.2 assignments, delete (This rule is relaxed as of Python 1.5; in earlier versions, the object had to be a tuple. Since strings are sequences, an assignment like a, b = xy is now legal as long as the string has the right

[issue11401] email.header error during .flatten()

2011-03-04 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com: Hello, David, the error from Issue 6 occurred again, and it still can be healed with the patch file20675. (I'm opening a new issue because 6 turned over to the mailbox fix. My repo and installation is at: 21:34

[issue11337] Nothing refers to footnote [1] on page 6. Simple Statements in Language Reference

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Agreed. The footnote is [1] It may occur within an except or else clause. The restriction on occurring in the try clause is implementor’s laziness and will eventually be lifted. I searched chapter for all occurences of '1' and also found no

[issue11337] Nothing refers to footnote [1] on page 6. Simple Statements in Language Reference

2011-03-04 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11337 ___ ___ Python-bugs-list

[issue11338] No list of Python hg repositories

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Conversion is underway today. Completion should be announced at least on the pydev list. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11338

[issue11339] annotation for class being defined

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The basic problem is that the class object is defined after the class definitions have been made, I have sometimes thought the the class statement could start with binding the name to a blank object or new, blank class object. But then people

[issue11343] Make errors due to full parser stack identifiable

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I agree that compile-time stack exhaustion is different from runtime object-heap exhaustion and could/should have a different error. I agree with Martin (from 2000) that SyntaxError is not right either. Perhaps a new ParseError subclass

[issue11369] Add caching for the isEnabledFor() computation

2011-03-04 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I had somewhat shallow logger hierarchies (3-4 deep). The real problem was that this was being called in a kernel of my code ... so even that additional cost was noteworthy. I think it's smart to focus on Python 3.3. As it

[issue11344] Add height argument to os.path.dirname()

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I am inclined to -1 also. a. The proposed behavior is anti-obvious to me: the higher the height, the shorter the result. Calling param 'drop' would be better. b. Not every one-liner should be wrapped. path.rsplit('/',0)[0]

[issue11344] Add height argument to os.path.dirname()

2011-03-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Except that dirname() isn't a one-liner, so you are giving rather bad advice here. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11344

[issue11355] os.mkdir() and os.mkdirat() don't apply SUID/SGID permissions

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: os.makedir (and, I presume, makedirat) are intentionally thin wrapperws around the libc system calls From #9299, msg111014 (Guido) I wonder if os.mkdir() should not be left alone (so as to continue to match the system call most exactly, as is

[issue11344] Add height argument to os.path.dirname()

2011-03-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: As for use cases, I have used it quite commonly in test scripts in order to find out the base directory of the source tree (and/or other resources such as data files). e.g.: basepath =

[issue11361] suggestion for os.kill(pid,CTRL_C_EVENT) in tests

2011-03-04 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- title: suggestion for os.kill(pid,CTRL_C_EVENT) - suggestion for os.kill(pid,CTRL_C_EVENT) in tests ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11361

[issue11362] image/webp missing from mimetypes.py

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: No IANA registration. According to https://secure.wikimedia.org/wikipedia/en/wiki/Webp this is a Google-specific proposal rather than a standard. Thus addition would seem premature at this time. -- nosy: +terry.reedy

[issue11380] close failed in file object destructor when Broken pipe happens on stdout

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Have you tried this with 3.2 (or 3.1)? What behavior do you expect when pipe goes first? -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11380

[issue11382] some posix module functions unnecessarily release the GIL

2011-03-04 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- type: - performance versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11382 ___

[issue11383] compilation seg faults on insanely large expressions

2011-03-04 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- type: - crash versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11383 ___

[issue11401] email.header error during .flatten()

2011-03-04 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11401 ___ ___

[issue11385] TextTestRunner methods are not documented

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Doc issues should be 'tested' and reported against the latest versions. 2.6.6 doc is effectively the last 2.6 version. TextTextRunner is not completely undocumented. In 3.2 help(t.run) Help on function run in module unittest.runner:

[issue11385] TextTestRunner methods are not documented

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I also see that TextTestRunner has an attribute resultclass, which is TextTestResult. Is this intended to be ever changed? The docstring for TTRunner says It prints out the names of tests as they are run, errors as they occur, and a summary

[issue11385] TextTestRunner methods are not documented

2011-03-04 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Except the former is incorrect as the responsibility for printing results as they occur is with the TestResult and not the runner. I'll look at this and improve the docs for the runner. (And yes unittest.main() creates and uses a

[issue11398] http_proxy on windows won't function due to incorrect case handling

2011-03-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: hmm, the code of urllib.request.getproxies_environment contains:: for name, value in os.environ.items(): name = name.lower() if value and name[-6:] == '_proxy': proxies[name[:-6]] = value So the

[issue11387] Tkinter, callback functions

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: In 2.7 or 3.2, winxp, when I enclose your code with from tkinter import tk #or Tkinter ... App() I get a window with a buttom that sinks and raises as I press and release the left button. Please post complete runnable code that exhibits the

[issue11385] TextTestRunner methods are not documented

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: class unittest.TextTestRunner(stream=None, descriptions=True, verbosity=1, runnerclass=None, warnings=None) stream is documented, the others are not (except for some garbled text about warnings). This class has a few configurable parameters,

[issue11402] _PyUnicode_Init leaks a little memory once

2011-03-04 Thread Daniel Stutzbach
New submission from Daniel Stutzbach stutzb...@google.com: By the time _PyUnicode_Init is called and does the following: /* Init the implementation */ free_list = NULL; numfree

[issue11389] unittest: no way to control verbosity of doctests from cmd

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The undocumented verbosity parameter? -- nosy: +michael.foord, terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11389 ___

[issue11392] Turtle - better explain 'chaos' demo

2011-03-04 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +gregorlingl, terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11392 ___ ___

[issue11402] _PyUnicode_Init leaks a little memory once

2011-03-04 Thread Daniel Stutzbach
Changes by Daniel Stutzbach stutzb...@google.com: -- keywords: +needs review, patch Added file: http://bugs.python.org/file20999/unicode-leak.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11402

[issue11389] unittest: no way to control verbosity of doctests from cmd

2011-03-04 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: If the verbosity parameter isn't sufficient (which needs documenting but that is issue 11385) then it would need to be a feature request on DocFileSuite (part of doctest). -- ___ Python

[issue11385] TextTestRunner methods are not documented

2011-03-04 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: TextTestRunner was more meant to be an *example* of a test runner. It just turned out to be the only one and widely used. -- ___ Python tracker rep...@bugs.python.org

[issue11394] No Tools/demo, etc, on Windows

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I thought I posted this on another issue, but cannot find it. My installed 3.2 Tools directory only has i8n, pynche, and scripts directories. The 3.2 repository has 12 other directories in Tools that are missing from the installation.

[issue11395] print(s) fails on Windows with long strings

2011-03-04 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: print(a*66000) works (after some delay) running from an IDLE edit window (but see #144249). Works means that I get a working prompt back with no errors. Unlike IDLE, the Command Prompt Windows keeps a limited number of lines in its buffers

[issue11394] No Tools/demo, etc, on Windows

2011-03-04 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: These directories aren't missing - they are simply not included. Each such inclusion should be preceded by an explicit request (preferably with some rationale). Including the demo directory is fine with me. --

[issue11403] Add some generated files in PC/ to .hgignore.

2011-03-04 Thread Santoso Wijaya
New submission from Santoso Wijaya santoso.wij...@gmail.com: Here's a patch for .hgignore file to include some more build files emitted on Windows. -- components: None files: pcignore.patch keywords: patch messages: 130097 nosy: santa4nt priority: normal severity: normal status: open

[issue11403] Add some generated files in PC/ to .hgignore.

2011-03-04 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11403 ___

[issue9584] Allow curly brace expansion

2011-03-04 Thread Mathieu Bridon
Mathieu Bridon boche...@fedoraproject.org added the comment: So, now that Python 3.2 was released, here is a patch rebased on top of the py3k branch. -- Added file: http://bugs.python.org/file21001/0001-Curly-brace-expansion-in-glob.patch ___

[issue9584] Allow curly brace expansion

2011-03-04 Thread Mathieu Bridon
Changes by Mathieu Bridon boche...@fedoraproject.org: Removed file: http://bugs.python.org/file20129/0001-Curly-brace-expansion-in-glob.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9584 ___

[issue9584] Allow curly brace expansion

2011-03-04 Thread Mathieu Bridon
Mathieu Bridon boche...@fedoraproject.org added the comment: The sys module is imported in glob but never used. It's not related to this feature request but I saw it when implementing the patch, so here is a second patch removing the import. -- Added file:

[issue11395] print(s) fails on Windows with long strings

2011-03-04 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: I'm adding a test that will reproduce the crash. -- keywords: +patch Added file: http://bugs.python.org/file21003/writeconsole.patch ___ Python tracker rep...@bugs.python.org

[issue11404] support /dev/null for subprocess.call() and friends

2011-03-04 Thread Марк Коренберг
New submission from Марк Коренберг socketp...@gmail.com: allow to call subprocess.check_call(stderr=subprocess.DEVNULL) -- components: Library (Lib) messages: 130101 nosy: mmarkk priority: normal severity: normal status: open title: support /dev/null for subprocess.call() and friends

[issue11259] asynchat does not check if terminator is negative integer

2011-03-04 Thread Марк Коренберг
Марк Коренберг socketp...@gmail.com added the comment: I've never used negative terminators in asynchat and I'm not even sure why one would want to. no one wants :), but terminator numeric value may be achieved from the net, and hackers sometimes use such technique. attached shorttest.py

[issue11266] asyncore does not handle EINTR in recv, send, connect, accept,

2011-03-04 Thread Марк Коренберг
Марк Коренберг socketp...@gmail.com added the comment: When using non-blocking IO, we issue select (or poll,epoll), and after that kernel should guarantee, that recv or send will complete immediatelly, transferring data as needed. But sometimes (as Linux is buggy), such operations results in

[issue11266] asyncore does not handle EINTR in recv, send, connect, accept,

2011-03-04 Thread Марк Коренберг
Марк Коренберг socketp...@gmail.com added the comment: http://unix.derkeiler.com/Mailing-Lists/FreeBSD/hackers/2008-02/msg00457.html Okay, linux is not buggy :))) EINTR may occur if SA_RESTART is not specified in sigaction. -- ___ Python tracker

[issue11405] Wrong reference to string module in tutorial/inputoutput.rst

2011-03-04 Thread INADA Naoki
New submission from INADA Naoki songofaca...@gmail.com: http://docs.python.org/py3k/tutorial/inputoutput.html#fancier-output-formatting The standard module string contains some useful operations for padding strings to a given column width; these will be discussed shortly. The document uses

[issue11266] asyncore does not handle EINTR in recv, send, connect, accept,

2011-03-04 Thread Vetoshkin Nikita
Vetoshkin Nikita nikita.vetosh...@gmail.com added the comment: Here's a similar bug: http://bugs.python.org/issue7978. EINTR may occur if SA_RESTART is not specified in sigaction. Some syscalls (like select) will generate EINTR despite SA_RESTART. man 7 signal -- nosy: +nvetoshkin

[issue11344] Add height argument to os.path.dirname()

2011-03-04 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: My point was that unix hasn't found it useful to add a level option to the dirname API. ISTM, that is a strong indication that this isn't needed in the form it has been proposed. I don't know that I personally have ever