[issue14917] Make os.symlink on Win32 detect if target is directory

2012-06-24 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

Note: I can't test this, as I only run Windows XP.  But it compiles cleanly on 
Windows, and on Linux it compiles and passes the test suite fine.

--

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



[issue15016] Add special case for latin messages in email.mime.text

2012-06-24 Thread Dmitry Shachnev

Dmitry Shachnev mity...@gmail.com added the comment:

 This seems to be an enhancement sort of request rather than a bug... so I 
 wonder why Python 3.2 is listed?

Fixed.

 ... although I see nothing in the PEP about how to access that information 
 from Python.

You are right, it seems there is no Python API for that (yet?), so I don't see 
any better solutions for determining the maximum character for now. Also, note 
that this algorithm had already been used before my patch.

--
type: behavior - enhancement
versions:  -Python 3.2

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



[issue14815] random_seed uses only 32-bits of hash on Win64

2012-06-24 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

I got bored so I made you a patch.

--
keywords: +patch
Added file: http://bugs.python.org/file26125/larry.random_seed.ssize_t.1.diff

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



[issue15118] uname and other os functions should return a struct sequence instead of a tuple

2012-06-24 Thread Larry Hastings

Changes by Larry Hastings la...@hastings.org:


--
assignee:  - larry
stage:  - patch review
type:  - behavior

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



[issue13590] extension module builds fail with python.org OS X installers on OS X 10.7 and 10.6 with Xcode 4.2

2012-06-24 Thread Roundup Robot

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

New changeset 796d9fc28e95 by Ned Deily in branch 'default':
Issue #13590: Improve support for OS X Xcode 4:
http://hg.python.org/cpython/rev/796d9fc28e95

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13590
___
___
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

2012-06-24 Thread Éric Araujo

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

Can I suggest setting a “safe” attribute on the rmtree function object instead 
of adding another name to the module?

--
nosy: +larry

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4489
___
___
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

2012-06-24 Thread Hynek Schlawack

Hynek Schlawack h...@ox.cx added the comment:

I thought about that too but couldn't find a precedent (I didn't look very long 
though :)) where we've done that before so I went for an attribute. I'd change 
it immediately if others agree.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4489
___
___
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

2012-06-24 Thread Nick Coghlan

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

I'm in the process of updating the LBYL support to use a 
rmtree.avoids_symlink_attacks function attribute rather than the 
rmtree_is_safe module level attribute.

As I said in the hmac.secure_compare function discussion, the words safe and 
secure are too vague to ever make for good API design. Much better to tell 
people exactly what they're safe against (rmtree_is_safe - 
rmtree.avoids_symlink_attacks), or designed to be appropriate for 
(hmac.secure_compare - hmac.compare_digest).

--
nosy: +ncoghlan

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



[issue13512] ~/.pypirc created insecurely

2012-06-24 Thread Éric Araujo

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

Do you have links to those patches?

--

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



[issue14772] Return destination values in some shutil functions

2012-06-24 Thread Éric Araujo

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

Thanks!

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14772
___
___
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

2012-06-24 Thread Hynek Schlawack

Hynek Schlawack h...@ox.cx added the comment:

Excellent Nick! I discussed the very same thing with David yesterday but 
somehow we didn't come up with a good name. So we kept it on safe (which 
predates the secure discussion).

--

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



[issue15056] Have imp.cache_from_source() raise NotImplementedError when cache tag not available

2012-06-24 Thread Éric Araujo

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

 So sys.dont_write_bytecode is there to prevent bytecode writing but not 
 loading.
Ah right.  Providing a way to avoid reading them sounds good.

 If you set sys.implementation.cache_tag to None you stop all bytecode usage 
 (reading and writing)
This I feel uncomfortable with.  First, I would separate writing and reading; 
second, I think of sys.implementation as a read-only information holder, and 
would think it immutable (note that I haven’t read the latest version of the 
PEP); just like sys.flags.dont_write_bytecode does not change but 
sys.dont_write_bytecode can change.  So even though I think sys has a lot of 
attributes, the cleanest thing here would be a new sys.dont_read_bytecode 
attribute (as was proposed in the thread), maybe also with a new command-line 
option (or using -BB) and environment variable.

--

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



[issue10053] Don’t close fd when FileIO.__init__ fails

2012-06-24 Thread Éric Araujo

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

I don’t know; Antoine is the io expert.  I just remember that io used to be in 
C and was moved to _pyio for documentation and experimentation purposes, so I 
was sure it was a fully standalone lib but I could be mistaken.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10053
___
___
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

2012-06-24 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

Bikeshedding:

(os.unlink in os.supports_dir_fd and os.open in os.supports_dir_fd)

could be rewritten as

{ os.open, os.unlink } = os.supports_dir_fd

As you were!

--

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



[issue15056] Have imp.cache_from_source() raise NotImplementedError when cache tag not available

2012-06-24 Thread Eric Snow

Eric Snow ericsnowcurren...@gmail.com added the comment:

Brett meant the implementation would set it.  You'd still expect it to not 
change values during the execution of the interpreter.  I suppose anyone could 
change that value, but I'd see that more as a consenting adults situation.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15056
___
___
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

2012-06-24 Thread Éric Araujo

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

The code using set operations seems slightly too cryptic for me, even though 
I’m comfortable with sets and functions as first-class objects.  A matter of 
taste I guess.

BTW it sounds a bit strange to me to have the verb in the singular in 
supports_dir_fd when its meaning is “the functions in this set support dir_fd”. 
 I guess it’s too late to propose “os.open.supports_dir_fd and 
os.unlink.supports_dir_fd” (and I don’t know if that is feasible with C 
functions) :)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4489
___
___
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

2012-06-24 Thread Roundup Robot

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

New changeset c2be81151994 by Nick Coghlan in branch 'default':
Issue #4489: Rename the feature marker for the symlink resistant rmtree and 
store it as a function attribute
http://hg.python.org/cpython/rev/c2be81151994

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4489
___
___
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

2012-06-24 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

 I guess it’s too late to propose “os.open.supports_dir_fd and
 os.unlink.supports_dir_fd” (and I don’t know if that is feasible
 with C functions) :)

Where were you when is_implemented was being savagely torn apart last week?  
;-)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4489
___
___
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

2012-06-24 Thread Éric Araujo

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

I was at work, and moving out of my apartment, and desperating at the 
subthreads spawned by my mail about packaging, and agreeing with the people 
being -1 on is_implemented on Signature objects :-)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4489
___
___
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

2012-06-24 Thread Nick Coghlan

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

Éric - there's almost certainly going to be a PEP for 3.4 about doing this kind 
of feature advertisement in a cleaner and more consistent way.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4489
___
___
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

2012-06-24 Thread Éric Araujo

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

Yep, that is promising.  At worst we’ll have a new cool API and three obsolete 
sets in the os module, not a big deal.

--

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



[issue14815] random_seed uses only 32-bits of hash on Win64

2012-06-24 Thread Martin v . Löwis

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

LGTM

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14815
___
___
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

2012-06-24 Thread Hynek Schlawack

Hynek Schlawack h...@ox.cx added the comment:

Okay everyone, let's call it day – after 3,5 years. :) Further enhancement 
requests please in separate tickets. Thanks to everybody who took part!

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

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



[issue1767933] Badly formed XML using etree and utf-16

2012-06-24 Thread Serhiy Storchaka

Serhiy Storchaka storch...@gmail.com added the comment:

It would be nice to fix this bug before forking of the 3.3.0b1 release clone.

--

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



[issue1470548] Bugfix for #1470540 (XMLGenerator cannot output UTF-16)

2012-06-24 Thread Serhiy Storchaka

Serhiy Storchaka storch...@gmail.com added the comment:

It would be nice to fix this bug before forking of the 3.3.0b1 release clone.

--

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



[issue15003] make PyNamespace_New() public

2012-06-24 Thread Nick Coghlan

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

-1. The entire Python API is already accessible from C, so expansions to the 
public C API need more justification than it's exposed in Python.

If new instances of this type end up being used in performance critical third 
party C extensions, then we can have a conversation about whether or not it 
needs to be exposed directly in C.

--
nosy: +ncoghlan

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



[issue12268] file readline, readlines readall methods can lose data on EINTR

2012-06-24 Thread Roundup Robot

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

New changeset 781b95159954 by Gregory P. Smith in branch '3.2':
Fixes issue #12268: File readline, readlines and read() or readall() methods
http://hg.python.org/cpython/rev/781b95159954

New changeset 19a6bef57490 by Gregory P. Smith in branch 'default':
Fixes issue #12268: File readline, readlines and read() or readall() methods
http://hg.python.org/cpython/rev/19a6bef57490

--
nosy: +python-dev

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



[issue14315] zipfile.ZipFile() unable to open zip File

2012-06-24 Thread Serhiy Storchaka

Serhiy Storchaka storch...@gmail.com added the comment:

Any chance to commit the patch before final feature freeze?

--

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



[issue12268] file readline, readlines readall methods can lose data on EINTR

2012-06-24 Thread Gregory P. Smith

Gregory P. Smith g...@krypto.org added the comment:

I'm leaving this open as I still need to audit the write methods and commit the 
fix(es) for 2.7.

I tried to merge the test into test_io's signals tests but I could not get that 
to actually work to reproduce the original problem so I kept my process based 
test_file_eintr one which easily reproduces it prior to these patches being 
applied instead.

--

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



[issue14304] Implement utf-8-bmp codec

2012-06-24 Thread Serhiy Storchaka

Serhiy Storchaka storch...@gmail.com added the comment:

Any chance to commit the patch before final feature freeze?

--

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



[issue15147] Remove packaging from the stdlib

2012-06-24 Thread Éric Araujo

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

sysonfig.cfg removed in e989e7586da6.

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

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



[issue15100] Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile

2012-06-24 Thread Hynek Schlawack

Changes by Hynek Schlawack h...@ox.cx:


--
versions: +Python 3.4 -Python 3.3

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



[issue13520] Patch to make pickle aware of __qualname__

2012-06-24 Thread Hynek Schlawack

Changes by Hynek Schlawack h...@ox.cx:


--
nosy:  -hynek

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



[issue7719] distutils: ignore .nfsXXXX files

2012-06-24 Thread Hynek Schlawack

Changes by Hynek Schlawack h...@ox.cx:


--
nosy:  -hynek

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



[issue14974] rename packaging.pypi to packaging.index

2012-06-24 Thread Hynek Schlawack

Changes by Hynek Schlawack h...@ox.cx:


--
nosy:  -hynek

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



[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-06-24 Thread Hynek Schlawack

Changes by Hynek Schlawack h...@ox.cx:


--
nosy:  -hynek

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



[issue15133] tkinter.BooleanVar.get() behavior and docstring disagree

2012-06-24 Thread Mark Summerfield

Mark Summerfield m...@qtrac.eu added the comment:

I think that BooleanVar.set(x) should do bool(x) on its argument (and raise an 
exception if this isn't valid) and BooleanVar.get() should return a bool. 
Similarly I think that IntVar.set(x) should do int(x) and IntVar.get() should 
return an int, and that DoubleVar.set(x) should do float(x) and should return a 
float.

I will mention this issue on tkinter-discuss and encourage people to comment.

--

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



[issue15133] tkinter.BooleanVar.get() behavior and docstring disagree

2012-06-24 Thread Mark Summerfield

Mark Summerfield m...@qtrac.eu added the comment:

Oh, and I forgot to say that I think StringVar.set(x) should do str(x) and 
StringVar.get() should return a str.

--

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



[issue14315] zipfile.ZipFile() unable to open zip File

2012-06-24 Thread Martin v . Löwis

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

Strictly speaking, the feature freeze has passed already, so you'll need the 
time machine.

However, this is not the *final* feature freeze - there will be a 3.4 release 
of Python also.

--

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



[issue15159] Add failover for follow_symlinks and effective_ids where possible

2012-06-24 Thread Hynek Schlawack

Hynek Schlawack h...@ox.cx added the comment:

It also passes OS X.

There are no patch specific tests though. And alas, I don't have any platform 
at hand that would benefit from these additions. :(

The idea sounds good to me and the code LGTM though. However I can't really say 
much as I couldn't actually run it.

--
nosy: +hynek

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



[issue15118] uname and other os functions should return a struct sequence instead of a tuple

2012-06-24 Thread Hynek Schlawack

Changes by Hynek Schlawack h...@ox.cx:


--
nosy: +hynek

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



[issue15160] Add support for MIME header parsing to the new provisional email policies

2012-06-24 Thread R. David Murray

New submission from R. David Murray rdmur...@bitdance.com:

I've been working on this steadily for a while.  I think it is now all working 
correctly.  At least, it passes all the same tests that the existing RFC mime 
header parser passes, plus a bunch of additional ones.

There are a couple of commented out tests where there are issues with the 
folding.  The folding doesn't normally get invoked for headers parsed from 
source, and the cases are marginal anyway (headers with invalid binary data) so 
I'm not worried about them, but will fix them after the beta.

There are things that can be done to make this API even more convenient, but I 
think this is a solid foundation worth having.  And the parser is a full RFC 
parser, so it handles cases that the current parser doesn't.  (There are also 
probably cases where it fails when the current parser doesn't, but I haven't 
found them yet ;)

--
components: email
files: mime_parsing.patch
keywords: patch
messages: 163751
nosy: barry, georg.brandl, r.david.murray
priority: normal
severity: normal
stage: commit review
status: open
title: Add support for MIME header parsing to the new provisional email policies
type: enhancement
versions: Python 3.3
Added file: http://bugs.python.org/file26126/mime_parsing.patch

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



[issue14815] random_seed uses only 32-bits of hash on Win64

2012-06-24 Thread Roundup Robot

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

New changeset 166599219bd4 by Larry Hastings in branch 'default':
Issue #14815: Use Py_ssize_t instead of long for the object hash, to
http://hg.python.org/cpython/rev/166599219bd4

--
nosy: +python-dev

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



[issue14815] random_seed uses only 32-bits of hash on Win64

2012-06-24 Thread Larry Hastings

Changes by Larry Hastings la...@hastings.org:


--
resolution:  - fixed
stage:  - commit review
status: open - closed
type:  - enhancement

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



[issue15160] Add support for MIME header parsing to the new provisional email policies

2012-06-24 Thread Roundup Robot

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

New changeset 0adccb941200 by R David Murray in branch 'default':
#15160: Extend the new email parser to handle MIME headers.
http://hg.python.org/cpython/rev/0adccb941200

--
nosy: +python-dev

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



[issue15160] Add support for MIME header parsing to the new provisional email policies

2012-06-24 Thread R. David Murray

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

Committed with release manager agreement.

--
stage: commit review - committed/rejected
status: open - closed

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



[issue15157] venvs should include pydoc

2012-06-24 Thread Roundup Robot

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

New changeset 84db4c3ce318 by Vinay Sajip in branch 'default':
Closes #15157: pydoc script added to venvs.
http://hg.python.org/cpython/rev/84db4c3ce318

--
nosy: +python-dev
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

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



[issue1767933] Badly formed XML using etree and utf-16

2012-06-24 Thread Eli Bendersky

Eli Bendersky eli...@gmail.com added the comment:

I will try to find time to review it before the fork, but since time is tight I 
don't promise.

That said, this patch falls more into the bugfix category than a new feature, 
so I think it will be OK after beta as well.

--

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



[issue14906] rotatingHandler WindowsError

2012-06-24 Thread Vinay Sajip

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

Closed for lack of evidence, please re-open when and if more information is 
available.

--
resolution:  - invalid
status: open - closed

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



[issue14815] random_seed uses only 32-bits of hash on Win64

2012-06-24 Thread Roundup Robot

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

New changeset 4445608cf434 by Larry Hastings in branch 'default':
Issue #14815: Bugfix: the PyLong fed into the seed generator must be unsigned.
http://hg.python.org/cpython/rev/4445608cf434

--

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



[issue15147] Remove packaging from the stdlib

2012-06-24 Thread Antoine Pitrou

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

 The sysconfig module was modified (and sysconfig.cfg was introduced)
 to serve the needs of the resource system (install_data putting files
 into system-configured locations and packaging.database finding them);
 one of the thousand things mentioned in the “Status of Packaging”
 thread was an opinion by PJE that this was a bad choice, and even if I
 disagree (being a Debian guy and all :), a PEP would be in order to
 decide on such a big new functionality.  Should these changes be
 reverted too?  (I’d think yes.)

What is sysconfig.cfg?

Keeping sysconfig is ok IMO.

--

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



[issue15161] add new-style os API to two missing functions

2012-06-24 Thread Georg Brandl

New submission from Georg Brandl ge...@python.org:

For pathconf() / fpathconf() and truncate() / ftruncate() the former didn't 
support fds as path.  These two patches should fix it.

--
assignee: larry
components: Extension Modules
files: pathconf.diff
keywords: patch
messages: 163760
nosy: georg.brandl, larry
priority: critical
severity: normal
status: open
title: add new-style os API to two missing functions
versions: Python 3.3
Added file: http://bugs.python.org/file26127/pathconf.diff

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



[issue15159] Add failover for follow_symlinks and effective_ids where possible

2012-06-24 Thread Antoine Pitrou

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

I don't like this idea. Normally the system calls wrapped by the os module are 
fairly atomic. Here you're introducing the possibility for potentially nasty 
race conditions and exploits.

--
nosy: +neologix

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



[issue15161] add new-style os API to two missing functions

2012-06-24 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


Added file: http://bugs.python.org/file26128/truncate.diff

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



[issue13512] ~/.pypirc created insecurely

2012-06-24 Thread Antoine Pitrou

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

I have a link to the Mageia patch:

http://svnweb.mageia.org/packages/cauldron/python/current/SOURCES/python-2.7.3-upstream-pypirc-secure.patch?revision=261722view=markup

--

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



[issue15147] Remove packaging from the stdlib

2012-06-24 Thread Tarek Ziadé

Tarek Ziadé ziade.ta...@gmail.com added the comment:

We should keep sysconfig imo

--
status: closed - open

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



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

2012-06-24 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

From 3.2, os has a function get_exec_path -- shouldn't which() use it instead 
of rolling its own query of $PATH?

--
nosy: +georg.brandl

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



[issue15102] Fix 64-bit building for buildbot scripts (issue 15102)

2012-06-24 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

All Windows buildbots are failing now:

  C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets(38,5): 
error MSB3073: The command cd 
d:\cygwin\home\db3l\buildarea\3.x.bolen-windows\build\PCbuild\ 
[d:\cygwin\home\db3l\buildarea\3.x.bolen-windows\build\PCbuild\ssl.vcxproj]
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets(38,5): 
error MSB3073: 
d:\cygwin\home\db3l\buildarea\3.x.bolen-windows\build\PCbuild\Debug\python_d.exe
 build_ssl.py Release Win32 -a 
[d:\cygwin\home\db3l\buildarea\3.x.bolen-windows\build\PCbuild\ssl.vcxproj]
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets(38,5): 
error MSB3073:  exited with code 3. 
[d:\cygwin\home\db3l\buildarea\3.x.bolen-windows\build\PCbuild\ssl.vcxproj]



Perhaps it would be possible to set HOST_PYTHON in build-amd64.bat
as a temporary measure until a more elegant solution is found?

--

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



[issue15161] add new-style os API to two missing functions

2012-06-24 Thread Roundup Robot

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

New changeset da416ff1ecf5 by Georg Brandl in branch 'default':
Closes #15161: add support for giving path as a fd for truncate() and 
pathconf().
http://hg.python.org/cpython/rev/da416ff1ecf5

--
nosy: +python-dev
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

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



[issue15159] Add failover for follow_symlinks and effective_ids where possible

2012-06-24 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

I think you're right.  As Antoine pointed out in irc, for POSIX platforms, 
modules in os are almost exclusively atomic.  This is a useful (if 
undocumented) feature from a security viewpoint, and we should not break it 
lightly.

Closing as wontfix.  If someone thinks it's salvageable and wants to resurrect 
it, please discuss here.

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

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



[issue15102] Fix 64-bit building for buildbot scripts (issue 15102)

2012-06-24 Thread Roundup Robot

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

New changeset fc84ac3e8dfc by Stefan Krah in branch 'default':
Issue #15102: Try setting HOST_PYTHON in build-amd64.bat as a temporary
http://hg.python.org/cpython/rev/fc84ac3e8dfc

--

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



[issue15102] Fix 64-bit building for buildbot scripts (issue 15102)

2012-06-24 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

I'm trying out my suggestion on the 64-bit bot. Will revert if it
doesn't work out.

--

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



[issue15133] tkinter.BooleanVar.get() behavior and docstring disagree

2012-06-24 Thread klappnase

klappnase klappn...@web.de added the comment:

The behavior of Tkinter when handling boolean values appears to be a bit 
erratic at times, not only BooleanVar.get() returns 0/1 instead of True/False 
(e.g. see the thread at tkinter-discuss: 
http://mail.python.org/pipermail/tkinter-discuss/2012-June/003176.html ). This 
is apparently because tk itself uses the strings '0' and '1' as boolean values, 
so behind the scenes Tkinter has to convert any bool into a string when setting 
a value and the string back into a bool when retrieving it, and it seems like 
most of the Tkinter code (and docstrings) was written in the good ol' days when 
Python used 0 / 1 itself.
Now when it comes to change Tkinter's behavior I'd tend to be careful. For 
example BooleanVar.get() could easily be changed to always return True/False. 
But imho this change would only make sense if you add strict input value 
checking for set() either, otherwise we just change one incoherency with 
another. But this would mean that we might end up breaking a lot of working 
code, for what seems to me a primarily aesthetic reason.

And of course, I don't see much use in isolated changes of the behavior of one 
function here and another method there. I feel that if the behavior of Tkinter 
concerning bool values was to be changed, there should at least be a thorough 
change of *any* Tkinter method that gets / sets boolean values so we at least 
end up with an overall coherent solution.
But again, this looks like quite a lot of work, will break running code and add 
no significant benefit besides a cosmetic improvement.
So my vote goes to accepting that 0 and 1 are ok boolean values in Tkinter and 
changing no more than misleading docstrings, as in this example of 
BooleanVar.get():

def get(self):
Return the value of the variable as 1 (True) or 0 (False).
return self._tk.getboolean(self._tk.globalgetvar(self._name))

--
nosy: +klappnase

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



[issue7391] Re-title the Using Backslash to Continue Statements anti-idiom

2012-06-24 Thread Pan Yongzhi

Changes by Pan Yongzhi fossi...@users.sourceforge.net:


--
nosy: +fossilet

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



[issue15102] Fix 64-bit building for buildbot scripts (issue 15102)

2012-06-24 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

Well, the path to python_d.exe looks right now, but Perl and nasm
aren't found:


C:\Users\Buildbot\buildbot.python.org\3.x.kloth-win64\build\PCbuild\amd64\python_d.exe
 build_ssl.py Release x64 -a
  
  Found a working perl at 'C:\perl\bin\perl.exe'
  'nasm' is not recognized as an internal or external command,
  operable program or batch file.
  nasm assembler has failed.



Jeremy, did you install these on your machine?

--

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



[issue15102] Fix 64-bit building for buildbot scripts (issue 15102)

2012-06-24 Thread Martin v . Löwis

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

 I'm trying out my suggestion on the 64-bit bot. Will revert if it
 doesn't work out.

Even if it does work out it should be reverted. As HOST_PYTHON is not
set, PythonExe should be computed correctly. So we really need to find
out why it isn't.

--

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



[issue15102] Fix 64-bit building for buildbot scripts (issue 15102)

2012-06-24 Thread Martin v . Löwis

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

On 24.06.2012 13:22, Stefan Krah wrote:
 
 Stefan Krah stefan-use...@bytereef.org added the comment:
 
 Well, the path to python_d.exe looks right now, but Perl and nasm
 aren't found:

perl shouldn't be necessary. Not sure why nasm is.

--

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



[issue15118] uname and other os functions should return a struct sequence instead of a tuple

2012-06-24 Thread Roundup Robot

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

New changeset 460407f35aa9 by Larry Hastings in branch 'default':
Issue #15118: Change return value of os.uname() and os.times() from
http://hg.python.org/cpython/rev/460407f35aa9

--
nosy: +python-dev

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



[issue15118] uname and other os functions should return a struct sequence instead of a tuple

2012-06-24 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

Yummy!

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

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



[issue14917] Make os.symlink on Win32 detect if target is directory

2012-06-24 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

Martin: does this sound good or bad?

--
nosy: +loewis

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



[issue14917] Make os.symlink on Win32 detect if target is directory

2012-06-24 Thread Antoine Pitrou

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

Uh. This was *removed* in a7406565ef1c :)
See issue13772.

--
nosy: +pitrou

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



[issue15061] hmac.secure_compare() leaks information about length of strings

2012-06-24 Thread Roundup Robot

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

New changeset c82451eeb595 by Christian Heimes in branch 'default':
Issue #15061: Re-implemented hmac.compare_digest() in C
http://hg.python.org/cpython/rev/c82451eeb595

--

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



[issue14917] Make os.symlink on Win32 detect if target is directory

2012-06-24 Thread Larry Hastings

Larry Hastings la...@hastings.org added the comment:

Well then!  Let's close this before the adults notice.

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

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



[issue15162] help() says This is the online help utility. even though it isn't

2012-06-24 Thread Ramchandra Apte

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

help() says This is the online help utility. even though it isn't.
I think this sentence should be hanged to This is the offline help utility.

--
components: Library (Lib)
messages: 163782
nosy: ramchandra.apte
priority: normal
severity: normal
status: open
title: help() says This is the online help utility. even though it isn't
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4

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



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

2012-06-24 Thread Barry Alan Scott

Barry Alan Scott barry-sc...@users.sourceforge.net added the comment:

I'm happy to review patches or create them for you.

I see a related set of errors on Mac OS X that are down to issues in 
bytes_methods.py that mirror the pyport.h issues.

In C++ isspace and friends are functions not macros.
You cannot go around defining them.

Here are the lines in python2.7 that cause compilation errors for me.

/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/bytes_methods.h:#undef
 isspace
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/bytes_methods.h:#define
 isspace(c) undefined_isspace(c)

--
nosy: +barry-scott

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



[issue15061] hmac.secure_compare() leaks information about length of strings

2012-06-24 Thread Christian Heimes

Christian Heimes li...@cheimes.de added the comment:

Thanks to all for your input and assistance!

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

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



[issue15162] help() says This is the online help utility. even though it isn't

2012-06-24 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Not sure offline is more true here; maybe integrated is better.

Also not sure the sentence deserves the death penalty.

--
nosy: +georg.brandl

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



[issue15162] help() says This is the online help utility. even though it isn't

2012-06-24 Thread Antoine Pitrou

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

interactive then?

--
nosy: +pitrou

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



[issue15102] Fix 64-bit building for buildbot scripts (issue 15102)

2012-06-24 Thread Jeremy Kloth

Jeremy Kloth jeremy.kl...@gmail.com added the comment:

 Hmm, obviously Perl *is* found. That leaves nasm.

nasm.exe was installed for myself (hence testing worked).  I've now
made it available to the buildbot account as well.

Note that I have Perl installed but *not* on my PATH (on purpose).
The patch supplied in issue15052 will fix the issue brought out by
that circumstance.

--

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



[issue15163] pydoc displays __loader__ as module data

2012-06-24 Thread Antoine Pitrou

New submission from Antoine Pitrou pit...@free.fr:

Everything's in the title. __loader__ probably needs to be blacklisted.

--
components: Library (Lib)
messages: 163788
nosy: brett.cannon, eric.snow, pitrou
priority: low
severity: normal
stage: needs patch
status: open
title: pydoc displays __loader__ as module data
type: behavior
versions: Python 3.3

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



[issue15102] Fix 64-bit building for buildbot scripts (issue 15102)

2012-06-24 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

Jeremy Kloth rep...@bugs.python.org wrote:
 nasm.exe was installed for myself (hence testing worked).  I've now
 made it available to the buildbot account as well.
 
 Note that I have Perl installed but *not* on my PATH (on purpose).
 The patch supplied in issue15052 will fix the issue brought out by
 that circumstance.

Thanks. The Perl situation looks OK since the buildbot has proceeded to
the testing stage in the last build.

--

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



[issue15156] Refactor HTMLParser.unescape to use html.entities.html5

2012-06-24 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

Here's a patch, please review.

--
keywords: +patch
stage: needs patch - patch review
Added file: http://bugs.python.org/file26129/issue15156.diff

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



[issue15016] Add special case for latin messages in email.mime.text

2012-06-24 Thread R. David Murray

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

Well, the original change to using utf-8 by default was considered a bug fix.  
But I suppose you are right that this goes beyond that into enhancement 
territory.  In which case we could wait for an enhancement to the C API to base 
it on, for which we'd need to open a new issue.

On the other hand, the email package already uses the encode to see if we have 
ascii trick elsewhere (though on smaller strings), and the ascii codec is the 
fastest codec, with latin-1 only slightly slower.

The critical difference here, though, is that we end up doing two encoding 
passes, once to test it and a second time to actually create the message body.  
The same is true of the ascii case.  It should be possible to fix this, by 
using the encoded string in generating the _payload, short circuiting the 
set_payload mechanism.  That's a somewhat ugly hack, necessitated because of 
the incomplete conversion of email to a unicode-centric design.  I'm working on 
that :)

So, again, we may be waiting on other enhancements, in this case in the email 
package, to do this fix right.  But it would be worth figuring out *how* to 
do it, so that we know what kind of (internal?) API enhancements we want in 
order to serve this kind of use case.

--

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



[issue15102] Fix 64-bit building for buildbot scripts (issue 15102)

2012-06-24 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

Jeremy, your python-dev suggestion to move x64.props before pyproject.props
does not work for me. For instance, in python3dll.vcxproj:

 C:\Program Files 
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets(38,5): error 
MSB3073: The comma 
nd cd C:\Users\stefan\pydev\cpython\PCbuild\\..\PC 
[C:\Users\stefan\pydev\cpython\PCbuild\python3dll.vcxproj] 
C:\Program Files 
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets(38,5): error 
MSB3073: nmake /f py 
thon3.mak MACHINE=x64 OutDir=C:\Users\stefan\pydev\cpython\PCbuild\x64-pgo\ 
exited with code 9009. [C:\Users\ 
stefan\pydev\cpython\PCbuild\python3dll.vcxproj]

--

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



[issue15152] test_subprocess fqailures on awfully slow builtbots

2012-06-24 Thread R. David Murray

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

You could make the test a loop, with the timeout increasing each time through 
the loop, failing only if all tries fail.  That way on faster machines the test 
will pass faster.  It'll take even longer on slow machines, but they are slow 
anyway so that may be acceptable.

--
nosy: +r.david.murray

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



[issue12268] file readline, readlines readall methods can lose data on EINTR

2012-06-24 Thread Antoine Pitrou

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

For the record, there was a crash on the ARM buildbot:


[196/368/1] test_io
Timeout (1:00:00)!
Thread 0x2aac5300:
  File 
/var/lib/buildbot/buildarea/3.x.warsaw-ubuntu-arm/build/Lib/test/test_io.py, 
line 3051 in check_interrupted_write_retry
  File 
/var/lib/buildbot/buildarea/3.x.warsaw-ubuntu-arm/build/Lib/test/test_io.py, 
line 3073 in test_interrupted_write_retry_text
  File 
/var/lib/buildbot/buildarea/3.x.warsaw-ubuntu-arm/build/Lib/unittest/case.py, 
line 385 in _executeTestPart
  File 
/var/lib/buildbot/buildarea/3.x.warsaw-ubuntu-arm/build/Lib/unittest/case.py, 
line 440 in run
  File 
/var/lib/buildbot/buildarea/3.x.warsaw-ubuntu-arm/build/Lib/unittest/case.py, 
line 492 in __call__
  File 
/var/lib/buildbot/buildarea/3.x.warsaw-ubuntu-arm/build/Lib/unittest/suite.py,
 line 105 in run
  File 
/var/lib/buildbot/buildarea/3.x.warsaw-ubuntu-arm/build/Lib/unittest/suite.py,
 line 67 in __call__
  File 
/var/lib/buildbot/buildarea/3.x.warsaw-ubuntu-arm/build/Lib/unittest/suite.py,
 line 105 in run
  File 
/var/lib/buildbot/buildarea/3.x.warsaw-ubuntu-arm/build/Lib/unittest/suite.py,
 line 67 in __call__
  File 
/var/lib/buildbot/buildarea/3.x.warsaw-ubuntu-arm/build/Lib/unittest/runner.py,
 line 168 in run
  File 
/var/lib/buildbot/buildarea/3.x.warsaw-ubuntu-arm/build/Lib/test/support.py, 
line 1383 in _run_suite
  File 
/var/lib/buildbot/buildarea/3.x.warsaw-ubuntu-arm/build/Lib/test/support.py, 
line 1417 in run_unittest
  File 
/var/lib/buildbot/buildarea/3.x.warsaw-ubuntu-arm/build/Lib/test/test_io.py, 
line 3121 in test_main
  File 
/var/lib/buildbot/buildarea/3.x.warsaw-ubuntu-arm/build/Lib/test/regrtest.py, 
line 1194 in runtest_inner
  File 
/var/lib/buildbot/buildarea/3.x.warsaw-ubuntu-arm/build/Lib/test/regrtest.py, 
line 905 in runtest
  File 
/var/lib/buildbot/buildarea/3.x.warsaw-ubuntu-arm/build/Lib/test/regrtest.py, 
line 708 in main
  File 
/var/lib/buildbot/buildarea/3.x.warsaw-ubuntu-arm/build/Lib/test/__main__.py, 
line 13 in module
  File /var/lib/buildbot/buildarea/3.x.warsaw-ubuntu-arm/build/Lib/runpy.py, 
line 75 in _run_code
  File /var/lib/buildbot/buildarea/3.x.warsaw-ubuntu-arm/build/Lib/runpy.py, 
line 162 in _run_module_as_main
make: *** [buildbottest] Error 1

--

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



[issue15162] help() says This is the online help utility. even though it isn't

2012-06-24 Thread R. David Murray

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

Oh you youngsters.  Offline doesn't mean not on the Internet, it means not 
on a computer :)

Yes, interactive would be clearer.

--
nosy: +r.david.murray

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



[issue15162] help() says This is the online help utility. even though it isn't

2012-06-24 Thread Roundup Robot

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

New changeset 1ff29f3b8da7 by Georg Brandl in branch 'default':
Closes #15162: the meaning of online has shifted a bit in recent years, use 
interactive instead.
http://hg.python.org/cpython/rev/1ff29f3b8da7

--
nosy: +python-dev
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

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



[issue14578] importlib doesn't check Windows registry for paths

2012-06-24 Thread Brett Cannon

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

Yes, it should be tackled soon, but I lack Windows access so I can't do the 
work myself. Basically no one seems to use or care about this feature so it 
might die on the vine if someone doesn't step forward.

--

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



[issue13959] Re-implement parts of imp in pure Python

2012-06-24 Thread Brett Cannon

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

Sorry, been on vacation the past week.

Georg is right, nothing left is a b1 blocker, just stuff I want to get in 
before 3.3 ships.

--

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



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

2012-06-24 Thread Alexander Belopolsky

Alexander Belopolsky alexander.belopol...@gmail.com added the comment:

I don't think the Windows example in the reST documentation is correct:


   print(shutil.which(python))
  'c:\\python33\\python.exe'

It should be either

   shutil.which(python)
  'c:\\python33\\python.exe'

or

   print(shutil.which(python))
  c:\python33\python.exe

--
nosy: +belopolsky

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



[issue15056] Have imp.cache_from_source() raise NotImplementedError when cache tag not available

2012-06-24 Thread Brett Cannon

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

Thanks for the patch, Pranav. I'm probably going to be too busy for a couple of 
weeks, so I won't look at this immediately, but I wanted to let you know I will 
eventually get to it.

--

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



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

2012-06-24 Thread Roundup Robot

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

New changeset 84b48551cd13 by Georg Brandl in branch 'default':
#444582: fix example and rewrap docs a bit.
http://hg.python.org/cpython/rev/84b48551cd13

--

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



[issue415492] Compiler generates relative filenames

2012-06-24 Thread Brett Cannon

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

So co_filename is absolute in Python 3.3, but __file__ on modules is not if a 
relative path is used from sys.path (as Nick pointed out). Changing this would 
possibly break code as this has been baked into the import system for quite 
some time. I think Nick as suggested making all paths absolute for __file__, 
but I can't remember where that discussion was held and why we never changed 
the semantics.

Regardless, __file__ being absolute is a different issue than co_filename, so 
I'm closing this at out of date.

--
resolution:  - out of date
status: open - closed

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



[issue14657] Avoid two importlib copies

2012-06-24 Thread Brett Cannon

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

Do people feel the need to change the importlib tests to run against both the 
frozen code and importlib/_bootstrap.py? If so either the test_warnings 
approach (or a new one using class decorators or something) should be used to 
run the tests twice.

--

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



[issue15102] Fix 64-bit building for buildbot scripts (issue 15102)

2012-06-24 Thread Antoine Pitrou

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

Ouch. The test failures on the buildbot now seem to point to problems with 
OpenSSL's SHA1 implementation.

Jeremy, perhaps you can try to run the OpenSSL self-tests?

--

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



[issue15102] Fix 64-bit building for buildbot scripts (issue 15102)

2012-06-24 Thread Martin v . Löwis

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

Stefan: I think that's acceptable. Perhaps someone will come up with a better 
solution; if this works, it's good enough for me.

--

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



[issue15102] Fix 64-bit building for buildbot scripts (issue 15102)

2012-06-24 Thread Roundup Robot

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

New changeset f12a2f2c93e5 by Stefan Krah in branch 'default':
Issue #15102: Fix paths of python executables.
http://hg.python.org/cpython/rev/f12a2f2c93e5

--

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



[issue7897] Support parametrized tests in unittest

2012-06-24 Thread Éric Araujo

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

I like test_email’s decorator.  It looks like 
https://github.com/wolever/nose-parameterized which I’m using.   (The 
implementation and generation of test method names may be less nice than what 
was discussed here, but the API (decorator + list of arguments) is something I 
like (much better than nose’s built-in parametrization).

--
versions: +Python 3.4 -Python 3.3

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



[issue15164] add platform.uname() namedtuple interface?

2012-06-24 Thread Georg Brandl

New submission from Georg Brandl ge...@python.org:

Followup to #15118.

See rev 75b818d7c50d -- the patch converted a usage of platform.uname(), which 
errored out on Mac.

Since os.uname() is supposed to be the low-level interface, it suggests that 
platform.uname() should also return an attribute-rich object; in this case 
probably a namedtuple.

--
assignee: larry
components: Library (Lib)
messages: 163810
nosy: georg.brandl, larry
priority: deferred blocker
severity: normal
status: open
title: add platform.uname() namedtuple interface?
versions: Python 3.3

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



  1   2   3   >