[issue7680] pythonw crash while attempting to start() a thread object

2010-01-11 Thread Ezio Melotti

Ezio Melotti  added the comment:

On 2.7a2 on Windows 7 it seems to work, I opened the script with IDLE and did 
F5, this is the output I got:

Python 2.7a2 (r27a2:77402, Jan 10 2010, 10:04:50) [MSC v.1500 32 bit (Intel)] 
on win32
Type "copyright", "credits" or "license()" for more information.
>>>  RESTART 
>>> 
hello, dude!
>>>

--
nosy: +ezio.melotti
priority:  -> normal

___
Python tracker 

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



[issue7680] pythonw crash while attempting to start() a thread object

2010-01-11 Thread dontbugme

New submission from dontbugme :

PythonW.exe crash, tested under Windows 7 x86 / x64, Python v2.6.4.
The crash can be reproduced by opening and running the attached code in IDLE.
TY!

Error Message:
Microsoft Visual C++ Runtime Library
Runtime Error!
Program: C:\Python26\pythonw.exe
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Code:
#!/usr/bin/env python
import threading

class MyThread (threading.Thread):
def __init__(self):
threading.Thread.__init__(self)

def run(self):
print 'hello, dude!'

t = MyThread()
t.start()

--
components: IDLE
messages: 97622
nosy: dontbugme
severity: normal
status: open
title: pythonw crash while attempting to start() a thread object
type: crash
versions: Python 2.6

___
Python tracker 

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



[issue5827] os.path.normpath doesn't preserve unicode

2010-01-11 Thread Ezio Melotti

Ezio Melotti  added the comment:

Fixed in r77442 (trunk) and r77443 (release26-maint), thanks!

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

___
Python tracker 

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



[issue2796] Build issues in DragonFly BSD

2010-01-11 Thread Brian Curtin

Changes by Brian Curtin :


Added file: http://bugs.python.org/file15832/dragonfly-python-trunk.patch

___
Python tracker 

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



[issue7679] Warning building 2.7 on OS X 10.6 libintl.h "Present But Cannot Be Compiled"

2010-01-11 Thread Steve Steiner

New submission from Steve Steiner :

I'm configuring with:

./configure --enable-framework 
--enable-universalsdk=/Developer/SDKs/MacOSX10.6.sdk/ 
--with-universal-archs=intel

And get the following warning.  It told me to report it, so I am.

checking libintl.h presence... yes
configure: WARNING: libintl.h: present but cannot be compiled
configure: WARNING: libintl.h: check for missing prerequisite headers?
configure: WARNING: libintl.h: see the Autoconf documentation
configure: WARNING: libintl.h: section "Present But Cannot Be Compiled"
configure: WARNING: libintl.h: proceeding with the preprocessor's result
configure: WARNING: libintl.h: in the future, the compiler will take precedence
configure: WARNING: ## -- ##
configure: WARNING: ## Report this to http://bugs.python.org/ ##
configure: WARNING: ## -- ##

--
assignee: ronaldoussoren
components: Macintosh
messages: 97620
nosy: ronaldoussoren, ssteinerX
severity: normal
status: open
title: Warning building 2.7 on OS X 10.6 libintl.h "Present But Cannot Be 
Compiled"
type: compile error
versions: Python 2.7

___
Python tracker 

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



[issue2797] Trunk build issues in DragonFly BSD

2010-01-11 Thread Brian Curtin

Brian Curtin  added the comment:

See #2796

--
keywords: +needs review
nosy: +brian.curtin
priority:  -> normal
resolution:  -> duplicate
stage:  -> patch review
status: open -> closed
superseder:  -> Build issues in DragonFly BSD
versions: +Python 2.7, Python 3.1, Python 3.2

___
Python tracker 

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



[issue2679] email.feedparser regex duplicate

2010-01-11 Thread Brian Curtin

Changes by Brian Curtin :


--
priority:  -> low
stage:  -> needs patch
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.0

___
Python tracker 

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



[issue7454] Solaris SPARC: _multiprocessing.so: symbol sem_timedwait: referenced symbol not found

2010-01-11 Thread Sridhar Ratnakumar

Sridhar Ratnakumar  added the comment:

Found the root cause: it was introduced by a patch (to fix the same issue in 
the past) committed by us.

--
status: open -> closed

___
Python tracker 

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



[issue1571841] email module does not complay with RFC 2046: CRLF issue

2010-01-11 Thread R. David Murray

Changes by R. David Murray :


--
resolution:  -> duplicate
stage:  -> committed/rejected
superseder:  -> email.Generators does not separates headers with "\r\n"

___
Python tracker 

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



[issue3876] multiprocessing does not compile on systems which do not define sem_timedwait

2010-01-11 Thread Sridhar Ratnakumar

Changes by Sridhar Ratnakumar :


--
nosy: +srid

___
Python tracker 

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



[issue7382] bytes.__getnewargs__ is broken; copy.copy() therefore doesn't work on bytes, and bytes subclasses can't be pickled by default

2010-01-11 Thread Alexandre Vassalotti

Changes by Alexandre Vassalotti :


--
resolution:  -> accepted
stage: test needed -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue7382] bytes.__getnewargs__ is broken; copy.copy() therefore doesn't work on bytes, and bytes subclasses can't be pickled by default

2010-01-11 Thread Alexandre Vassalotti

Alexandre Vassalotti  added the comment:

Committed in r77437. Thanks!

--

___
Python tracker 

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



[issue7658] OS X pythonw.c compile error with 10.4 or earlier deployment target: no spawn.h

2010-01-11 Thread Sridhar Ratnakumar

Sridhar Ratnakumar  added the comment:

Our nightly ActivePython builds broke because of this issue. Note that we still 
build on 10.4 w/ 10.4u SDK.

I should be able to help verify the new fix - once it is uploaded - in our 
build machine.

--
nosy: +srid

___
Python tracker 

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



[issue7453] HPUX 11.00: socketmodule.c -- error 1588: "AI_PASSIVE" undefined.

2010-01-11 Thread Sridhar Ratnakumar

Sridhar Ratnakumar  added the comment:

BTW, this bug no longer occurs with Python trunk (or 2.7a2). 

I took at look at the vcs history and couldn't find any changes related to this.

--

___
Python tracker 

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



[issue6710] hotshot stats load causes TypeError when multiple files are loaded

2010-01-11 Thread Alexandre Vassalotti

Changes by Alexandre Vassalotti :


--
nosy: +alexandre.vassalotti

___
Python tracker 

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



[issue5372] Distutils inappropriately reuses .o files between extension modules

2010-01-11 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

done in r77424, r77425, r77427, r77430

Thanks Collin !

--
status: open -> closed

___
Python tracker 

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



[issue1967] Backport dictviews to 2.7

2010-01-11 Thread Alexandre Vassalotti

Alexandre Vassalotti  added the comment:

Committed in r77428. Thanks for your comments!

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

___
Python tracker 

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



[issue2919] Merge profile/cProfile in 3.0

2010-01-11 Thread Alexandre Vassalotti

Alexandre Vassalotti  added the comment:

Any comment about the code I posted?

--

___
Python tracker 

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



[issue2333] Backport set and dict comprehensions

2010-01-11 Thread Alexandre Vassalotti

Alexandre Vassalotti  added the comment:

Committed in r77422.

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

___
Python tracker 

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



[issue4961] Inconsistent/wrong result of askyesno function in tkMessageBox

2010-01-11 Thread Kirk Vander Meulen

Kirk Vander Meulen  added the comment:

I've also confirmed this one (by chance).  I'm on ubuntu linux, and I am seeing 
the problem in both 2.6 and 3.1, both using Tk 8.5.  I don't see the problem on 
my windows install (Vista, python 2.5, not sure of the Tk version right now).  
But I did find a hack around this by explicitly creating and destroying a top 
level window following the askdirectory() dialog.  Try this snippet on 
linux/unix, the call to askyesno() returns False always.

import tkFileDialog,tkMessageBox,Tkinter
theDirectory=tkFileDialog.askdirectory()
addDirectory=tkMessageBox.askyesno('a dialog','Add a directory?')
print addDirectory


But the following works fine:

import tkFileDialog,tkMessageBox,Tkinter
toplevel=Tkinter.Tk()
theDirectory=tkFileDialog.askdirectory()
toplevel.destroy()
addDirectory=tkMessageBox.askyesno('a dialog','Add a directory?')
print addDirectory

--
nosy: +kvander11

___
Python tracker 

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



[issue7672] _ssl module causes segfault

2010-01-11 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

Bill, what do you think?

--
assignee:  -> janssen

___
Python tracker 

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



[issue1459867] Message.as_string should use "mangle_from_=unixfrom"?

2010-01-11 Thread R. David Murray

R. David Murray  added the comment:

If I understand correctly, this is related to issue 1440472.  There the 
complaint is made that what you get out is not what you put in, since unixfrom 
defaults to True.  But that's only true for __str__.  As kxroberto points out, 
in as_string it defaults to False.  Instead, he suggests, it could default to 
the value of unixfrom set on the Message object, which would make it at least a 
little bit more likely to preserve format of the message that was fed into it.

--
nosy: +r.david.murray
stage:  -> test needed
type:  -> behavior
versions: +Python 3.2

___
Python tracker 

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



[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2010-01-11 Thread Florent Xicluna

Florent Xicluna  added the comment:

It would be nice to upgrade ElementTree for 2.7 and 3.2, at least.

--
versions:  -Python 2.6, Python 3.1

___
Python tracker 

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



[issue7678] subprocess.Popen pipeline example code in the documentation is lacking

2010-01-11 Thread Steven K. Wong

New submission from Steven K. Wong :

The example code at 
http://www.python.org/doc/2.6.2/library/subprocess.html#replacing-shell-pipeline
 should be updated to add the close() call noted below:

output=`dmesg | grep hda`
==>
p1 = Popen(["dmesg"], stdout=PIPE)
p2 = Popen(["grep", "hda"], stdin=p1.stdout, stdout=PIPE)
p1.stdout.close()  # <- this line is not in the doc, but we should add it
output = p2.communicate()[0]

The parent process does not use p1.stdout after passing it to p2, so it should 
close p1.stdout after that. If it is not closed, there is a possibility for 
p1's process to never terminate if p2's process fails. The following code 
demonstrate this situation:

from subprocess import Popen, PIPE
import time
# p1 is a program that writes lots of data to the pipe
cmd = ['cat', 'a_large_file']
p1 = Popen(cmd, stdout=PIPE)
# p2 is a program that fails without reading much data from the pipe
cmd = ['python', '-c', 'import time; time.sleep(5); asdf']
p2 = Popen(cmd, stdin=p1.stdout, stdout=PIPE)
output = p2.communicate()[0]
while p1.poll() is None:  # it loops forever
print 'sleep a bit'
time.sleep(1)

--
assignee: georg.brandl
components: Documentation
messages: 97606
nosy: georg.brandl, steven.k.wong
severity: normal
status: open
title: subprocess.Popen pipeline example code in the documentation is lacking
versions: Python 2.6

___
Python tracker 

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



[issue1023290] Conversion of longs to bytes and vice-versa.

2010-01-11 Thread Brian Curtin

Changes by Brian Curtin :


--
nosy: +brian.curtin

___
Python tracker 

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



[issue7448] when piping output between subprocesses some fd is left open blocking forever

2010-01-11 Thread Florent Xicluna

Changes by Florent Xicluna :


--
resolution:  -> duplicate
status: open -> closed
superseder:  -> Popen.subprocess change close_fds default to True

___
Python tracker 

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



[issue7675] help() doesn't accept unicode literals in built in docstrings

2010-01-11 Thread Florent Xicluna

Changes by Florent Xicluna :


Added file: http://bugs.python.org/file15831/issue7675_pydoc_v2.diff

___
Python tracker 

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



[issue7675] help() doesn't accept unicode literals in built in docstrings

2010-01-11 Thread Florent Xicluna

Changes by Florent Xicluna :


Removed file: http://bugs.python.org/file15830/issue7675_pydoc_v2.diff

___
Python tracker 

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



[issue7448] when piping output between subprocesses some fd is left open blocking forever

2010-01-11 Thread Steven K. Wong

Steven K. Wong  added the comment:

Looks like a duplicate of http://bugs.python.org/issue7213 .

--
nosy: +steven.k.wong

___
Python tracker 

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



[issue7675] help() doesn't accept unicode literals in built in docstrings

2010-01-11 Thread Florent Xicluna

Florent Xicluna  added the comment:

New patch: backward compatibility preserved.

--
Added file: http://bugs.python.org/file15830/issue7675_pydoc_v2.diff

___
Python tracker 

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



[issue5898] Hang in Popen.wait() when another process has been created

2010-01-11 Thread Steven K. Wong

Steven K. Wong  added the comment:

See this related issue: http://bugs.python.org/issue7213

--

___
Python tracker 

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



[issue7675] help() doesn't accept unicode literals in built in docstrings

2010-01-11 Thread Florent Xicluna

Changes by Florent Xicluna :


Removed file: http://bugs.python.org/file15828/issue7675_pydoc.diff

___
Python tracker 

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



[issue5898] Hang in Popen.wait() when another process has been created

2010-01-11 Thread Steven K. Wong

Steven K. Wong  added the comment:

See this related issue: http://bugs.python.org/issue7448

--

___
Python tracker 

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



[issue7672] _ssl module causes segfault

2010-01-11 Thread Sean Soria

Sean Soria  added the comment:

For an app that makes use of SSL itself it better set the callbacks before 
spawning threads or it's going to be in trouble anyway. For an app not making 
use of SSL my patch doesn't make the situation any worse. That sounds like an 
overall gain to me.

--

___
Python tracker 

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



[issue5898] Hang in Popen.wait() when another process has been created

2010-01-11 Thread Steven K. Wong

Steven K. Wong  added the comment:

I think the hang is not a bug. Take a look at the Popen documentation on 
close_fds. If you specify close_fds=True when creating proc2, the hang will not 
happen when you remove the "proc2.stdin.close()" line.

--
nosy: +steven.k.wong

___
Python tracker 

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



[issue1454285] test_parsedate_acceptable_to_time_functions+DST == :-(

2010-01-11 Thread R. David Murray

R. David Murray  added the comment:

I can't reproduce this.  If you can, please reopen.

--
components: +Tests -None
nosy: +r.david.murray
resolution:  -> works for me
stage:  -> committed/rejected
status: open -> closed
type:  -> behavior

___
Python tracker 

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



[issue7672] _ssl module causes segfault

2010-01-11 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

The patch is not thread-safe. If two threads where to do the same thing 
simultaneously, they might (simultaneously) both determine that the lock is not 
installed, and then one would overwrite the lock of the other, leading exactly 
to the situation that the patch is meant to prevent.

--

___
Python tracker 

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



[issue7672] _ssl module causes segfault

2010-01-11 Thread Sean Soria

Sean Soria  added the comment:

Yea, I've given up on getting this fixed based on the crash. Now I'm going for 
it not being thread safe.

--

___
Python tracker 

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



[issue7672] _ssl module causes segfault

2010-01-11 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

There is no way to unload a module, at least not until Python 3. Losing all 
references to the module won't help.

--

___
Python tracker 

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



[issue1422094] email.MIME*.as_string removes duplicate spaces

2010-01-11 Thread R. David Murray

R. David Murray  added the comment:

Duplicate of issue 5612, which has a small amount of additional info so I'm 
closing this one.

--
nosy: +r.david.murray
resolution:  -> duplicate
status: open -> closed
superseder:  -> whitespace folding in the email package could be better ;-)

___
Python tracker 

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



[issue7672] _ssl module causes segfault

2010-01-11 Thread Sean Soria

Sean Soria  added the comment:

Okay, what if I attack this problem from a "it's not thread-safe" point of 
view? If the callbacks are already loaded, then who knows what state the locks 
are in. If you replace the locking_callback while a thread already has the 
lock, and another thread comes in and tries to lock, it will succeed 
immediately, and two threads will be in the critical section.

Attaching a patch for how I think this should work.

>From Bill via email:
Hmmm, well, is there a standard way to unload Python?  I could put a
__del__ method on the module which would remove the callbacks, I
suppose.  I just never heard of "unloading" a module before.

--
keywords: +patch
Added file: http://bugs.python.org/file15829/ssl.patch

___
Python tracker 

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



[issue5525] Problem with email.MIME* library, using wrong new line

2010-01-11 Thread R. David Murray

R. David Murray  added the comment:

Effectively this is a duplicate of issue 1349106, since you are right that it 
affects more than just boundary production. I believe we are going to address 
this in a new version of the email module.

--
nosy: +r.david.murray
priority:  -> normal
resolution:  -> duplicate
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue1349106] email.Generators does not separates headers with "\r\n"

2010-01-11 Thread R. David Murray

R. David Murray  added the comment:

Consider also issue 975330.

--
nosy: +r.david.murray
versions: +Python 3.2 -Python 3.1

___
Python tracker 

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



[issue7675] help() doesn't accept unicode literals in built in docstrings

2010-01-11 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

The patch should also work with 8-bit docstrings, and the tests should reflect 
both uses.

--
nosy: +pitrou

___
Python tracker 

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



[issue7675] help() doesn't accept unicode literals in built in docstrings

2010-01-11 Thread Florent Xicluna

Florent Xicluna  added the comment:

The unicode text is sent to the subprocess without encoding.
It is encoded implicitly to ASCII (sys.getdefaultencoding()).

This patch performs explicit encoding.
Tests added.

--
keywords: +patch
stage: needs patch -> patch review
versions: +Python 3.2
Added file: http://bugs.python.org/file15828/issue7675_pydoc.diff

___
Python tracker 

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



[issue7677] distutils, better error message for setup.py upload -sign without identity.

2010-01-11 Thread Brian Curtin

Changes by Brian Curtin :


--
priority:  -> normal
stage:  -> needs patch
versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2

___
Python tracker 

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



[issue7677] distutils, better error message for setup.py upload -sign without identity.

2010-01-11 Thread Rene Dudfield

New submission from Rene Dudfield :

hi,

When using setup.py upload --sign without --identity, gpg can give weird 
messages.

Rather than this error message:
"""running upload
gpg --detach-sign --local-user gn -a dist/pywebsite-0.1.18pre.tar.gz
gpg: skipped "gn": secret key not available
gpg: signing failed: secret key not available
error: command 'gpg' failed with exit status 2
make: *** [upload] Error 1"""

It might be nicer to also mention using --identity=, as well as a link to the 
documentation for --sign (url and also the help from "--help upload").

cheers,

--
assignee: tarek
components: Distutils
messages: 97589
nosy: illume, tarek
severity: normal
status: open
title: distutils, better error message for setup.py upload -sign without 
identity.
type: behavior

___
Python tracker 

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



[issue1023290] Conversion of longs to bytes and vice-versa.

2010-01-11 Thread Mark Dickinson

Mark Dickinson  added the comment:

I'd still like to see this backported to 2.7;  if no-one else is interested in 
doing the backport, I'll try to find time before the betas.
(Alexandre, if you want to do the backport, please do steal the issue from me.)

--
assignee: alexandre.vassalotti -> mark.dickinson
status: closed -> open
versions: +Python 2.7

___
Python tracker 

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



[issue2449] Improved serialization error logging in xmlrpclib

2010-01-11 Thread R. David Murray

R. David Murray  added the comment:

I was curious, so I googled.  You may have already found this as well: it's a 
'fault code', and apparently there's no standard for such codes.  The choice of 
8002 may be modeled on what twisted.web does with exceptions.  Staying 
consistent with them is not a bad idea if you decide this is a similar enough 
fault case, but whatever is done it will need to be documented.

On the other hand, I also happened on this document, but I have no idea what 
its status is in the xmlrpc community:

http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php

--
nosy: +r.david.murray
versions: +Python 3.2

___
Python tracker 

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



[issue7675] help() doesn't accept unicode literals in built in docstrings

2010-01-11 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti

___
Python tracker 

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



[issue7676] IDLE shell shouldn't use TABs

2010-01-11 Thread Cherniavsky Beni

New submission from Cherniavsky Beni :

IDLE defaults to indenting with 4 spaces in editor windows, but hard TABs in 
the Python Shell window.  This is inconsistent with PEP 8; what's worse, it's 
makes copy-paste code between the shell and editor windows confusing and 
dangerous!

Recently I gave a 3-day Python course to 6 people.  I spent some time 
explaining the dangers of TABs with Python's indentation-sensitive syntax and 
telling them "just use 4 spaces and all will be OK".  A few hours later one of 
them asked me why IDLE is refusing to run his code.  Turns out he copy-pasted 
code he tried out in the shell, edited it and tried running it, which resulted 
in a mix of tabs and spaces (which triggered IDLE's tabnanny check) and a 
mixture of 4 and 8 indents (which is ugly).

I had to explain IDLE's confusing behavior, introduce them to Untabify, and 
apologize for the inconvenience.  All this TABs stuff (and Untabify) are things 
people should eventually learn - but they shouldn't bite them on their first 
day!  (This is what Ubuntu calls a "papercut".)

The rationale for the current behavior seems to be making indentation clear 
despite the prompt offsetting the first line by 4:

>>> for i in range(3):
print i

There are 3 alternative behaviors that would be better:

 (1) Use 8 spaces instead of a TAB.
 (2) Use 4 spaces.
 (3) Use 4 spaces, but add a GUI left margin of 4 to continuation lines.

(3) would be ideal, making copy-paste work cleanly while looking good.  I'm not 
sure if it can be implemented easily, but I'll look into it.

If it's hard, (2) would still be a big improvement IMHO.  I think correct 
behaviour is more important than looking good after ">>> " - but others may 
disagree on this.

If there is doubt, (1) is still strictly an improvement.  It can lead to mixed 
8/4 spaces - but at least there won't be invisible problems that the user 
doesn't understand.

[Configurability concerns: all I said above refers to the *default* behavior of 
IDLE, which should follow 4-spaces.  The user should be able to configure it to 
use another width, or TABs.  This option already exists - but it's ignored 
outright by the shell window.  Solutions (2) and (3) would make the shell 
window respect it.]

--
components: IDLE
messages: 97586
nosy: cben
severity: normal
status: open
title: IDLE shell shouldn't use TABs
type: behavior

___
Python tracker 

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



[issue7633] decimal.py: type conversion in context methods

2010-01-11 Thread Mark Dickinson

Changes by Mark Dickinson :


--
assignee:  -> mark.dickinson

___
Python tracker 

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



[issue7675] help() doesn't accept unicode literals in built in docstrings

2010-01-11 Thread Florent Xicluna

Florent Xicluna  added the comment:

Confirmed.

With Python 2:

>>> import pydoc
>>> pydoc.pipepager(u'tütdelüt\n', 'cat')
Traceback (most recent call last):
  File "", line 1, in 
  File "./Lib/pydoc.py", line 1357, in pipepager
pipe.write(text)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 1: 
ordinal not in range(128)



With Python 3:

>>> import pydoc
>>> pydoc.pipepager('tütdelüt\n', 'cat')
tütdelüt

--
nosy: +flox
priority:  -> normal
stage:  -> needs patch
versions: +Python 2.7

___
Python tracker 

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



[issue7675] help() doesn't accept unicode literals in built in docstrings

2010-01-11 Thread pablo stapff

New submission from pablo stapff :

We use umlaut in our docstrings and when we use the help() function to extract 
the documentation, the function reports an error:

UnicodeEncodeError: 'ascii' codec can't encode character

Our docstrings are specified as unicode literals and the source file contains 
the line:

# -*- coding: utf-8 -*-


just import the module and make:

 help(tudelut.tudelut)

--
components: Library (Lib)
files: tudelut.py
messages: 97584
nosy: psd
severity: normal
status: open
title: help() doesn't accept unicode literals in built in docstrings
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file15827/tudelut.py

___
Python tracker 

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



[issue2644] errors from msync ignored in mmap_object_dealloc

2010-01-11 Thread Ralf Schmitt

Ralf Schmitt  added the comment:

No, I don't know how to provoke such an error other than passing illegal 
parameters..(or munmap'ing the mmap'ed area).

--

___
Python tracker 

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



[issue7671] test_popen fails if path contains special char like ";"

2010-01-11 Thread Florent Xicluna

Florent Xicluna  added the comment:

With r77420, it fails when path contains backslash "\".

Using '"%s" -c "..."' it does not fail.

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

___
Python tracker 

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



[issue1943] improved allocation of PyUnicode objects

2010-01-11 Thread Adam Olsen

Adam Olsen  added the comment:

On Sun, Jan 10, 2010 at 14:59, Marc-Andre Lemburg
 wrote:
> BTW, I'm not aware of any changes to the PyUnicodeObject by some
> fastsearch implementation. Could you point me to this ?

/* We allocate one more byte to make sure the string is Ux terminated.
   The overallocation is also used by fastsearch, which assumes that it's
   safe to look at str[length] (without making any assumptions about what
   it contains). */

--

___
Python tracker 

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