[issue5345] cStringIO class name typo

2009-02-21 Thread qwjqwj
qwjqwj added the comment: This bug also exists in Python 2.6.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue5345] cStringIO class name typo

2009-02-21 Thread qwjqwj
New submission from qwjqwj : It has a typo error in cStringIO.StringIO's class name "StringO": >>> import cStringIO >>> a=cStringIO.StringIO() >>> a >>> a.__class__.__name__ 'StringO' So we can't unpickle the object correctly with Python 2.5.4: >>> import pickle >>> pickle.loads(pickle.dumps(

[issue5328] Crash when doing some list iteration

2009-02-21 Thread qwjqwj
qwjqwj added the comment: I used the script from issue 4732 and can reproduce segfault on my RHEL 5. After that I updated the system with "yum update" and get a new version of libc. Currently the script cannot cause segfault after updating. Thank you for your help. _

[issue5344] typo in what's new in 2.6

2009-02-21 Thread George Yoshida
New submission from George Yoshida : In "What's new in 2.6" PEP 343 section, the following sentence lacks a closing parenthesis: > The expression is evaluated, and it should result in an object that supports the context management protocol (that is, has __enter__() and __exit__() methods. http:/

[issue1533164] Installed but not listed *.pyo break bdist_rpm

2009-02-21 Thread Tarek Ziadé
Tarek Ziadé added the comment: Mads, I am all set now, under a fresh Fedora 10. But it seems that the generated command for rpm does not work. it calls: $ rpm -ba --define _topdir xxx --clean build/xxx/foo.spec -ba unkown option. (My Fedora runs rpm 4.6.0rc3) Anything special to set under

[issue5343] remove or make work pdb retval and rv

2009-02-21 Thread rocky bernstein
New submission from rocky bernstein : Remove pdb's undocumented"retval"/"rv" debugger commands. It is conceivable this may have once worked on a version of Python long ago, but not in recent releases. If it's of interest to make this work, one approach would be to use the arg parameter passed i

[issue4565] Rewrite the IO stack in C

2009-02-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: Ok. I've fixed all the tests except PyBufferedRandomTest.testFlushAndPeek and the garbage collections ones. ___ Python tracker ___ ___

[issue5340] Change in cgi behavior breaks existing software

2009-02-21 Thread Paul Boddie
Paul Boddie added the comment: The issue of distinguishing between query-originating parameters and form-originating parameters has been around for a very long time, and in my own work, especially where the cgi module has been used, I've been careful to distinguish between the two types and to m

[issue1578269] Add os.link() and os.symlink() support for Windows

2009-02-21 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 2.7, Python 3.1 -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue5342] distutils removing old files, deleting unneeded old files from installed location.

2009-02-21 Thread Tarek Ziadé
Tarek Ziadé added the comment: A uninstall command, based on the record of installed files, will be proposed for #4673. It should adress your problem, since we will be able to add a new option in the install command. I am leaving this issue open so we can keep track of this need. -- v

[issue4524] Build fails at running build_scripts

2009-02-21 Thread Tarek Ziadé
Tarek Ziadé added the comment: fixed in r69598. Thanks for the patch Amaury. -- status: open -> closed ___ Python tracker ___ ___ Pyth

[issue5342] distutils removing old files, deleting unneeded old files from installed location.

2009-02-21 Thread Rene Dudfield
New submission from Rene Dudfield : A common problem is removing old files from the installed location. eg. version 1 installs. site-packages/packagename/bla.so version 2 installs. site-packages/packagename/_bla.so site-packages/packagename/bla.py However, in version 2 if we install over the

[issue2396] Backport memoryview object to Python 2.7

2009-02-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: Some comments: - PyBytes_* API is fine. - memory_str should die. - Py_TPFLAGS_HAVE_NEWBUFFER needs to be documented. Otherwise it looks good. ___ Python tracker ___

[issue5341] A selection of spelling errors and typos throughout source

2009-02-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Please do not change builtin to built-in. In a python context, it reads fine as one word. -- nosy: +rhettinger ___ Python tracker ___ __

[issue5308] cannot marshal objects with more than 2**31 elements

2009-02-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Why not. Besides it ought to be fun to write the test case for this one :-) ___ Python tracker ___ ___ Py

[issue1282] re module needs to support bytes / memoryview well

2009-02-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: re has supported bytes for a while now. -- nosy: +benjamin.peterson resolution: accepted -> out of date status: open -> closed ___ Python tracker ___

[issue5336] collections.namedtuple generates code causing PyChecker warnings

2009-02-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Will look at this one. Am initially disinclined to change _asdict() because I like its compact presentation. -- priority: -> low ___ Python tracker ___

[issue4565] Rewrite the IO stack in C

2009-02-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: Ok. I've split the Python io implementation into the _pyio module and rewritten the tests. All the C ones are passing, but some Python implementation ones are failing. ___ Python tracker

[issue5313] multiprocessing.process using os.close(sys.stdin.fileno) instead of sys.stdin.close()

2009-02-21 Thread Jesse Noller
Jesse Noller added the comment: Joshua Judson Rosen to python-list Jesse Noller writes: > > On Tue, Feb 17, 2009 at 10:34 PM, Graham Dumpleton > wrote: > > Why is the multiprocessing module, ie., multiprocessing/process.py, in > > _bootstrap() doing: > > > > os.close(sys.std

[issue5341] A selection of spelling errors and typos throughout source

2009-02-21 Thread Georg Brandl
Georg Brandl added the comment: I reviewed the patch and found nothing wrong. (BTW, if you noticed the almost-total lack of its<->it's errors, it's because I fixed all of them some time ago :) "built-in" is fine. About AE/BE: I think we had a consensus somewhere that we have no fixed variant,

[issue5341] A selection of spelling errors and typos throughout source

2009-02-21 Thread Mark Dickinson
New submission from Mark Dickinson : Here's a patch that represents the result of grepping through the source for some of my favo(u)rite spelling errors. Georg, I reali(z/s)e that most of these fixes are outside the Doc/ directory, but are you interested in taking a look at these? Please una

[issue4565] Rewrite the IO stack in C

2009-02-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: The StringIO rewrite is finished now. ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5340] Change in cgi behavior breaks existing software

2009-02-21 Thread Bob Kline
New submission from Bob Kline : We just upgraded Python to 2.6 on some of our servers and a number of our CGI scripts broke because the cgi module has changed the way it handles POST requests. When the 'action' attribute was not present in the form element on an HTML page the module behaved as i

[issue5338] Typo in Python/C API sect 1.2.1

2009-02-21 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r69840. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue5339] Typo in Python/C API Chapter 2

2009-02-21 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r69840. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue5339] Typo in Python/C API Chapter 2

2009-02-21 Thread Ruth Aydt
New submission from Ruth Aydt : Python/C API Documentation for 2.6.1 Chapter 2, 3rd paragraph. "On particular issue..." should be "One particular issue..." -- assignee: georg.brandl components: Documentation messages: 82572 nosy: aydt, georg.brandl severity: normal status: open title: T

[issue5338] Typo in Python/C API sect 1.2.1

2009-02-21 Thread Ruth Aydt
New submission from Ruth Aydt : In Section 1.2.1 of the 2.6.1 Python/C API documentation, I believe there is a typo. First sentence in second paragraph in "Reference Count Details" subsection. "... function passes it a reference..." should be "... function passes in a reference..." --

[issue5308] cannot marshal objects with more than 2**31 elements

2009-02-21 Thread Mark Dickinson
Mark Dickinson added the comment: It wouldn't hurt to add the overflow checks though, would it? -- assignee: -> marketdickinson priority: -> normal ___ Python tracker ___ _

[issue5337] Scanner class in re module undocumented

2009-02-21 Thread Michael Foord
New submission from Michael Foord : There is a useful Scanner class in the re module which is undocumented. See: http://mail.python.org/pipermail/python-dev/2003-April/035075.html http://www.evanfosmark.com/2009/02/sexy-lexing-with-python/ -- assignee: georg.brandl components: Document

[issue5323] document expected/required behavior of 3.x io subsystem with respect to buffering

2009-02-21 Thread R. David Murray
R. David Murray added the comment: On Sat, 21 Feb 2009 at 13:14, Antoine Pitrou wrote: > Antoine Pitrou added the comment: > > RDM, all the classes you mentioned should indeed be able to do "short > reads" on pipes, sockets and the like. That's how they are tested in > test_io.py: against mock

[issue5329] os.popen2 and os.popen3 in python 2.6 incompatible with os.popen* in python 2.5

2009-02-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Adding a couple of unit tests would be nice. -- nosy: +pitrou priority: -> high versions: +Python 2.7 ___ Python tracker ___ __

[issue5330] profile and cProfile do not report C functions called with keyword arguments

2009-02-21 Thread Hagen Fürstenau
Hagen Fürstenau added the comment: I found the reason for this problem: C function calls with keyword arguments follow a different path than those without keywords in the function "call_function" of ceval.c. They end up being handled by "do_call", but there the call is not wrapped by C_TRACE, so

[issue5336] collections.namedtuple generates code causing PyChecker warnings

2009-02-21 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue5323] document expected/required behavior of 3.x io subsystem with respect to buffering

2009-02-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: RDM, all the classes you mentioned should indeed be able to do "short reads" on pipes, sockets and the like. That's how they are tested in test_io.py: against mock raw i/o classes which only return a few bytes at a time (e.g. only 5 bytes will be filled in a 409

[issue5163] tkinter.scrolledtext: new text is hidden after using insert()

2009-02-21 Thread Guilherme Polo
Guilherme Polo added the comment: In this case I'm closing it. -- resolution: -> rejected status: open -> closed ___ Python tracker ___ _

[issue4258] Use 30-bit digits instead of 15-bit digits for Python integers.

2009-02-21 Thread Mark Dickinson
Mark Dickinson added the comment: Adding Tim Peters to the nosy list, mainly to give him an opportunity to throw up his hands in horror at my rewrite of his (I'm guessing) implementation of division. -- nosy: +tim_one ___ Python tracker

[issue5336] collections.namedtuple generates code causing PyChecker warnings

2009-02-21 Thread Mikhail Bessonov
New submission from Mikhail Bessonov : The first argument of some methods generated by collections.namedtuple differs from 'self'. It upsets a number of code checkers, notably PyChecker, because in most cases it is indeed an error. As a result, the code using collections.namedtuple does not pa