[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2012-08-19 Thread Ben Darnell

Ben Darnell added the comment:

Related pypy issue: https://bugs.pypy.org/issue1238

--
nosy: +Ben.Darnell

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



[issue12436] Missing items in installation/setup instructions

2012-08-19 Thread Mike Hoy

Mike Hoy added the comment:

Here is a patch for just Notepad++.

--
keywords: +patch
Added file: http://bugs.python.org/file26891/issue12436-notepad_plus_plus.diff

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



[issue15569] Doc doc: incorrect description of some roles as format-only

2012-08-19 Thread Mike Hoy

Mike Hoy added the comment:

I would like to submit a patch for this. Is anyone currently working on one?

--
nosy: +mikehoy

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



[issue13341] Incorrect documentation for u PyArg_Parse format unit

2012-08-19 Thread Mike Hoy

Changes by Mike Hoy mho...@gmail.com:


--
nosy:  -mikehoy

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



[issue15722] PEP 3121, 384 Refactoring applied to decimal module

2012-08-19 Thread Stefan Krah

Stefan Krah added the comment:

The test suite is not a good benchmark: it also tests decimal.py. For
numerical performance I'm running:

  cd Modules/_decimal/tests
  ../../../python bench.py

You can hit Ctrl-C after the first cdecimal result, since that's usually
already a pretty good indicator of overall performance. On 64-bit, for
9 digits of precision cdecimal is currently only around 1.5 times slower
than float. I want to keep that.

Running an unpatched _decimal.c three times gives (Linux, 64-bit, Core2 Duo):

0.162576s  0.165146s  0.163242s

With your second patch:

0.204383s  0.204383s  0.206919s

 Regarding the failing test:
 It appears that the hackcheck() method in typeobject.c is responsible for 
 this failure: 

Thanks for the analysis. Perhaps Martin can comment on that.

--

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



[issue15722] PEP 3121, 384 Refactoring applied to decimal module

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

Martin v. Löwis added the comment:

hackcheck fixes the Carlo Verry hack, which goes like this:

py object.__setattr__(str, 'lower', str.upper)
py 'dammit Carlo!'.lower()
'DAMMIT CARLO!'
(from http://bugs.jython.org/issue1058)

It shouldn't be possible to monkey-patch a builtin type; I believe this is to 
prevent crashes when self has the incorrect layout. Other than that, I find 
that an arbitrary restriction, except that setattr/attribute assignment prevent 
an assignment from occurring, it shouldn't be possible to bypass this by 
calling __setattr__. So if the restriction could be lifted, it should be lifted 
in both cases.

What specific decimal test is failing?

--

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



[issue15722] PEP 3121, 384 Refactoring applied to decimal module

2012-08-19 Thread Stefan Krah

Stefan Krah added the comment:

 What specific decimal test is failing?

# Attributes cannot be deleted
for attr in ['prec', 'Emax', 'Emin', 'rounding', 'capitals', 'clamp',
 'flags', 'traps']:
self.assertRaises(AttributeError, c.__delattr__, attr)

test test_decimal failed -- Traceback (most recent call last):
  File /home/stefan/pydev/pep-3121-cpython/Lib/test/test_decimal.py, line 
3683, in test_invalid_context
self.assertRaises(AttributeError, c.__delattr__, attr)
  File /home/stefan/pydev/pep-3121-cpython/Lib/unittest/case.py, line 571, in 
assertRaises
return context.handle('assertRaises', callableObj, args, kwargs)
  File /home/stefan/pydev/pep-3121-cpython/Lib/unittest/case.py, line 135, in 
handle
callable_obj(*args, **kwargs)
TypeError: can't apply this __delattr__ to object object

1 test failed:
test_decimal

--

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



[issue15526] test_startfile crash on Windows 7 AMD64

2012-08-19 Thread Richard Oudkerk

Richard Oudkerk added the comment:

I think the reason that it is only this buildbot which fails is that the other 
Windows buildbots don't use multiple processes.  Therefore they don't use a 
different dir for each test.

 4) change os.startfile() to use ShellExecuteEx and use the hProcess
 handle as the return value and use that with os.waitpid()

Would this cause a handle leak if os.waitpid() is not used?

--
nosy: +sbt

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



[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-08-19 Thread Georg Brandl

Georg Brandl added the comment:

It seems there is no urge to fix this before 3.3 -- fine with me.

--
priority: deferred blocker - critical

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



[issue15037] curses.unget_wch and test_curses fail when linked with ncurses 5.7 and earlier

2012-08-19 Thread Georg Brandl

Georg Brandl added the comment:

Anything left to do here?

--

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



[issue14814] Implement PEP 3144 (the ipaddress module)

2012-08-19 Thread Georg Brandl

Georg Brandl added the comment:

Please keep in mind that this should be committed before next weekend if it is 
to make 3.3.

--

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



[issue12623] universal newlines subprocess support broken with select- and poll-based communicate()

2012-08-19 Thread Georg Brandl

Georg Brandl added the comment:

 The main question: can be fix applied to 3.3 or it can wait for 3.4?
 3.2 has the same problem BTW.

I don't see any fix attached :)

If it is a bug, it can be fixed before 3.3rc1, no need for release blocker 
status.

--
priority: release blocker - critical

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



[issue14814] Implement PEP 3144 (the ipaddress module)

2012-08-19 Thread Georg Brandl

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


--
priority: deferred blocker - release blocker

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



[issue13072] Getting a buffer from a Unicode array uses invalid format

2012-08-19 Thread Georg Brandl

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


--
priority: deferred blocker - release blocker

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



[issue15573] Support unknown formats in memoryview comparisons

2012-08-19 Thread Georg Brandl

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


--
priority: deferred blocker - release blocker

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



[issue15037] curses.unget_wch and test_curses fail when linked with ncurses 5.7 and earlier

2012-08-19 Thread Georg Brandl

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


--
priority: deferred blocker - release blocker

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



[issue13072] Getting a buffer from a Unicode array uses invalid format

2012-08-19 Thread Stefan Krah

Stefan Krah added the comment:

If everyone agrees on deprecating 'u', here's a patch. I think
that should be sufficient to close this issue (unless we absolutely
need deprecation warnings).

--
Added file: http://bugs.python.org/file26892/array_deprecate_u.diff

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



[issue15573] Support unknown formats in memoryview comparisons

2012-08-19 Thread Stefan Krah

Stefan Krah added the comment:

I think issue15573-struct-2.diff is ready to go and I'd rather commit
sooner than later. Nick, can I interpret your last review comment
as go ahead? :)

--

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



[issue15573] Support unknown formats in memoryview comparisons

2012-08-19 Thread Georg Brandl

Georg Brandl added the comment:

Small nit: when you put versionchanged:: 3.3 there should be a hint of *what* 
changed exactly :)

--

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



[issue13072] Getting a buffer from a Unicode array uses invalid format

2012-08-19 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 If everyone agrees on deprecating 'u', here's a patch. I think
 that should be sufficient to close this issue (unless we absolutely
 need deprecation warnings).

I think a proper deprecation warning is preferable.

--

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



[issue15544] math.isnan fails with some Decimal NaNs

2012-08-19 Thread Mark Dickinson

Mark Dickinson added the comment:

Here's an updated patch that extends Steven's fix to the C code.

--
Added file: http://bugs.python.org/file26893/decimalnan_2.patch

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



[issue15724] Add versionchanged to memoryview docs

2012-08-19 Thread Stefan Krah

New submission from Stefan Krah:

There are a couple of places in the memoryview docs that still
need a versionchanged tag.

Other places might need explanations what exactly has changed.

--
assignee: docs@python
components: Documentation
messages: 168563
nosy: docs@python, skrah
priority: normal
severity: normal
stage: needs patch
status: open
title: Add versionchanged to memoryview docs
type: enhancement
versions: Python 3.3

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



[issue15573] Support unknown formats in memoryview comparisons

2012-08-19 Thread Stefan Krah

Stefan Krah added the comment:

Right. I'm tracking all versionchanged issues in #15724.

--

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



[issue14814] Implement PEP 3144 (the ipaddress module)

2012-08-19 Thread Eli Bendersky

Eli Bendersky added the comment:

I'm just waiting for a review. If Nick has no time for that, perhaps I can 
commit anyway since this is just adding documentation.

--

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



[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2012-08-19 Thread Kevin Chen

Kevin Chen added the comment:

I propose a fix:

static FILE *
open_exclusive(char *filename, mode_t mode)
{
#if defined(O_EXCL)defined(O_CREAT)defined(O_WRONLY)defined(O_TRUNC)
/* Use O_EXCL to avoid a race condition when another process tries to
   write the same file.  When that happens, our open() call fails,
   which is just fine (since it's only a cache).
   XXX If the file exists and is writable but the directory is not
   writable, the file will never be written.  Oh well.
*/
int fd;
(void) unlink(filename);
fd = open(filename, O_EXCL|O_CREAT|O_WRONLY|O_TRUNC
#ifdef O_BINARY
|O_BINARY   /* necessary for Windows */
#endif
#ifdef __VMS
, mode, ctxt=bin, shr=nil
#elif defined(MS_WINDOWS)
, mode | _S_IWRITE
#else
, mode
#endif
  );

if (fd  0 )
return NULL;
return fdopen(fd, wb);
#else
/* Best we can do -- on Windows this can't happen anyway */
return fopen(filename, wb);
#endif
}

--

so doesn't matter what the .py file permission is under windows, the .pyc file 
will always have both read and write permissions.

--
nosy: +lowlifer123

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



[issue13072] Getting a buffer from a Unicode array uses invalid format

2012-08-19 Thread Nick Coghlan

Nick Coghlan added the comment:

I guess the analogy with bytes objects is that UCS-2 code points can be
handled as 16-bit integer objects.

If we're going to do a programmatic deprecation now, that's the only
alternative typecode currently available. Do we want to recommend that? Or
do we want to postpone programmatic deprecation until we add a 2-byte code
point type code for 3.4?

--

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



[issue14905] zipimport.c needs to support namespace packages when no 'directory' entry exists

2012-08-19 Thread Stephen Thorne

Stephen Thorne added the comment:

Please see attached new patch, based on review comments.

--
Added file: http://bugs.python.org/file26894/zipimport-issue14905-2.patch

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



[issue14814] Implement PEP 3144 (the ipaddress module)

2012-08-19 Thread Nick Coghlan

Nick Coghlan added the comment:

I'm at the pyconau sprints for the next couple of days - I'll make sure
this is dealt with.
 On Aug 19, 2012 10:07 PM, Eli Bendersky rep...@bugs.python.org wrote:


 Eli Bendersky added the comment:

 I'm just waiting for a review. If Nick has no time for that, perhaps I can
 commit anyway since this is just adding documentation.

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue14814
 ___


--

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



[issue15725] PyType_FromSpecWithBases bugfix

2012-08-19 Thread Robin Schreiber

New submission from Robin Schreiber:

This small patch prevents PyType_FromSpecWithBases, from setting the base(s) 
attribute of the HeapType to NULL-values.

--
components: Interpreter Core
files: PyType_FromSpecWithBases_bases_fix.patch
keywords: patch
messages: 168570
nosy: Robin.Schreiber
priority: normal
severity: normal
status: open
title: PyType_FromSpecWithBases bugfix
type: behavior
versions: Python 3.4
Added file: 
http://bugs.python.org/file26895/PyType_FromSpecWithBases_bases_fix.patch

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



[issue13072] Getting a buffer from a Unicode array uses invalid format

2012-08-19 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 I guess the analogy with bytes objects is that UCS-2 code points can be
 handled as 16-bit integer objects.
 
 If we're going to do a programmatic deprecation now, that's the only
 alternative typecode currently available. Do we want to recommend that? Or
 do we want to postpone programmatic deprecation until we add a 2-byte code
 point type code for 3.4?

I don't understand. If you want to handle 16-bit integers, you already
have the h and H type codes.

--

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



[issue15726] PyState_FindModule false length-comparison fix

2012-08-19 Thread Robin Schreiber

New submission from Robin Schreiber:

Fixed wrong list-length comparison in PyState_FindModule.

--
components: Interpreter Core
files: PyState_FindModule_LE_fix.patch
keywords: patch
messages: 168572
nosy: Robin.Schreiber
priority: normal
severity: normal
status: open
title: PyState_FindModule false length-comparison fix
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file26896/PyState_FindModule_LE_fix.patch

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



[issue15726] PyState_FindModule false length-comparison fix

2012-08-19 Thread Robin Schreiber

Changes by Robin Schreiber robin.schrei...@me.com:


--
nosy: +loewis

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



[issue15725] PyType_FromSpecWithBases bugfix

2012-08-19 Thread Robin Schreiber

Changes by Robin Schreiber robin.schrei...@me.com:


--
nosy: +loewis

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



[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2012-08-19 Thread Kevin Chen

Kevin Chen added the comment:

This is essentially the way things were done in version 2.5.4 of Python. The 
unlink() always succeeded, because the created .pyc file permission is always 
set to 0666 in the fd=open() function. This means the .pyc will never be 
created as read-only, and as long as they are never set to read-only manually 
by the user, everything will be okay.

You might say this will be a problem if someone accidentally set the it to 
read-only. Well we have been using Python 2.5 for many years, and we have 
managed quite well, so it is not really going to be a big issue, and can be 
fixed in the future. 

Whereas at the moment we have a PROBLEM!! With the current state of the Python 
2.6, 2.7 and 3.2 interpreters, many Windows users cannot even think about 
upgrade from Python 2.5 because source control tools like Perforce will set all 
.py files to read-only, and so ALL created .pyc files will become read-only 
every time you run Python. I cannot stress how much pain this causes. PLEASE 
MAKE IT 2.5 EQUIVALENT ASAP!  THANK YOU!!

even just this will do the trick:
-

fd = open(filename, O_EXCL|O_CREAT|O_WRONLY|O_TRUNC
#ifdef O_BINARY
|O_BINARY   /* necessary for Windows */
#endif
#ifdef __VMS
, mode, ctxt=bin, shr=nil
#elif defined(MS_WINDOWS)
, 0666
#else
, mode
#endif
  );

---


And a side note, for the VC8 build for PC, the file random.c was left out from 
the visual studio project file for pythoncore project. It gives these errors 
when I try recompile:

Error   2   error LNK2019: unresolved external symbol __PyRandom_Init 
referenced in function _Py_Main   main.obj
Error   3   error LNK2001: unresolved external symbol __PyRandom_Init   
pythonrun.obj
Error   4   error LNK2019: unresolved external symbol __PyOS_URandom 
referenced in function _posix_urandom  posixmodule.obj

This is my first time using bug tracker, so please point me to the appropriate 
place to put this. Thank you.

--

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



[issue15544] math.isnan fails with some Decimal NaNs

2012-08-19 Thread Stefan Krah

Stefan Krah added the comment:

The patch looks good in every detail. +1 for committing.

--

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



[issue13072] Getting a buffer from a Unicode array uses invalid format

2012-08-19 Thread Stefan Krah

Stefan Krah added the comment:

Since actual removal is only scheduled for 4.0, I think user warnings
can wait until 3.4.

By then, we should have sorted out the struct format codes. In this
scenario we would be sort of forced to use 'C', 'U' and 'W' as the
new codes, while 'u' and 'w' would continue to linger in the array
module for a while.

--

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



[issue15526] test_startfile crash on Windows 7 AMD64

2012-08-19 Thread Jeremy Kloth

Jeremy Kloth added the comment:

 I think the reason that it is only this buildbot which fails is that the 
 other Windows buildbots don't use multiple processes.  Therefore they don't 
 use a different dir for each test.

That might be it.  Also the failure possibly only happens when
multiple builds are being run thus slowing down process creation and
termination.

 Would this cause a handle leak if os.waitpid() is not used?

It seems so, yes.

So to expand on #4:
4a) create a new handle type that closes the handles on dealloc
4b) return the process ID instead using GetProcessId() and callers
interested in waiting would then need to use _winapi.OpenProcess() to
convert it to a handle for os.waitpid() or
_winapi.WaitForSingleObject()
4c) add a third optional argument to os.startfile() mode that mimics
the mode semantics of the os.spawn*() functions

--

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



[issue15526] test_startfile crash on Windows 7 AMD64

2012-08-19 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I think the two simple and stupid solutions (#1 and #2) have a certain charm 
myself :) Especially #1, which is the simplest of all.

--

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



[issue15526] test_startfile crash on Windows 7 AMD64

2012-08-19 Thread Jeremy Kloth

Jeremy Kloth added the comment:

However #1 is the reason that is bug exists in the first place.  The
designer of the test guessed wrong on the magic value for the
timeout.  There will never be a correct timeout value as it varies
from machine to machine and from workload to workload on a given
machine.  For any value that is picked, there exists a scenario where
it will fail.

#2 is certainly a viable work-around and it appears that other tests
(notably the test for fork/exec) do similar so it wouldn't be
unprecedented

#3 is really only useful if other tests need a wait for process
helper on Windows.

#4 really just highlights a deficiency with os.startfile() so I'm fine
with deferring that to a feature request for 3.4.

I'll cook up a patch implementing #2 unless anyone else is feeling ambitious.

--

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



[issue15727] PyType_FromSpecWithBases tp_new bugfix

2012-08-19 Thread Robin Schreiber

New submission from Robin Schreiber:

As with every type, that has been created and initialized, HeapTypes created 
form PyType_FromSpecWithBases() have to pass through PyType_Ready(). Here the 
function inherit_special might be called, which, among other things, does the 
following:

3892 if (base != PyBaseObject_Type ||  
  
3893 (type-tp_flags  Py_TPFLAGS_HEAPTYPE)) {
3894 if (type-tp_new == NULL)
3895 type-tp_new = base-tp_new;
3896 }

The code does not know of Heaptypes that have been created from extension-types 
by the PEP 384 refactorings. This includes extension-types that do not specify 
a tp_new method but instead have seperate factory methods, that are only used 
within the extension module. inherit_special() might consequently assign 
inappropriate new-methods to these type objects.

To circumvent this issue, I propose to enhance PyType_FromSpecWithBases in the 
following way: If no tp_new has been specified, we assign the newly defined 
PySpec_New() method to tp_new which simply denies the user to create an 
instance of this type. This also prohibits inherit_special to falsely inherit 
inappropriate new-methods.

--
components: Interpreter Core
files: PyType_FromSpecWithBases_tp_new_fix.patch
keywords: patch
messages: 168579
nosy: Robin.Schreiber, loewis
priority: normal
severity: normal
status: open
title: PyType_FromSpecWithBases tp_new bugfix
type: behavior
versions: Python 3.4
Added file: 
http://bugs.python.org/file26897/PyType_FromSpecWithBases_tp_new_fix.patch

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



[issue15131] Document py/pyw launchers

2012-08-19 Thread Brian Curtin

Brian Curtin added the comment:

This was added by Vinay in 4a3439ef552c.

--
resolution:  - invalid
stage: needs patch - committed/rejected
status: open - closed

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



[issue15642] Integrate pickle protocol version 4 GSoC work by Stefan Mihaila

2012-08-19 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Is this patch stable? Or are there further changes coming?

--

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



[issue14668] Document the path option in the Windows installer

2012-08-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b07a408b0291 by Brian Curtin in branch 'default':
Fixes #14668. Mention Windows Path manipulation option in the installer.
http://hg.python.org/cpython/rev/b07a408b0291

--
nosy: +python-dev

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



[issue15726] PyState_FindModule false length-comparison fix

2012-08-19 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Looks good to me, thank you.

--
nosy: +pitrou
stage:  - patch review
versions: +Python 3.2, Python 3.3 -Python 3.4

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



[issue15728] Leak in PyUnicode_AsWideCharString()

2012-08-19 Thread Stefan Krah

New submission from Stefan Krah:

Coverity found a leak in PyUnicode_AsWideCharString(). Patch attached.

--
components: Interpreter Core
files: aswidechar-leak.diff
keywords: patch
messages: 168584
nosy: haypo, skrah
priority: normal
severity: normal
stage: patch review
status: open
title: Leak in PyUnicode_AsWideCharString()
type: resource usage
versions: Python 3.3
Added file: http://bugs.python.org/file26898/aswidechar-leak.diff

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



[issue15595] subprocess.Popen(universal_newlines=True) does not work for certain locales

2012-08-19 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Looks good for me, but please use assertEqual instead assertEquals.

--

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



[issue15037] curses.unget_wch and test_curses fail when linked with ncurses 5.7 and earlier

2012-08-19 Thread Ned Deily

Ned Deily added the comment:

To be clear, I've eliminated the problem for the OS X installer builds by 
supplying newer versions of libncursesw so I wasn't planning on doing anything 
more on this issue myself.  It should be easy enough to reproduce on most 
platforms by installing ncursesw 5.7.

--

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



[issue15595] subprocess.Popen(universal_newlines=True) does not work for certain locales

2012-08-19 Thread Chris Jerdonek

Chris Jerdonek added the comment:

Thank you, Andrew.  Here is a patch updated with that change (and also merging 
with tip).

--
Added file: http://bugs.python.org/file26899/issue-15595-4.patch

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



[issue15595] subprocess.Popen(universal_newlines=True) does not work for certain locales

2012-08-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a0f7c2f79bce by Andrew Svetlov in branch '3.2':
Issue #15595: Fix subprocess.Popen(universal_newlines=True)
http://hg.python.org/cpython/rev/a0f7c2f79bce

New changeset aceb820154c3 by Andrew Svetlov in branch 'default':
Issue #15595: Fix subprocess.Popen(universal_newlines=True)
http://hg.python.org/cpython/rev/aceb820154c3

--
nosy: +python-dev

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



[issue15595] subprocess.Popen(universal_newlines=True) does not work for certain locales

2012-08-19 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Fixed. Thank you.

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

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



[issue10951] gcc 4.6 warnings

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

Martin v. Löwis added the comment:

(As usual), I'm quite skeptical about this bulk bug report; it violates the 
one bug at a time principle, where one bug can roughly be defined as 
cannot be split into smaller independent issues.

For the cases at hand, I think it would be best if somebody with gcc 4.6 
available just fixed the easy ones, i.e. where the code clearly improves when 
silenciing the warning. In these cases, I wouldn't mind if they get checked in 
without code review; I know some favor review for all changes, in which case a 
separate issue should be opened for a patch fixing a bunch of these.

The more difficult ones may deserve their own issues (e.g. when it is debatable 
whether gcc is right to warn about the code)

--
nosy: +loewis

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



[issue15728] Leak in PyUnicode_AsWideCharString()

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

Martin v. Löwis added the comment:

LGTM.

--
nosy: +loewis

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



[issue15528] Better support for finalization with weakrefs

2012-08-19 Thread Richard Oudkerk

Richard Oudkerk added the comment:

New patch.

--
Added file: http://bugs.python.org/file26900/finalize.patch

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



[issue15728] Leak in PyUnicode_AsWideCharString()

2012-08-19 Thread Stefan Krah

Stefan Krah added the comment:

Thanks!

--

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



[issue15728] Leak in PyUnicode_AsWideCharString()

2012-08-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2703171ddf53 by Stefan Krah in branch 'default':
Issue #15728: Fix leak in PyUnicode_AsWideCharString(). Found by Coverity.
http://hg.python.org/cpython/rev/2703171ddf53

--
nosy: +python-dev

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



[issue15728] Leak in PyUnicode_AsWideCharString()

2012-08-19 Thread Stefan Krah

Changes by Stefan Krah stefan-use...@bytereef.org:


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

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



[issue15729] PyStructSequence_NewType enhancement

2012-08-19 Thread Robin Schreiber

New submission from Robin Schreiber:

To create a HeapType from Structseq description, there is the helpful, yet 
undocumented PyStructSequence_NewType Method, which can do just that.
Until now, this method solely allocates some generic TypeObject on which it 
then performs PyStructSequence_InitType().

I have found that this is far from enough, as for one the flags of the type are 
not set appropriately and neither ht_name nor ht_qualname are set (which is as 
far as I know required of a proper Heaptype).
I have now added this missing initialization of the fields to 
PyStructSequence_NewType(). 

I have also changed the previous definition of PyStructSequence_InitType, by 
extracting a new Method _PyStructSequence_InitTypeWithFlags. This initializes 
the given type with the flags variable passed to the function.
This method extraction is needed, as we can not alter the semantics of InitType 
itself, yet need some way to initialize a SequenceType with Heaptype-flags, 
without having too much duplicate code.

--
components: Interpreter Core
files: structseq_newtype_fix.patch
keywords: patch
messages: 168595
nosy: Robin.Schreiber, loewis
priority: normal
severity: normal
status: open
title: PyStructSequence_NewType enhancement
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file26901/structseq_newtype_fix.patch

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



[issue5765] stack overflow evaluating eval(() * 30000)

2012-08-19 Thread Francisco Martín Brugué

Francisco Martín Brugué added the comment:

Just curiosity: how relate the magic numbers 10 and 2000 in 
test_compiler_recursion_limit to recursion_depth and recursion_limit

Thanks!

--
nosy: +francismb

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



[issue13579] string.Formatter doesn't understand the a conversion specifier

2012-08-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 24b449a77e88 by R David Murray in branch '3.2':
#13579: teach string.Formatter about 'a'.
http://hg.python.org/cpython/rev/24b449a77e88

New changeset 4feb10457c13 by R David Murray in branch 'default':
Merge #13579: teach string.Formatter about 'a'.
http://hg.python.org/cpython/rev/4feb10457c13

New changeset c793d62cdecc by R David Murray in branch '2.7':
#13579: minimize code base drift for 'a' string.Formatter change.
http://hg.python.org/cpython/rev/c793d62cdecc

--
nosy: +python-dev

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



[issue13579] string.Formatter doesn't understand the a conversion specifier

2012-08-19 Thread R. David Murray

R. David Murray added the comment:

I've reviewed the patch and applied it.

2.7 doesn't support !a or 'ascii()', but I did backport the doc changes and the 
reordering of the clauses in order to minimize code base drift.

Thanks, Francisco.

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

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



[issue15642] Integrate pickle protocol version 4 GSoC work by Stefan Mihaila

2012-08-19 Thread Stefan Mihaila

Stefan Mihaila added the comment:

There are still some upcoming changes.

--

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



[issue5765] stack overflow evaluating eval(() * 30000)

2012-08-19 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Indeed I don't like the introduction of COMPILER_STACK_FRAME_SCALE.
Re-using the existing infrastructure would be much easier to maintain.
The default recursion limit is 1000, which should cover any non-pathological 
code, IMHO.

--
nosy: +pitrou
stage:  - patch review
versions:  -Python 2.6, Python 3.1, Python 3.4

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



[issue12436] Missing items in installation/setup instructions

2012-08-19 Thread Mike Hoy

Changes by Mike Hoy mho...@gmail.com:


Added file: http://bugs.python.org/file26902/issue12436-notepad_plus_plus_2.diff

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



[issue5765] stack overflow evaluating eval(() * 30000)

2012-08-19 Thread Amaury Forgeot d'Arc

Changes by Amaury Forgeot d'Arc amaur...@gmail.com:


Added file: 
http://bugs.python.org/file26903/compiler_recursion_limit_check-2.patch

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



[issue5765] stack overflow evaluating eval(() * 30000)

2012-08-19 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

The patch is incomplete: the VISIT macro contains a return 0; and in this 
case st-recursion_depth is not decremented.
OTOH errors are never caught, so it's not necessary to do any cleanup in case 
of errors.
Here is a simplified patch.

--

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



[issue15574] IDLE crashes using clipboard copy command on OS X with ActiveTcl 8.5.12

2012-08-19 Thread Ned Deily

Ned Deily added the comment:

An update: ActiveState has released a Tcl/Tk 8.5.12.1 for OS X and, while it 
fixes a similar crash-on-copy from within the Wish shell, it doesn't fix the 
crash-on-copy from within tkinter and IDLE.  Plus, I notice now there's also 
another regression in 8.5.12.x, a crash when opening IDLE preferences.  Since 
ActiveTcl only makes available the most recent build in their Community 
Edition, I would recommend not updating and holding on to 8.5.11.1 until this 
is resolved.  I'm now able to build Tcl/Tk to reproduce. I'll see if I can 
bisect it.

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

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



[issue12436] Missing items in installation/setup instructions

2012-08-19 Thread Mike Hoy

Mike Hoy added the comment:

Wrapped my text columns to 80. Ignore v2.

--
Added file: http://bugs.python.org/file26904/issue12436-notepad_plus_plus_3.diff

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



[issue11631] Python 2.7.1 64bit, Win7 64bit problem to read and write with UDP.

2012-08-19 Thread Mahmood Hikmet

Mahmood Hikmet added the comment:

I am facing this same issue.

I set recvfrom to have a timeout of 5 seconds and stuck it in an infinite loop 
with some response code based on what is received.

The sending functionality of the socket is not compromised at all. It can 
always send. However, after about 10-20 minutes of normal operation (i.e. 
packets are being sent and received properly) - python stops being able to 
receive packets (but is still able to send them).

Cross-checking this with wireshark showed me that incoming packets are being 
received by the system (so the problem is somewhere between receiving them on 
the network adapter and accessing it in python).

I'm running 64bit Windows 7 with 2 network adapters (wired and wireless).

I also tried running the same python script in 4-200 processes simultaneously 
(but on different ports), and the error happens at the same time for ALL 
windows.

All firewalls are disabled.

--
nosy: +sadmoody

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



[issue11631] Python 2.7.1 64bit, Win7 64bit problem to read and write with UDP.

2012-08-19 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 I set recvfrom to have a timeout of 5 seconds and stuck it in an
 infinite loop with some response code based on what is received.

Does it make a difference if you set specify a timeout?
Could you upload a script that reproduces the issue?
Also, which Python version have you been running?

--
nosy: +pitrou

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



[issue14814] Implement PEP 3144 (the ipaddress module)

2012-08-19 Thread Nick Coghlan

Changes by Nick Coghlan ncogh...@gmail.com:


--
assignee:  - ncoghlan

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



[issue11631] Python 2.7.1 64bit, Win7 64bit problem to read and write with UDP.

2012-08-19 Thread Mahmood Hikmet

Mahmood Hikmet added the comment:

I'm unsure what you mean by set specify a timeout, but I do use the 
settimeout() function.

I've stripped my program of everything that is not dealing with the socket and 
replaced the string being sent back with a dummy one. But this is essentially 
how it's laid out.

I'm using Python 2.7.2

--
Added file: http://bugs.python.org/file26905/recvfrom_fail.py

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



[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2012-08-19 Thread Kevin Chen

Changes by Kevin Chen mr.kevin.chen...@gmail.com:


--
nosy: +ncoghlan

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



[issue14814] Implement PEP 3144 (the ipaddress module)

2012-08-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 258558e36d8a by Nick Coghlan in branch 'default':
Issue #14814: document the Interface APIs and fix various problems with the 
string representations (initial patch by Eli Bendersky).
http://hg.python.org/cpython/rev/258558e36d8a

--

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



[issue14814] Implement PEP 3144 (the ipaddress module)

2012-08-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 811d91591f73 by Nick Coghlan in branch 'default':
Close #14814: Avoid depending on struct by using newer features. Also use 
enumerate where appropriate (patch by Serhiy Storchaka). Declaring PEP 3144 
final at this point - any further changes to code or docs can go in new issues.
http://hg.python.org/cpython/rev/811d91591f73

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

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



[issue15730] Silence unused value warnings under Mac OS X 10.8/clang

2012-08-19 Thread Benno Rice

New submission from Benno Rice:

This patch silences a bunch of unused value warnings emitted by clang when 
building on Mac OS X 10.8.

--
assignee: ronaldoussoren
components: Interpreter Core, Macintosh
files: warning-silencing.patch
keywords: patch
messages: 168609
nosy: Benno.Rice, ronaldoussoren
priority: normal
severity: normal
status: open
title: Silence unused value warnings under Mac OS X 10.8/clang
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file26906/warning-silencing.patch

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



[issue2051] PYO file permission problem

2012-08-19 Thread Nick Coghlan

Nick Coghlan added the comment:

Since there was no regression test added for this, it appears to me that it is 
broken again now that we're using importlib.

It may be rather hard to fix given the limitations of the set_data API :(

--
assignee: facundobatista - 
nosy: +brett.cannon, georg.brandl, ncoghlan
priority: high - release blocker
resolution: accepted - 
status: closed - open
versions: +Python 3.3 -Python 2.6

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



[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2012-08-19 Thread Nick Coghlan

Nick Coghlan added the comment:

OK, I tracked down the original reason for the behavioural change: #2051

The important aspect in that patch is preserving the *read* permissions from 
the .py file so we don't accidentally expose data to other users.

Kevin's patch seems like a good approach for restoring compatibility in 2.7 and 
3.2

In 3.3, it appears that #2051 has regressed, since no test was added to confirm 
the correct behaviour and importlib appears to behave more like 2.5.

--
versions:  -Python 3.1

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



[issue7665] test_urllib2 and test_ntpath fail if path contains \

2012-08-19 Thread Benno Rice

Benno Rice added the comment:

This patch fixes the urllib2 test. I wasn't able to replicate the ntpath test 
failure.

This patch needs testing on Windows to make sure I haven't broken anything.

--
keywords: +patch
nosy: +Benno.Rice
Added file: 
http://bugs.python.org/file26907/urllib2-conditionalise-path-hacking.patch

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



[issue15730] Silence unused value warnings under Mac OS X 10.8/clang

2012-08-19 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
nosy: +ned.deily
stage:  - patch review

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



[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2012-08-19 Thread Nick Coghlan

Nick Coghlan added the comment:

(Note: Kevin is looking into this at the PyConAU sprints)

New test case needed (probably in Lib/test/test_import.py):

- create .py file as 0400
- import it
- check .pyc (or .pyo) file is 0600

That ensures the #2501 security bug remains fixed, while also addressing this 
problem.

--

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



[issue2051] PYO file permission problem

2012-08-19 Thread Brett Cannon

Brett Cannon added the comment:

On Aug 19, 2012 9:26 PM, Nick Coghlan rep...@bugs.python.org wrote:


 Nick Coghlan added the comment:

 Since there was no regression test added for this, it appears to me that
it is broken again now that we're using importlib.

 It may be rather hard to fix given the limitations of the set_data API :(

From an API perspective it's tough, but realistically it should be possible
since the loaders have the path to the file that triggered the find as the
'path' attribute.


 --
 assignee: facundobatista -
 nosy: +brett.cannon, georg.brandl, ncoghlan
 priority: high - release blocker
 resolution: accepted -
 status: closed - open
 versions: +Python 3.3 -Python 2.6

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue2051
 ___

--

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



[issue8810] TZ offset description is unclear in docs

2012-08-19 Thread Ben Finney

Ben Finney added the comment:

Here is an updated patch. I examined the implementation in the code for UTC 
offset and DST handling, and updated the code comments, the docstrings, and the 
library documentation.

--
keywords: +patch
nosy: +bignose, ncoghlan
Added file: http://bugs.python.org/file26908/issue8810_reconcile_docs.patch

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



[issue14846] Change in error when sys.path contains a nonexistent folder (importlib)

2012-08-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset bfd04bfb55c5 by Nick Coghlan in branch 'default':
Close #14846: Handle a sys.path entry going away
http://hg.python.org/cpython/rev/bfd04bfb55c5

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

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



[issue13299] namedtuple row factory for sqlite3

2012-08-19 Thread Russell Sim

Russell Sim added the comment:

Hi,

Here is an implementation using lru_cache to prevent regeneration of the named 
tuple each time.

Cheers,
Russell

--
keywords: +patch
nosy: +Russell.Sim
Added file: http://bugs.python.org/file26909/issue_13299.patch

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



[issue5808] Subprocess.getstatusoutput Fails Executing 'dir' Command on Windows

2012-08-19 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
superseder:  - subprocess.getoutput fails on win32

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



[issue15731] Mechanism for inheriting docstrings and signatures

2012-08-19 Thread Nick Coghlan

New submission from Nick Coghlan:

While working on #8810, I was reminded of the problem of wanting to inherit 
docstrings while replacing a method implementation.

The abstract base class method docstrings for tzinfo.utcoffset and tzinfo.dst 
are also correct for the concrete subclasses in the pure Python and the C 
versions. However, the docstrings currently need to be duplicated in all 3 
places manually.

functools.wraps already plays in this space, but arguably asserts *too much* 
about the relationship between components

A couple of descriptors on bound and unbound methods (for __doc__ and 
__signature__) could have dealt with this fairly easily, but we don't have 
unbound methods any more :(

--
components: Library (Lib)
messages: 168618
nosy: eric.snow, ncoghlan
priority: normal
severity: normal
status: open
title: Mechanism for inheriting docstrings and signatures
type: enhancement
versions: Python 3.4

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



[issue15731] Mechanism for inheriting docstrings and signatures

2012-08-19 Thread Nick Coghlan

Nick Coghlan added the comment:

Slight correction: turns out this docstring appears in a lot of other places, 
too.

--

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



[issue8810] TZ offset description is unclear in docs

2012-08-19 Thread Nick Coghlan

Nick Coghlan added the comment:

It turns out these particular docstrings are duplicated all over the place, as 
time and datetime both wrap the tzinfo method, and there is both the tzinfo ABC 
as well as the concrete fixed offset subclasses, and this happens in both C and 
Python.

Ben's patch currently only covers the docstrings for the Python tzinfo ABC 
implementation

--

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



[issue1152248] Add support for reading records with arbitrary separators to the standard IO stack

2012-08-19 Thread Nick Coghlan

Changes by Nick Coghlan ncogh...@gmail.com:


--
title: Enhance file.readlines by making line separator selectable - Add 
support for reading records with arbitrary separators to the standard IO stack
versions: +Python 3.4 -Python 3.2

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