[issue1238] dictobject and dictentry not used consistently in dictobject.c

2007-10-05 Thread Anthon van der Neut
Anthon van der Neut added the comment: Guido's suggestion to change all entries to PyDictEntry resp. PyDictObject would work as well and declutter the code in a better way. The only advantage of the typedefs that I see (and briefly used) it that it is easy to have structures local to dictobject.

[issue1242] test

2007-10-05 Thread Gopinath
New submission from Gopinath: hi I have registerd recently and need notes on hacking disadvantages and advantages. -- files: unnamed messages: 56249 nosy: gopiyadav26 severity: normal status: open title: test __ Tracker <[EMAIL PROTECTED]>

[issue1239] openpty does not give bidirectional pipe

2007-10-05 Thread Matti Katila
Matti Katila added the comment: Not a real issue - it's a standard behaviour of tty. Fix is to set -icanon: m,s = os.openpty() s = os.ttyname(s) os.system( 'stty cs8 -icanon -echo < %s' % s ) see, http://www.eulogika.net/download/eutalk_20040302/pymouse.html The issue can be closed and docume

[issue1241] subprocess.py stdout of childprocess always buffered.

2007-10-05 Thread Jason Kim
New submission from Jason Kim: Hi. I am currently using subprocess.py (2.4.4 and above) to try to have a portable way of running a sub task in linux and windows. I ran into a strange problem - a program runs and is "timed out" but the the subprocess's stdout and stderr are not fully "grabbed"

[issue1237] type_new doesn't allocate space for sentinal slot

2007-10-05 Thread Guido van Rossum
Changes by Guido van Rossum: -- resolution: -> invalid status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing li

[issue1236] subprocess is not thread-safe

2007-10-05 Thread Guido van Rossum
Guido van Rossum added the comment: This is a duplicate of bug# 1731717. I asked Donovan Baarda, who told me: """ Last time I looked this had been fixed, admittedly in a bit of an ugly way, on the svn head. I offered to do a patch to make it a bit cleaner, but as it isn't really broken anymore

[issue1731717] race condition in subprocess module

2007-10-05 Thread Guido van Rossum
Guido van Rossum added the comment: See http://bugs.python.org/issue1236 for a good repeatable testcase. _ Tracker <[EMAIL PROTECTED]> _ ___ P

[issue1237] type_new doesn't allocate space for sentinal slot

2007-10-05 Thread Adam Olsen
Adam Olsen added the comment: Ugh, you're right. I refactored PyType_GenericAlloc out of my fork, which is why I got a crash. Sorry for wasting your time. __ Tracker <[EMAIL PROTECTED]> __ __

[issue1237] type_new doesn't allocate space for sentinal slot

2007-10-05 Thread Guido van Rossum
Guido van Rossum added the comment: Are you sure you're not missing the +1 on line 440 in PyType_GenericAlloc()? __ Tracker <[EMAIL PROTECTED]> __ ___ Py

[issue1240] str.split bug when using sep = None and maxsplit

2007-10-05 Thread Brett Cannon
Brett Cannon added the comment: I know there is another filed bug on this topic, I just need to find it. -- nosy: +brett.cannon __ Tracker <[EMAIL PROTECTED]> __ __

[issue1237] type_new doesn't allocate space for sentinal slot

2007-10-05 Thread Adam Olsen
Adam Olsen added the comment: typeobject.c:1842:type_new type = (PyTypeObject *)metatype->tp_alloc(metatype, nslots); nslots may be 0. typeobject.c:1966:type_new assigns this just-past-the-end address to tp_members type->tp_members = PyHeapType_GET_MEMBERS(et); type_new later ca

[issue1238] dictobject and dictentry not used consistently in dictobject.c

2007-10-05 Thread Guido van Rossum
Guido van Rossum added the comment: I think it would be better to get rid of the typedefs and use the public Py* names everywhere? -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> __ __

[issue1237] type_new doesn't allocate space for sentinal slot

2007-10-05 Thread Guido van Rossum
Guido van Rossum added the comment: Can you be more specific as to on which line number the questionable allocation happens, and which functions are depending on there being one extra slot? -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]>

[issue1235] CGIHTTPRequestHandler.run_cgi() does not run on Windows if sys.executable contains blanks

2007-10-05 Thread Guido van Rossum
Guido van Rossum added the comment: Please submit a patch -- this was mostly intended as demo code, I didn't expect anyone to use it, let alone on Windows. :-) -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]>

[issue1240] str.split bug when using sep = None and maxsplit

2007-10-05 Thread Tim Gordon
Changes by Tim Gordon: -- title: str.split bug -> str.split bug when using sep = None and maxsplit __ Tracker <[EMAIL PROTECTED]> __ ___ Python-

[issue1240] str.split bug

2007-10-05 Thread Tim Gordon
Changes by Tim Gordon: -- title: str.split possible bug -> str.split bug __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Un

[issue1240] str.split possible bug

2007-10-05 Thread Tim Gordon
New submission from Tim Gordon: >From the docs for str.split: "If sep is not specified or is None... First, whitespace characters are stripped from both ends. Then, words are separated by arbitrary length strings of whitespace characters." However, ' a b c '.split(None, 1) returns ['a', 'b c '

[issue1239] openpty does not give bidirectional pipe

2007-10-05 Thread Matti Katila
Matti Katila added the comment: Linux Programmer’s Manual for ptmx and pts - pseudo-terminal master and slave states: "Data written to the slave is presented on the master descriptor as input. Data written to the master is presented to the slave as input." The data can be read from slave to

[issue1239] openpty does not give bidirectional pipe

2007-10-05 Thread Matti Katila
New submission from Matti Katila: http://rafb.net/p/t8cqSt71.html -- nosy: +mudyc __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing

[issue1239] openpty does not give bidirectional pipe

2007-10-05 Thread Matti Katila
Changes by Matti Katila: -- components: None severity: normal status: open title: openpty does not give bidirectional pipe type: behavior versions: Python 2.5 __ Tracker <[EMAIL PROTECTED]> __

[issue1238] dictobject and dictentry not used consistently in dictobject.c

2007-10-05 Thread Anthon van der Neut
New submission from Anthon van der Neut: In dictobject.c the structures from dictobject.h are typedeffed to: typedef PyDictEntry dictentry; typedef PyDictObject dictobject; However there are still a few locations in that file where the PyDictEntry and PyDictObject types are used directly. IMHO t