[issue8464] tarfile creates tarballs with execute permissions set

2010-04-20 Thread Lars Gustäbel

Lars Gustäbel  added the comment:

0666 is the right mode and the patch is correct.

@Tarek: Why does shutil.make_archive() use mode "w|..." instead of "w:..."? 
IMHO that is not necessary, because it works on regular files only.

--

___
Python tracker 

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



[issue8190] Add a PyPI XML-RPC client module

2010-04-20 Thread Alexandre Conrad

Changes by Alexandre Conrad :


--
nosy: +aconrad

___
Python tracker 

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



[issue6547] shutil.copytree fails on dangling symlinks

2010-04-20 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

So, here's what I am planing to do after a little thought:

When a dangling symlink occurs and symlinks=false, copytree() will just emit a 
warning, unless the onerror option (new option) is set to a callable. In that 
case it will receive the src/dst values, and it will be up to the developer to 
decide what to do.

--

___
Python tracker 

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



[issue6547] shutil.copytree fails on dangling symlinks

2010-04-20 Thread Tarek Ziadé

Changes by Tarek Ziadé :


--

___
Python tracker 

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



[issue6547] shutil.copytree fails on dangling symlinks

2010-04-20 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

Please ignore my last message.

I've written a test for your error, and it turns out that the error is caught 
and just raised at the end of the process, meaning that everything else was 
copied before you get the exception.

So shutil.copytree didn't fail.

Now, the behavior is a little bit hard for this case, so I am going to add an 
option to ignore errors when a dangling symlink is found.

--

___
Python tracker 

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



[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-20 Thread Stefan Krah

Stefan Krah  added the comment:

Committed fix (with the freebsd6 skips intact) in r80238, r80239, r80240
and r80241.



David, is it intentional that py3k doesn't have the freebsd6 fixes?

--
assignee:  -> skrah
resolution:  -> accepted
status: open -> pending

___
Python tracker 

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



[issue8095] test_urllib2 crashes on OS X 10.3 attempting to retrieve network proxy configuration

2010-04-20 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

I've committed my proposed fix in r80243 (trunk)

--

___
Python tracker 

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



[issue6547] shutil.copytree fails on dangling symlinks

2010-04-20 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

Added in r80244. This new option willl be available in the next 3.2 release. 
Until 3.2 is released, what you can do is catch the errors
and re-raise the ones that are not due to dangling symlinks:

(not tested)

>>> from shutil import copytree, Error
>>> try:
... shutil.copytree('../test', '../test2')
... except Error, e:
... for src, dst, error in e.args[0]:
... if not os.path.islink(src):
... raise
... else:
... linkto = os.readlink(srcname)
... if os.path.exists(linkto):
... raise
... # dangling symlink found.. ignoring..
...

--
status: open -> closed
versions: +Python 3.2, Python 3.3 -Python 2.6

___
Python tracker 

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



[issue7969] shutil.copytree error handling non-standard and partially broken

2010-04-20 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

I agree with all your points. 

The copystat error can be fixed right away and applied for 2.6 to 3.x

For other points, I'll change the way the Error works but this will require an 
heavy deprecation process.

In the meantime I can document the behavior, and provide some examples in the 
documentation (eg how to catch and manage the errors that were raised)

--
assignee:  -> tarek
nosy: +tarek
priority:  -> normal
resolution:  -> accepted
versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3

___
Python tracker 

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



[issue4489] shutil.rmtree is vulnerable to a symlink attack

2010-04-20 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

Mart,

I took over the maintenance of shutil, if you are interested in contributing a 
bullet-proof version of rmtree, please drop a line at python-ideas, and let's 
see what we can do in a new function maybe.

I'll be happy to review and apply patches if we get a consensus

--
assignee:  -> tarek
nosy: +tarek
versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 -Python 2.3, Python 
2.4, Python 2.5, Python 3.0

___
Python tracker 

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



[issue8466] typo in tp_name of cStringIO

2010-04-20 Thread Anthon van der Neut

New submission from Anthon van der Neut :

if you execute the following code from 
  cStringIO import StringIO
  x = StringIO()
  x.get_value()
you will see that the AttributeError line has a typo
it displays 'cStringIO.StringO' instead of 'cStringIO.StringIO'
this error is in line 529 of the Modules/cStringIO.c code (of 2.7b1)

--
components: Library (Lib)
messages: 103687
nosy: anthon
severity: normal
status: open
title: typo in tp_name of cStringIO
type: behavior
versions: Python 2.6, Python 2.7

___
Python tracker 

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



[issue1355826] shutil.move() does not preserve ownership

2010-04-20 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

That's because there's no simple, portable way to copy all metadata.

If you need to copy all of them you will need to use OS-specific APIs

--
assignee:  -> tarek
nosy: +tarek
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue8460] Set a timeout in test_urllib2net

2010-04-20 Thread STINNER Victor

STINNER Victor  added the comment:

Don't you port the fix to py3k?

--

___
Python tracker 

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



[issue1145257] shutil.copystat() may fail...

2010-04-20 Thread Tarek Ziadé

Changes by Tarek Ziadé :


--
assignee:  -> tarek
nosy: +tarek
resolution:  -> accepted
versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 -Python 3.0

___
Python tracker 

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



[issue1666318] shutil.copytree doesn't preserve directory permissions

2010-04-20 Thread Tarek Ziadé

Changes by Tarek Ziadé :


--
assignee:  -> tarek
nosy: +tarek

___
Python tracker 

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



[issue8460] Set a timeout in test_urllib2net

2010-04-20 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

Yes, definitely it needs to be ported. I realized that, py3k was in a bad shape 
at moment.

File "Lib/test/test_urllib2net.py", line 151, in _test_urls
import logging
File "/home/senthil/python/py3k/Lib/logging/__init__.py", line 43, in 
import threading
File "/home/senthil/python/py3k/Lib/threading.py", line 34, in 
TIMEOUT_MAX = _thread.TIMEOUT_MAX
AttributeError: 'module' object has no attribute 'TIMEOUT_MAX'

This is without the patch in.
I was looking at what was wrong there, and once that is fix, merging this 
change to py3k would be fine.

--

___
Python tracker 

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



[issue8466] typo in tp_name of cStringIO

2010-04-20 Thread Eric Smith

Eric Smith  added the comment:

>From issue 8121:

That name is actually correct.  cStringIO features two different types, 
depending on whether you call cStringIO.StringIO() with or without an argument. 
 One is called "StringI", the other "StringO".

--
nosy: +eric.smith
resolution:  -> invalid
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



[issue8460] Set a timeout in test_urllib2net

2010-04-20 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

make distclean erased the problem. :) merged to py3k in r80256 and 
release31-maint in r80257. Had merged to release26-maint in r80237

--
resolution: accepted -> fixed
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



[issue8242] Support surrogates in import ; install Python in a non-ASCII directory

2010-04-20 Thread STINNER Victor

Changes by STINNER Victor :


--
dependencies: +utf8, backslashreplace and surrogates

___
Python tracker 

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



[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-20 Thread Mark Dickinson

Mark Dickinson  added the comment:

Stefan, you move too fast!  I was going to review that second patch, honest!

I'm not 100% sure (David can probably confirm), but I think your 
sys.stdout.write should be a sys.stderr.write.

--
status: pending -> open

___
Python tracker 

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



[issue8467] subprocess: surrogates of the error message (Python implementation on non-Windows)

2010-04-20 Thread STINNER Victor

New submission from STINNER Victor :

On a non-Windows OS where _posixsubprocess is missing (subprocess uses the pure 
Python implementation), if the child fails with a Python exception and the 
exception message contains a surrogate character, message.encode() fails 
silently (exception while processing exceptions are just ignored).

Surrogates should be passed to the parent process: surrogatepass can be used 
for that. Attached patch implements this idea with an unit test.

--

_posixsubprocess is not concerned because it writes an empty message for 
OSError (the parent process calls os.strerror() to get the message) or 
"Exception occurred in preexec_fn." (pure ASCII string) for RuntimeError.

On Windows, _subprocess.CreateProcess() calls PyErr_SetFromWindowsErr() on 
failure without the filename. So there is no surrogates here.

--
components: Library (Lib)
files: subprocess_errmsg.patch
keywords: patch
messages: 103694
nosy: haypo
severity: normal
status: open
title: subprocess: surrogates of the error message (Python implementation on 
non-Windows)
versions: Python 3.1, Python 3.2
Added file: http://bugs.python.org/file17005/subprocess_errmsg.patch

___
Python tracker 

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



[issue8467] subprocess: surrogates of the error message (Python implementation on non-Windows)

2010-04-20 Thread STINNER Victor

Changes by STINNER Victor :


--
components: +Unicode

___
Python tracker 

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



[issue8242] Support surrogates in import ; install Python in a non-ASCII directory

2010-04-20 Thread STINNER Victor

Changes by STINNER Victor :


--
dependencies: +subprocess: surrogates of the error message (Python 
implementation on non-Windows)

___
Python tracker 

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



[issue8465] Backreferences vs. escapes: a silent failure solved

2010-04-20 Thread Matthew Barnett

Matthew Barnett  added the comment:

Octal escapes are at most 3 octal digits, so the normal way to handle "\41" + 
"1" is "\0411".

Some languages support variable-length hex escapes of the form "\x{1B}", so we 
could add that and also "\o{41}" for octal.

BTW, in some languages "\e" is "\x1B".

--
nosy: +mrabarnett

___
Python tracker 

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



[issue8468] bz2: support surrogates in filename, and bytes/bytearray filename

2010-04-20 Thread STINNER Victor

New submission from STINNER Victor :

bz2 uses "s" format to parse the filename argument: it uses the default 
(unicode) encoding to encode the unicode filename to a byte string. It should 
use the default file system encoding instead.

It should also support surrogates in unicode filename and bytes/bytearray 
filenames.

Attached patch uses PyUnicode_FSConverter() to implement that.

--
components: Library (Lib), Unicode
files: bz2_surrogates.patch
keywords: patch
messages: 103696
nosy: haypo
severity: normal
status: open
title: bz2: support surrogates in filename, and bytes/bytearray filename
versions: Python 3.1, Python 3.2
Added file: http://bugs.python.org/file17006/bz2_surrogates.patch

___
Python tracker 

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



[issue8242] Support surrogates in import ; install Python in a non-ASCII directory

2010-04-20 Thread STINNER Victor

Changes by STINNER Victor :


--
dependencies: +bz2: support surrogates in filename, and bytes/bytearray filename

___
Python tracker 

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



[issue8242] Improve support of PEP 383 (surrogates) in Python3: meta-issue

2010-04-20 Thread STINNER Victor

STINNER Victor  added the comment:

> I haven't reviewed the patch in detail yet, but it seems to me that
> it fixes independent issues.

Right. First I only wanted to fix import machinery, but then I fixed a lot of 
"indenpendent" issues to test the patch on import. All fixes are related to 
surrogates. I'm splitting the big patch into small parts: see the dependency 
list of this issue.

I will open a new issue for the import machinery. But this patch requires extra 
changes which are now discussed in new issues.

> (...) why the heck does it > touch posixmodule.c?

I opened issue #8391 for this change: "os.execvpe() doesn't support surrogates 
in env".

--
title: Support surrogates in import ; install Python in a non-ASCII directory 
-> Improve support of PEP 383 (surrogates) in Python3: meta-issue

___
Python tracker 

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



[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-20 Thread Stefan Krah

Stefan Krah  added the comment:

Mark, sorry, let me know if I should revert anything.

I took the stdout over from some similar print statements that
once were in test_uuid (I agree that stderr would seem more
natural).

[http://svn.python.org/view/python/trunk/Lib/test/test_uuid.py?r1=50896&r2=50949]

--

___
Python tracker 

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



[issue8469] struct - please make sizes explicit

2010-04-20 Thread Mads Kiilerich

New submission from Mads Kiilerich :

The struct module is often used (at least by me) to implement protocols  and 
binary formats. That makes the exact sizes (number of bits/bytes) of the 
different types very important.

Please add the sizes to for example the table on 
http://docs.python.org/library/struct . I know that some of the sizes varies 
with the platform, and in these cases it is fine to define it in terms of the C 
types, but for Python programmers writing cross-platform code such variable 
types doesn't matter and are "never" used. (I assume that it is possible to 
specify all possible types in a cross-platform way, but I'm not sure and the 
answer is not obvious from the documentation.)

--
components: Library (Lib)
messages: 103699
nosy: kiilerix
severity: normal
status: open
title: struct - please make sizes explicit
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



[issue6483] Modules are not deallocated correctly if m_size = -1

2010-04-20 Thread Julian Andres Klode

Julian Andres Klode  added the comment:

This bug still exists in Python 3.1.2.

--

___
Python tracker 

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



[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-20 Thread Stefan Krah

Stefan Krah  added the comment:

The Tiger buildbot triggers the message in build #31:

test_signal
test_itimer_virtual: timeout: likely cause: machine too slow or load too high.


But build #23 is ok.

--

___
Python tracker 

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



[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-20 Thread Matthias Klose

Matthias Klose  added the comment:

> Does Ubuntu use a small stack size?

it's 8192 on all architectures.

--
nosy: +doko

___
Python tracker 

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



[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-20 Thread Matthias Klose

Matthias Klose  added the comment:

I'm told it's 10240 on Fedora 12, x86 and x86_64

--

___
Python tracker 

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



[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-20 Thread STINNER Victor

STINNER Victor  added the comment:

Allocate more than 16 bytes on the stack is never a good idea. Eg. Linux does 
never resize the size automatically, and the only way to catch "allocatation 
failed" error is to handle the SIGSEGV signal...

Remove buf allocated on the stack by a buffer allocated on the heap is 
definitly a good ide :-)

--
nosy: +haypo

___
Python tracker 

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



[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-20 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

A 16KB stack buffer is tiny compared to a 8MB stack. I'm not sure removing that 
buffer would really fix the problems.
Perhaps other threads get a smaller stack?

--

___
Python tracker 

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



[issue8451] syslog.syslog('msg') logs message with ident "python".

2010-04-20 Thread Eric Smith

Eric Smith  added the comment:

A couple of points:

Didn't we decide that instead of using:
  openlog(ident[, logopt[, facility]])
we'd use:
  openlog(ident, logopt=None, facility=None)
(or whatever the defaults are)? I can't find a reference, but the argument was 
that it's how Python signatures are written, so it's clearer if they're all 
written this way.

You should add some comments to syslog_get_argv explaining why you're handling 
errors the way you are. That is, why you're swallowing exceptions and 
continuing. Similarly with the call to PyTuple_New(0).

I also think it would be clearer if using the string "python" were inside 
syslog_get_argv, but that's a style thing.

Should the fallback be "python", or derived from C's argv[0]?

Is it possible that sys.argv[0] would be unicode?

Is SEP correct, or should it really be using os.path.sep and/or os.path.altsep? 
This is probably a nit, but I could see it being a problem under cygwin (which 
I haven't tested yet).

Your "if" statements shouldn't all be on one line. The single-line style with 
braces isn't used anywhere else in this module, and it's not in the Python code 
base that I could see (except for the occasional macro).

The example code has some extra spaces around the equal signs. It should be:
   syslog.openlog(logopt=syslog.LOG_PID, facility=syslog.LOG_MAIL)

Thanks for doing this!

--

___
Python tracker 

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



[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-20 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

What's the value of MAXPATHLEN and PATH_MAX on those systems?

--

___
Python tracker 

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



[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-20 Thread Charles-Francois Natali

Charles-Francois Natali  added the comment:

The problem is highlighted with recursive imports:
a module which imports another module, which imports another module, etc. 
PyMarshal_ReadLastObjectFromFile is not the only function to use 
stack-allocated buffers, there are also load_source_module, load_package, 
import_module_level, which use char buf[MAXPATHLEN+1]: with a MAXPATHLEN to 
1024, you lose 2 or 3K every time you do a recursive import.
And, as has been said, it might very well happen that new threads get a reduced 
stack size.

--

___
Python tracker 

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



[issue6600] MemoryError in AiX 64-bit - PyMem_MALLOC fails in open/fdopen

2010-04-20 Thread Charles-Francois Natali

Charles-Francois Natali  added the comment:

It really looks like a broken compiler: if you want to convince yourself, 
perform a disassembly of the crashing code.
I'd suggest to close this one.

--
nosy: +neologix

___
Python tracker 

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



[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-20 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> The problem is highlighted with recursive imports:
> a module which imports another module, which imports another module,
> etc. PyMarshal_ReadLastObjectFromFile is not the only function to use
> stack-allocated buffers, there are also load_source_module,
> load_package, import_module_level, which use char buf[MAXPATHLEN+1]:
> with a MAXPATHLEN to 1024, you lose 2 or 3K every time you do a
> recursive import.

Let's assume we lose ten times 1024 bytes, that's still only 10KB. The
stack is 8MB. We are argueing about less than 1% of the total stack
size.

I just went through all of the functions highlighted in one of these
stack traces (*). The only big consumers of stack space seem to be the
stack buffer in PyMarshal_ReadLastObjectFromFile, and the various file
path buffers using MAXPATHLEN.

(*) https://bugs.launchpad.net/ubuntu/+source/python2.6/+bug/432546

And that report shows only a single thread, so I have to assume that the
8MB figure applies there.

Nevertheless, we can remove the stack buffer since it's probably
useless. It just seems unlikely to me to be the root cause of the stack
overflow.

--

___
Python tracker 

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



[issue8124] mywrite() ignores PyFile_WriteString() errors

2010-04-20 Thread STINNER Victor

STINNER Victor  added the comment:

Another solution: disable call to PyErr_CheckSignals() in mywrite().

--

___
Python tracker 

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



[issue8469] struct - please make sizes explicit

2010-04-20 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

It is very easy to generate the size table programmatically:

>>> for c in "xcbB?hHiIlLqQfdspP":
... print(c, struct.calcsize(c))
... 
x 1
c 1
b 1
B 1
? 1
h 2
H 2
i 4
I 4
l 8
L 8
q 8
Q 8
f 4
d 8
s 1
p 1
P 8

However, all values above except trivial 1-byte entries are platform dependent 
and C types are already well documented.

--
nosy: +Alexander.Belopolsky

___
Python tracker 

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



[issue8395] shutil.copytree() add a copy_func parameter.

2010-04-20 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

I have just added this feature yesterday, see #1540112.

Thanks!

--
resolution:  -> duplicate
status: open -> closed
superseder:  -> Allow choice of copy function in shutil.copytree

___
Python tracker 

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



[issue6547] shutil.copytree fails on dangling symlinks

2010-04-20 Thread Timothee Besset

Timothee Besset  added the comment:

Good stuff. Didn't occur to me that the operation could have successfully 
completed before raising the exception

--

___
Python tracker 

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



[issue6547] shutil.copytree fails on dangling symlinks

2010-04-20 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

Thanks for your work on Quake btw ;)

--

___
Python tracker 

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



[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-20 Thread resc

resc  added the comment:

Hi,
I'm working on reproducing this again, but it's always been a very
sporadic bug, and I haven't gotten a bingo yet.

- return the result of "ulimit -s" on their box
8192

- return the result of "ltrace -e pthread_attr_setstacksize "
There's no output from ltrace when I do this (except "exited (status
0)"), so I guess that function isn't called.

I wish I had a test case that would trigger the bug more reliably...
-Thomas

--

___
Python tracker 

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



[issue6547] shutil.copytree fails on dangling symlinks

2010-04-20 Thread Timothee Besset

Timothee Besset  added the comment:

My pleasure! We do use a lot of python.

--

___
Python tracker 

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



[issue7150] datetime operations spanning MINYEAR give bad results

2010-04-20 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

My patch includes unit tests and I tested it on Mac OS X.  Anand, what kind of 
testing do you have in mind?

--
versions: +Python 2.7, Python 3.2, Python 3.3

___
Python tracker 

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



[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-20 Thread Matthias Klose

Matthias Klose  added the comment:

PATH_MAX/MAXPATHLEN is 4096

--

___
Python tracker 

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



[issue8469] struct - please make sizes explicit

2010-04-20 Thread Mark Dickinson

Mark Dickinson  added the comment:

As Alexander says, *all* the sizes except those for bytes are 
platform-dependent:  there are platforms where sizeof(short) isn't 2, for 
example, or where sizeof(int) isn't 4.

It would be possible to add the 'standard' sizes to that table (i.e. the sizes 
that you get when using '<', '>', etc.);  would that be helpful?  If you're 
trying to write cross-platform code then you should probably be using standard 
size, alignment and byte order anyway.

--
assignee:  -> mark.dickinson
nosy: +mark.dickinson

___
Python tracker 

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



[issue8295] add unpack_archive to shutil

2010-04-20 Thread Tarek Ziadé

Changes by Tarek Ziadé :


--
resolution:  -> accepted
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



[issue8469] struct - please make sizes explicit

2010-04-20 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

On Tue, Apr 20, 2010 at 10:30 AM, Mark Dickinson  wrote:
..
> It would be possible to add the 'standard' sizes to that table (i.e. the 
> sizes that you get when using '<', '>', etc.);  would that be helpful?

The documentation already includes standard sizes in text:

"Standard size and alignment are as follows: no alignment is required
for any type (so you have to use pad bytes); short is 2 bytes; int and
long are 4 bytes; long long (__int64 on Windows) is 8 bytes; float and
double are 32-bit and 64-bit IEEE floating point numbers,
respectively. _Bool is 1 byte."

It may be helpful to add "Standard size" column to the code table with
a footnote that it only applies when <, > or ! code is used and that
for native sizes one should consult struct.calcsize().

--

___
Python tracker 

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



[issue8453] build_installer.py breaks bzip compilation

2010-04-20 Thread R. David Murray

R. David Murray  added the comment:

I don't think bash itself has a default path, I think the default path is set 
by the system bash profile, and is therefore system dependant.  I could be 
wrong, though.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-20 Thread R. David Murray

R. David Murray  added the comment:

The only reason the freebsd6 skips aren't in py3k is that I wanted to make sure 
they worked first, and then I was on vacation and haven't gotten to the merge 
yet.  If you want to merge your patch before I get to it, feel free to merge 
mine along with yours.

For 2.6 writing to stderr is indeed better (maybe even requried; I forget if 
the regrtest stdout check is still in 2.6...I think it probably is).

For 2.7/3.x, I think you should raise a unittest.SkipTest instead, so that it 
will be counted as a skipped test.

--

___
Python tracker 

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



[issue8451] syslog.syslog('msg') logs message with ident "python".

2010-04-20 Thread R. David Murray

R. David Murray  added the comment:

The argument documentation style change was made for py3k.  The old convention 
is still used in the 2.x docs.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue1083] Confusing error message when dividing timedelta using /

2010-04-20 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

This is certainly not a bug, so I don't think targeting 2.7 is appropriate.  I 
have explained in a comment on issue2706 (see msg75917) why I believe true 
division of timedelta by int should not be supported.  In short, true division 
of timedelta by int is supposed to return fractional number of microseconds, 
but python lacks a type that can represent it.

--
nosy: +Alexander.Belopolsky

___
Python tracker 

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



[issue8470] Let cmd.cmd.intro be unicode friendly

2010-04-20 Thread phep

New submission from phep :

Since cmd.cmdloop() says:

# ...
self.stdout.write(str(self.intro)+"\n")
# 

one cannot use unicode characters in cmd.cmd.intro, for example the copyright 
(©) character (u'\xa9').

TIA

--
messages: 103726
nosy: phep
severity: normal
status: open
title: Let cmd.cmd.intro be unicode friendly
type: feature request
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



[issue8465] Backreferences vs. escapes: a silent failure solved

2010-04-20 Thread Aaron Sherman

Aaron Sherman  added the comment:

Matthew, thank you for replying. I still think the primary issue is the 
potential for confusion between single digit escapes and backreferences, and 
the ease with which they could be addressed, but to cover what you said:

Quote: the normal way to handle "\41" + "1" is "\0411"

That might be the way dictated by the limitations of escape expansion as it is 
now, but it's entirely non-intuitive and seems more like the "exciting" edge 
cases (and obfuscated code opportunities) in other languages than something 
Python would be proud of.

With \41\e1 you would actually be able to tell, visually that the 1 does not 
get read by the code which reads the \41. This seems to me to be a serious win 
for maintainability.

--

___
Python tracker 

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



[issue8471] Unicode returns in doctest can make subsequent tests fail

2010-04-20 Thread Lennart Regebro

New submission from Lennart Regebro :

If we return unicode, SpoofOut's buf variable becomes automagically converted 
to unicode. This means all subsequent output becomes converted to unicode, and 
if the output contains non-ascii characters that fails.

That means that 

>>> print u'\xe9'.encode('utf-8')
é

Will work just fine, but

>>> print u'abc'
abc

>>> print u'\xe9'.encode('utf-8')
é

Will fail.


The reason for this is that when "resetting" the doctest output only a 
truncate(0) is done, so the buf variable will continue to be unicode. I include 
tests + a patch that will set self.buf to '' if empty when trunkated. Other 
options are also possible, like changing the .truncate(0) to a .buf = '' but 
that's ugly, or adding a reset() method on SpoofOUt.

--
components: Extension Modules, Tests
files: doctest_unicode.patch
keywords: patch
messages: 103728
nosy: lregebro
severity: normal
status: open
title: Unicode returns in doctest can make subsequent tests fail
type: behavior
versions: Python 2.5, Python 2.6, Python 2.7
Added file: http://bugs.python.org/file17007/doctest_unicode.patch

___
Python tracker 

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



[issue5243] Missing dependency in distutils build

2010-04-20 Thread Éric Araujo

Changes by Éric Araujo :


--
components: +Distutils2 -Distutils
versions: +Python 2.5, Python 3.1, Python 3.3

___
Python tracker 

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



[issue8274] test_run failing

2010-04-20 Thread Alexandre Conrad

Alexandre Conrad  added the comment:

worksforme:

test_run (distutils2.tests.test_build_clib.BuildCLibTestCase) ... ok

Python 2.6.2 on Ubuntu 9.04

--
nosy: +aconrad

___
Python tracker 

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



[issue5302] Allow package_data globs match directories

2010-04-20 Thread Éric Araujo

Éric Araujo  added the comment:

Hello

Tarek, could you briefly explain the arguments that convinced you?

If MANIFEST.in is removed, perhaps we could use convention instead of 
configuration to categorize files, like what DistutilsExtra does: 
http://bazaar.launchpad.net/~python-distutils-extra-hackers/python-distutils-extra/debian/annotate/head%3A/doc/README#L42

(Changing component and versions since Distutils is frozen)

Regards

--
components: +Distutils2 -Distutils
nosy: +merwok
versions: +Python 2.5, Python 2.6, Python 3.2, Python 3.3

___
Python tracker 

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



[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-20 Thread Matthias Klose

Changes by Matthias Klose :


--
nosy: +doko

___
Python tracker 

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



[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2010-04-20 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

I am +1 for adding these features and I have only one comment on the code:

It is documented in time.strptime() documentation that
"""
The default values used to fill in any missing data when more accurate values 
cannot be inferred are (1900, 1, 1, 0, 0, 0, 0, 1, -1). 
""" http://docs.python.org/dev/py3k/library/time.html#time.strptime

and "datetime.strptime(date_string, format) is equivalent to 
datetime(*(time.strptime(date_string, format)[0:6]))." according to datetime 
module documentation.

Thus, datetime.strptime("", "") returning datetime.datetime(1900, 1, 1, 0, 0) 
is not an implementation detail and there is no need to compute it in 
time_strptime.

--
nosy: +Alexander.Belopolsky

___
Python tracker 

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



[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2010-04-20 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

BTW, it does not bother me that "date.strptime() 
seems a bit odd, given that it cannot accept a time part."  To me "time" in 
strptime means time specification that may include date, time or even just 
month.  If parsed specification does not fit in date (includes time component), 
date.strptime fails.  There is nothing wrong with it.  An alternative would be 
to make {date,time}.strptime() promiscuous and just drop unneeded components, 
but that would make these functions less useful because such behavior is simply 
datetime.strptime(..).{date,time}().

--

___
Python tracker 

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



[issue8472] itertools.filterfalse() function missing

2010-04-20 Thread Alexander Myodov

New submission from Alexander Myodov :

The documentation (eg at 
http://docs.python.org/release/2.6.5/library/functions.html#filter) tells that 
there should be an itertools.filterfalse() function complementary to builtin 
filter() function, that returns the list of elements (instead of the iterator 
over them, as ifilterfalse() does), for which the condition is failed. This 
function is absent from Python 2.x branch (though obviously is present in 3.x, 
as all the i* functions are renamed to their non-i* counterparts).

--
messages: 103733
nosy: honeyman
severity: normal
status: open
title: itertools.filterfalse() function missing
versions: Python 2.5, Python 2.6, Python 2.7

___
Python tracker 

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



[issue4079] new urllib2.Request 'timeout' attribute needs to have a default

2010-04-20 Thread Facundo Batista

Facundo Batista  added the comment:

I'm ok with the proposed changes from Sidnei (yes, a patch is needed).

--

___
Python tracker 

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



[issue8473] doctest fails if you have inconsistent lineendings

2010-04-20 Thread Lennart Regebro

New submission from Lennart Regebro :

If the doctest file has both Windows and unix lineendings you get an error. 
Yeah, I know, it's not a serious bug, but it's also easy to fix.

Attached patch with test. Seems to not be an issue on Python 3.

--
components: Extension Modules, Tests
files: doctest_lineendings.patch
keywords: patch
messages: 103735
nosy: lregebro
severity: normal
status: open
title: doctest fails if you have inconsistent lineendings
versions: Python 2.5, Python 2.6, Python 2.7
Added file: http://bugs.python.org/file17008/doctest_lineendings.patch

___
Python tracker 

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



[issue8472] itertools.filterfalse() function missing

2010-04-20 Thread Alexander Myodov

Changes by Alexander Myodov :


--
type:  -> behavior

___
Python tracker 

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



[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-20 Thread Andres Moreira

Changes by Andres Moreira :


--
nosy: +andrix

___
Python tracker 

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



[issue8472] itertools.filterfalse() function missing

2010-04-20 Thread Ezio Melotti

Ezio Melotti  added the comment:

That line has been added first on py3k where the function is called 
'itertools.filterfalse' and then ported to 2.x. Most likely the 'i' has been 
forgotten.
A new filterfalse function can't be added to 2.7 because it's already in beta.
I fixed the link to point to itertools.ifilterfalse() in r80270 and r80271.
Raymond, if you think that sentence should be rephrased, feel free to change it 
or reopen the issue.

--
assignee:  -> georg.brandl
components: +Documentation
nosy: +ezio.melotti, georg.brandl, rhettinger
priority:  -> normal
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed
versions:  -Python 2.5

___
Python tracker 

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



[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-20 Thread STINNER Victor

Changes by STINNER Victor :


Removed file: 
http://bugs.python.org/file16997/add-conditions-for-gdb.Frame.select-to-trunk.patch

___
Python tracker 

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



[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-20 Thread STINNER Victor

Changes by STINNER Victor :


Removed file: http://bugs.python.org/file16998/test_gdb-2.patch

___
Python tracker 

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



[issue4843] make distutils use shutil

2010-04-20 Thread Éric Araujo

Éric Araujo  added the comment:

This has been done in Distutils2, see  
http://hg.python.org/distutils2/rev/18dc3dba4075 and 
http://hg.python.org/distutils2/rev/98b70f92bf0a

Changing component and closing the bug, please reopen if I’m wrong :)

Regards

--
resolution:  -> accepted
stage:  -> committed/rejected
status: open -> closed
versions: +Python 2.5, Python 2.6, Python 3.2, Python 3.3

___
Python tracker 

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



[issue8472] itertools.filterfalse() function missing

2010-04-20 Thread Alexander Myodov

Alexander Myodov  added the comment:

In this case, I'd suggest to rephrase it to "See :func:`itertools.ifilterfalse` 
for the complementary function that returns the iterator over the elements of 
*iterable* for which *function* returns false.", or even remove this line at 
all (because, ifilterfalse() is a complement to ifilter() rather than to 
filter()). But please don't leave this as it is now, as this is still confusing 
and misleading (filter returns a list, but ifilter and ifilterfalse return an 
iterator!).

--
status: closed -> open

___
Python tracker 

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



[issue8474] Duplicate tests in email test suite

2010-04-20 Thread Shashwat Anand

New submission from Shashwat Anand :

In trunk/Lib/email/test/test_email.py, test_default_cte() is repeated twice, 
one being the subset of other. Attached patch resolve the duplicity.

--
components: Library (Lib)
files: test_email.patch
keywords: patch
messages: 103739
nosy: barry, l0nwlf, r.david.murray
severity: normal
status: open
title: Duplicate tests in email test suite
versions: Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file17009/test_email.patch

___
Python tracker 

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



[issue3132] implement PEP 3118 struct changes

2010-04-20 Thread Noufal

Changes by Noufal :


--
nosy: +noufal

___
Python tracker 

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



[issue8472] itertools.filterfalse() function missing

2010-04-20 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

Suggestion for Py2.x:

See :func:`itertools.ifilter` and :func:`itertools.ifilterfalse`
for iterator versions of this function, including a variation that filters for 
elements where the *function* returns *False*).

--

___
Python tracker 

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



[issue8092] utf8, backslashreplace and surrogates

2010-04-20 Thread STINNER Victor

Changes by STINNER Victor :


--

___
Python tracker 

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



[issue8092] utf8, backslashreplace and surrogates

2010-04-20 Thread STINNER Victor

STINNER Victor  added the comment:

New version without the hardcoded limit: don't use goto encodeUCS4;, chain if 
to limit indentation depth: it only costs one copy of the UCS4 (5 lines are 
duplicated).

The buffer is now reallocated each time a surrogate escape is longer than 4 
bytes.

I don't know if "nallocated += repsize - 4;" can overflow or not. If yes, how 
can I detect the overflow? I added: /* FIXME: check integer overflow? */

--
Added file: http://bugs.python.org/file17010/utf8_surrogate_error-2.patch

___
Python tracker 

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



[issue8437] test_gdb: gdb.Frame has no attribute function

2010-04-20 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

I'm attaching the full output. It's the same as the one in the original report 
(msg103442) still.

--
Added file: http://bugs.python.org/file17011/test_gdb.txt

___
Python tracker 

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



[issue5103] ssl.SSLSocket timeout not working correctly when remote end is hanging

2010-04-20 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Bill, I think we should move forward with this. Do you agree that removing the 
timeout dance is the right solution?

--
nosy: +pitrou
priority:  -> high
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



[issue3597] Allow application developers to select ciphers, and default to strong in ssl lib

2010-04-20 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I had never seen this issue but committed almost exactly the same feature in 
r80151. The parameters is named "ciphers" rather than "cipher_list" and allows 
you to override the allowed ciphers when creating an SSL object. It will be 
available in Python 2.7 and 3.2.

(note that OpenSSL itself defaults to what it considers strong ciphers, at 
least in the most recent versions)

--
nosy: +pitrou
resolution:  -> out of date
status: open -> closed
versions: +Python 2.7, Python 3.2 -Python 2.6

___
Python tracker 

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



[issue8393] subprocess: support undecodable current working directory on POSIX OS

2010-04-20 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

Amaury, I fail to see how the error you get on Windows is related to this 
issue. AFAICT, neither the issue nor the patch affects Windows at all.

Closing the issue as fixed.

If you think there is also an issue on Windows, please submit a new bug report. 
However, I don't think the error you get is a bug: what you see is correct 
behavior.

--
nosy: +loewis
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue8394] ctypes.dlopen() doesn't support surrogates

2010-04-20 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

Amaury, I'm closing this for the same reason I explained in msg103745

--
nosy: +loewis
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue8263] regrtest stops prematurately on FreeBSD buildbot, with "success" result.

2010-04-20 Thread Stefan Krah

Stefan Krah  added the comment:

Confirmed on FreeBSD-6.4/py3k. Threading causes the problem, the skip
works here, too.

--
nosy: +skrah

___
Python tracker 

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



[issue5639] Support TLS SNI extension in ssl module

2010-04-20 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Too late for 2.7 now, but looks like a good idea.

--
nosy: +pitrou
priority:  -> normal
stage:  -> patch review
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



[issue3596] Provide a way to disable SSLv2 (or better yet, disable by default)

2010-04-20 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

The new "ciphers" argument in trunk and py3k should do the trick, shouldn't it?
Do note that starting with OpenSSL 1.0.0, SSLv2 is disabled by default when 
using the "SSLv23" client method (you can re-enable it by specifying "ALL" for 
the cipher list).

--
nosy: +pitrou
resolution:  -> out of date
status: open -> pending
versions: +Python 2.7, Python 3.2 -Python 2.6

___
Python tracker 

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



[issue7927] SSL socket is not closed properly

2010-04-20 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Probably a duplicate of issue5238.

--
nosy: +pitrou
resolution:  -> duplicate
status: open -> closed
superseder:  -> ssl makefile never closes socket

___
Python tracker 

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



[issue5238] ssl makefile never closes socket

2010-04-20 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +giampaolo.rodola
versions: +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



[issue8109] Support for TLS Server Name Indication extension

2010-04-20 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Duplicate of issue5639.

--
nosy: +pitrou
resolution:  -> duplicate
status: open -> closed
superseder:  -> Support TLS SNI extension in ssl module

___
Python tracker 

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



[issue1926] NNTPS support in nntplib

2010-04-20 Thread Antoine Pitrou

Changes by Antoine Pitrou :


Removed file: http://bugs.python.org/file9298/unnamed

___
Python tracker 

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



[issue1926] NNTPS support in nntplib

2010-04-20 Thread Antoine Pitrou

Changes by Antoine Pitrou :


Removed file: http://bugs.python.org/file9309/unnamed

___
Python tracker 

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



[issue8461] PythonLauncher universal build fails due to missing -arch and -sysroot

2010-04-20 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

I've fixed this issue in all branches and can now do clean builds.

BTW. Builds with the 10.4u SDK on OSX fail at the moment for 2.7 and 3.2, 
that's due to issue 7724, I've attached a patch to that issue that should fix 
it (for the trunk, porting it to 3.2 should be trivial).

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

___
Python tracker 

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



[issue4470] smtplib SMTP_SSL not working.

2010-04-20 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
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



[issue7724] setup.py ignores SDK root on OSX

2010-04-20 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

The attached patch (for the trunk) fixes this issue on my machine.

The patch also fixes issue 8444.

I wouldn't mind some review of the patch, it does affect core bits of setup.py.

--
keywords: +needs review
stage: needs patch -> patch review
Added file: http://bugs.python.org/file17012/issue7724.txt

___
Python tracker 

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



[issue2987] RFC2732 support for urlparse (IPv6 addresses)

2010-04-20 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

I added an additional invalid test which David pointed out and made changes to 
invalid url checking code. I moved it more higher level.

- The reason for doing this is, invalid url test code (which is very specific 
for '[' enclosed ']' ipv6 url is concentrated at a single place). We can deal 
with parsing separately from check.

Now, other forms of Invalid URLs are possible as David points out (and possibly 
more too), but leaving it is better as it would unnecessarily add syntax-checks 
at various different places (instead of a single place), without much of value 
add.  Dealing with Valid URLs and a parse logic checking should be fine.

commits: trunk - r80277 and py3k - r80278

--

___
Python tracker 

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



[issue8444] openssl version detection doesn't work properly when using OSX SDK

2010-04-20 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

I've attached a patch that fixes this issue to issue 7724.

--

___
Python tracker 

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



[issue4870] ssl module is missing SSL_OP_NO_SSLv2

2010-04-20 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
resolution: accepted -> 
versions: +Python 3.2 -Python 2.6, Python 2.7, Python 3.0, Python 3.1

___
Python tracker 

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



[issue8447] buildbot: test_httpservers failure (No module named operator)

2010-04-20 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

The test passes just fine on my machine.

--

___
Python tracker 

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



  1   2   >