[issue1754489] Non-portable address length calculation for AF_UNIX sockets

2007-12-27 Thread Armin Rigo

Armin Rigo added the comment:

The patch looks ok on 2.6, I recommend checking it there.  (Due to line
number changes in socketmodule.c, the patch gives a warning, but it is
still otherwise up-to-date.)

--
nosy: +arigo

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1350] IDLE - CallTips enhancement - show full doc-string in new window

2007-12-27 Thread Tal Einat

Tal Einat added the comment:

I had a working version which also used inspect before I saw your 3.0
version, but they both use inspect similarly, very straightforward. I
seem to recall only one of the version used inspect to get the doc
string, but I don't remember which one...

Depending on how you divide things, this patch includes more than just
two different developments. But they are interrelated to some extent.
And one of the developments is more rigorous testing, which this version
passes with flying colors.

If you wish, I can try to get another developer or two to test and
review this patch, if that will help somehow. Or anything else that will
help...

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1702] Word "alias" used in confusing way to compare open() and file()

2007-12-27 Thread Senthil

Senthil added the comment:

> I feel that "alias" is the wrong word to use here, though I don't know 
> a suitable replacement.

Should we say, "The older built-in open() serves the same purpose as file."

--
nosy: +orsenthil

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1703] getpass broken in Py3k: must flush()

2007-12-27 Thread Philip Jenvey

New submission from Philip Jenvey:

getpass (in particular _raw_input, used by unix_getpass and 
default_getpass) prints out a password prompt to a stream (by default 
stdout) but doesn't flush that stream. It assumes calling 
sys.stdin.readline() to read the password causes stdout to be flushed 
(probably a libc file buffering behavior)

This is a problem in Py3k where file buffering is done by Python; 
getpass needs to manually flush the stream it prints the prompt to. 
Otherwise the prompt isn't printed until after the password is entered 
e.g.:

Python 3.0a2 (py3k:59601, Dec 27 2007, 14:28:14) 
[GCC 4.1.3 20071209 (prerelease) (Debian 4.1.2-18)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import getpass
>>> getpass.getpass()



Password: 
'foo'
>>>

Windows doesn't use _raw_input so it wouldn't see this issue.

Attached is a patch to flush the stream. There's no getpass tests so I 
didn't get around to creating one for this issue. Ideally we'd test 
getpass via spawning a python subprocess and ensuring its I/O looked 
correct.

This was noticed on Jython as its file object is now based off Py3k's

--
components: Library (Lib)
files: getpass_flush-r59601.diff
messages: 59011
nosy: pjenvey
severity: normal
status: open
title: getpass broken in Py3k: must flush()
versions: Python 3.0
Added file: http://bugs.python.org/file9031/getpass_flush-r59601.diff

__
Tracker <[EMAIL PROTECTED]>

__Index: Lib/getpass.py
===
--- Lib/getpass.py  (revision 59601)
+++ Lib/getpass.py  (working copy)
@@ -78,6 +78,7 @@
 prompt = str(prompt)
 if prompt:
 stream.write(prompt)
+stream.flush()
 line = sys.stdin.readline()
 if not line:
 raise EOFError
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1704] possible bug in randint

2007-12-27 Thread Rich Marinaccio

New submission from Rich Marinaccio:

I have been using python for Civilization IV map scripting, and I 
believe I have found a small problem with the randint function. Once in 
a blue moon, randint(a,b) returns b + 1, rather than a >= N <= b. I 
have seen this behavior a few times. Here is the code I used to 
determine this.

randIndex = PWRand.randint(0,len(preshuffle)-1)#PWRand calls randint 
directly with these parameters
if randIndex < 0 or randIndex >= len(preshuffle):
raise ValueError, " bad index shuffling plot list randIndex=%(r)d 
listLength=%(l)d, mapSize=%(s)d" % {"r":randIndex,"l":len
(preshuffle),"s":hm.mapWidth*hm.mapHeight}

#output is
ValueError:  bad index shuffling plot list randIndex=1453 
listLength=1453, mapSize=13824

according to the docs, the max randIndex should be listLength - 1

--
components: None
messages: 59012
nosy: cephalo
severity: normal
status: open
title: possible bug in randint
type: behavior
versions: Python 2.5

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1650] IDLE: help() displays output on the wrong shell

2007-12-27 Thread Kurt B. Kaiser

Kurt B. Kaiser added the comment:

Fixed by overriding pydoc.py:pager to be plainpager.
r59603

--
resolution:  -> fixed
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1704] possible bug in randint

2007-12-27 Thread Rich Marinaccio

Rich Marinaccio added the comment:

I have been using python for Civilization IV map scripting, and I 
believe I have found a small problem with the randint function. Once in 
a blue moon, randint(a,b) returns b + 1, rather than a <= N <= b. I 
have seen this behavior a few times. Here is the code I used to 
determine this.

randIndex = PWRand.randint(0,len(preshuffle)-1)#PWRand calls randint 
directly with these parameters
if randIndex < 0 or randIndex >= len(preshuffle):
raise ValueError, " bad index shuffling plot list randIndex=%(r)d 
listLength=%(l)d, mapSize=%(s)d" % {"r":randIndex,"l":len
(preshuffle),"s":hm.mapWidth*hm.mapHeight}

#output is
ValueError:  bad index shuffling plot list randIndex=1453 
listLength=1453, mapSize=13824

according to the docs, the max randIndex should be listLength - 1

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1607] Patch for TCL 8.5 support

2007-12-27 Thread Kurt B. Kaiser

Kurt B. Kaiser added the comment:

This patch doesn't seem like the right way to 
fix the 8.5 issue...Close it?

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1457] IDLE - configDialog - new layout for key config

2007-12-27 Thread Kurt B. Kaiser

Kurt B. Kaiser added the comment:

r59604
Thanks for the Patch!

--
resolution:  -> accepted
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1563981] IDLE invokes completion even when running code

2007-12-27 Thread Kurt B. Kaiser

Kurt B. Kaiser added the comment:

Hard to fix since IDLE doesn't know that the interpreter went into 
input state.

However, control-tab appears to do what you want.

--
resolution:  -> wont fix
status: open -> closed

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue404444] [IDLE] auto indent/parentheses

2007-12-27 Thread Kurt B. Kaiser

Changes by Kurt B. Kaiser:


--
nosy: +kbk


Tracker <[EMAIL PROTECTED]>


___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1599] IDLE hangs if os.spwanv command is given

2007-12-27 Thread Kurt B. Kaiser

New submission from Kurt B. Kaiser:

Worked for me on Arch GNU/Linux 
using IDLE 2.6a0.  What OS and 
Version 
are you running?  Does it fail for

foo.py:
 def foo():
   pass

>>> import os
>>> os.spawnv(os.P_NOWAIT, 
'foo.py', '')
5026
>>>

--
assignee:  -> kbk
nosy: +kbk
priority:  -> normal
resolution:  -> works for me

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1601] IDLE not working correctly on Windows (Py30a2/IDLE30a1)

2007-12-27 Thread Kurt B. Kaiser

Kurt B. Kaiser added the comment:

Assigning to tiran since I'm not building Python on XP.  
Changing to Tkinter, also.  Is the file open bug fixed 
also by the suggested change?

--
assignee: kbk -> tiran
components: +Tkinter -IDLE

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1599] IDLE hangs if os.spwanv command is given

2007-12-27 Thread Pooja

Pooja added the comment:

Hi Kurt

  I have mentioned in my issue 1599 that i was working on IDLE 2.5 and Win 32.

  Regards
  Pooja

"Kurt B. Kaiser" <[EMAIL PROTECTED]> wrote:

New submission from Kurt B. Kaiser:

Worked for me on Arch GNU/Linux 
using IDLE 2.6a0. What OS and 
Version 
are you running? Does it fail for

foo.py:
def foo():
pass

'foo.py', '')
5026
>>>

--
assignee: -> kbk
nosy: +kbk
priority: -> normal
resolution: -> works for me

__
Tracker 

__

-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

Added file: http://bugs.python.org/file9032/unnamed

__
Tracker <[EMAIL PROTECTED]>

__Hi Kurt     I have mentioned in my issue 1599 
that i was working on IDLE 2.5 and Win 32.     
Regards  Pooja"Kurt B. Kaiser" <[EMAIL 
PROTECTED]> wrote:  New submission from Kurt B. Kaiser:Worked for me on Arch 
GNU/Linux using IDLE 2.6a0. What OS and Version are you running? 
Does it fail forfoo.py:def foo():pass>>> 
import os>>> os.spawnv(os.P_NOWAIT, 'foo.py', 
'')5026>>>--assignee: -> kbknosy: 
+kbkpriority: -> normalresolution: -> works for 
me__Tracker <[EMAIL 
PROTECTED]>__ 
  Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile. http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
 "> Try it now.
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com