[issue10641] kill_python sometimes fails to kill processes on buildbots

2010-12-07 Thread Hirokazu Yamamoto

Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:

To kill python_d.exe, you should use kill_python_d.exe instead of
kill_python.exe.

 On the XP and Win7 buildbots, kill_python sometimes fails to kill hung
 processes.

Could you post the buildbot log url?

--
nosy: +ocean-city

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



[issue10641] kill_python sometimes fails to kill processes on buildbots

2010-12-07 Thread Hirokazu Yamamoto

Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:

I think #9973 is rather related.

--

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



[issue9973] Sometimes buildbot fails to cleanup working copy

2010-12-07 Thread Hirokazu Yamamoto

Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:


Added file: 
http://bugs.python.org/file19968/py3k_buildbot_error_in_clean_faze_v2.patch

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



[issue9973] Sometimes buildbot fails to cleanup working copy

2010-12-07 Thread Hirokazu Yamamoto

Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:


Removed file: 
http://bugs.python.org/file19047/py3k_buildbot_error_in_clean_faze.patch

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



[issue10643] OSX proxy exceptions parse bug in urllib (crash)

2010-12-07 Thread Ned Deily

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

The fix for this problem, originally reported in Issue8883, was released in 
Python 2.6.6.

--
assignee:  - ronaldoussoren
components: +Library (Lib), Macintosh -Extension Modules
nosy: +ned.deily, ronaldoussoren
resolution:  - duplicate
status: open - closed
superseder:  - Proxy exception lookup fails on MacOS in urllib.

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



[issue10644] socket loses data, calling send()/sendall() on invalid socket does not report error and returns all bytes as written

2010-12-07 Thread diekmann

New submission from diekmann diekm...@in.tum.de:

Calling send()/sendall() on an invalid socket does not report an error and 
returns all bytes as written. Thus, all bytes written to the socket are lost 
and the application is not informed about that and treats the bytes as 
successfully sent. The bytes given to the socket are silently lost, this cannot 
be recovered.

The attached file includes an example to reproduce this problem. I defined an 
invalid socket, when the other side of the connection has closed the connection.

Steps to reproduce (see attached file for python implementation):
1) Create listening socket
2) let client connect to it
2.1) send something to the client (optional step)
3) Client terminates connection (now the socket on the server side is invalid)
4) Server calls send/sendall --- No Error here, but everything is lost
5) Server calls send/sendall again (Now we get the required error)

--
components: Library (Lib)
files: socketbug.py
messages: 123534
nosy: diekmann
priority: normal
severity: normal
status: open
title: socket loses data, calling send()/sendall() on invalid socket does not 
report error and returns all bytes as written
type: behavior
versions: Python 3.1
Added file: http://bugs.python.org/file19969/socketbug.py

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



[issue10641] kill_python sometimes fails to kill processes on buildbots

2010-12-07 Thread David Bolen

David Bolen db3l@gmail.com added the comment:

 To kill python_d.exe, you should use kill_python_d.exe instead of
 kill_python.exe.

Crud, I thought I did.  Well, ok, so can't trust this test.

 Could you post the buildbot log url?

I think this is the last build in the sequence that was failing until I killed 
the processes:  
http://www.python.org/dev/buildbot/all/builders/x86%20Windows7%203.x/builds/2297
  ... the processes had been around for maybe 45 hours at that point, but I 
can't find the last working run in the waterfall display (I get back to 2252 
and then it sort of goes blank).

Maybe the main problem is just the sequencing ... the fact that kill_python is 
only used at the start of a build (but after the svn step) and not during the 
clean step at the end of a test run?  In this case since the svn step was 
failing it probably never got as far as running kill_python[_d].

--

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



[issue10645] egg-info file in lib-dynload

2010-12-07 Thread Ronald Oussoren

New submission from Ronald Oussoren ronaldousso...@mac.com:

I just noticed that distutils creates an egg-info for the stdlib while 
installing Python.

This definitely happens for Python 2.7 and Python 3.2 (both framework builds on 
OSX).

In lib-dynload there is and egg-info file: Python-2.7.1-py2.7.egg-info 

Is this intentional? 

If it is: the OSX installer does not remove older versions when installing an 
upgrade (that is, I also have egg-info files for Python-2.7 and several 
pre-releases)

--
assignee: tarek
components: Distutils
messages: 123536
nosy: eric.araujo, ronaldoussoren, tarek
priority: low
severity: normal
status: open
title: egg-info file in lib-dynload
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2

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



[issue10641] kill_python sometimes fails to kill processes on buildbots

2010-12-07 Thread David Bolen

David Bolen db3l@gmail.com added the comment:

 I think #9973 is rather related.

Certainly could be another artifact of a python_d process still executing. In 
particular though, the suggested patch in that issue agrees with what I was 
thinking might be needed, in terms of moving kill_python_d over to clean.bat.

Can't think of any downsides of applying that change offhand, so if that were 
to be made, we could just then watch and wait to see if another hung condition 
occurred.

--

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



[issue10548] Error in setUp not reported as expectedFailure (unittest)

2010-12-07 Thread holger krekel

holger krekel holger.kre...@gmail.com added the comment:

Michael, if you have it i'd like to see the original post/concrete use case. 
thanks, holger

--

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



[issue10637] Calling CloseHandle twice (Modules/posixmodule.c)

2010-12-07 Thread Hirokazu Yamamoto

Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:

Committed in r87117(py3k).

--
priority: release blocker - 
resolution:  - fixed
status: open - closed

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



[issue9558] build_ext fails on VS8.0

2010-12-07 Thread Hirokazu Yamamoto

Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:

Won't this go into python3.2?

--

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



[issue9558] build_ext fails on VS8.0

2010-12-07 Thread Amaury Forgeot d'Arc

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

I happen to have the same change in my workspace. Please apply this patch, it 
fixes the test suite when compiled with VS8.0.

--
nosy: +amaury.forgeotdarc

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



[issue10626] Bad interaction between test_logging and test_concurrent_futures

2010-12-07 Thread Vinay Sajip

Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:

I will take a look at test_logging tidying up after itself, though the 
intention is to leave things as they were found (this is done in 
setUp/tearDown, and if it doesn't tidy up properly, that would be a bug).

As already explained in logging's documentation, there is no problem with just 
getting a logger and logging to it, BUT the top-level logger in any library 
package (and that includes stdlib, too) should have a NullHandler instance 
added to avoid the no handlers could be found for logger XXX message. This 
latter, one-off message is only there to guard against mis-configuration.

Re. Nick's comments about using logging in the stdlib - I'm not sure the reason 
he states is the reason for lack of traction, I think it's more to do with 
inertia. I will post separately on python-dev about use of logging in the 
stdlib itself, to see what specific obstacles stdlib maintainers see in the use 
of logging in their own modules.

--

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



[issue10626] Bad interaction between test_logging and test_concurrent_futures

2010-12-07 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com added the comment:

Yeah, I think that comment was just a mistaken impression on my part.

Definitely something odd going on with the test interaction though.

--

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



[issue9558] build_ext fails on VS8.0

2010-12-07 Thread Éric Araujo

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

Thanks for the ping and the confirmation that it works.  Will check in shortly.

--
components: +Distutils2
priority: normal - high
status: open - pending
versions: +3rd party -Python 2.6

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



[issue10645] egg-info file in lib-dynload

2010-12-07 Thread Éric Araujo

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

I think the existence of this file is intentional, to satisfy pkg_resources 
requirements for “Python”.  Philip can confirm.

--
nosy: +pje

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



[issue5587] vars() no longer has a useful __repr__

2010-12-07 Thread Éric Araujo

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

Looks good to me.

--

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



[issue10642] site.py crashes on python startup due to defective .pth file

2010-12-07 Thread Éric Araujo

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


--
assignee: tarek - 
components: +Library (Lib) -Distutils2
type: crash - behavior
versions: +Python 3.1, Python 3.2

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



[issue8194] Incompatible API change in xmlrpclib.Transport.parse_response() of Python 2.7 and 3.2

2010-12-07 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:

Please also fix it in py3k branch in Lib/xmlrpc/client.py.

--

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



[issue10642] site.py crashes on python startup due to defective .pth file

2010-12-07 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue10643] OSX proxy exceptions parse bug in urllib (crash)

2010-12-07 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
stage:  - committed/rejected
type: crash - behavior

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



[issue10644] socket loses data, calling send()/sendall() on invalid socket does not report error and returns all bytes as written

2010-12-07 Thread Antoine Pitrou

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

Which OS is it? It works for me:

Traceback (most recent call last):
  File socketbug.py, line 24, in module
print(con.send(bytes(Hello, ascii)))
socket.error: [Errno 32] Broken pipe

Regardless, the error returned is the one returned by your OS here. If your OS 
accepts the send(), Python can nothing against it.

--
nosy: +pitrou
resolution:  - invalid
status: open - pending
versions: +Python 3.2

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



[issue10642] site.py crashes on python startup due to defective .pth file

2010-12-07 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

If the problem is in site.py it doesn't sound like a distutils bug at all.  I 
remember Victor doing something that changed the error handling/reporting when 
importing site.py, so I'm adding him as nosy.  I thought that was only in 3.x, 
though.  Does this not fail in 2.6?

--
nosy: +haypo, r.david.murray

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



[issue9523] Improve dbm modules

2010-12-07 Thread Ray.Allen

Ray.Allen ysj@gmail.com added the comment:

Oh, yes. I noticed that the pep3119 defines return value of method 
MutableMapping.keys() as Set, as well as method items(). So the implementation 
of dumb.keys() and dump.items() are not correct since they all return lists 
while the class inherits MutableMapping. 

The implementations in my patch should also be corrected since I made the same 
mistake. Besides, since issue6045 has already added get(), I need to update my 
patch. I will do it later.

And who can tell the specification of MutableMapping.update()? The pep3119 
lacks of it. Should I follow the implementation in the ABC class MutableMapping?

--

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



[issue9227] can't import Tkinter / use IDLE after installing Python 2.7 on Mac OS X

2010-12-07 Thread Ronald Oussoren

Changes by Ronald Oussoren ronaldousso...@mac.com:


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

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



[issue10107] Quitting IDLE on Mac doesn't save unsaved code

2010-12-07 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

Ned: why does the patch change the signature of close_all_callback?

-def close_all_callback(self, event):
+def close_all_callback(self, *args, **kwds):

--

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



[issue2799] Remove _PyUnicode_AsString(), rework _PyUnicode_AsStringAndSize(), add PyUnicode_AsChar()

2010-12-07 Thread Julian Andres Klode

Julian Andres Klode j...@jak-linux.org added the comment:

The problem I see here is that there is no public way to simply get a C string 
from a unicode object similar to PyBytes_AsString() for bytes. That's bad 
because we don't want to rewrite the whole code to duplicate strings all the 
time and free every string we get from a MyPyUnicode_AsString() like function.

I used the following, but this clearly has a memory leak:


  static const char *MyPyUnicode_AsString(PyObject *op) {
  PyObject *bytes = PyUnicode_AsEncodedString(op,0,0);
  return bytes ? PyBytes_AS_STRING(bytes) : 0;
  }

I now use the following which has no memory leak, but needs an internal 
function (I would use _PyUnicode_AsString, but I need Python 2.X compatibility 
as well):

  static const char *MyPyUnicode_AsString(PyObject *op) {
  PyObject *bytes = _PyUnicode_AsDefaultEncodedString(op, 0);
  return bytes ? PyBytes_AS_STRING(bytes) : 0;
  }

So could something be done about this?

--
nosy: +jak

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



[issue10154] locale.normalize strips - from UTF-8, which fails on Mac

2010-12-07 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

UTF-8 works on SuSE Enterprise Linux 9 and 10 as well. 

BTW, neither UTF8 nor UTF-8 work on HPUX 10. That platform requires spelling it 
as utf8. 

This sadly enought means that this code doesn't work on HPUX 10:

 locale.setlocale(locale.LC_ALL, locale.getdefaultlocale())
Traceback (most recent call last):
  File stdin, line 1, in module
  File /opt/python2.7/lib/python2.7/locale.py, line 531, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting

That's because getdefaultlocale returns 'UTF8' as the encoding, even though 
LANG is set to 'nl_NL.utf8' (which is a working locale on the machine I tested).

BTW. I'm +1 on changing the alias table as Marc-Andre proposed.

--

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



[issue10580] Installer sentence in bold

2010-12-07 Thread Brian Curtin

Brian Curtin cur...@acm.org added the comment:

Changing Completing to Complete seems fine to me.

Here is a screenshot of where this currently appears: 
http://i.imgur.com/RX9b9.png

--

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



[issue9129] DoS smtpd module vulnerability

2010-12-07 Thread Barry A. Warsaw

Barry A. Warsaw ba...@python.org added the comment:

I'm okay classifying this as a security bug that should be fixed in the 2.6 
tree.

--

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



[issue6706] asyncore's accept() is broken

2010-12-07 Thread Barry A. Warsaw

Barry A. Warsaw ba...@python.org added the comment:

I do not see this as a security bug so no patch for 2.6 please.  (Comment 
requested from IRC).

--
nosy: +barry

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



[issue10107] Quitting IDLE on Mac doesn't save unsaved code

2010-12-07 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

Ned: never mind the command callback has a different signature than a 
keybinding.

Committed the patch for 3.2 in r87119.

--

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



[issue9523] Improve dbm modules

2010-12-07 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

I believe that in the absence of other documentation the ABC is considered 
authoritative.

--
nosy: +r.david.murray

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



[issue10404] IDLE on OS X popup menus do not work: cannot set/clear breakpoints

2010-12-07 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

The patch binds the menu to Ctrl-Button-1 (that is, the way you open context 
menu's on OSX systems with a single button), however rightclick still doens't 
work (but does an X11-style paste operation).

I propose adding an explicit binding for button-2 as well:

text.bind(Control-Button-1,self.right_menu_event)
text.bind(Button-2,self.right_menu_event)

This ensures that the context menu can be opened using the expected mouse 
button.

An IMO additional bonus is that the odd X11-style pasting behaviour is disabled 
(that is, right-click is no longer equivalent to Cmd-V), although one could 
claim that this breaks backward compatibility.

--

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



[issue10107] Quitting IDLE on Mac doesn't save unsaved code

2010-12-07 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

Merged to 3.1.x in r87120, merged to 2.7. in r87121.

Ned: thanks for looking into this, doubly so because Tk-on-OSX is involved.

--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue10406] IDLE 2.7 on OS X does not enable Rstrip extension by default

2010-12-07 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

Fixed in r87122.

Thanks you.

--
resolution:  - accepted
stage: patch review - committed/rejected
status: open - closed

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



[issue9973] Sometimes buildbot fails to cleanup working copy

2010-12-07 Thread David Bolen

David Bolen db3l@gmail.com added the comment:

I wonder if it might be better to have kill_python run at the tail end of 
test.bat, since there's a potential window where losing a connection to the 
build master might not run the clean step, so still risk blocking a future 
build after a reconnect due to still running processes.

--
nosy: +db3l

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



[issue8084] pep-0370 on osx duplicates existing functionality

2010-12-07 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

(reopening to ensure glyph's message doesn't get lost)

--
status: closed - open

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



[issue10646] ntpath.samefile doesn't work for hard links

2010-12-07 Thread Brian Curtin

New submission from Brian Curtin cur...@acm.org:

ntpath.samefile is currently implemented using GetFinalPathNameByHandle, which 
doesn't work for hard links.

Since I introduced values for os.stat().st_ino in #8879 (which implemented 
os.link), I suspect we can possibly change ntpath.samefile to be the same as 
posixfile.samefile and leave st_ino.


Hirokazu questioned whether or not that st_ino change was correct, but I think 
it will be fine on NTFS. As FAT does not support links anyways, there would be 
no issue with potential st_ino issues there as we wouldn't be comparing them 
for any reason.


(part of the reason I created this is that we have discussion on st_ino and 
samefile in a few different places and I'm losing track of where we're at)

--
assignee: brian.curtin
components: Library (Lib), Windows
messages: 123564
nosy: brian.curtin, ocean-city
priority: normal
severity: normal
stage: unit test needed
status: open
title: ntpath.samefile doesn't work for hard links
type: behavior
versions: Python 3.2

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



[issue10644] socket loses data, calling send()/sendall() on invalid socket does not report error and returns all bytes as written

2010-12-07 Thread diekmann

diekmann diekm...@in.tum.de added the comment:

ubuntu 9.10 with python 3.1.1+ and debian 5.0.6 with Python 3.1.3rc1

I can reproduce the bug on both systems. Maybe it has been fixed in python 3.2?

--
resolution: invalid - 
status: pending - open
versions:  -Python 3.2

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



[issue6697] Check that _PyUnicode_AsString() result is not NULL

2010-12-07 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

I am attaching a revised version of the patch which also includes some tests.  
Interestingly, the issue in syslog module is a regression from 3.1 introduced 
in r80401.  Although it is not a crasher, I don't think it was intentional 
because although openlog() is happy to accept NULL for indent, the error from  
_PyUnicode_AsString() would have to be cleared if the intent was to ignore 
undecodable indent.

--
nosy: +jafo

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



[issue6697] Check that _PyUnicode_AsString() result is not NULL

2010-12-07 Thread Alexander Belopolsky

Changes by Alexander Belopolsky belopol...@users.sourceforge.net:


Added file: http://bugs.python.org/file19970/issue6697a.diff

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



[issue10644] socket loses data, calling send()/sendall() on invalid socket does not report error and returns all bytes as written

2010-12-07 Thread Antoine Pitrou

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

I tried on both 3.1.3 and 3.2. It works (raises an error) under Mandriva; I've 
just tested under Debian stable and it fails.

Looking at netstat, the difference seems to be that nc closes the TCP 
connection fine under Mandriva when killed, and doesn't under Debian. Again, 
Python only propagates whatever error code the OS does or doesn't return.

--

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



[issue6697] Check that _PyUnicode_AsString() result is not NULL

2010-12-07 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

Alexander Belopolsky wrote:
 
 Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
 
 I am attaching a revised version of the patch which also includes some tests. 
  Interestingly, the issue in syslog module is a regression from 3.1 
 introduced in r80401.  Although it is not a crasher, I don't think it was 
 intentional because although openlog() is happy to accept NULL for indent, 
 the error from  _PyUnicode_AsString() would have to be cleared if the intent 
 was to ignore undecodable indent.

Some notes:

* Rather than just patching in error handling code, please consider
removing use of those APIs and replace their calls with something
more appropriate, e.g. using a parser API.

* When ignoring errors from the API, you have to clear the exception.
This is missing in a couple of places in the patch, e.g. in pyexpat.c

* Please also remove hacks like these:

+#define CMP PyUnicode_CompareWithASCIIString
+if (CMP(nameobj, entity) == 0)
+res = self-entity;
+else if (CMP(nameobj, target) == 0)
+res = self-target;
+else if (CMP(nameobj, version) == 0) {
+return PyUnicode_FromFormat(
+Expat %d.%d.%d, XML_MAJOR_VERSION,
 XML_MINOR_VERSION, XML_MICRO_VERSION);

--

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



[issue8654] Improve ABI compatibility between UCS2 and UCS4 builds

2010-12-07 Thread Alexander Belopolsky

Changes by Alexander Belopolsky belopol...@users.sourceforge.net:


--
nosy: +belopolsky

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



[issue10542] Py_UNICODE_NEXT and other macros for surrogates

2010-12-07 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

Daniel,

While these macros should not affect ABI, I would appreciate your feedback in 
light of your work on issue 8654.

--
nosy: +stutzbach

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



[issue10542] Py_UNICODE_NEXT and other macros for surrogates

2010-12-07 Thread Daniel Stutzbach

Daniel Stutzbach stutzb...@google.com added the comment:

+1 on the general idea of abstracting out repeated code.

I will take a closer look at the details within the next few days.

--

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



[issue5673] Add timeout option to subprocess.Popen

2010-12-07 Thread Pablo Bitton

Pablo Bitton pablo.bit...@gmail.com added the comment:

Has anybody had a chance to look into the problem I encountered yet?

Do you need more information?

--

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



[issue10404] IDLE on OS X popup menus do not work: cannot set/clear breakpoints

2010-12-07 Thread Ned Deily

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

Unfortunately, just adding the binding to button-2 does not work because the 
Tk Text widget already has a documented binding of paste-text to button-2 
and this does not override that.  With the binding added, I found that the 
button-2 behavior for breakpoints did not work correctly as both events would 
be triggered and the resulting breakpoint lines were incorrect.  That, plus the 
compatibility issue, is why I thought it best to just stick to control-click.

--

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



[issue6697] Check that _PyUnicode_AsString() result is not NULL

2010-12-07 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

On Tue, Dec 7, 2010 at 12:44 PM, Marc-Andre Lemburg
rep...@bugs.python.org wrote:
..
 * Rather than just patching in error handling code, please consider
 removing use of those APIs and replace their calls with something
 more appropriate, e.g. using a parser API.

Yes, that's what I started doing in the a patch.  I am not sure what
you mean by a parser API.  There are several places where conversion
is either unnecessary or an encoded string is already available.  See
_elementtree.c.

 * When ignoring errors from the API, you have to clear the exception.
 This is missing in a couple of places in the patch, e.g. in pyexpat.c


Right.  On the other hand, this is very similar to xmlparser_getattro
in _elementtree.c and I think should be handled the same way.

 * Please also remove hacks like these:

 +#define CMP PyUnicode_CompareWithASCIIString
 +        if (CMP(nameobj, entity) == 0)

What do you consider a hack?  The use of
PyUnicode_CompareWithASCIIString() or the shortening macro?

--

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



[issue6697] Check that _PyUnicode_AsString() result is not NULL

2010-12-07 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

Alexander Belopolsky wrote:
 
 Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
 
 On Tue, Dec 7, 2010 at 12:44 PM, Marc-Andre Lemburg
 rep...@bugs.python.org wrote:
 ..
 * Rather than just patching in error handling code, please consider
 removing use of those APIs and replace their calls with something
 more appropriate, e.g. using a parser API.

 Yes, that's what I started doing in the a patch.  I am not sure what
 you mean by a parser API. 

PyArg_Parse() et al. See the discussion earlier on this ticket.

 There are several places where conversion
 is either unnecessary or an encoded string is already available.  See
 _elementtree.c.

If the API is not needed at all, even better.

 * When ignoring errors from the API, you have to clear the exception.
 This is missing in a couple of places in the patch, e.g. in pyexpat.c

 
 Right.  On the other hand, this is very similar to xmlparser_getattro
 in _elementtree.c and I think should be handled the same way.

Not sure what you mean here. If you ignore errors and don't clear
the exception, it will pop up at some later point in processing
and that's generally very confusing.

 * Please also remove hacks like these:

 +#define CMP PyUnicode_CompareWithASCIIString
 +if (CMP(nameobj, entity) == 0)
 
 What do you consider a hack?  The use of
 PyUnicode_CompareWithASCIIString() or the shortening macro?

The shortening macro.

--

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



[issue6697] Check that _PyUnicode_AsString() result is not NULL

2010-12-07 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

On Tue, Dec 7, 2010 at 1:11 PM, Marc-Andre Lemburg
rep...@bugs.python.org wrote:
  I am not sure what
 you mean by a parser API.

 PyArg_Parse() et al. See the discussion earlier on this ticket.


I've just realized that.  It is the u# code.  Yes, I'll see if I can
use it instead of U, but I think in the affected code the PyUnicode
object is needed as well.

 ..  this is very similar to xmlparser_getattro
 in _elementtree.c and I think should be handled the same way.

 Not sure what you mean here. If you ignore errors and don't clear
 the exception, it will pop up at some later point in processing
 and that's generally very confusing.


I mean not converting to char* at all and use
PyUnicode_CompareWithASCIIString() instead of strcmp().  I wish that
function had a shorter name, though, but it is not a big deal to spell
it out.  BTW, I don't think there is a way to use wchar_t* literals in
Python code, right?  As in Py_UNICODE_strcmp(name, Lversion).

--

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



[issue9129] DoS smtpd module vulnerability

2010-12-07 Thread Giampaolo Rodola'

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

Fixed for Python 2.6 in r87123.
Closing out as fixed.

--
resolution:  - fixed
status: open - closed

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



[issue6697] Check that _PyUnicode_AsString() result is not NULL

2010-12-07 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

Alexander Belopolsky wrote:
 
 Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
 
 On Tue, Dec 7, 2010 at 1:11 PM, Marc-Andre Lemburg
 rep...@bugs.python.org wrote:
  I am not sure what
 you mean by a parser API.

 PyArg_Parse() et al. See the discussion earlier on this ticket.

 
 I've just realized that.  It is the u# code.  Yes, I'll see if I can
 use it instead of U, but I think in the affected code the PyUnicode
 object is needed as well.
 
 ..  this is very similar to xmlparser_getattro
 in _elementtree.c and I think should be handled the same way.

 Not sure what you mean here. If you ignore errors and don't clear
 the exception, it will pop up at some later point in processing
 and that's generally very confusing.

 
 I mean not converting to char* at all and use
 PyUnicode_CompareWithASCIIString() instead of strcmp().  I wish that
 function had a shorter name, though, but it is not a big deal to spell
 it out. 

Agreed; not my invention ;-) I would have used
PyUnicode_CompareToUTF8() or something along those lines.

 BTW, I don't think there is a way to use wchar_t* literals in
 Python code, right?  As in Py_UNICODE_strcmp(name, Lversion).

No, since wchar_t may be something completely different than
Py_UNICODE.

No sure about today's situation, but at least a couple of years
ago wchar_t was not defined on all supported platforms, e.g.
Crays didn't have it.

--

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



[issue1528154] New sequences for Unicode groups and block ranges needed

2010-12-07 Thread Martin v . Löwis

Changes by Martin v. Löwis mar...@v.loewis.de:


--
Removed message: http://bugs.python.org/msg54865

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



[issue10615] Trivial mingw compile fixes

2010-12-07 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

 - Embedding Python by just compiling/linking all the .c files in
 seems to be a major feature to me; so fixing compilation is useful
 for its own

If that's the objective of the patch, I'm -1 on it.

 - The win32 build system has never used configure;make, but a
 Visual Studio project file; so why require it for a MinGW build?!

Well, if MingW could use the VS project files, that would be fine
with me as well... We need *some* build procedure. Just being
able to compile the source files is not maintainable.

 It would be a nice to have. But there is one thing: The patch in
 its current form is trivial and next to impossible to break anything,
 yet I'm sure it's useful for a number of people. It's a result of
 work done within the company I'm working for. Submitting the patch
 does not have an immediate benefit for my company, it only will save
 me a (short!) amount of time because I will not to have to re-apply
 the patch for every new Python release. This time saving is the only
 justification for spending some working time to try to get it into
 the official tree.

Understood. Perhaps somebody else is interested in picking up the
patch.

BTW, you do have your employer's permission to contribute this work,
right?

--

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



[issue1528154] New sequences for Unicode groups and block ranges needed

2010-12-07 Thread admin

admin roundup-ad...@psf.upfronthosting.co.za merkte an:


note that posix uses a special set syntax, [:name:], for this purpose:

[:alnum:]   [:cntrl:]   [:lower:]   [:space:]
[:alpha:]   [:digit:]   [:print:]   [:upper:]
[:blank:]   [:graph:]   [:punct:]   [:xdigit:]

adding a new character escape will probably break more existing expressions, 
but no matter what syntax we chose, this is (micro-)PEP territory.

Removed message: http://bugs.python.org/msg54862

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



[issue1528154] New sequences for Unicode groups and block ranges needed

2010-12-07 Thread admin

admin roundup-ad...@psf.upfronthosting.co.za merkte an:

Logged In: YES 
user_id=38388

Could you make your request a little more specific ?

We already have catregories in the re module, so adding a
few more would be possible (patches are welcome !). However,
we do need to know why you need them and whether there are
other RE implementations that already have such special
matching characters, e.g. the Perl RE implementation.


--

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



[issue10626] Bad interaction between test_logging and test_concurrent_futures

2010-12-07 Thread Éric Araujo

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


--
nosy: +eric.araujo

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



[issue8754] ImportError: quote bad module name in message

2010-12-07 Thread Éric Araujo

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

I fixed my patch, thanks to a recent commit that showed me an example of 
PyErr_Format :)  All tests now pass.

--
keywords: +needs review
stage: needs patch - patch review
Added file: http://bugs.python.org/file19971/import-repr.diff

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



[issue8754] ImportError: quote bad module name in message

2010-12-07 Thread Éric Araujo

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


Removed file: http://bugs.python.org/file19726/import-repr.diff

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



[issue10647] scrollbar crash in non-US locale format settings

2010-12-07 Thread Herm Fischer

New submission from Herm Fischer fisc...@markv.com:

My app has a tkinter messages listbox with a scrollbar which works fine in US 
setting, but not when locale is a European setting (with comma for decimal 
point).  It's a highly interactive app with a lot of number formattings in the 
local locale, and mostly used in Europe and Asia.

This instruction: self.logListBox.insert(END, message)

causes this crash in non-US locale when scrolling down:

Class: class Scrollbar(Widget):

def set(self, *args):
Set the fractional values of the slider position (upper and
lower ends as value between 0 and 1).
self.tk.call((self._w, 'set') + args)   = this line causes 
exception in European settings

the arg is in European decimal point format, when run on European settings, the 
error trace is:

  File C:\Python31\lib\tkinter\__init__.py, line 1399, in __call__
return self.func(*args)
  File C:\Python31\lib\tkinter\__init__.py, line 2797, in set
self.tk.call((self._w, 'set') + args)
_tkinter.TclError: expected floating-point number but got 0,145833

using python 3.1.3 (r313:86834)

--
components: Tkinter
messages: 123580
nosy: hfischer
priority: normal
severity: normal
status: open
title: scrollbar crash in non-US locale format settings
type: crash
versions: Python 3.1

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



[issue10647] scrollbar crash in non-US locale format settings

2010-12-07 Thread Brian Curtin

Changes by Brian Curtin cur...@acm.org:


--
type: crash - behavior

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



[issue10647] scrollbar crash in non-US locale format settings

2010-12-07 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

I'm not sure what bug you are reporting here.  Are you saying that values using 
a , are automatically getting generated by tkinter and then rejected when fed 
back in?  If so, I suspect this is a tk problem, not tkinter problem, but 
someone would have to produce an equivalent tk/tcl program to prove it one way 
or another.  Can you produce a minimal test program that demonstrates the 
problem?  What version of tk/tcl are you using?

--
nosy: +r.david.murray

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



[issue6697] Check that _PyUnicode_AsString() result is not NULL

2010-12-07 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

issue6697b.diff addresses Marc's comments.  Thanks for the review.

--
stage: patch review - commit review
Added file: http://bugs.python.org/file19972/issue6697b.diff

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



[issue8754] ImportError: quote bad module name in message

2010-12-07 Thread Terry J. Reedy

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

The patch looks same to me as far as I can judge. I would have used .format 
instead of %, but you wrote it ;-).

Seeing how many of our tests had to be patched convinced me that we should 
treat this like a feature request and only apply to 3.2.

--

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



[issue6632] Include more fullwidth chars in the decimal codec

2010-12-07 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

I wish I discovered this issue when I was working on #10557!  Chances are I 
wouldn't have started a long python-dev thread rehashing the same issues as I 
see discussed here.

In any case, in #10557, I replaced core uses of PyUnicode_EncodeDecimal() with  
PyUnicode_TransformDecimalToASCII() which transforms unicode to unicode.  There 
should not be any change in what digits builtin number types accept, but the 
C-API codec is defined to pass through anything that is not Nd while 
replacing Nd characters with the corresponding 0-9 digit.

String to string codecs including hex have been readded in r86934. See issue 
7475.

--
nosy: +belopolsky
versions: +Python 3.3 -Python 3.2

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



[issue10647] scrollbar crash in non-US locale format settings

2010-12-07 Thread Herm Fischer

Herm Fischer fisc...@markv.com added the comment:

The attached test case demonstrates this issue, run on pthyon 3.1.3 x64 and 
included tkinter.

When running on US Locale, runs fine.  Numbers have the period decimal point, 
no exceptions raised.

Then select control panel, Language or Region, Change keyboards and input 
methods, Formats tab, and I selected Dutch(Netherlands), press ok.  Rerun.  
(I'm running under Eclipse, so exceptions do not terminate the program).  Note 
these exceptions as listbox is filled and autoscrolls, and as well, if you 
manually scroll, same exceptions get raised:

  File C:\Python31\lib\tkinter\__init__.py, line 1399, in __call__
return self.func(*args)
  File C:\Python31\lib\tkinter\__init__.py, line 2797, in set
self.tk.call((self._w, 'set') + args)
_tkinter.TclError: expected floating-point number but got 0,02

--
Added file: http://bugs.python.org/file19973/ListboxScrollbarLocaleIssue.py

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



[issue10647] scrollbar crash in non-US locale format settings

2010-12-07 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

On gentoo linux with tcl/tk 8.5.8, if I use the following command line:

LC_NUMERIC=fr_FR ../release31-maint/python ListboxScrollbarLocaleIssue.py

(which runs 3.1.3+) I can move the slider without any problem.  I confirmed 
that locale.format_string(%f, 0.30) produces 0,30 after doing a setlocale 
at the python interactive prompt.  (I used fr_FR because I happen to have that 
locale installed, and I don't have Dutch installed).

So, so far I can't reproduce your problem.  I don't use eclipse, so eclipse 
related reproduction instructions won't work for me.

Note that when you say exceptions don't terminate the program I am assuming 
you mean it doesn't terminate eclipse.  You'd need to be starting python itself 
fresh to produce a valid test run.

What version of tk/tcl is your python compiled against?

--

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



[issue10647] scrollbar crash in non-US locale format settings

2010-12-07 Thread Herm Fischer

Herm Fischer fisc...@markv.com added the comment:

I'm using the 3.1.3 x64 of python.org

The dll's that came with it:

tck85.dll, version 8.5.2.2, created 8/10/2010
tk85.dll, version 8.5.2.2, same date

Is there a different way to get the version that is more helpful?

Is there an easy way to try the tcl/tk you are using (and distribute it to my 
users)?

--

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



[issue10648] Extend peepholer to reverse loads or stores instead of build/unpack

2010-12-07 Thread Demur Rumed

New submission from Demur Rumed junkm...@hotmail.com:

This modifies the peepholer's BUILD/UNPACK_SEQUENCE for the case when all 
stores are simple, or all loads are simple

It first scans to see if the pushing is done with simple LOADs. If so, it 
reverses the loads and removes the build unpack. If not, it scans ahead to see 
if it is followed by simple STOREs. If so, it reverses the stores and removes 
the build unpack

--
components: Interpreter Core
files: peep.diff
keywords: patch
messages: 123588
nosy: serprex
priority: normal
severity: normal
status: open
title: Extend peepholer to reverse loads or stores instead of build/unpack
type: performance
versions: Python 3.2
Added file: http://bugs.python.org/file19974/peep.diff

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



[issue10649] Attempting to override special methods of a function object does not cause an error

2010-12-07 Thread Chinmay Kanchi

New submission from Chinmay Kanchi cgkan...@gmail.com:

Attempting to override a special method of an object of a builtin (like list) 
raises an AttributeError. This is obviously by design. However, doing the same 
to a user-defined function object seemingly replaces the function, but does not 
have the expected effect. In the interests of consistency, attempting to change 
a special method of a function object should raise an AttributeError stating 
that the property/method is read-only.

 a_list = list()
 a_list.__repr__ = lambda: '[]'
Traceback (most recent call last):
  File stdin, line 1, in module
AttributeError: 'list' object attribute '__repr__' is read-only

 def f(): pass
 f.__repr__ = lambda: 'f'
 f.__repr__
function lambda at 0x6482b0
 repr(f) #would expect it to return 'f' since no error was raised
'function f at 0x6481f0'
 f.__repr__() #so the change is half-way made, inconsistent and possibly 
 problematic
'f'


--
components: Interpreter Core
messages: 123589
nosy: Chinmay.Kanchi
priority: normal
severity: normal
status: open
title: Attempting to override special methods of a function object does not 
cause an error
type: behavior
versions: Python 2.6

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



[issue10648] Extend peepholer to reverse loads or stores instead of build/unpack

2010-12-07 Thread Raymond Hettinger

Changes by Raymond Hettinger rhettin...@users.sourceforge.net:


--
assignee:  - rhettinger
nosy: +rhettinger
priority: normal - low
versions: +Python 3.3 -Python 3.2

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




[issue10647] scrollbar crash in non-US locale format settings

2010-12-07 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Well, it sounds like you are on Windows, which is a platform I'm not all that 
familiar with.  I think we bundle TK for the windows installer, but I'm not 
100% sure.  I think to use a different version you have to recompile Python, 
which on Windows is a non-trivial undertaking (but entirely possible).  I'm 
adding a couple of windows people to nosy, perhaps they will have some thoughts.

--
nosy: +brian.curtin, tim.golden

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



[issue10649] Attempting to override special methods of a function object does not cause an error

2010-12-07 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

As you observe, the attribute is not read only, it simply isn't referred to 
when special method lookup is done.  This is specified as part of the language 
design for new style classes, but has only been made consistently true in 
recent versions.

On on the other hand, the special methods are not special in regard to their 
read-only nature on builtin types:

 l = list()
 l.append = '1'
Traceback (most recent call last):
  File stdin, line 1, in module
AttributeError: 'list' object attribute 'append' is read-only

Thus, this is not a bug, it's just the way the language works.

--
nosy: +r.david.murray
resolution:  - invalid
stage:  - committed/rejected
status: open - closed

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



[issue10648] Extend peepholer to reverse loads or stores instead of build/unpack

2010-12-07 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

Thanks for the patch.  I had looked at this long ago when I first added the 
ROT2 optimization and the ROT3/ROT2 optimization.  It wasn't included because 
it wasn't worth the added complexity in the peepholer logic and because there 
were concerns about executing internally in a different order than specified by 
the code.

Since LOAD_NAME and LOAD_GLOBAL are subject to user control, changing their 
order of evaluation causes a visible change in semantics.  For example, the 
following result is different than before the patch.

 class Dict(dict):
... def __getitem__(self, key):
...  print(key)
...  return dict.__getitem__(self, key)
...
 ns = Dict()
 exec('c=1; d=2; a,b=c,d', globals(), ns)
d
c

For the most part, I'm not too excited about the patch because
* it is limited to very simple cases that already have some optimization
* it needs to be limited even further to be semantically neutral
* it adds complexity to a part of the peepholer that is already a bit too 
complicated (the more peephole assumptions we make, the harder it is to 
maintain, especially when opcodes are added, deleted, or changed).
* changing order of execution starts to venture into territory that we've 
stayed away from (on purpose).

--

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