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

2012-06-24 Thread Hynek Schlawack

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

___
___
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  added the comment:

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

--

___
Python tracker 

___
___
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  added the comment:

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

--

___
Python tracker 

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

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

___
___
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  added the comment:

Any chance to commit the patch before final feature freeze?

--

___
Python tracker 

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

___
___
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  added the comment:

Any chance to commit the patch before final feature freeze?

--

___
Python tracker 

___
___
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  added the comment:

sysonfig.cfg removed in e989e7586da6.

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



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

2012-06-24 Thread Hynek Schlawack

Changes by Hynek Schlawack :


--
versions: +Python 3.4 -Python 3.3

___
Python tracker 

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


--
nosy:  -hynek

___
Python tracker 

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


--
nosy:  -hynek

___
Python tracker 

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


--
nosy:  -hynek

___
Python tracker 

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


--
nosy:  -hynek

___
Python tracker 

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

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

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

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

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


--
nosy: +hynek

___
Python tracker 

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

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 

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

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


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

___
Python tracker 

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

___
___
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  added the comment:

Committed with release manager agreement.

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

___
Python tracker 

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



[issue15157] venvs should include pydoc

2012-06-24 Thread Roundup Robot

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

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

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

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

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

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

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 

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

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


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

___
Python tracker 

___
___
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  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=261722&view=markup

--

___
Python tracker 

___
___
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é  added the comment:

We should keep sysconfig imo

--
status: closed -> open

___
Python tracker 

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

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

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

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

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

___
___
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  added the comment:

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

--

___
Python tracker 

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

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


--
nosy: +fossilet

___
Python tracker 

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

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

___
___
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  added the comment:

On 24.06.2012 13:22, Stefan Krah wrote:
> 
> Stefan Krah  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 

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

___
___
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  added the comment:

Yummy!

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

___
Python tracker 

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



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

2012-06-24 Thread Stefan Krah

Stefan Krah  added the comment:

Martin v. L??wis  wrote:
> 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.

Yes, of course. It's meant as a temporary measure to work out things like
the missing nasm and hopefully get a functioning bot before the beta.

--

___
Python tracker 

___
___
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  added the comment:

Martin: does this sound good or bad?

--
nosy: +loewis

___
Python tracker 

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

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

--

___
Python tracker 

___
___
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  added the comment:

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

--
nosy: +pitrou

___
Python tracker 

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

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

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

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 

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

___
___
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  added the comment:

Thanks to all for your input and assistance!

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

___
Python tracker 

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



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

2012-06-24 Thread Georg Brandl

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

___
___
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  added the comment:

"interactive" then?

--
nosy: +pitrou

___
Python tracker 

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

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

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 

___
___
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  added the comment:

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

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

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

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

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

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

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

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

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

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

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

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

___
___
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 Brian Curtin

Brian Curtin  added the comment:

I will take a look at it shortly...was too busy with installer/path issues and 
then PEP 397 last week.

--

___
Python tracker 

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

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

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

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

___
___
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  added the comment:

outdir.diff contains a solution that doesn't rely on HOST_PYTHON.
Works for both x64 and Win32.

Note that I've edited the files using Vim. -- I'm not sure if one can
even select Condition="'$(Platform)'=='Win32'" using Visual Studio.

--
Added file: http://bugs.python.org/file26130/outdir.diff

___
Python tracker 

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

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

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

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

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 

___
___
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  added the comment:

Patch updated after the review.

--
Added file: http://bugs.python.org/file26131/issue15156-2.diff

___
Python tracker 

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



[issue11728] mbox parser incorrect behaviour

2012-06-24 Thread Petri Lehtinen

Petri Lehtinen  added the comment:

It seems to me that "^From " is the correct way to match the start of each  
message. This is also what the qmail manual page (linked in the previous 
message) says. So closing as invalid.

--
nosy: +petri.lehtinen
resolution:  -> invalid
stage: test needed -> committed/rejected
status: open -> closed

___
Python tracker 

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



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

2012-06-24 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

This issue is currently marked as a bugfix for current releases also. Since the 
proposal seems to be to introduce a new flag, should it be re-classified as 
enhancement (for 3.4)?

--

___
Python tracker 

___
___
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  added the comment:

New changeset 9cf4dc975a32 by Éric Araujo in branch 'default':
Restore test that was using pysetup and can now (#15157) use pydoc
http://hg.python.org/cpython/rev/9cf4dc975a32

--

___
Python tracker 

___
___
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 Éric Araujo

Éric Araujo  added the comment:

Great to get this for 3.3, thanks!

--

___
Python tracker 

___
___
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  added the comment:

And I see that doko has applied the same patch for Debian and derivatives: 
http://patch-tracker.debian.org/patch/series/view/python2.7/2.7.3~rc2-2.1/pypirc-secure.diff
  Will commit today.

Release managers: there are CVE and ocert numbers for this; do we take that as 
indication that it should be fixed in security releases too or do we stand by 
our own assessment?

--
priority: normal -> high

___
Python tracker 

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



[issue4473] POP3 missing support for starttls

2012-06-24 Thread Lorenzo M. Catucci

Changes by Lorenzo M. Catucci :


Removed file: http://bugs.python.org/file12188/poplib_03_SSL_refactor.diff

___
Python tracker 

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



[issue4473] POP3 missing support for starttls

2012-06-24 Thread Lorenzo M. Catucci

Changes by Lorenzo M. Catucci :


Removed file: http://bugs.python.org/file12172/poplib.rst.patch

___
Python tracker 

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



[issue4473] POP3 missing support for starttls

2012-06-24 Thread Lorenzo M. Catucci

Changes by Lorenzo M. Catucci :


Removed file: http://bugs.python.org/file12187/poplib_02_sock_shutdown.diff

___
Python tracker 

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



[issue4473] POP3 missing support for starttls

2012-06-24 Thread Lorenzo M. Catucci

Changes by Lorenzo M. Catucci :


Removed file: http://bugs.python.org/file12189/poplib_04_STLS.diff

___
Python tracker 

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



[issue4473] POP3 missing support for starttls

2012-06-24 Thread Lorenzo M. Catucci

Changes by Lorenzo M. Catucci :


Added file: http://bugs.python.org/file26132/poplib_01_socket_shutdown.diff

___
Python tracker 

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



[issue4473] POP3 missing support for starttls

2012-06-24 Thread Lorenzo M. Catucci

Changes by Lorenzo M. Catucci :


Added file: http://bugs.python.org/file26134/poplib_03_starttls.diff

___
Python tracker 

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



[issue4473] POP3 missing support for starttls

2012-06-24 Thread Lorenzo M. Catucci

Changes by Lorenzo M. Catucci :


Removed file: http://bugs.python.org/file12192/poplib_01_CAPA.diff

___
Python tracker 

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



[issue4473] POP3 missing support for starttls

2012-06-24 Thread Lorenzo M. Catucci

Changes by Lorenzo M. Catucci :


Removed file: http://bugs.python.org/file12965/test_popnet.py

___
Python tracker 

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



[issue4473] POP3 missing support for starttls

2012-06-24 Thread Lorenzo M. Catucci

Changes by Lorenzo M. Catucci :


Removed file: http://bugs.python.org/file12966/test_popnet.py

___
Python tracker 

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



[issue4473] POP3 missing support for starttls

2012-06-24 Thread Lorenzo M. Catucci

Changes by Lorenzo M. Catucci :


Added file: http://bugs.python.org/file26133/poplib_02_server_capabilities.diff

___
Python tracker 

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



[issue4473] POP3 missing support for starttls

2012-06-24 Thread Lorenzo M. Catucci

Lorenzo M. Catucci  added the comment:

I've refreshed the patches to apply on 3.3, and adapted the to the
unit-test framework by giampaolo.rodola.

--

___
Python tracker 

___
___
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  added the comment:

> What is sysconfig.cfg?
A file containing the install schemes for packaging (not for distutils, these 
are still in distutils.commands.install) and the categories for data files, to 
allow installation to various directories for scripts, doc, etc (cf. FHS).  The 
idea AFAICT was to allow OS-level customization of the install paths with a 
config file instead of code patches.  There are already complaints about the 
sysconfig module API, so I wanted to avoid locking us into this new 
sysconfig.cfg file format without a longer discussion:
- is this file needed for built-from-source Pythons installed in e.g. 
/usr/local?
- should it apply to distributions installed using non-OS packaging tools with 
the OS Python?
- does it remove the need for the --layout=deb gross patch that you can see for 
example in Debian and derivatives? (i.e. a layout used to build Python projects 
in a debian/tmp/usr subdirectory of the source package, before using non-Python 
packaging tools to move these files to the right location)

These are the kind of questions from the top of my head which I think haven’t 
been hashed out.  Or maybe it’s perfectly clear between Tarek and the few OS 
packagers that discussed this matter but there is no documentation of that.  As 
the only client of the sysconfig.cfg file was packaging, I think the safe thing 
to do is to not add it in 3.3 and make it a part of the discussions for 3.4 
(i.e. may need a PEP).

--

___
Python tracker 

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



  1   2   3   >