[issue1688] Incorrectly displayed non ascii characters in prompt using input() - Python 3.0a2

2008-09-20 Thread Vlastimil Brom

Vlastimil Brom [EMAIL PROTECTED] added the comment:

While I am not sure about the status of this somewhat older issue, I 
just wanted to mention, that the behaviour remains the same in Python 
3.0rc1 (XPh SP3, Czech)

Python 3.0rc1 (r30rc1:66507, Sep 18 2008, 14:47:08) [MSC v.1500 32 bit 
(Intel)] on win32
Type help, copyright, credits or license for more information.
 input(ěšč: )
─Ť┼í─Ź: řžý
'řžý'
 print(ěšč: )
ěšč:


Is the patch above supposed to have been committed, or are there yet 
another difficulties?
(Not that it is a huge problem (for me), as applications dealing with 
non ascii text probably would use a gui, rather than relying on a 
console, but it's a kind of surprising.)

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1688
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3891] collections.deque should have empty() method

2008-09-20 Thread Raymond Hettinger

Raymond Hettinger [EMAIL PROTECTED] added the comment:

Sorry Roy, I think you're way off base on this one.  There are standard
ways to test for an empty container if c: or if len(c) or if len(c)
 0.  This is Python 101. 

Closing this one as it has nothing to do specifically with
collections.deque() and is already covered in the Ref Manual.

--
resolution:  - works for me
status: open - closed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3891
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3905] subprocess failing in GUI applications on Windows

2008-09-20 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

There are also instances of set_daemon left in socketserver and
multiprocessing/dummy. How is that possible?

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3905
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3905] subprocess failing in GUI applications on Windows

2008-09-20 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Benjamin, I think you're responsible.

--
assignee:  - benjamin.peterson
nosy: +benjamin.peterson, georg.brandl

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3905
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1688] Incorrectly displayed non ascii characters in prompt using input() - Python 3.0a2

2008-09-20 Thread Martin v. Löwis

Martin v. Löwis [EMAIL PROTECTED] added the comment:

Amaury, what further review of the patch do you desire? I had already
commented that I consider the patch correct, except that it might use
stdout_encoding instead.

Also, I wouldn't consider this a release blocker. It is somewhat
annoying that input produces moji-bake in certain cases (i.e. non-ASCII
characters in the prompt, and a non-UTF-8 terminal), but if the patch
wouldn't make it into 3.0, we can still fix it in 3.0.1.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1688
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3905] subprocess failing in GUI applications on Windows

2008-09-20 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

The idle problem has already been fixed, and I got the socket server one
in r66520.

--
assignee: benjamin.peterson - 

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3905
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1688] Incorrectly displayed non ascii characters in prompt using input() - Python 3.0a2

2008-09-20 Thread Guido van Rossum

Guido van Rossum [EMAIL PROTECTED] added the comment:

Given MvL's review, assuming it fixes the Czech problem, I'm all for
applying it.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1688
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3905] subprocess failing in GUI applications on Windows

2008-09-20 Thread Jean-Michel Fauth

Jean-Michel Fauth [EMAIL PROTECTED] added the comment:

Just for information and from an end user perspective.

I have tried to replace the socketserver.py from the original 3.0rc1
distribution by the socketserver.py as proposed by Benjamin Peterson
(r66520).

Script difference (line 568):

if self.daemon_threads:
t.daemon = True
t.start()

and 

if self.daemon_threads:
t.set_daemon(True)
t.start()

Unfortunately, no luck, I'm still getting exactly the same error
messages, the msg box and the raised AttributeError:

AttributeError: 'Thread' object has no attribute 'set_daemon'

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3905
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3915] Broken link in 14.7 curses, Python Library Reference

2008-09-20 Thread Jason Etheridge

New submission from Jason Etheridge [EMAIL PROTECTED]:

In http://docs.python.org/lib/module-curses.html, the link Curses 
Programming with Python is broken. It links to 
http://www.python.org/doc/howto/curses/curses.html, which no longer 
exists. I found the page externally at http://www.amk.ca/python/howto/curses/.

--
assignee: georg.brandl
components: Documentation
messages: 73469
nosy: georg.brandl, jasoneth
severity: normal
status: open
title: Broken link in 14.7 curses, Python Library Reference
type: behavior
versions: Python 2.5

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3915
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3911] ftplib.FTP.makeport() bug

2008-09-20 Thread Giampaolo Rodola'

Giampaolo Rodola' [EMAIL PROTECTED] added the comment:

 Would you like to contribute a patch?

Ok.
I started working on a patch which implements a dummy asyncore-based FTP
server including tests for all basic FTP() class methods.
I'll contribute a patch as soon as I'll wrote IPv6 tests.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3911
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1688] Incorrectly displayed non ascii characters in prompt using input() - Python 3.0a2

2008-09-20 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:

Here is a new version of the patch: the PyString* functions were renamed
to PyBytes*, and it now uses stdout_encoding.

About the release blocker status: I agree it is not so important, I
just wanted to express my it's been here for long, it's almost ready,
it would be a pity not to have it in the final 3.0 feelings.

--
keywords: +patch
Added file: http://bugs.python.org/file11531/inputprompt.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1688
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3825] Major reworking of Python 2.5.2 re module

2008-09-20 Thread Matthew Barnett

Changes by Matthew Barnett [EMAIL PROTECTED]:


Removed file: http://bugs.python.org/file11530/regex_2.6rc2.diff

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3825
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3825] Major reworking of Python 2.5.2 re module

2008-09-20 Thread Matthew Barnett

Matthew Barnett [EMAIL PROTECTED] added the comment:

Bugfix.

Added file: http://bugs.python.org/file11532/regex_2.6rc2.diff

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3825
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3916] layout of build directories for Windows not current

2008-09-20 Thread Gabriel Genellina

New submission from Gabriel Genellina [EMAIL PROTECTED]:

In the Using Python on Windows document, the 
various directories listed for building Python 
on Windows are not current. The attached patch 
fixes the documentation.

Also included a small fix in the PBbuild/
readme.txt file.

--
assignee: georg.brandl
components: Documentation
files: docwin.patch
keywords: patch
messages: 73473
nosy: gagenellina, georg.brandl
severity: normal
status: open
title: layout of build directories for Windows not current
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file11533/docwin.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3916
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3626] python3.0 interpreter on Cygwin ignores all arguments

2008-09-20 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:

This patches corrects the bad printf, when the given filename is only
1-char long.

--
keywords: +needs review
Added file: http://bugs.python.org/file11534/cygwin_badprintf.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3626
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3626] python3.0 interpreter on Cygwin ignores all arguments

2008-09-20 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:

Since the bsddb module has been removed from py3k, the previous patch
addresses the last issue for this ticket.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3626
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3912] unittest. assertAlmostEqual() documentation incomplete

2008-09-20 Thread Gabriel Genellina

Gabriel Genellina [EMAIL PROTECTED] added the comment:

This patch documents the missing default value.

--
keywords: +patch
nosy: +gagenellina
Added file: http://bugs.python.org/file11535/unittest.diff

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3912
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3852] kqueue.control requires 2 params while docs say max_events (the second) defaults to 0

2008-09-20 Thread Gabriel Genellina

Gabriel Genellina [EMAIL PROTECTED] added the comment:

Attached a documentation patch, including the kqueue.control function 
docstring.

But I wonder if the code was incorrect instead - both the 
documentation and the function docstring specified a default value for 
max_events=0, and the corresponding variable was initialized to 0.
Perhaps the author meant to use PyArg_ParseTuple(args, O|
iO:control,...) instead of the current Oi|O:control

--
keywords: +patch
nosy: +gagenellina
Added file: http://bugs.python.org/file11536/select.diff

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3852
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3905] subprocess failing in GUI applications on Windows

2008-09-20 Thread Kevin Watters

Changes by Kevin Watters [EMAIL PROTECTED]:


--
nosy: +kevinwatters

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3905
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3917] set_display definition allows empty '{' '}' in Language Definition

2008-09-20 Thread Bruce Frederiksen

New submission from Bruce Frederiksen [EMAIL PROTECTED]:

The definition for set_display in the Language Definition allows for
empty curly braces by enclosing expression_list | comprehension in
brackets ('[', ']').  These brackets should be removed, as empty curly
braces are a dict_display.

http://docs.python.org/dev/3.0/reference/expressions.html#grammar-token-set_display

--
assignee: georg.brandl
components: Documentation
messages: 73478
nosy: dangyogi, georg.brandl
severity: normal
status: open
title: set_display definition allows empty '{' '}' in Language Definition
versions: Python 3.0

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3917
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3626] python3.0 interpreter on Cygwin ignores all arguments

2008-09-20 Thread Yaakov (Cygwin Ports)

Yaakov (Cygwin Ports) [EMAIL PROTECTED] added the comment:

3.0rc1 together with the printf patch builds and installs.  Some quick
testing seems ok, but idle isn't working:

$ idle3.0
Traceback (most recent call last):
  File string, line 1, in module
  File /usr/lib/python3.0/idlelib/run.py, line 76, in main
sockthread.set_daemon(True)
AttributeError: 'Thread' object has no attribute 'set_daemon'

IDLE appears briefly with a message:

Subprocess Startup Error
IDLE's subprocess didn't make connection.  Either IDLE can't start a
subprocess or personal firewall software is blocking the connection.
[OK]

Pushing OK causes idle3.0 to quit.  idle 2.5 works fine.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3626
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3918] random.uniform suprisingly (good kind) does not work as documented

2008-09-20 Thread Frank Martinez

New submission from Frank Martinez [EMAIL PROTECTED]:

The documentation for random.uniform states:
uniform(a, b)
Return a random real number N such that a = N  b.
However when I test it out, We see:
 import random as r
 r.uniform(0,-1)
-0.9815056608839331
 r.uniform(0,-1)
-0.37308132546878092
 r.uniform(0,-1)
-0.57090673820243609
 r.uniform(-1,0)
-0.80471374256455697
 r.uniform(3,2)
2.9202748927236488
Now, while /I/ actually find this behavior *extremely* useful (I don't 
need to verify I call with the arguments in the `correct' order.), I 
think either the behavior needs to change to match the documentation or 
(preferably), the documentation needs alteration to read, for example, 
additionally:
If a  b, this function behaves as if it were called as uniform(b,a).
Again, for clarity, I vote for the documentation change.

--
components: Library (Lib)
messages: 73480
nosy: xuinkrbin
severity: normal
status: open
title: random.uniform suprisingly (good kind) does not work as documented
type: behavior
versions: Python 2.5

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3918
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3826] Self-reference in BaseHTTPRequestHandler descendants causes stuck connections

2008-09-20 Thread Gabriel Genellina

Gabriel Genellina [EMAIL PROTECTED] added the comment:

3.0rc1 still fails.
The diagnostic is correct, the connection should be closed after 
sending the response, but isn't.
The attached unittest reproduces the error without requiring a browser.

--
nosy: +gagenellina

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3826
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3787] Make PyInstanceMethod_Type available or remove it

2008-09-20 Thread Brett Cannon

Brett Cannon [EMAIL PROTECTED] added the comment:

Is this really meant to be for 3.1, or should this be a 3.0 blocker?

--
nosy: +brett.cannon

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3787
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com