[issue14572] 2.7.3: sqlite module does not build on centos 5 and Mac OS X 10.4

2012-05-19 Thread Marc Abramowitz

Marc Abramowitz  added the comment:

OK, here's a patch for configure.ac which seems to fix this problem -- if folks 
could review and test it that would be great.

--
keywords: +patch
Added file: http://bugs.python.org/file25634/sqlite3_int64.patch

___
Python tracker 

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



[issue14721] httplib doesn't specify content-length header for POST requests without data

2012-05-19 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

The rule for content-length seems, if there is a body for a request, even if 
the body is "" ( empty body), then you should send the Content-Length.

The mistake in the Python httplib was, the set_content_length was called with 
this condition.

if body and ('content-length' not in header_names):

If the body was '', this was skipped. The default for GET and methods which do 
not use body was body=None and that was statement for correct in those cases.

A simple fix which covers the applicable methods and follows the definition of 
content-length seems to me like this:

-if body and ('content-length' not in header_names):
+if body is not None and 'content-length' not in header_names:

I prefer this rather than checking for methods explicitly as it could go into 
unnecessary details. (Things like if you are not sending a body why are you 
sending a Content-Length?. This fails the definition of Content-Length itself). 
The Patch is fine, I would adopt that for the above check and commit it all the 
active versions.

Thanks Arve Knudsen, for the bug report and the patch.

--

___
Python tracker 

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



[issue14854] faulthandler: segfault with "SystemError: null argument to internal routine"

2012-05-19 Thread Zbyszek Jędrzejewski-Szmek

New submission from Zbyszek Jędrzejewski-Szmek :

Simply running './python -X faulthandler' in the source directory gives me this:

% ./python -X faulthandler
Fatal Python error: Py_Initialize: can't initialize faulthandler
SystemError: null argument to internal routine
[1]25118 abort (core dumped)  ./python -X faulthandler

% gdb ./python core
Core was generated by `./python -X faulthandler'.
Program terminated with signal 6, Aborted.
#0  0x7f52d7ff9475 in *__GI_raise (sig=)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64  ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x7f52d7ff9475 in *__GI_raise (sig=)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x7f52d7ffc6f0 in *__GI_abort () at abort.c:92
#2  0x004bc984 in Py_FatalError (msg=0x5b3750 "Py_Initialize: can't 
initialize faulthandler")
at Python/pythonrun.c:2283
#3  0x004b85ed in Py_InitializeEx (install_sigs=1) at 
Python/pythonrun.c:361
#4  0x004b86ea in Py_Initialize () at Python/pythonrun.c:398
#5  0x004d55a6 in Py_Main (argc=3, argv=0x1b8f010) at Modules/main.c:624
#6  0x0041b120 in main (argc=3, argv=0x7fffc1ebb558) at 
./Modules/python.c:65
(gdb) 
#0  0x7f52d7ff9475 in *__GI_raise (sig=)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x7f52d7ffc6f0 in *__GI_abort () at abort.c:92
#2  0x004bc984 in Py_FatalError (msg=0x5b3750 "Py_Initialize: can't 
initialize faulthandler")
at Python/pythonrun.c:2283
#3  0x004b85ed in Py_InitializeEx (install_sigs=1) at 
Python/pythonrun.c:361
#4  0x004b86ea in Py_Initialize () at Python/pythonrun.c:398
#5  0x004d55a6 in Py_Main (argc=3, argv=0x1b8f010) at Modules/main.c:624
#6  0x0041b120 in main (argc=3, argv=0x7fffc1ebb558) at 
./Modules/python.c:65

--
messages: 161097
nosy: haypo, zbysz
priority: normal
severity: normal
status: open
title: faulthandler: segfault with "SystemError: null argument to internal 
routine"

___
Python tracker 

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



[issue14721] httplib doesn't specify content-length header for POST requests without data

2012-05-19 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 57f1d13c2cd4 by Senthil Kumaran in branch '2.7':
Fix Issue14721: Send Content-length: 0 for empty body () in the http.request
http://hg.python.org/cpython/rev/57f1d13c2cd4

New changeset 6da1ab5f777d by Senthil Kumaran in branch '3.2':
Fix Issue14721: Send Content-length: 0 for empty body () in the http.client 
requests
http://hg.python.org/cpython/rev/6da1ab5f777d

New changeset 732d70746fc0 by Senthil Kumaran in branch 'default':
merge - Fix Issue14721: Send Content-length: 0 for empty body () in the 
http.client requests
http://hg.python.org/cpython/rev/732d70746fc0

--
nosy: +python-dev

___
Python tracker 

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



[issue14721] httplib doesn't specify content-length header for POST requests without data

2012-05-19 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

This is fixed in all the branches. Thanks!

--
assignee:  -> orsenthil
resolution:  -> fixed
stage: needs patch -> 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



[issue14624] Faster utf-16 decoder

2012-05-19 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

Thank you, Antoine. Now only issue14625 waits for review.

> changeset:   77012:3430d7329a3b
> +* UTF-8 and UTF-16 decoding is now 2x to 4x faster.

In fact now UTF-16 decoding faster for a maximum of +25% compared to Python 3.2 
on my computers (and sometimes a little slower yet). 2x to 4x it is faster 
compared to former slow-downed Python 3.3 (thanks to PEP 393).

--

___
Python tracker 

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



[issue14854] faulthandler: fatal error with "SystemError: null argument to internal routine"

2012-05-19 Thread Zbyszek Jędrzejewski-Szmek

Changes by Zbyszek Jędrzejewski-Szmek :


--
title: faulthandler: segfault with "SystemError: null argument to internal 
routine" -> faulthandler: fatal error with "SystemError: null argument to 
internal routine"

___
Python tracker 

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



[issue14855] IPv6 support for logging.handlers

2012-05-19 Thread Yuriy Syrovetskiy

New submission from Yuriy Syrovetskiy :

IPv4 operations may fail on IPv6 systems, and vice versa. So we have to create 
sockets with the proper address family.

Maybe this behaviour could be incapsulated in socket object, but didn't find a 
good way to do it.

No documentation changed, because I just eliminate lack of implementation of 
already documented feature.

Please help to write tests.

I worked on the 3.2 branch, because the default branch has broken test_logging.

--
components: Library (Lib)
files: mywork.patch
keywords: patch
messages: 161101
nosy: cblp, vinay.sajip
priority: normal
severity: normal
status: open
title: IPv6 support for logging.handlers
type: enhancement
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file25635/mywork.patch

___
Python tracker 

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



[issue14855] IPv6 support for logging.handlers

2012-05-19 Thread Yuriy Syrovetskiy

Yuriy Syrovetskiy  added the comment:

More correct description: IPv4 operations may fail on IPv6 systems, and vice 
versa; so we have to detect the proper address family before creating a socket.

--

___
Python tracker 

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



[issue14855] IPv6 support for logging.handlers

2012-05-19 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

For TCP, socket.create_connection() is your friend. For UDP I'm not sure, but 
adding a helper to the socket module might also be a good idea.

--
nosy: +gregory.p.smith, pitrou
versions:  -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.4

___
Python tracker 

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



[issue14855] IPv6 support for logging.handlers

2012-05-19 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

The Linux getaddrinfo() man page has an UDP client example which uses connect() 
to decide whether the target address is valid or not.

--

___
Python tracker 

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



[issue14472] .gitignore is outdated

2012-05-19 Thread Petri Lehtinen

Petri Lehtinen  added the comment:

Against which branch or Python version your patch is? It doesn't apply cleanly 
on any branch (and yes, I changed the target filename to .gitignore first).

--

___
Python tracker 

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



[issue14855] IPv6 support for logging.handlers

2012-05-19 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

Apparently, connecting the socket is better because some systems (BSDs in 
particular) only report ICMP errors to connected UDP sockets. The Linux man 
page claims that this reporting is necessary regardless of whether the socket 
is connected.

I wonder what will happen under this patch if the server has both v4 and v6 
connectivity, and the client supports v6, but has no connectivity (other than, 
say, on the local link).

--
nosy: +loewis

___
Python tracker 

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



[issue13210] Support Visual Studio 2010

2012-05-19 Thread Kristján Valur Jónsson

Kristján Valur Jónsson  added the comment:

Ok, I find no way to override the linker so that it does not search the current 
directory first.
I think it is best, and probably in the spirit of visual studio, to use the 
"reference" part of a project to facilitate linking between dependency 
projects.  it is designed to take the hassle out of libraries and search paths. 
 I will add references where they are missing.

--

___
Python tracker 

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



[issue13210] Support Visual Studio 2010

2012-05-19 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

> I think it is best, and probably in the spirit of visual studio, to  
> use the "reference" part of a project to facilitate linking between  
> dependency projects.  it is designed to take the hassle out of  
> libraries and search paths.  I will add references where they are  
> missing.

Sounds good to me.

--

___
Python tracker 

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



[issue14845] list() != []

2012-05-19 Thread Chris Rebert

Changes by Chris Rebert :


--
nosy: +cvrebert

___
Python tracker 

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



[issue13210] Support Visual Studio 2010

2012-05-19 Thread Kristján Valur Jónsson

Kristján Valur Jónsson  added the comment:

Here is an updated patch, with proper project references added and some slight 
cleanup of .props files.

--
Added file: http://bugs.python.org/file25636/pcbuildpatch.patch

___
Python tracker 

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



[issue13152] textwrap: support custom tabsize

2012-05-19 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset d38e821c1b80 by Hynek Schlawack in branch 'default':
#13152: Allow to specify a custom tabsize for expanding tabs in textwrap
http://hg.python.org/cpython/rev/d38e821c1b80

--
nosy: +python-dev

___
Python tracker 

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



[issue13152] textwrap: support custom tabsize

2012-05-19 Thread Hynek Schlawack

Hynek Schlawack  added the comment:

I've added it myself and committed your code – thank you for your contribution 
John!

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



[issue14856] argparse: creating an already defined subparsers does not raises an exception

2012-05-19 Thread Étienne Buira

New submission from Étienne Buira :

With this patch, it raises an ArgumentException, instead of overwriting 
previous subparser without notice.

Regards.

--
components: Library (Lib)
files: argparse_no_dup_subparsers.diff
keywords: patch
messages: 161112
nosy: eacb
priority: normal
severity: normal
status: open
title: argparse: creating an already defined subparsers does not raises an 
exception
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file25637/argparse_no_dup_subparsers.diff

___
Python tracker 

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



[issue11647] function decorated with a context manager can only be invoked once

2012-05-19 Thread Nick Coghlan

Nick Coghlan  added the comment:

I'm closing this *without* converting ContextDecorator._recreate_cm() to a 
public method (although I'm also attaching the patch that would have done 
exactly that).

My rationale for doing so is that I *still* consider making 
_GeneratorContextManager a subclass of ContextDecorator a design error on my 
part. Converting the existing _recreate_cm() hook to a public refesh_cm() 
method would be actively endorsing that mistake and encouraging others to 
repeat it.

If anyone else wants to pursue this, create a new issue and be prepared to be 
very persuasive. After all, the current module maintainer just rejected his own 
implementation of the feature :)

--
resolution:  -> fixed
status: open -> closed
Added file: http://bugs.python.org/file25638/issue11647_refresh_cm.diff

___
Python tracker 

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



[issue14854] faulthandler: fatal error with "SystemError: null argument to internal routine"

2012-05-19 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Here is a patch:


$ hg di
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -356,15 +356,15 @@ Py_InitializeEx(int install_sigs)
 
 _PyImportHooks_Init();
 
-/* initialize the faulthandler module */
-if (_PyFaulthandler_Init())
-Py_FatalError("Py_Initialize: can't initialize faulthandler");
-
 /* Initialize _warnings. */
 _PyWarnings_Init();
 
 import_init(interp, sysmod);
 
+/* initialize the faulthandler module */
+if (_PyFaulthandler_Init())
+Py_FatalError("Py_Initialize: can't initialize faulthandler");
+
 _PyTime_Init();
 
 if (initfsencoding(interp) < 0)

--
nosy: +pitrou

___
Python tracker 

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



[issue14847] AttributeError: NoneType has no attribute 'utf_8_decode'

2012-05-19 Thread Daniel Swanson

Daniel Swanson  added the comment:

I attempted to reproduce the error. I didn't, all I got was
'str' object has no attribute 'decode'
here is the whole test.

Python 3.2.2 (default, Sep  4 2011, 09:51:08) [MSC v.1500 32 bit (Intel)] on 
win32
Type "copyright", "credits" or "license()" for more information.
>>> b''.decode('utf-8')
''
>>> ''.decode('utf-8')
Traceback (most recent call last):
  File "", line 1, in 
''.decode('utf-8')
AttributeError: 'str' object has no attribute 'decode'
>>> b'x'.decode('utf-8')
'x'
>>> 

Appearently, this error does not apply to Python 3.2.2.

--
nosy: +weirdink13

___
Python tracker 

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



[issue14702] os.makedirs breaks under autofs directories

2012-05-19 Thread Charles-François Natali

Charles-François Natali  added the comment:

> I see no evidence that this is a bug in Linux,

"""
stat("/net/prodigy", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
mkdir("/net/prodigy/tmp", 0777) = -1 EACCES (Permission denied)
"""

As you can see, a stat() is already done on /net/prodigy.
Event if it wasn't done, calling mkdir() ought to trigger the mount.
So this is *definitely* as bug in autofs.

> and I think it's ridiculous to close it when a trivial one-line fix is 
> available.

Which one-line fix do you propose?

> I won't reopen it because it's obvious no one wants to address this. :(

It's not that we don't want to address this, but rather that we want
to avoid introducing hacks to work around OS bugs.

--

___
Python tracker 

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



[issue14072] urlparse on tel: URI-s misses the scheme in some cases

2012-05-19 Thread Ezio Melotti

Ezio Melotti  added the comment:

According to RFC 1808 [0], the netloc must follow "//", so this doesn't seem to 
apply to 'tel' URIs.

[0]: http://tools.ietf.org/html/rfc1808.html#section-2.1

--

___
Python tracker 

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



[issue14702] os.makedirs breaks under autofs directories

2012-05-19 Thread Hynek Schlawack

Hynek Schlawack  added the comment:

> """
> stat("/net/prodigy", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
> mkdir("/net/prodigy/tmp", 0777) = -1 EACCES (Permission denied)
> """
> 
> As you can see, a stat() is already done on /net/prodigy.

To be fair, that shouldn’t trigger a mount. Otherwise a `ls -l` on /net
would mount all volumes.

> Event if it wasn't done, calling mkdir() ought to trigger the mount.

I’m not sure if/where the behavior is defined – let’s what the Linux
people say.

--

___
Python tracker 

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



[issue14072] urlparse on tel: URI-s misses the scheme in some cases

2012-05-19 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset ff0fd7b26219 by Ezio Melotti in branch '2.7':
#14072: Fix parsing of tel URIs in urlparse by making the check for ports 
stricter.
http://hg.python.org/cpython/rev/ff0fd7b26219

New changeset 9f6b7576c08c by Ezio Melotti in branch '3.2':
#14072: Fix parsing of tel URIs in urlparse by making the check for ports 
stricter.
http://hg.python.org/cpython/rev/9f6b7576c08c

New changeset b78c67665a7f by Ezio Melotti in branch 'default':
#14072: merge with 3.2.
http://hg.python.org/cpython/rev/b78c67665a7f

--
nosy: +python-dev

___
Python tracker 

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



[issue14702] os.makedirs breaks under autofs directories

2012-05-19 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

>> """
>> stat("/net/prodigy", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
>> mkdir("/net/prodigy/tmp", 0777) = -1 EACCES (Permission denied)
>> """
>>
>> As you can see, a stat() is already done on /net/prodigy.
>
> To be fair, that shouldn’t trigger a mount. Otherwise a `ls -l` on /net
> would mount all volumes.

Not sure what "that" is: my view is that mkdir should trigger the mount,
/net/prodigy is already there and available. ls -l doesn't invoke mkdir(2),
so you wouldn't get a mount storm when it is mkdir that triggers the mount.

--

___
Python tracker 

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



[issue14036] urlparse insufficient port property validation

2012-05-19 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti
status: pending -> open

___
Python tracker 

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



[issue14072] urlparse on tel: URI-s misses the scheme in some cases

2012-05-19 Thread Ezio Melotti

Changes by Ezio Melotti :


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



[issue14702] os.makedirs breaks under autofs directories

2012-05-19 Thread Hynek Schlawack

Hynek Schlawack  added the comment:

>>> """
>>> stat("/net/prodigy", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
>>> mkdir("/net/prodigy/tmp", 0777) = -1 EACCES (Permission denied)
>>> """
>>>
>>> As you can see, a stat() is already done on /net/prodigy.
>>
>> To be fair, that shouldn’t trigger a mount. Otherwise a `ls -l` on /net
>> would mount all volumes.
> 
> Not sure what "that" is: my view is that mkdir should trigger the mount,
> /net/prodigy is already there and available. ls -l doesn't invoke mkdir(2),
> so you wouldn't get a mount storm when it is mkdir that triggers the mount.

Sure, I was refering (as I hoped that my quoting would indicate) to the
stat on /net/prodigy, not the mkdir. I commented on the mkdir in the
next paragraph.

--

___
Python tracker 

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



[issue13210] Support Visual Studio 2010

2012-05-19 Thread Jason R. Coombs

Jason R. Coombs  added the comment:

After enabling the eol extension and re-checking out my working copy, I've 
applied the patch successfully, but after I do so, I get this error when trying 
to open the solution in VS2010:

"One or more projects in the solution were not loaded correctly"

and

C:\Users\jaraco\projects\public\cpython\cpython\PCbuild\pythoncore.vcxproj : 
error  : The imported project 
"C:\Users\jaraco\projects\public\cpython\cpython\PCbuild\pythoncore_d.props" 
was not found. Confirm that the path in the  declaration is correct, 
and that the file exists on disk.  
C:\Users\jaraco\projects\public\cpython\cpython\PCbuild\pythoncore.vcxproj

--

___
Python tracker 

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



[issue13210] Support Visual Studio 2010

2012-05-19 Thread Kristján Valur Jónsson

Kristján Valur Jónsson  added the comment:

Ah, good, it looks as though a file is missing from the patch.  I'll fix it.

--

___
Python tracker 

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



[issue14840] Tutorial: Add a bit on the difference between tuples and lists

2012-05-19 Thread Ezio Melotti

Ezio Melotti  added the comment:

I think I liked the first version more, possibly with a few minor changes:

> Though tuples may seem very similar to lists, their immutability
> makes them ideal for fundamentally different usage.

I would drop the 'very', and I'm not sure that it's the immutability that 
enables this "fundamentally different" uses.

> In typical usage, tuples are a heterogenous structure, 
> whereas lists are a homogenous sequence.

Instead of "In typical usage" this could just be "Usually".

> This tends to mean that, in general, tuples are used
> as a cohesive unit while lists are used one member at a time.

This could even be dropped IMHO, or something could be said about index access 
(or attribute access in case of namedtuples) vs iteration.

Maybe something like this could work:
"""
Though tuples may seem similar to lists, they are often used in different 
situations and for different purposes.
Tuples are immutable, and usually contain an heterogeneous sequence of elements 
that are accessed via tuple-unpacking or indexing (or by attribute in the case 
of namedtuples).  [Sometimes tuples are also used as immutable lists.]
Lists are mutable, and their elements are usually homogeneous and are accessed 
by iterating on the list.
"""

FWIW homogeneous tuples are ok too, but here "homogeneous" is just a special 
case of "heterogeneous".  IMHO the main difference between lists and tuples is 
the way you access the elements (and homogeneous vs heterogeneous is just a 
side-effect of this); the fact that they are mutable or not is a secondary 
difference.

--

___
Python tracker 

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



[issue14822] Build unusable when compiled for Win 64-bit release

2012-05-19 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Could you try with latest default?

--
nosy: +pitrou

___
Python tracker 

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



[issue14857] Direct access to lexically scoped __class__ is broken in 3.3

2012-05-19 Thread Nick Coghlan

New submission from Nick Coghlan :

Currently, __class__ references from methods in 3.3 aren't being mapped 
correctly to the class currently being defined.

This goes against the documented behaviour of PEP 3135, which states explicitly 
that the new zero-argument form is equivalent to super(__class__, ), 
where __class__ is the closure reference.

This breakage is almost certainly due to the fix for #12370

The fact the test suite didn't break is a sign we also have a gap in our test 
coverage.

Given that a workaround is documented in #12370, but there's no workaround for 
this breakage, reverting the fix for that issue may prove necessary (unlike 
that current breakage, at least that wouldn't be a regression from 3.2).

--
keywords: 3.2regression
messages: 161126
nosy: ncoghlan
priority: release blocker
severity: normal
stage: test needed
status: open
title: Direct access to lexically scoped __class__ is broken in 3.3
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



[issue14855] IPv6 support for logging.handlers

2012-05-19 Thread Yuriy Syrovetskiy

Yuriy Syrovetskiy  added the comment:

On my computer, connect() on a UDP socket always finishes successfully. What's 
wrong?

I tried that C example from man getaddrinfo(3).

--

___
Python tracker 

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



[issue14855] IPv6 support for logging.handlers

2012-05-19 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> On my computer, connect() on a UDP socket always finishes
> successfully. What's wrong?

Nothing wrong I guess, since connect() on an UDP socket doesn't actually
do anything, network-wise (UDP being an unconnected protocol).

--

___
Python tracker 

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



[issue14858] 'pysetup create' off-by-one when choosing classification maturity status interactively.

2012-05-19 Thread Todd DeLuca

New submission from Todd DeLuca :

Today I installed distutils2 via pip and ran 'pysetup create'.  During the 
selection of Trove classifiers for Development status I chose '2 - Alpha' but 
setup.cfg ended up incorrectly indicating that my project is Pre-Alpha.

Here is a "screenshot" of the interactive setup with me choosing '2 - Alpha':

```
Do you want to set Trove classifiers? (y/n): y
Please select the project status:

0 - Planning
1 - Pre-Alpha
2 - Alpha
3 - Beta
4 - Production/Stable
5 - Mature
6 - Inactive

Status: 2
```

Here is the relevant line in setup.cfg:

classifier = Development Status :: 2 - Pre-Alpha

Here are the relevant Trove classifications from 
http://pypi.python.org/pypi?%3Aaction=list_classifiers:

``` 
Development Status :: 1 - Planning
Development Status :: 2 - Pre-Alpha
Development Status :: 3 - Alpha
Development Status :: 4 - Beta
Development Status :: 5 - Production/Stable
Development Status :: 6 - Mature
Development Status :: 7 - Inactive
```

Notice above that the numbers assigned to the Trove classifiers are greater (by 
one) than the numbers displayed in the pysetup script.

The problem is in file distutil2/create.py 
(http://hg.python.org/distutils2/file/d015f9edccb8/distutils2/create.py) in 
class MainProgram, method set_maturity_status().  

Changing the following line:


   676 Status''' % '\n'.join('%s - %s' % (i, maturity_name(n))

To the following:


   676 Status''' % '\n'.join('%s - %s' % (i + 1, maturity_name(n))

Should display the numbers correctly and fix the problem.  I tested this fix on 
my system (using python2.7.3) and it works correctly.

Regards,
Todd

P.S. Apologies for not submitting a "Pull request".

--
assignee: eric.araujo
components: Distutils2
messages: 161129
nosy: alexis, eric.araujo, tarek, todddeluca
priority: normal
severity: normal
status: open
title: 'pysetup create' off-by-one when choosing classification maturity status 
interactively.
type: behavior
versions: Python 2.7

___
Python tracker 

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



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

2012-05-19 Thread Hynek Schlawack

Hynek Schlawack  added the comment:

I'm taking Charles-François' review comments here.

> 1. since fwalk() uses O(depth directory tree) file descriptors, we might run 
> out
> of FD on really deep directory hierarchies. It shouldn't be a problem in
> practise

Should I mention it in the docs? The old one uses recursion and we don't warn 
about the stack too...

> 2. there is a slight API change, since the API exposes the function that
> triggered the failure. I don't think there's a lot a of code that depends on
> this, but it's definitely a change

I was pondering whether I should "fake" the method names as they pretty much 
map: listdir instead of fwalk and unlink instead of unlink at… what do you all 
think about that?

--

___
Python tracker 

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



[issue14494] __future__.py and its documentation claim absolute imports became mandatory in 2.7, but they didn't

2012-05-19 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset cc9e5ddd8220 by Petri Lehtinen in branch '2.7':
#14494: Document that absolute imports became default in 3.0 instead of 2.7.
http://hg.python.org/cpython/rev/cc9e5ddd8220

New changeset 7cdc1392173f by Petri Lehtinen in branch '3.2':
#14494: Document that absolute imports became default in 3.0 instead of 2.7.
http://hg.python.org/cpython/rev/7cdc1392173f

New changeset 26661d9bbb36 by Petri Lehtinen in branch 'default':
#14494: Document that absolute imports became default in 3.0 instead of 2.7.
http://hg.python.org/cpython/rev/26661d9bbb36

--
nosy: +python-dev

___
Python tracker 

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



[issue14855] IPv6 support for logging.handlers

2012-05-19 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

> On my computer, connect() on a UDP socket always finishes  
> successfully. What's wrong?

Nothing is wrong. UDP is connection-less, so connect() is a no-op,
except that it remembers the address so you can use send() instead
of sendto(). Any errors due to non-reachability will only happen when
you actually try to send.

--

___
Python tracker 

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



[issue14494] __future__.py and its documentation claim absolute imports became mandatory in 2.7, but they didn't

2012-05-19 Thread Petri Lehtinen

Petri Lehtinen  added the comment:

Fixed, thanks for the patch.

BTW, you should sign the PSF Contributor Agreement. See 
http://www.python.org/psf/contrib/.

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



[issue14468] Update cloning guidelines in devguide

2012-05-19 Thread Ezio Melotti

Ezio Melotti  added the comment:

-   $ hg clone py3k py3.2
-   $ cd py3.2
-   $ hg update 3.2
+   $ hg clone py3k py3.2 -u 3.2

While the second command is more concise, I find the first easier to 
understand, so maybe you could leave both the first time (proposing the concise 
one as an alternative), and then use just the second.
It's also possible to do "hg clone py3k#3.2 py3.2".

There are a few differences between the process you describe and the one I 
personally use (e.g. I first commit on 2.7, export/import on 3.2, merge with 
3.3).  Also since I cloned 2.7 using py3k#2.7, I don't think I would be able to 
graft a py3 changeset in 2.7 (but it should work the other way around).

--

___
Python tracker 

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



[issue14855] IPv6 support for logging.handlers

2012-05-19 Thread Vinay Sajip

Vinay Sajip  added the comment:

> I worked on the 3.2 branch, because the default branch has broken
> test_logging.

What breakage are you referring to? There's a race condition test that fails on 
Windows sometimes, but that's on the 2.7 branch. Apart from that, I don't know 
what breakage you're referring to, so please elaborate.

--

___
Python tracker 

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



[issue14588] PEP 3115 compliant dynamic class creation

2012-05-19 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset befd56673c80 by Nick Coghlan in branch 'default':
Close #14588: added a PEP 3115 compliant dynamic type creation mechanism
http://hg.python.org/cpython/rev/befd56673c80

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



[issue14859] Patch to make IDLE window rise to top in OS X on launch

2012-05-19 Thread Marc Abramowitz

New submission from Marc Abramowitz :

On OS X 10.6.8, when I execute "idle", I see nothing in the Terminal and the 
IDLE GUI launches but is not visible until I Command-Tab to the "Python" 
application. I stumbled upon a solution to this problem using OS X's built-in 
/usr/bin/osascript utility. Attaching a patch...

--
components: IDLE
files: osx_raise_idle.patch
keywords: patch
messages: 161137
nosy: Marc.Abramowitz
priority: normal
severity: normal
status: open
title: Patch to make IDLE window rise to top in OS X on launch
type: enhancement
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file25639/osx_raise_idle.patch

___
Python tracker 

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



[issue14859] Patch to make IDLE window rise to top in OS X on launch

2012-05-19 Thread Marc Abramowitz

Marc Abramowitz  added the comment:

I created the patch against the 2.7 branch of hg, but I just tried it with both 
the 3.2 branch of hg and an installed version of 3.2 and it worked great.

[last: 0] marca@scml-marca:~/dev/hg-repos/cpython$ pushd 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/idlelib/ > 
/dev/null
[last: 0] 
marca@scml-marca:/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/idlelib$
 patch -p3 < osx_raise_idle.patch 
patching file PyShell.py
Hunk #1 succeeded at 1433 (offset -25 lines).

--

___
Python tracker 

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



[issue14859] Patch to make IDLE window rise to top in OS X on launch

2012-05-19 Thread Ned Deily

Ned Deily  added the comment:

This is really a duplicate of Issue11571 which gives an easier way to do this 
directly using Tk calls.  I'll see about getting that applied.

--
nosy: +ned.deily
resolution:  -> duplicate
stage:  -> committed/rejected
status: open -> closed
superseder:  -> Turtle window pops under the terminal on OSX

___
Python tracker 

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



[issue11647] function decorated with a context manager can only be invoked once

2012-05-19 Thread Eric Snow

Changes by Eric Snow :


--
nosy: +eric.snow

___
Python tracker 

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



[issue14854] faulthandler: fatal error with "SystemError: null argument to internal routine"

2012-05-19 Thread Zbyszek Jędrzejewski-Szmek

Zbyszek Jędrzejewski-Szmek  added the comment:

I can confirm that it works with the patch. Thanks!

--

___
Python tracker 

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



[issue14840] Tutorial: Add a bit on the difference between tuples and lists

2012-05-19 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I am ok with Ezio's 3rd version.

--

___
Python tracker 

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



[issue14854] faulthandler: fatal error with "SystemError: null argument to internal routine"

2012-05-19 Thread STINNER Victor

STINNER Victor  added the comment:

Hum, a test may be added to ensure that we will not have the regression anymore.

--

___
Python tracker 

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



[issue13210] Support Visual Studio 2010

2012-05-19 Thread Richard Oudkerk

Richard Oudkerk  added the comment:

PCbuild/build.bat and Modules/_decimal/tests/runall.bat still use vcbuild 
instead of msbuild.

It also seems that if an external dependency is unavailable then msbuild can 
fail to build targets which do not depend on it.  For instance if I rename 
openssl-1.0.1c to something else, then this causes msbuild to fail without 
building ctypes.

I don't think vcbuild had this problem.

--

___
Python tracker 

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



[issue14854] faulthandler: fatal error with "SystemError: null argument to internal routine"

2012-05-19 Thread STINNER Victor

STINNER Victor  added the comment:

The patch looks good to me.

--

___
Python tracker 

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



[issue11571] Turtle window pops under the terminal on OSX

2012-05-19 Thread Marc Abramowitz

Marc Abramowitz  added the comment:

I wonder if this could be applied at some lower level in TkInter, because this 
bug happens with every Tk app -- e.g.: turtle, idle, web2py

--
nosy: +Marc.Abramowitz

___
Python tracker 

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



[issue1602] windows console doesn't print or input Unicode

2012-05-19 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
nosy: +giampaolo.rodola

___
Python tracker 

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



[issue11571] Turtle window pops under the terminal on OSX

2012-05-19 Thread Ned Deily

Changes by Ned Deily :


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

___
Python tracker 

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



[issue11571] Turtle window pops under the terminal on OSX

2012-05-19 Thread Ned Deily

Ned Deily  added the comment:

Marc, it could although that would be a change in behavior that possibly might 
not be desired by all tkinter apps. Perhaps the thing to do is add an optional 
"topmost" argument to tkinter.Tk() with the default value being True.

--

___
Python tracker 

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



[issue13210] Support Visual Studio 2010

2012-05-19 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

I propose that we declare this issue closed, and defer any new issues arising 
from the switch to VS 2010 in separate issues.

There will surely be many issues over the next weeks and months, and there is 
little point in tracking this all on this single page.

--

___
Python tracker 

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



[issue13210] Support Visual Studio 2010

2012-05-19 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

So closing this issue. Kristjan, if you want your patch reviewed further and/or 
approved by Brian, please copy it into a new issue.

--
status: open -> closed

___
Python tracker 

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



[issue14854] faulthandler: fatal error with "SystemError: null argument to internal routine"

2012-05-19 Thread Zbyszek Jędrzejewski-Szmek

Zbyszek Jędrzejewski-Szmek  added the comment:

% PYTHONFAULTHANDLER=1 ./python -E -c 'import faulthandler; 
faulthandler._sigsegv()'
[3]14516 segmentation fault (core dumped)

Unless I'm missing something, the env. var. is not working as documented.

Patch with two tests is attached: the first does 'python -X faulthandler ...' 
and passes after Antoine's patch, the second does 'PYTHONFAULTHANDLER=YesPlease 
python ...' and does not pass.

--
keywords: +patch
Added file: http://bugs.python.org/file25640/issue14854_faulthandler_tests.diff

___
Python tracker 

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



[issue12760] Add create mode to open()

2012-05-19 Thread Petri Lehtinen

Petri Lehtinen  added the comment:

Shouldn't the documentation of builtin open() (in Doc/library/functions.rst) be 
updated too?

--
nosy: +petri.lehtinen

___
Python tracker 

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



[issue1602] windows console doesn't print or input Unicode

2012-05-19 Thread Giampaolo Rodola'

Giampaolo Rodola'  added the comment:

Not sure whether a solution has already been proposed because the issue is very 
long, but I just bumped into this on Windows and come up with this:


from __future__ import print_function
import sys

def safe_print(s):
try:
print(s)
except UnicodeEncodeError:
if sys.version_info >= (3,):
print(s.encode('utf8').decode(sys.stdout.encoding))
else:
print(s.encode('utf8'))

safe_print(u"\N{EM DASH}")


Couldn't python do the same thing internally?

--

___
Python tracker 

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



[issue14854] faulthandler: fatal error with "SystemError: null argument to internal routine"

2012-05-19 Thread STINNER Victor

STINNER Victor  added the comment:

> PYTHONFAULTHANDLER=1 ./python -E ...

Documentation of the -E option "Ignore all PYTHON* environment
variables, e.g. PYTHONPATH and PYTHONHOME, that might be set."
http://docs.python.org/dev/using/cmdline.html#cmdoption-E

So the option works as expected.

--

___
Python tracker 

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



[issue1602] windows console doesn't print or input Unicode

2012-05-19 Thread David-Sarah Hopwood

David-Sarah Hopwood  added the comment:

Giampaolo: See #msg120700 for why that won't work, and the subsequent comments 
for what will work instead (basically, using WriteConsoleW and a workaround for 
a Windows API bug). Also see the prototype win_console.patch from Victor 
Stinner: #msg145963

--

___
Python tracker 

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



[issue14721] httplib doesn't specify content-length header for POST requests without data

2012-05-19 Thread Jesús Cea Avión

Jesús Cea Avión  added the comment:

Too late for asking to keep the parenthesis :-). I hate to have to remember 
non-obvious precedence rules :-). Cognitive overhead.

--

___
Python tracker 

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



[issue14860] devguide: Clarify how to run cpython test suite - esp. on 2.7

2012-05-19 Thread Marc Abramowitz

New submission from Marc Abramowitz :

The way to test on Python 2.7 (discovered on IRC) is:

~/dev/hg-repos/cpython$ ./python.exe -m test.regrtest -j3

This is not documented. I will submit a patch...

--
components: Devguide
files: devguide.patch
keywords: patch
messages: 161155
nosy: Marc.Abramowitz, ezio.melotti
priority: normal
severity: normal
status: open
title: devguide: Clarify how to run cpython test suite - esp. on 2.7
type: enhancement
versions: Python 2.7
Added file: http://bugs.python.org/file25641/devguide.patch

___
Python tracker 

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



[issue14843] support define_macros / undef_macros in setup.cfg

2012-05-19 Thread Daniel Holth

Daniel Holth  added the comment:

Looks like it can go into [build_ext] but not per-extension

--

___
Python tracker 

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



[issue1602] windows console doesn't print or input Unicode

2012-05-19 Thread Matt Mackall

Changes by Matt Mackall :


--
nosy:  -Matt.Mackall

___
Python tracker 

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



[issue14588] PEP 3115 compliant dynamic class creation

2012-05-19 Thread Éric Araujo

Éric Araujo  added the comment:

Great doc patch.  I think it would be worthwhile to backport it.

--

___
Python tracker 

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



[issue14843] support define_macros / undef_macros in setup.cfg

2012-05-19 Thread Daniel Holth

Daniel Holth  added the comment:

A tuple of (macro, '1') seems to do the trick

define_macros has to be space-separated, not comma-separated

--
hgrepos: +127

___
Python tracker 

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



[issue14843] support define_macros / undef_macros in setup.cfg

2012-05-19 Thread Daniel Holth

Changes by Daniel Holth :


--
keywords: +patch
Added file: http://bugs.python.org/file25642/65c3af0d283b.diff

___
Python tracker 

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



[issue14843] support define_macros / undef_macros in setup.cfg

2012-05-19 Thread Daniel Holth

Changes by Daniel Holth :


Removed file: http://bugs.python.org/file25642/65c3af0d283b.diff

___
Python tracker 

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



[issue14860] devguide: Clarify how to run cpython test suite - esp. on 2.7

2012-05-19 Thread Marc Abramowitz

Marc Abramowitz  added the comment:

Revising per feedback from Taggnostr on IRC.

--
Added file: http://bugs.python.org/file25643/devguide-1.patch

___
Python tracker 

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



[issue14860] devguide: Clarify how to run cpython test suite - esp. on 2.7

2012-05-19 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 13e87e1715f8 by Ezio Melotti in branch 'default':
#14860: mention that test.regrtest is required for 2.7.  Patch by Marc 
Abramowitz.
http://hg.python.org/devguide/rev/13e87e1715f8

--
nosy: +python-dev

___
Python tracker 

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



[issue14860] devguide: Clarify how to run cpython test suite - esp. on 2.7

2012-05-19 Thread Ezio Melotti

Ezio Melotti  added the comment:

Fixed, thanks for the patch!

--
assignee:  -> ezio.melotti
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed
versions:  -Python 2.7

___
Python tracker 

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



[issue13210] Support Visual Studio 2010

2012-05-19 Thread Jason R. Coombs

Jason R. Coombs  added the comment:

I agree. There is already an issue regarding the packaging dependencies. It 
currently references ctypes, but we can rename it to be more broad.

issue14821

--
Added file: http://bugs.python.org/file25644/smime.p7s

___
Python tracker 

___

smime.p7s
Description: S/MIME cryptographic signature
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12014] str.format parses replacement field incorrectly

2012-05-19 Thread Ben Wolfson

Ben Wolfson  added the comment:

Ping!

--

___
Python tracker 

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



[issue14472] .gitignore is outdated

2012-05-19 Thread Matej Cepl

Matej Cepl  added the comment:

On 19.5.2012 12:25, Petri Lehtinen wrote:
> Against which branch or Python version your patch is? It doesn't
> apply cleanly on any branch (and yes, I changed the target filename
> to .gitignore first).

It used to be master, but probably some time ago.

Matěj

--

___
Python tracker 

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



[issue13210] Support Visual Studio 2010

2012-05-19 Thread Martin v . Löwis

Changes by Martin v. Löwis :


Removed file: http://bugs.python.org/file25644/smime.p7s

___
Python tracker 

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



[issue14472] .gitignore is outdated

2012-05-19 Thread Éric Araujo

Éric Araujo  added the comment:

I’m afraid “master” has no meaning with a Mercurial repo.  Anyway we can still 
use your patch to update .gitignore, thanks!

--
nosy: +eric.araujo

___
Python tracker 

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



[issue13210] Support Visual Studio 2010

2012-05-19 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

No broad issues, please. One tracker item, one issue. If something other than 
_ctypes_test fails to build, it may or may not have the same reason, so caution 
requires that we assume they are unrelated defects.

--

___
Python tracker 

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



[issue14821] _ctypes_test fails to build from the command line with VS 2010

2012-05-19 Thread Martin v . Löwis

Changes by Martin v. Löwis :


--
title: Ctypes extension module builds as _ctypes_test.pyd -> _ctypes_test fails 
to build from the command line with VS 2010

___
Python tracker 

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



[issue14840] Tutorial: Add a bit on the difference between tuples and lists

2012-05-19 Thread Ezio Melotti

Ezio Melotti  added the comment:

Here's a patch against 2.7.
I changed a bit the previous paragraphs to make this fit better.

--
assignee: docs@python -> ezio.melotti
Added file: http://bugs.python.org/file25645/issue14840.diff

___
Python tracker 

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



[issue12988] Tkinter File Dialog crashes on Win7 when saving to Documents Library

2012-05-19 Thread Roger Serwy

Roger Serwy  added the comment:

On Win7, I can replicate the problem with 64-bit Python 3.2.3. However, it does 
not occur for 32-bit Python 3.2.2.

This problem is not due to IDLE. There is a problem with the 64-bit version of 
tkinter's file dialog. From a 64-bit python environment, bring up the dialog 
with:

import tkinter.filedialog
tkinter.filedialog.asksaveasfile()

and repeat the steps 3-6 from msg144106. It crashes. Repeating this with a 
32-bit python environment does not have a problem.

--
components: +Tkinter, Windows -IDLE
priority: normal -> high
title: IDLE on Win7 crashes when saving to Documents Library -> Tkinter File 
Dialog crashes on Win7 when saving to Documents Library
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



[issue14572] 2.7.3: sqlite module does not build on centos 5 and Mac OS X 10.4

2012-05-19 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +dmalcolm

___
Python tracker 

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



[issue12014] str.format parses replacement field incorrectly

2012-05-19 Thread Eric V. Smith

Eric V. Smith  added the comment:

I'll look at it when I'm done with PEP 420.

--

___
Python tracker 

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



[issue12586] Enhanced email API: header objects

2012-05-19 Thread R. David Murray

Changes by R. David Murray :


--
hgrepos:  -44

___
Python tracker 

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



[issue12586] Enhanced email API: header objects

2012-05-19 Thread R. David Murray

Changes by R. David Murray :


Removed file: http://bugs.python.org/file22700/README.txt

___
Python tracker 

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



[issue12586] Enhanced email API: header objects

2012-05-19 Thread R. David Murray

Changes by R. David Murray :


Removed file: http://bugs.python.org/file22699/b22698463737.diff

___
Python tracker 

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



[issue14731] Enhance Policy framework in preparation for adding email6 policies as provisional

2012-05-19 Thread R. David Murray

Changes by R. David Murray :


--
components: +email

___
Python tracker 

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



[issue12988] Tkinter File Dialog crashes on Win7 when saving to Documents Library

2012-05-19 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I re-verified this on win7-64 with 3.3.0a3
>From Idle, Idle remains after clicking away the error box.
>From Command Prompt, CP disappears after clicking away box.

Problem is not specific to Donwloads. Other Libraries fail also.
Desktop and other normal places succeed.

I cannot but wonder if this is a tk bug.

--
nosy: +gpolo

___
Python tracker 

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



[issue12586] Provisional new email API: new policy implementing custom header objects

2012-05-19 Thread R. David Murray

R. David Murray  added the comment:

As mentioned on python-dev, I'm planning to introduce the new header 
parsing/folding code as a provisional API in the spirit if not quite the letter 
of PEP 411.  Issue 14731 is a pre-requisite for this issue, since this patch 
builds on to of that one.

This patch is almost entirely additions.  At a later stage I can probably 
remove some of the older code, but the bulk of the backward compatibility stuff 
may have to remain around until Python4.

--
assignee: r.david.murray -> 
components: +email -Library (Lib)
dependencies: +Enhance Policy framework in preparation for adding email6 
policies as provisional
title: Enhanced email API: header objects -> Provisional new email API: new 
policy implementing custom header objects
type:  -> enhancement
Added file: http://bugs.python.org/file25646/email6.patch

___
Python tracker 

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



[issue14572] 2.7.3: sqlite module does not build on centos 5 and Mac OS X 10.4

2012-05-19 Thread Ned Deily

Ned Deily  added the comment:

Thanks for the patch to configure.ac. It appears to work on OS X 10.4 and it 
should on any other system with an older version of sqlite3 installed. However, 
I think a better approach is to just change the two problematic references in 
Modules/_sqlite/connection.c to the older backwards compatible form.  The 
current sqlite3.h file explicitly supports the older type for backward 
compatibility for exactly this kind of case.  If so, why add unnecessary magic 
to Python's configure?  Presumably the sqlite3 project will need to continue to 
support both definitions indefinitely.  Perhaps Petri can chime in here as he 
made the change to include the new types.  Attached is a new patch tested on OS 
X 10.4 and 10.7.

--
nosy: +ned.deily, petri.lehtinen
stage:  -> patch review
Added file: http://bugs.python.org/file25647/sqlite3_int64_v2.patch

___
Python tracker 

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



[issue14572] 2.7.3: sqlite module does not build on centos 5 and Mac OS X 10.4

2012-05-19 Thread Marc Abramowitz

Marc Abramowitz  added the comment:

My guess would be that the code was switched to use the new typedef because the 
SQLite docs say they're preferred. 

http://www.sqlite.org/c3ref/int64.html

Maybe they are planning to deprecate the old typedef at some point?

--

___
Python tracker 

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



[issue14572] 2.7.3: sqlite module does not build on centos 5 and Mac OS X 10.4

2012-05-19 Thread Marc Abramowitz

Marc Abramowitz  added the comment:

Probably either approach will have the exact same effect for the foreseeable
future, so I don't feel strongly either way. It would be nice to have one of 
them so folks can have a sqlite3 module without having to search around and 
apply patches. Big win.

--

___
Python tracker 

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



[issue14843] support define_macros / undef_macros in setup.cfg

2012-05-19 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

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



[issue14821] _ctypes and other modules not built with msbuild on vs2010 solution

2012-05-19 Thread Jason R. Coombs

Changes by Jason R. Coombs :


--
title: _ctypes_test fails to build from the command line with VS 2010 -> 
_ctypes and other modules not built with msbuild on vs2010 solution

___
Python tracker 

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



[issue14822] Build unusable when compiled for Win 64-bit release

2012-05-19 Thread Jason R. Coombs

Jason R. Coombs  added the comment:

I'd like to, but Apple hosed my Windows partition when upgrading to OS X Lion. 
A minor setback, but I'll be unable to test for a while.

--

___
Python tracker 

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



  1   2   >