[issue13932] If some test module fails to import another module unittest reports a very misleading message

2012-02-04 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo

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



[issue13929] fnmatch to support escape characters

2012-02-04 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

 [fnmatch] explicitly disclaims the feature you request: Be aware there is no 
 way to quote
 meta-characters.

This reads like a warning to me, i.e. a potential future feature, not a design 
choice.

 What you are asking for in something in between the unix language and re. If 
 one re
 feature is added, why not another?

When we use glob patterns in our shells, the shell language lets us escape what 
would otherwise be special characters.  Python would be nicer to let us do the 
same.

--
nosy: +eric.araujo

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



[issue13935] Tarfile - Fixed GNU tar header base-256 handling

2012-02-04 Thread Lars Gustäbel

Lars Gustäbel l...@gustaebel.de added the comment:

This has been fixed (issue13158, 
http://hg.python.org/cpython/rev/341008eab87d). Thanks anyway for the report.

--
resolution:  - duplicate
stage:  - committed/rejected
status: open - closed

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



[issue7827] recv_into() argument 1 must be pinned buffer, not bytearray

2012-02-04 Thread Mark Nottingham

Mark Nottingham m...@mnot.net added the comment:

Seems to be fixed in 2.7, although I'm not sure when exactly :

Python 2.7.2 (default, Oct 21 2011, 22:13:39) 
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type help, copyright, credits or license for more information.
 import socket
 sock = socket.socket()
 sock.connect( (python.org, 80) )
 sock.send(bGET / HTTP/1.0\r\n\r\n)
18
 buf = bytearray(b  * 10)
 sock.recv_into(buf)
10
 print buf
HTTP/1.1 3

--

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



[issue13923] new formatter for argparse

2012-02-04 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

(This reminds me of another request; would you mind searching the other 
argparse bugs to see if this is a duplicate?  Thanks)

--
nosy: +bethard, eric.araujo
versions: +Python 3.3

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



[issue13921] sqlite3: OptimizedUnicode obsolete in Py3k

2012-02-04 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

I’m not sure the doc note is useful, but didn’t code search to confirm it.

Also, 3.2 may be out of bounds for this cleanup (I don’t know the rules for 
what can be committed in what branches these days).

--
nosy: +eric.araujo
title: sqlite3: OptimizedUnicode doesn't work in Py3k - sqlite3: 
OptimizedUnicode obsolete in Py3k

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



[issue13915] Update Tutorial 6.1.3 for PEP 3145

2012-02-04 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
assignee: docs@python - eric.araujo
nosy: +eric.araujo

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



[issue13913] utf-8 or utf8 or utf-8 (codec display name inconsistency)

2012-02-04 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
priority: normal - low
type: behavior - enhancement
versions:  -Python 2.7, Python 3.2

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



[issue7827] recv_into() argument 1 must be pinned buffer, not bytearray

2012-02-04 Thread Mark Nottingham

Mark Nottingham m...@mnot.net added the comment:

From the release notes, perhaps it was #8104.

--

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



[issue13896] Make shelf instances work with 'with' as context managers

2012-02-04 Thread Filip Gruszczyński

Filip Gruszczyński grusz...@gmail.com added the comment:

closing was solving my problem, but I'll be happy on working on this patch, if 
you think it's useful after all. I don't think the stage should be test needed, 
since the patch has tests (I know the drill here ;-)).

--

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



[issue13929] fnmatch to support escape characters

2012-02-04 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

If indeed fnmatch does not match current shells, then I would agree that it 
should. It looks to me so easy to add that I though it must be a deliberate 
decision to exclude. In translate:
...
elif c == '\':
if i  n-1:
c2 = pat[i+1]
specify what to do for \c2 for all cases of c2
else:
specify what to do for pattern ending in '\'
else:  
res = res + re.escape(c)
# the last two lines are current code, which is why '\' in patterns does not 
escape anything in the translated re.

Changing the meaning of '\' from ordinary character to escape char will break 
any code that depends on its current ordinariness.
 fn.fnmatch(r'\x', r'\?')
True # for x any 'ordinary' char, but not is '\?' means match '?'.

This was another reason I closed, although I forgot to mention it. I suppose a 
new parameter 'escape = False' could be added to all 4 exposed functions to 
preserve back compatibility. Anyway, I have reopened for further discussion and 
specification.

--
resolution: rejected - 
status: closed - open

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



[issue13896] Make shelf instances work with 'with' as context managers

2012-02-04 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
stage: test needed - patch review

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



[issue13937] multiprocessing.ThreadPool.join() blocks indefinitely.

2012-02-04 Thread Charles-François Natali

Charles-François Natali neolo...@free.fr added the comment:

It's a duplicate of issue #12157.

--
nosy: +neologix
resolution:  - duplicate
stage:  - committed/rejected
status: open - closed
superseder:  - join method of multiprocessing Pool object hangs if iterable 
argument of pool.map is empty
versions: +Python 3.2, Python 3.3

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



[issue13928] bug in asyncore.dispatcher_with_send

2012-02-04 Thread adamhj

adamhj ada...@gmail.com added the comment:

 A non connected socket must be writable in order to connect.
i can't understand this, does it means that one may use self.connect() in 
handle_write()? and in fact i found something seems opposite on this page: 
http://docs.python.org/howto/sockets.html

If a socket is in the output readable list, you can be 
as-close-to-certain-as-we-ever-get-in-this-business that a recv on that socket 
will return something. Same idea for the writable list. You’ll be able to send 
something.

If you have created a new socket to connect to someone else, put it in the 
potential_writers list. If it shows up in the writable list, you have a decent 
chance that it has connected.

from the latter paragraph may i assume that a writable socket should always has 
been connected?

 Not sure what you mean here. Why would you call connect() twice?
sorry for the typo, it should be if we call dispatcher.send() immediately 
after .connect(), socket error 10057 may be raised, this happens if you 
connect to a high delay remote port, when the .send() is called before the SYN 
ACK is received. 

i think it maybe the programmer's responsibility to check the connection 
availability when using dispatcher class, but at least for dispatcher_with_send 
class, programmer should not need do anything special to use send() after a 
successful connect(), if .send() is called before connection established 
successfully, send() should only buffer the sending data and wait the socket to 
become writable

by the way, i found this behavior on windows 7 x32/python 2.7.2

--

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



[issue13700] imaplib.IMAP4.authenticate authobject fails with PLAIN mechanism

2012-02-04 Thread Johannes Bauer

Johannes Bauer dfnsonfsdu...@gmx.de added the comment:

Issue also affects Python3.1. Hunk succeeds against 3.1 imaplib.py and works 
for me.

--
nosy: +joebauer
versions: +Python 3.1

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



[issue13926] pydoc - stall when requesting a list of available modules in the online help utility

2012-02-04 Thread Jeroen

Jeroen dario...@gmail.com added the comment:

Ned,

I've run the help() from the command-line as requested and the result was:

Python 2.7.2+ (default, Oct  4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type help, copyright, credits or license for more information.
 help()

Welcome to Python 2.7!  This is the online help utility.

If this is your first time using Python, you should definitely check out
the tutorial on the Internet at http://docs.python.org/tutorial/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules.  To quit this help utility and
return to the interpreter, just type quit.

To get a list of available modules, keywords, or topics, type modules,
keywords, or topics.  Each module also comes with a one-line summary
of what it does; to list the modules whose summaries contain a given word
such as spam, type modules spam.

help modules

Please wait a moment while I gather a list of all available modules...

/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning:
g_boxed_type_register_static: assertion `g_type_from_name (name) == 0'
failed
  import gobject._gobject
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning:
g_boxed_type_register_static: assertion `g_type_from_name (name) == 0'
failed
  from gtk import _gtk

** (python:2050): CRITICAL **: pyg_register_boxed: assertion `boxed_type !=
0' failed
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning:
cannot register existing type `GdkDevice'
  from gtk import _gtk
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning:
g_type_get_qdata: assertion `node != NULL' failed
  from gtk import _gtk
Segmentation fault

2012/2/4 Ned Deily rep...@bugs.python.org


 Ned Deily n...@acm.org added the comment:

 Jeroen, if you try running help() from a command-line python2.7, rather
 than in IDLE, what results do you get?  Most likely, Python will crash
 there and there should be an exception and traceback printed, in which case
 the problem has nothing to do with IDLE directly.  Note that there have
 been some improvements to pydoc's robustness since 2.7.2 was released (for
 instance, the changes for issue7425 and issue7367).

 (Terry, are you sure you meant Issue12092?)

 --
 nosy: +ned.deily

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue13926
 ___


--

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



[issue13939] excessive cpu usage

2012-02-04 Thread brian baker

New submission from brian baker brian.m.ba...@gmail.com:

python causing one of my dual core cpu's to run @ 100% running ubuntu 12.04 
with gnome-shell 3.3.4

--
components: None
messages: 152610
nosy: brian-m-baker
priority: normal
severity: normal
status: open
title: excessive cpu usage
type: resource usage
versions: Python 2.7

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



[issue13939] excessive cpu usage

2012-02-04 Thread Sandro Tosi

Sandro Tosi sandro.t...@gmail.com added the comment:

Hello,
i'm sorry but this is not the right place for this report. Please refer to 
ubuntu or gnome user support forum for help.

Sandro

--
nosy: +sandro.tosi
resolution:  - invalid
stage:  - committed/rejected
status: open - closed

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



[issue13939] excessive cpu usage

2012-02-04 Thread Sandro Tosi

Changes by Sandro Tosi sandro.t...@gmail.com:


--
components:  -None
versions:  -Python 2.7

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



[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2012-02-04 Thread Ross Lagerwall

Changes by Ross Lagerwall rosslagerw...@gmail.com:


--
nosy: +rosslagerwall

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



[issue13940] imaplib: Mailbox names are not quoted

2012-02-04 Thread Johannes Bauer

New submission from Johannes Bauer dfnsonfsdu...@gmx.de:

imaplib does not qupote mailbox names when it's sending it's query to the 
server in response to a status request, for example. This will lead to very 
strange errors if mailboxes are accessed which contain spaces:

i.e.

connection.status(mailbox name, (MESSAGES))

will return

  File /home/joe/test/imaplib.py, line 920, in _command_complete
raise self.error('%s command error: %s %s' % (name, typ, data))
imaplib.error: STATUS command error: BAD [b'Error in IMAP command STATUS: 
Status items must be list.']

which indicates that the error is within the actual flag list. It is not, 
however:

connection.status(\mailbox name\, (MESSAGES))

works as expected. This may arguably be or not be a bug -- however it is REALLY 
confusing to the user. Maybe at least a note should be included somewhere that 
-- just to be safe -- mailbox names should be quoted.

All the best,
Joe

--
components: Library (Lib)
messages: 152612
nosy: joebauer
priority: normal
severity: normal
status: open
title: imaplib: Mailbox names are not quoted
type: behavior
versions: Python 3.1

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



[issue13923] new formatter for argparse

2012-02-04 Thread Warren Turkal

Warren Turkal w...@penguintechs.org added the comment:

[1] sounds somewhere related and more complicated than what I was asking for. I 
would think that it would need to wrap bulleted lists in a sane way in addition 
to what I asked for here.

Also, [1] seems to apply to the option help text, where this request applies to 
the prolog and epilog. Although, it really makes sense to me for the formatter 
to format all the text bits similarly.

[1]http://bugs.python.org/issue12806

--

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



[issue13941] Your Python may not be configured for Tk

2012-02-04 Thread Manish Mishra

New submission from Manish Mishra yogm...@rediffmail.com:

I am trying to install Python3.2.2 on Ubuntu 11.10.  I downloaded the tar file. 
Then as per readme file did ./configure , make, make test, and then  sudo make 
install.  When “make” command is issued following appears along with many other 
messages 

Python build finished, but the necessary bits to build these modules were not 
found:
_curses_curses_panel  _dbm
_gdbm  _sqlite3   _ssl
_tkinter   bz2readline
To find the necessary bits, look in setup.py in detect_modules() for the 
module's name.

Now after final installation when I run idle following message appears 

** IDLE can't import Tkinter.  Your Python may not be configured for Tk. **

I tried “sudo apt-get install python3-tk” and got following message
python3-tk is already the newest version.

I am new to programming and ubuntu both. Please Help.
Thanks n regards.

--
components: Tkinter
messages: 152614
nosy: manish671
priority: normal
severity: normal
status: open
title: Your Python may not be configured for Tk
versions: Python 3.2

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



[issue13893] Make CGIHTTPServer capable of redirects (and status other than 200)

2012-02-04 Thread Giovanni Funchal

Giovanni Funchal gafunc...@gmail.com added the comment:

@Glenn Linderman, can you please share your changes? You can upload a patch.

--
versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.4

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



[issue13893] Make CGIHTTPServer capable of redirects (and status other than 200)

2012-02-04 Thread Giovanni Funchal

Giovanni Funchal gafunc...@gmail.com added the comment:

@Éric Araujo, yes this is a duplicate of #10487. I now think this should be 
marked as bug instead of enhancement. The documentation warns about this 
behavior but it is documenting a bug.

--
resolution:  - duplicate

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



[issue8184] multiprocessing.managers will not fail if listening ocket already in use

2012-02-04 Thread Charles-François Natali

Charles-François Natali neolo...@free.fr added the comment:

 Well it would probably be closed when the connection object is
 destroyed, but the patch looks ok anyway.

Let's be nice with those non refcount-based implementations out there :-)

What do you think of the patch attached
(connection_multiple_bind-1.diff) for the original problem?
It does two things:
1. add the FILE_FLAG_FIRST_PIPE_INSTANCE when creating a pipe on Windows
2. remove SO_REUSEADDR altogether on Windows, since it doesn't seem to
be required

For 2, it should be correct if I understand Microsoft's documentation
correctly, but then I wonder why test.support goes through the pain of
using SO_REUSEADDR + SO_EXCLUSIVEADDRUSE instead of just dropping
SO_REUSEADDR. Do you happen to know a Windows guru (or maybe should I
ask on python-dev?).

--
Added file: http://bugs.python.org/file24416/connection_multiple_bind-1.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8184
___diff --git a/Lib/multiprocessing/connection.py 
b/Lib/multiprocessing/connection.py
--- a/Lib/multiprocessing/connection.py
+++ b/Lib/multiprocessing/connection.py
@@ -544,7 +544,8 @@
 obsize, ibsize = 0, BUFSIZE
 
 h1 = win32.CreateNamedPipe(
-address, openmode | win32.FILE_FLAG_OVERLAPPED,
+address, openmode | win32.FILE_FLAG_OVERLAPPED |
+win32.FILE_FLAG_FIRST_PIPE_INSTANCE,
 win32.PIPE_TYPE_MESSAGE | win32.PIPE_READMODE_MESSAGE |
 win32.PIPE_WAIT,
 1, obsize, ibsize, win32.NMPWAIT_WAIT_FOREVER, win32.NULL
@@ -576,7 +577,10 @@
 def __init__(self, address, family, backlog=1):
 self._socket = socket.socket(getattr(socket, family))
 try:
-self._socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
+# SO_REUSEADDR has different semantics on Windows (issue #8184). 
+if os.name == 'posix':
+self._socket.setsockopt(socket.SOL_SOCKET,
+socket.SO_REUSEADDR, 1)
 self._socket.bind(address)
 self._socket.listen(backlog)
 self._address = self._socket.getsockname()
@@ -630,7 +634,8 @@
 def __init__(self, address, backlog=None):
 self._address = address
 handle = win32.CreateNamedPipe(
-address, win32.PIPE_ACCESS_DUPLEX,
+address, win32.PIPE_ACCESS_DUPLEX |
+win32.FILE_FLAG_FIRST_PIPE_INSTANCE,
 win32.PIPE_TYPE_MESSAGE | win32.PIPE_READMODE_MESSAGE |
 win32.PIPE_WAIT,
 win32.PIPE_UNLIMITED_INSTANCES, BUFSIZE, BUFSIZE,
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py
--- a/Lib/test/test_multiprocessing.py
+++ b/Lib/test/test_multiprocessing.py
@@ -1738,6 +1738,17 @@
 self.assertRaises(RuntimeError, reduction.recv_handle, conn)
 p.join()
 
+class _TestListener(BaseTestCase):
+
+ALLOWED_TYPES = ('processes')
+
+def test_multiple_bind(self):
+for family in self.connection.families:
+l = self.connection.Listener(family=family)
+self.addCleanup(l.close)
+self.assertRaises(OSError, self.connection.Listener,
+  l.address, family)
+
 class _TestListenerClient(BaseTestCase):
 
 ALLOWED_TYPES = ('processes', 'threads')
@@ -1758,6 +1769,7 @@
 self.assertEqual(conn.recv(), 'hello')
 p.join()
 l.close()
+
 #
 # Test of sending connection and socket objects between processes
 #
diff --git a/Modules/_multiprocessing/win32_functions.c 
b/Modules/_multiprocessing/win32_functions.c
--- a/Modules/_multiprocessing/win32_functions.c
+++ b/Modules/_multiprocessing/win32_functions.c
@@ -771,6 +771,7 @@
 WIN32_CONSTANT(F_DWORD, ERROR_PIPE_CONNECTED);
 WIN32_CONSTANT(F_DWORD, ERROR_SEM_TIMEOUT);
 WIN32_CONSTANT(F_DWORD, FILE_FLAG_OVERLAPPED);
+WIN32_CONSTANT(F_DWORD, FILE_FLAG_FIRST_PIPE_INSTANCE);
 WIN32_CONSTANT(F_DWORD, GENERIC_READ);
 WIN32_CONSTANT(F_DWORD, GENERIC_WRITE);
 WIN32_CONSTANT(F_DWORD, INFINITE);
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13928] bug in asyncore.dispatcher_with_send

2012-02-04 Thread Giampaolo Rodola'

Giampaolo Rodola' g.rod...@gmail.com added the comment:

 i can't understand this, does it means that one may use 
 self.connect() in handle_write()? 

Nope. When handle_write() is called you are supposed to be *already* connected, 
hence there's no point in calling connect() again. 
This is clear if you look at handle_write_event method or read asyncore doc.



 If it shows up in the writable list, you have a decent 
 chance that it has connected.
 from the latter paragraph may i assume that a writable 
 socket should always has been connected?

Nope. It means that *before* showing up the socket was *not* connected.


 if we call dispatcher.send() immediately after .connect(), 
 socket error 10057 may be raised,

Of course it does: you're not connected yet (10057 = WSAENOTCONN). 
You're supposed to use send() in handle_connect(), when the connection has 
already been established.
This:

 self.connect()
 self.send('hello')

...is not asyncore is supposed to be used.

--

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



[issue13928] bug in asyncore.dispatcher_with_send

2012-02-04 Thread adamhj

adamhj ada...@gmail.com added the comment:

here is a script emulating what is happened in dispatcher class when the second 
bug triggered. you can use either a non-exist host/port, or a high delay remote 
port as target(see the comments in the script) and you may use a 
sniffer(tcpdump/wireshark e.g.) with the script to see what is happen

--
Added file: http://bugs.python.org/file24417/bug-emu.py

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



[issue444582] Finding programs in PATH, adding shutil.which

2012-02-04 Thread Omega Weapon

Changes by Omega Weapon omegaphil+python.b...@gmail.com:


--
nosy: +Omega_Weapon

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



[issue13928] bug in asyncore.dispatcher_with_send

2012-02-04 Thread adamhj

adamhj ada...@gmail.com added the comment:

ah just ignore my previous msg as i post it without seeing yours.

 Nope. It means that *before* showing up the socket was *not* connected.
ok, i read more in the asyncore source and finally understand what do you mean 
by A non connected socket must be writable in order to connect. i think this 
is a little confusing if without any explaining, shouldn't this be written into 
the asyncore reference page as both readable() and writable() may be override 
by user?

 Of course it does: you're not connected yet (10057 = WSAENOTCONN). 
 You're supposed to use send() in handle_connect(), when the connection has 
 already been established.
 This:

 self.connect()
 self.send('hello')

 ...is not asyncore is supposed to be used.

oh it seems i forgot handle_connect(), thank you for your patient explanation 
and sorry to have troubled you. i think there is no problem anymore

--
status: open - closed

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



[issue13942] ssl.wrap_socket does not work on socket.socketpair()'s

2012-02-04 Thread weary

New submission from weary bugs.pyt...@weary.nl:

ssl.wrap_socket does not work on socket.socketpair()'s

note, this is the same as issue 1552, but for python 2.7. Also, the supplied 
patch does not work (patch results in: TypeError: must be _socket.socket, not 
_socketobject)


 import ssl
 import socket
 s1, s2 = socket.socketpair()
 ssl.wrap_socket(s1)
Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/lib/python2.7/ssl.py, line 372, in wrap_socket
ciphers=ciphers)
  File /usr/lib/python2.7/ssl.py, line 105, in __init__
socket.__init__(self, _sock=sock._sock)
AttributeError: '_socket.socket' object has no attribute '_sock'

--
components: IO
messages: 152621
nosy: weary
priority: normal
severity: normal
status: open
title: ssl.wrap_socket does not work on socket.socketpair()'s
type: behavior
versions: Python 2.7

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



[issue13942] ssl.wrap_socket does not work on socket.socketpair()'s

2012-02-04 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +pitrou

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



[issue8184] multiprocessing.managers will not fail if listening ocket already in use

2012-02-04 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 887d0ab5fb97 by Charles-François Natali in branch '2.7':
Issue #8184: Fix a potential file descriptor leak when a
http://hg.python.org/cpython/rev/887d0ab5fb97

New changeset ba1e0a1ac5b7 by Charles-François Natali in branch '3.2':
Issue #8184: Fix a potential file descriptor leak when a
http://hg.python.org/cpython/rev/ba1e0a1ac5b7

New changeset cca40a0ecffa by Charles-François Natali in branch 'default':
Issue #8184: Fix a potential file descriptor leak when a
http://hg.python.org/cpython/rev/cca40a0ecffa

--
nosy: +python-dev

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



[issue13941] Your Python may not be configured for Tk

2012-02-04 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

Hi, the bug tracker is not here to receive help. Please ask your questions on 
the python-list mailing list.
This said, since you have already installed the packages python3-tk and 
python3, so you could as well install idle3 and use it...

--
nosy: +amaury.forgeotdarc
resolution:  - invalid
status: open - closed

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



[issue13806] Audioop decompression frames size check fix

2012-02-04 Thread Charles-François Natali

Charles-François Natali neolo...@free.fr added the comment:

This broke a sparc buildbot:


==
FAIL: test_alaw2lin (test.test_audioop.TestAudioop)
--
Traceback (most recent call last):
  File /home2/buildbot/slave/2.7.loewis-sun/build/Lib/test/test_audioop.py, 
line 114, in test_alaw2lin
self.assertEqual(audioop.alaw2lin(d, 2), b'\x08\x00\x08\x01\x10\x02')
AssertionError: '\x00\x08\x01\x08\x02\x10' != '\x08\x00\x08\x01\x10\x02'

==
FAIL: test_ulaw2lin (test.test_audioop.TestAudioop)
--
Traceback (most recent call last):
  File /home2/buildbot/slave/2.7.loewis-sun/build/Lib/test/test_audioop.py, 
line 127, in test_ulaw2lin
self.assertEqual(audioop.ulaw2lin(d, 2), b'\x00\x00\x04\x01\x0c\x02')
AssertionError: '\x00\x00\x01\x04\x02\x0c' != '\x00\x00\x04\x01\x0c\x02'


It's obviously an endianess issue (sparc is big endian).

--
nosy: +neologix
status: closed - open

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



[issue13878] test_sched failures on Windows buildbot

2012-02-04 Thread Charles-François Natali

Charles-François Natali neolo...@free.fr added the comment:


for x in [0.05, 0.04, 0.03, 0.02, 0.01]:
z = scheduler.enter(x, 1, fun, (x,))


Since the test uses relative times, if the process is preempted more than 0.01s 
between two calls to enter (or if the clock goes backwards), the absolute times 
won't be monotonic:

time.time() - t
scheduler.enter(0.05, 1, fun, (0.05,)) - scheduler.enterabs(t+0.05, 1, fun, 
(0,))
preempted for 0.02s/clock goes backwards
time.time() - t+0.02
scheduler.enter(0.04, 1, fun, (0.04,)) - 
scheduler.enterabs(t+0.02+0.04=t+0.06, 1, fun, (0,))
and 0.04 would end up after 0.05 in the queue.

Changing the sequence for [0.5, 0.4, 0.3, 0.2, 0.1] should make the test more 
robust (other tests seem to have the same problem).

--
nosy: +neologix

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



[issue13942] ssl.wrap_socket does not work on socket.socketpair()'s

2012-02-04 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

It's more of an enhancement than a bug (wrap_socket is not documented to work 
with all kinds of sockets), and 2.7 is in bugfix mode. I'd rather close this as 
won't fix.

--
resolution:  - wont fix
status: open - pending

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



[issue13806] Audioop decompression frames size check fix

2012-02-04 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset bc6e768de2cc by Antoine Pitrou in branch '2.7':
Fix failing test on big-endian machines (issue #13806).
http://hg.python.org/cpython/rev/bc6e768de2cc

--

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



[issue13806] Audioop decompression frames size check fix

2012-02-04 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset cfbd800af3a4 by Antoine Pitrou in branch '3.2':
Fix failing test on big-endian machines (issue #13806).
http://hg.python.org/cpython/rev/cfbd800af3a4

New changeset 05b40b006565 by Antoine Pitrou in branch 'default':
Fix failing test on big-endian machines (issue #13806).
http://hg.python.org/cpython/rev/05b40b006565

--

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



[issue13806] Audioop decompression frames size check fix

2012-02-04 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Will wait for the buildbot to clear.

--

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



[issue8418] Crash 0xc0000417 STATUS_INVALID_CRUNTIME_PARAMETER on program exit

2012-02-04 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +loewis

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



[issue13880] pydoc -k throws AssertionError: distutils has already been patched by class py2exe.Distribution at 0x0000000005987408

2012-02-04 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

I believe this problem has been fixed by the changes for Issue7425 which will 
be released in the next updates of Python 2.7 (2.7.3) and 3 (3.2.3).

--
nosy: +ned.deily
resolution:  - duplicate
stage:  - committed/rejected
status: open - closed
superseder:  - Improve the robustness of pydoc -k in the face of broken 
modules

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



[issue2377] Replace __import__ w/ importlib.__import__

2012-02-04 Thread Brett Cannon

Brett Cannon br...@python.org added the comment:

OK, I'm down to a single bug to be solved to call this work a success (there 
are other test failures, but they are not overtly difficult to solve).

At this point the bootstrapping is failing in the face of sub-interpreters. 
Specifically, when I try to load the frozen importlib code in 
Py_NewInterpreter() it leads to an assertion failure in the GC code when 
handling references in a GC generation. I have zero experience with 
sub-interpreters and my GC experience is rusty, so if anyone can have a look at 
the code I would appreciate it to see if they can figure out why loading a 
frozen module (while in marshal) is leading to a GC assertion error.

--

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



[issue2377] Replace __import__ w/ importlib.__import__

2012-02-04 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
keywords: +patch
Added file: http://bugs.python.org/file24418/f0b459af26fb.diff

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



[issue13926] pydoc - stall when requesting a list of available modules in the online help utility

2012-02-04 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

Thanks for the additional output.  It demonstrates that the problem you've 
encountered is an old known issue with pydoc help when there are modules that 
cause exceptions upon importing.  And the additional issue Roger brought up is 
also due to pydoc importing modules.  Neither of these is specific to IDLE 
environments.  There are a number of open duplicate and/or closely related 
issues on the bug tracker, including #12901, #10060, and #11995.  Let's move 
further discussion to one of those.

--
resolution:  - duplicate
stage:  - committed/rejected
status: open - closed

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



[issue13933] IDLE:not able to complete the hashlib module

2012-02-04 Thread Roger Serwy

Roger Serwy roger.se...@gmail.com added the comment:

Attached is a patch against 3.3a0 to fix the problem. The cause of the bug is 
that a tuple can not be sorted and calling .sort was raising a silenced 
exception. The patch explicitly converts __all__ to a list.

--
keywords: +patch
Added file: http://bugs.python.org/file24419/issue13933.patch

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



[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2012-02-04 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

While the full regression testing of all active branches against all of the 
current compiler versions is in progress, my current (and preliminary) 
recommendations (despite some test failures):

- for OS X 10.7.x, use the latest released Xcode, currently Xcode 4.2.1, 
and build with clang and debug:

./configure --with-pydebug CC=clang MACOSX_DEPLOYMENT_TARGET=10.7

- for OS X 10.6.x, if possible, continue to use the last released Xcode 
3.2 (3.2.6), which includes Apple gcc-4.2 (/usr/bin/gcc-4.2 not 
llvm-gcc-4.2)

/usr/bin/gcc-4.2 --version
./configure MACOSX_DEPLOYMENT_TARGET=10.6
or
./configure --with-pydebug MACOSX_DEPLOYMENT_TARGET=10.6

- for OS X 10.6.x with Xcode 4 installed (which does not include Apple 
gcc-4.2), use the latest Xcode 4.2 for 10.6 and use clang and debug:

./configure --with-pydebug CC=clang MACOSX_DEPLOYMENT_TARGET=10.6


More results and fixes to follow ...

BTW, the current test failures with clang without pydebug include a 
number of ctypes test failures (in ctypes.test.test_cfuncs.CFunctions).  
If anyone has time to further investigate those, it would be very 
helpful (Issue13370).

--
stage:  - test needed

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



[issue13933] IDLE:not able to complete the hashlib module

2012-02-04 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 741d4aaf7947 by Ned Deily in branch '2.7':
Issue #13933: IDLE auto-complete did not work with some imported
http://hg.python.org/cpython/rev/741d4aaf7947

New changeset 3e9a7fdf0498 by Ned Deily in branch '3.2':
Issue #13933: IDLE auto-complete did not work with some imported
http://hg.python.org/cpython/rev/3e9a7fdf0498

New changeset 443772a82dcd by Ned Deily in branch 'default':
Issue #13933: merge
http://hg.python.org/cpython/rev/443772a82dcd

--
nosy: +python-dev

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



[issue13933] IDLE:not able to complete the hashlib module

2012-02-04 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

Roger's patch solves the problem.  Thanks!  Applied to 2.7 (for 2.7.3), 3.2 
(for 3.2.3), and default (for 3.3).

--
nosy: +ned.deily
resolution:  - fixed
stage:  - committed/rejected

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



[issue13933] IDLE:not able to complete the hashlib module

2012-02-04 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
status: open - closed

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



[issue7827] recv_into() argument 1 must be pinned buffer, not bytearray

2012-02-04 Thread Andrew Dalke

Andrew Dalke da...@dalkescientific.com added the comment:

It does look like #8104 resolved it. I tested on 2.7.2 and verified that it's 
no longer a problem, so I moved this to closed/duplicate.

--
resolution:  - duplicate
status: open - closed

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



[issue13806] Audioop decompression frames size check fix

2012-02-04 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

The fix I committed seems ok. Unfortunately the buildbot doesn't compile 3.2 or 
3.3, see #13843.

--
status: open - closed

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



[issue13899] re pattern r[\A] should work like A but matches nothing. Ditto B and Z.

2012-02-04 Thread Matthew Barnett

Matthew Barnett pyt...@mrabarnett.plus.com added the comment:

In re, \A within a character set should be similar to \C, but instead it's 
still interpreted as meaning the start of the string. That's definitely a bug.

If it doesn't do what it's supposed to do, then it's a bug.

regex tries to be backwards compatible with re but fix such bugs.

The only buggy behaviour which it retains in its version 0 (compatible) 
behaviour is not splitting on a zero-width match, and that's only because GvR 
believes that some existing code which uses re may rely on that behaviour. In 
its version 1 (extended) behaviour it does split on a zero-width match.

--

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



[issue13773] Support sqlite3 uri filenames

2012-02-04 Thread poq

poq p...@gmx.com added the comment:

 The Python docs should either list them (there aren’t much; pro: all the info 
 is here, con: maintenance) or link to them.

They've already added a new option ('psow') since I opened this report, so 
linking is probably more future-proof.

I've added an updated patch which adds a link. I've also changed the exception 
when URIs are not supported to sqlite3.NotSupportedError.

 By the way, do you want to give us your full name so that we can credit you?

I prefer anonymity. :)

--
Added file: http://bugs.python.org/file24420/sqlite-uri.v3.patch

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



[issue964437] idle help is modal

2012-02-04 Thread Roger Serwy

Roger Serwy roger.se...@gmail.com added the comment:

Attached is an updated version of Guilherme's patch against 3.3a0. It does make 
the help window non-modal.

--
Added file: http://bugs.python.org/file24421/help_nonmodal_updated.patch

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



[issue13933] IDLE:not able to complete the hashlib module

2012-02-04 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

Thank you both. I saw the answer (hashlib.__all__ is, unusally, a tuple) but 
did not see how it was the answer.

--

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




[issue13943] Lib/distutils/command/build_py fails when package string is unicode

2012-02-04 Thread Patrick Andrew

New submission from Patrick Andrew pand...@isilon.com:

When a package list is built using Unicode strings, distutils fails to build 
the package with a TypeError.

This patch alternatively checks for 'unicode' as the instance type and also 
prints the type in the type error for easier debugging.

--
assignee: tarek
components: Distutils
files: patch-Lib-distutils-command-build_py.py
messages: 152643
nosy: eric.araujo, patrick.andrew, tarek
priority: normal
severity: normal
status: open
title: Lib/distutils/command/build_py fails when package string is unicode
versions: Python 2.7
Added file: 
http://bugs.python.org/file24422/patch-Lib-distutils-command-build_py.py

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



[issue13922] argparse handling multiple -- in args improperly

2012-02-04 Thread Warren Turkal

Warren Turkal w...@penguintechs.org added the comment:

I wanted to include a minimal example script, so here it is. If you run this 
like so:
$ ./test.py -- blah -- blah2

you will get the the following output:
Namespace(args=['blah2'], target=['blah'])

I would have expected the following instead:
Namespace(args=['--', 'blah2'], target=['blah'])

--

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



[issue1625] bz2.BZ2File doesn't support multiple streams

2012-02-04 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset e73d549b7458 by Nadeem Vawda in branch '2.7':
Issue #1625: Document BZ2File's lack of support for multi-stream inputs.
http://hg.python.org/cpython/rev/e73d549b7458

New changeset 190826ee0450 by Nadeem Vawda in branch '3.2':
Issue #1625: Document BZ2File's lack of support for multi-stream inputs.
http://hg.python.org/cpython/rev/190826ee0450

--

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



[issue964437] idle help is modal

2012-02-04 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

Thanks, Roger.  I did a quick smoke test of the patch on OS X 10.7 with Cocoa 
Tk.  I didn't see any obvious problems.  Of course, it needs to be tested on 
Windows and with X11 on a Unix platform.  Note, that there are some spurious 
spaces at a few ends-of-lines.  The main repositories on hg.python.org have 
whitespace prehooks that check for and reject patches with extra whitespace.  
There's a script (reindent.py) included in Tools/scripts that will check for 
this and other problems.
http://docs.python.org/devguide/committing.html

--
nosy: +ned.deily

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



[issue964437] idle help is modal

2012-02-04 Thread Roger Serwy

Roger Serwy roger.se...@gmail.com added the comment:

I ran reindent and resubmitted the patch.

The patch works fine on Ubuntu 11.04. One very subtle design issue with the 
patch is that the help window is tied to the calling EditorWindow instance. If 
the editor (or shell) closes, so does the help window, even if other editors 
are open.

--
Added file: http://bugs.python.org/file24423/help_nonmodal_updated2.patch

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



[issue13843] Python doesn't compile anymore on our Solaris buildbot: undefined libintl_* symbols

2012-02-04 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Martin, do you have any idea? There doesn't seem to be any recent commits that 
could have caused this problem.

--

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



[issue13892] distutils handling of windows manifest isn't optimal

2012-02-04 Thread Jack Jansen

Jack Jansen jackjan...@users.sourceforge.net added the comment:

Hmm, the cscript.exe point is a valid one. I can think of two things that make 
my situation different, I will investigate (and post here):

- I started getting the problem when the hosting application (Ambulant 
multimedia player) switched from VS2008 to VS2010. So maybe cscript.exe is 
built with 2008, and there the problem is masked?

- My outer plugin (the one for Ambulant) also links against the .pyd (actually, 
to the .lib corresponding to the .pyd, which results in the .dll having a 
reference to the .pyd) because I need the various _New and _Convert routines 
when I call out to Python. I think this is a situation that wouldn't occur in 
the cscript.exe case.

--

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



[issue13922] argparse handling multiple -- in args improperly

2012-02-04 Thread Warren Turkal

Warren Turkal w...@penguintechs.org added the comment:

It doesn't look like that file got included last time, so here's a second try.

--
Added file: http://bugs.python.org/file24424/test.py

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



[issue964437] idle help is modal

2012-02-04 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

Download, tested on W7, 3.2.2. Started help, brought to front, stopped, 
restarted, in both shell and edit window and all fine *except* when I closed 
edit window with help attached, which closes help also, and tried to open help 
in shell, idle 'silently' crashes. Reproduced same after restart idle. If I 
reopen an edit window, and reopen help from an edit window, it works ok. So the 
side-effect close seems to leave something behind that is a problem for 
reopening from shell but not from another edit window.

I am also still curious why window opens too narrow and if that can be fixed.

--

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



[issue13932] If some test module fails to import another module unittest reports a very misleading message

2012-02-04 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

This is a duplicate of issue 7559. See the discussion there.

--
resolution:  - duplicate
status: open - closed

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



[issue13771] HTTPSConnection __init__ super implementation causes recursion error

2012-02-04 Thread Michael Mulich

Michael Mulich michael.mul...@gmail.com added the comment:

Sure does. But that's the point of the package.

Why is this super usage without arguments considered a hack?


 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue13771
 ___

--

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



[issue13893] Make CGIHTTPServer capable of redirects (and status other than 200)

2012-02-04 Thread Glenn Linderman

Glenn Linderman v+pyt...@g.nevcal.com added the comment:

Add version of server.py source.  This was originally revised from Python 3.1, 
I just now merged the Python 3.2 changes.  I've been running it for months in 
3.2, but without the 3.2 changes. Will be running it now in this form, so if 
something goes wrong in my environment, I'll be back to correct it.

This code includes fixes for a number of open issues that I opened, including 
issue 10487.

Giovanni -- if you have time to work on this, and separate out the patches for 
the individual issues address, and cause progress, that would be great.  Maybe 
use this issue as a staging area, tease apart the patches and submit them to 
the other bugs, and then just close this one down as a dup of the others?  I'm 
not sure of the best process.

--
Added file: http://bugs.python.org/file24425/server.py

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



[issue13893] Make CGIHTTPServer capable of redirects (and status other than 200)

2012-02-04 Thread Glenn Linderman

Glenn Linderman v+pyt...@g.nevcal.com added the comment:

Uploaded version of CGIHTTPServer.py that is based on Python 2.6 runs well 
there on Windows, but which also works under Python 2.4 on Linux.

I should mention that the server.py I upload moments ago has mostly run on 
Windows, and I might not have fixed all the problems in the Linux/Unix path, 
because I don't have a test environment for that path.

--
Added file: http://bugs.python.org/file24426/CGIHTTPServer.py

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



[issue13893] Make CGIHTTPServer capable of redirects (and status other than 200)

2012-02-04 Thread Glenn Linderman

Glenn Linderman v+pyt...@g.nevcal.com added the comment:

Oh, and I submit all my changes to the public domain to be re-licensed as 
needed by anyone that works with it. Not sure if these few changes need a 
contributor agreement, I'd be glad to sign one if it is.

--

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



[issue13944] HMAC object called hmac

2012-02-04 Thread Ramchandra Apte

New submission from Ramchandra Apte maniandra...@gmail.com:

When the documentation for hashlib says An HMAC object has the following 
methods: the list of methods says hmac.xxx which is wrong and should be 
HMAC.xxx.
Thanks

--
assignee: docs@python
components: Documentation
messages: 152657
nosy: docs@python, ramchandra.apte
priority: normal
severity: normal
status: open
title: HMAC object called hmac
type: enhancement
versions: Python 2.7, Python 3.2

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



[issue13945] Mistake in the text for PEP-383

2012-02-04 Thread Ramchandra Apte

New submission from Ramchandra Apte maniandra...@gmail.com:

chosers should be choosers in 'External libraries that operate on file 
names (such as GUI file chosers) should also encode them according to the PEP.' 
in text for PEP-383 (http://www.python.org/dev/peps/pep-0383/)

--
messages: 152658
nosy: ramchandra.apte
priority: normal
severity: normal
status: open
title: Mistake in the text for PEP-383
type: enhancement
versions: Python 3.2

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



[issue964437] idle help is modal

2012-02-04 Thread Roger Serwy

Roger Serwy roger.se...@gmail.com added the comment:

Attached is a reworked patch to handle the nonmodal help dialog.

It replaces the decorator _singledialog with a call to a singleton HelpDialog 
class. The class creates the textView widget using as its parent the root Tk 
window instance instead of the EditorWindow's Toplevel.
Any EditorWindow instance calling help_dialog will cause the existing help 
dialog to be repositioned on top of it.

--
Added file: http://bugs.python.org/file24427/help_nonmodal_revision.patch

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



[issue10910] pyport.h FreeBSD/Mac OS X fix causes errors in C++ compilation

2012-02-04 Thread Nasos Dousis

Nasos Dousis ndou...@gmail.com added the comment:

Per Chen Huang's comment, I retested my test case code using several versions 
of boost and Python 2.7:

boost 1.45: build fails, errors as reported.
boost 1.46: success.
boost 1.47: success.

I've attached a revised test case that automatically downloads and builds boost 
1.45.

--
Added file: http://bugs.python.org/file24428/test-boost-python.revised.tar.gz

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



[issue12142] Reference cycle when importing ctypes

2012-02-04 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 205da7a19a78 by Meador Inge in branch '3.2':
Issue #12142: Fixed reference cycle when importing ctypes
http://hg.python.org/cpython/rev/205da7a19a78

New changeset b228d9da8bd3 by Meador Inge in branch 'default':
Issue #12142: Fixed reference cycle when importing ctypes
http://hg.python.org/cpython/rev/b228d9da8bd3

New changeset 7cdbf627f958 by Meador Inge in branch '2.7':
Issue #12142: Fixed reference cycle when importing ctypes
http://hg.python.org/cpython/rev/7cdbf627f958

--
nosy: +python-dev

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



[issue13370] test_ctypes fails on osx 10.7

2012-02-04 Thread Meador Inge

Meador Inge mead...@gmail.com added the comment:

I can't reproduce this on Lion using the 2.7 or default branches.  I can't 
build with GCC at the moment because of issue13241.  I am using the clang that 
ships with Lion:

motherbrain:cpython meadori$ sw_vers
ProductName:Mac OS X
ProductVersion: 10.7.2
BuildVersion:   11C74
motherbrain:cpython meadori$ clang --version
Apple clang version 3.0 (tags/Apple/clang-211.12) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin11.2.0
Thread model: posix

--

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



[issue964437] idle help is modal

2012-02-04 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

I retried and get same behavior: help closes with closing of edit window and 
trying to reopen from shell closes idle with about 2 second delay.
Does this
+if self.root:
+parent = self.root
+else:
+parent = self.top
really do what you claimed? (always attach to root rather than toplevel)?

--

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