[issue2286] Stack overflow exception caused by test_marshal on Windows x64

2011-11-28 Thread Sébastien Sablé

Sébastien Sablé sa...@users.sourceforge.net added the comment:

Thanks Terry, I am aware of that.
We are working on making Python work with VS2010 in issue 13210.

I will check with the py3k branch soon and report here if the same problem 
applies.

--

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



[issue13481] Use an accurate clock in timeit

2011-11-28 Thread Raymond Hettinger

Raymond Hettinger raymond.hettin...@gmail.com added the comment:

I think this should be rejected.

--
nosy: +rhettinger

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



[issue13492] ./configure --with-system-ffi=LIBFFI-PATH

2011-11-28 Thread Michael Kraus

New submission from Michael Kraus krausmic...@gmail.com:

It would be very helpful to have the ability to specify a LIBFFI-PATH during 
Python configuration via

./configure --with-system-ffi=LIBFFI-PATH

We are using the Intel compiler to build Python, NumPy, SciPy, and Cython on a 
SuSE Linux Enterprise Server. Libffi uses some 128bit int type which is not 
defined by the Intel compiler, thus can't be build with it. 

Unfortunately, the ./configure script, if run with --with-system-ffi looks for 
the ffi includes only in the standard directories (/usr/include, etc.). On our 
cluster, we are not allowed to install into the main system, we can only add 
modules. As there is no libffi coming with SLES and we cannot install it into 
the standard directories, the configure script won't find it. Thus the above 
request.

Best regards,
Michael

--
components: Build
messages: 148472
nosy: michael.kraus
priority: normal
severity: normal
status: open
title: ./configure --with-system-ffi=LIBFFI-PATH
type: feature request
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4

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



[issue10131] deepcopying an xml.dom.minidom.Document generates an invalid XML document

2011-11-28 Thread Yevgen Yampolskiy

Yevgen Yampolskiy genij.m...@gmail.com added the comment:

Marian, I have no doubts that the patch cures THIS issue. 
The problem is that it cures the wrong thing.
It is _reconstruct function that needs to be fixed (somebody changed order of 
'if' statements between 2.6 and 2.7 releases)

--

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



[issue13493] using python embed on AIX 6.1,Modules import error!

2011-11-28 Thread python_hu

New submission from python_hu nari...@163.com:

Using python api embed on AIX 6.1,Modules import error,need help!
I have compile Python2.5.5 on Aix 6.1 using condigure:
 ./configure --with-gcc=xlc_r -q64 --with-cxx=xlC_r -q64 --disable-ipv6 
AR=ar -X64
when i run Python,and import math module,it works well:

ibm1:python2.5python
Python 2.5.5 (r255:77872, Nov 28 2011, 13:32:10) [C] on aix6
Type help, copyright, credits or license for more information.
 import math
 

But when i using in my C++ program,it works erro,the follow is mt code :
//{{C++

#include stdio.h
#include Python.h
#include dlfcn.h 

int main( int argc, char **argv )
{
 Py_Main(argc, argv); 
}

//}}

When i run this code.it has erro like that:
ibm1:pytestpytest
Python 2.5.5 (r255:77872, Nov 28 2011, 13:32:10) [C] on aix6
Type help, copyright, credits or license for more information.
 import math
_PyImport_GetDynLoadFunc142:/usr/local/lib/python2.5/lib-dynload/math.so,flags=2_
_PyImport_GetDynLoadFunc_erro:/usr/local/lib/python2.5/lib-dynload/math.so
Traceback (most recent call last):
  File stdin, line 1, in module
ImportError:0509-130 Symbol resolution failed 
/usr/local/lib/python2.5/lib-dynload/math.so because:
0509-136   Symbol PyArg_Parse (number 0) is not exported from
   dependent module pytest.
0509-136   Symbol PyArg_ParseTuple (number 1) is not exported from
   dependent module pytest.
0509-136   Symbol Py_BuildValue (number 2) is not exported from
   dependent module pytest.
0509-136   Symbol PyDict_GetItemString (number 3) is not exported from
   dependent module pytest.
0509-136   Symbol PyErr_NoMemory (number 4) is not exported from
   dependent module pytest.
0509-136   Symbol PyErr_Occurred (number 5) is not exported from
   dependent module pytest.
0509-021 Additional errors occurred but are not reported.
0509-192 Examine .loader section symbols with the
 'dump -Tv' command.



--
components: None
messages: 148474
nosy: python_hu
priority: normal
severity: normal
status: open
title: using python embed on AIX 6.1,Modules import error!
type: crash
versions: Python 2.6

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



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

2011-11-28 Thread Weeble

Weeble clockworksa...@gmail.com added the comment:

I'm not sure what rules are used by Windows to process the PATH string, but I 
think they are similar to the rules used to parse the command-line into argv in 
a C/C++ program: http://msdn.microsoft.com/en-us/library/17w5ykft.aspx

I have tested various arrangements of double-quotes in path elements. It 
appears the quotes can appear anywhere, not just at the start and end of 
entries. As far as I can tell, *all* they do is toggle the interpretation of 
the semicolon character between a separator and a character in the directory 
path. Note in particular: quotes may surround an entire path, segments of a 
path, fragments of segments of a path, or even may be completely empty. Any 
number of quotes can appear in a single path entry. There doesn't even need to 
be an even number of quotes - it seems that an odd number of quotes are treated 
the same as if a final quote was appended to the very end of the PATH string.

Running my attached test batch file, I see these results:

c:\Users\weeblepathtest
PATH=
FAIL

PATH=c:\Users\weeble\foo;bar
FAIL

PATH=c:\Users\weeble\foo;bar
SUCCESS

PATH=c:\Users\weeble\foo;bar
SUCCESS

PATH=c:\Users\weeble\foo;bar
SUCCESS

PATH=c:\Users\weeble\foo;bar
SUCCESS

PATH=c:\Users\weeble\foo;bar
SUCCESS

PATH=
FAIL

PATH=c:\Users\weeble\foo;bar
SUCCESS

--
nosy: +weeble
Added file: http://bugs.python.org/file23797/pathtest.bat

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



[issue13493] using python embed on AIX 6.1,Modules import error!

2011-11-28 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

It may be related to issue941346.  Can you try with a newer version of Python? 
2.5 is not maintained anymore.

--
nosy: +amaury.forgeotdarc

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



[issue13473] Add tests for files byte-compiled by distutils[2]

2011-11-28 Thread Éric Araujo

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

See http://bugs.python.org/issue12119#msg146943

--

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



[issue13400] packaging: build command should have options to control byte-compilation

2011-11-28 Thread Éric Araujo

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

 I suggest to not use pyc and pyo in options, because .pyc and .pyo 
 filename extensions
 are specific to a subset of Python implementations. Jython uses $py.class 
 filename extension
 (module$py.class for module.py).
But these are extension modules, not Python modules byte-compiled for caching, 
are they?

 You could use --byte-compile, --no-byte-compile and --optimize-bytecode (or 
 --optimize-byte-code)
 for both build and build_py commands.
I like the first two names, but still think that --optimize-bytecode might make 
people imply that the option is dependent on (or implying) --byte-compile.  
Maybe it’s just me; I did not read the source for these options closely and was 
under this misconception for months.  OTOH, even with one maybe possibly 
ambiguous option name, I can still make the help text clearer (i.e. 
“byte-compile Python modules” and “byte-compile Python modules with 
optimizations”).

(We’re spending a lot of thoughts for a very marginally useful feature (.pyo 
files).)

 Do settings from setup.cfg affect byte-compilation?
Yes.  Like any command options, --(no-)compile and --optimize can be given in 
config files or on the command-line.

BTW, why don’t you want byte-compiled files on your system?

--

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



[issue13486] msvc9compiler.py doesn't properly generate manifest files.

2011-11-28 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +mhammond

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



[issue12618] py_compile cannot create files in current directory

2011-11-28 Thread Éric Araujo

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

 I have attached an updated patch with a unit test.
LGTM.

 Also, this is not an issue for Python 2.7.  The 2.7 implementation assumes any
 directories mentioned in the path already exist.
Cool.  The test can still be committed in that branch too.

--
assignee:  - meador.inge
versions: +Python 2.7

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



[issue13494] 'cast' any value to a Boolean?

2011-11-28 Thread Mark Dickinson

New submission from Mark Dickinson dicki...@gmail.com:

Docs nit:  at http://docs.python.org/dev/library/stdtypes.html#boolean-values 
we have


The built-in function bool() can be used to cast any value to a Boolean ...


It's a little unusual to talk about casting in Python.  Any objections to 
replacing 'cast' with 'convert'?

--
assignee: docs@python
components: Documentation
messages: 148480
nosy: docs@python, mark.dickinson
priority: normal
severity: normal
status: open
title: 'cast' any value to a Boolean?
versions: Python 2.7, Python 3.2, Python 3.3

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



[issue13494] 'cast' any value to a Boolean?

2011-11-28 Thread Ezio Melotti

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

+1

--
nosy: +ezio.melotti
stage:  - needs patch

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



[issue12307] Inconsistent formatting of section titles in PEP 0

2011-11-28 Thread Éric Araujo

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

1b7fed04108c should help make figure out that it needs to rebuild.

--

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



[issue12307] Inconsistent formatting of section titles in PEP 0

2011-11-28 Thread Éric Araujo

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

Rebuilt!  (Another glitch: plain text PEPs really should have an HTML title.  
If you have time.. :)

--

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



[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2011-11-28 Thread Éric Araujo

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

Is subprocess affected by PYTHONIOENCODING?

--

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



[issue10318] make altinstall installs many files with incorrect shebangs

2011-11-28 Thread Éric Araujo

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

Can I removed the shebangs in the 3.3 stdlib or do I need to go through with 
the PEP 8 patch on python-dev first?

--
versions:  -Python 2.7, Python 3.2

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



[issue13491] Fixes for sqlite3 doc

2011-11-28 Thread Éric Araujo

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

It is very helpful that you review the docs.  Some obvious fixes were made when 
moving to Python 3 (print, etc.) but apparently the examples were not run.  
Sphinx can let us run the code blocks in reST files as doctests, but it is 
currently not done because the docs are built with a Python 2 version.

I have reviewed your patch on our code review tool; I did not check your 
message (a patch is much easier :).

 I feel these should be standalone examples out of the box. the sqlite3 
 includes have a
 createdb.py file which would create the tables but it is not referenced in 
 the
 documenta[tion]. I do not know the reasoning behind this, but I would like to 
 have standalone
 examples in these cases.

I think the examples do not stand alone because their author wanted to create 
and populate a database with many entries, to demonstrate querying, and it was 
easier to write one script once than to either clutter the examples with long 
table creation code or having examples with so few rows that it would not be 
realistic/interesting.  To help people wanting to run the examples in the docs, 
we could explain that createdb.py needs to be run first.

The createdb script and other sqlite3 doc examples were added when sqlite3 was 
added in Python 2.5; I’m adding the module author and then-doc lead (hi Gerhard 
and Fred), maybe they can shed more light on this.

--
nosy: +eric.araujo, fdrake, ghaering, petri.lehtinen
title: sqlite3 code adjustments - Fixes for sqlite3 doc
versions: +Python 3.2

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



[issue13487] inspect.getmodule fails when module imports change sys.modules

2011-11-28 Thread Éric Araujo

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

Maybe it can be caused by an installation happening during the loop.  I agree 
with Erik’s reading of the comment and patch, and don’t think a test is needed.

--
nosy: +eric.araujo
stage:  - patch review
type:  - behavior
versions:  -Python 3.1

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



[issue13493] Import error with embedded python on AIX 6.1

2011-11-28 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
components:  -None
stage:  - test needed
title: using python embed on AIX 6.1,Modules import error! - Import error with 
embedded python on AIX 6.1
type: crash - behavior
versions: +Python 2.7 -Python 2.6

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



[issue13210] Support Visual Studio 2010

2011-11-28 Thread Sébastien Sablé

Sébastien Sablé sa...@users.sourceforge.net added the comment:

OK Brian, I checked your clone and I will keep an eye on it.

I have done almost the same thing for the moment. My patch queue includes some 
additional corrections for a few more bugs that prevented me from completely 
running the test suite (crash dumps).

I will start working on Python 'default' probably tomorrow.

--

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



[issue13492] ./configure --with-system-ffi=LIBFFI-PATH

2011-11-28 Thread Meador Inge

Changes by Meador Inge mead...@gmail.com:


--
nosy: +meador.inge
stage:  - needs patch

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



[issue13494] 'cast' any value to a Boolean?

2011-11-28 Thread Meador Inge

Meador Inge mead...@gmail.com added the comment:

+1

--
nosy: +meador.inge

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



[issue13210] Support Visual Studio 2010

2011-11-28 Thread Brian Curtin

Brian Curtin br...@python.org added the comment:

If you want to clone from that repo, use the vs2010 branch.

hg clone http://hg.python.org/sandbox/vs2010port/
hg up vs2010

From there, you can post patches here that I can integrate for you.

--
assignee:  - brian.curtin

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



[issue12618] py_compile cannot create files in current directory

2011-11-28 Thread Roundup Robot

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

New changeset 661fb211f220 by Meador Inge in branch '3.2':
Issue #12618: py_compile cannot create files in current directory
http://hg.python.org/cpython/rev/661fb211f220

New changeset e3647275f468 by Meador Inge in branch 'default':
Issue #12618: py_compile cannot create files in current directory
http://hg.python.org/cpython/rev/e3647275f468

--

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



[issue12618] py_compile cannot create files in current directory

2011-11-28 Thread Meador Inge

Meador Inge mead...@gmail.com added the comment:

 Cool.  The test can still be committed in that branch too.

The regression test for this issue was already committed for 2.7 in 
bcc7bf3963cc as a part of creating the unit test baseline.  I just committed 
the bug fix to 3.2 and default.

Thanks for the fix Sjoerd.

--
resolution:  - fixed

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



[issue12618] py_compile cannot create files in current directory

2011-11-28 Thread Meador Inge

Changes by Meador Inge mead...@gmail.com:


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

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



[issue13210] Support Visual Studio 2010

2011-11-28 Thread Éric Araujo

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

A tip to make Mercurial download only a subset of all the changesets in the 
repo:

  hg clone URI -r branch

or

  hg clone URI#branch

(The difference is that in the second form, URI#branch will be recorded in the 
.hg/hgrc file and subsequent pulls will only pull from that branch.)

bandwith-is-a-scarce-resource’ly yours

--

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



[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2011-11-28 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 Is subprocess affected by PYTHONIOENCODING?

Yes, as any Python process.

--

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



[issue6135] subprocess seems to use local encoding and give no choice

2011-11-28 Thread Éric Araujo

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

So the users can control the encoding, and this is a doc bug.

--
title: subprocess seems to use local 8-bit encoding and gives no choice - 
subprocess seems to use local encoding and give no choice

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



[issue6135] subprocess seems to use local encoding and give no choice

2011-11-28 Thread R. David Murray

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

If you decide this is only a doc bug, please see also related issue 12832.

--
nosy: +r.david.murray

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



[issue12832] The documentation for the print function should explain/point to how to control the sys.stdout encoding

2011-11-28 Thread Éric Araujo

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

Thanks for the patch.  It was reviewed on our code review tool; if you did not 
get an email (there are glitches), follow the link on the right of your patch 
in the list of files.

--
nosy: +eric.araujo

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



[issue6135] subprocess seems to use local encoding and give no choice

2011-11-28 Thread Antoine Pitrou

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

 So the users can control the encoding, and this is a doc bug.

Not really. People can control the encoding in the child process (and only if 
it's a Python 3 process of course).
They can't control the encoding in the parent's subprocess pipes and that's 
what the request ( patch) is about.

--
versions: +Python 3.3

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



[issue13400] packaging: build command should have options to control byte-compilation

2011-11-28 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:

Jython's *$py.class files are byte-compiled modules, not extension modules.

There should be a way to disable generation of *.pyo files on command line even 
if setup.cfg enables it.

IMHO it would make more sense if --optimize-bytecode was dependant on 
--byte-compile option:
--no-byte-compile  - No *.pyc and *.pyo
--byte-compile --optimize-bytecode=0   - Only *.pyc
--byte-compile --optimize-bytecode=0,1 - *.pyc and *.pyo (with docstrings)
--byte-compile --optimize-bytecode=0,2 - *.pyc and *.pyo (without docstrings)
--byte-compile --optimize-bytecode=1   - Only *.pyo (with docstrings)
--byte-compile --optimize-bytecode=2   - Only *.pyo (without docstrings)
--byte-compile --optimize-bytecode=1,2 - Error

Byte-compiled files in Gentoo are generated separately, after installation.

--

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



[issue13400] packaging: build command should have options to control byte-compilation

2011-11-28 Thread Éric Araujo

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

 Jython's *$py.class files are byte-compiled modules, not extension modules.
Thanks for the data point.  Agreed distutils[2] should not say “pyc” and “pyo” 
then.

 There should be a way to disable generation of *.pyo files on command line 
 even if
 setup.cfg enables it.
There is.  The precedence of options is: stdlib distutils.cfg  (overriden by) 
user .pydistutils.cfg  local setup.cfg  options on the command line.  Pass 
--no-compile --optimize=0 to never ever byte-compile (or pass --no-user-cfg and 
rely on the defaults).

 IMHO it would make more sense if --optimize-bytecode was dependant on 
 --byte-compile option:
It was also my expectation, as I told.  The scheme that you propose keeps all 
current possibilities, it’s nice!  What do you think about conflating two 
options into one?

 --no-byte-compile - No *.pyc or *.pyo
 --byte-compile- Only *.pyc
 --byte-compile=0  - Only *.pyc
 --byte-compile=0,1- *.pyc and *.pyo (level 1)
(etc.)
There may be a technical hurdle to overcome (not sure the option parsing system 
will allow 0 or more arg), but I’m asking for human interface feedback first.  
(I’m just trying to make the list of options a bit smaller to reduce the 
overload, but if it feels complicated I won’t do it.)

 Byte-compiled files in Gentoo are generated separately, after installation.
Are you using standard py_compile or compileall modules or your own scripts?  
I’ve seen that Debian for example has its own scripts and I’m sad to see no 
feature requests upstreamed to us instead.

--
assignee: tarek - eric.araujo

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



[issue12119] distutils and python -B

2011-11-28 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:

Please don't backport this change to distutils without backporting --no-compile 
options to build command in distutils (issue #13400). Otherwise users would 
lose possibility of disabling byte-compilation during running this command.

distutils tests could use locally modified environment with 
PYTHONDONTWRITEBYTECODE variable removed.

--
nosy: +Arfrever

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



[issue12119] distutils and python -B

2011-11-28 Thread Éric Araujo

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

 Please don't backport this change to distutils without backporting 
 --no-compile options to
 build command in distutils (issue #13400).
The feature freeze on distutils rules this out.

 Otherwise users would lose possibility of disabling byte-compilation during 
 running this command.
python setup.py build build_py --no-compile --optimize=0

--

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



[issue13400] packaging: build command should have options to control byte-compilation

2011-11-28 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:

--byte-compile=arguments is a good idea.

(Gentoo uses py_compile and compileall modules.)

--

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



[issue13492] ./configure --with-system-ffi=LIBFFI-PATH

2011-11-28 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +amaury.forgeotdarc, belopolsky
versions:  -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.4

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



[issue13400] packaging: build command should have options to control byte-compilation

2011-11-28 Thread Éric Araujo

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

Thanks for all the feedback!  So, for anyone interested in contributing, two 
patches are needed:

One that changes the existing options to use the new names and parsing behavior 
(--no-compile, --compile[=0,1,2]) and adds tests for the erroneous 
--compile=1,2 (other combinations are already covered).

A second one to add --no-compile and --compile to build, make build_py take its 
default values from build, and add tests to see if this works.

As usual, I’m available for help here, on the core-mentorship list or in 
private email.  (I don’t plan to do this myself in the short term because it’s 
a minor feature, I have an alpha to release and I have to keep the easiest 
things for new contributors.)

--
dependencies: +Add tests for files byte-compiled by distutils[2]

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



[issue7111] abort when stderr is closed

2011-11-28 Thread Charles-François Natali

Charles-François Natali neolo...@free.fr added the comment:

 Updated patch.


LGTM.

--

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



[issue12307] Inconsistent formatting of section titles in PEP 0

2011-11-28 Thread Eric Snow

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

Thanks, Éric.  That looks good.  I'll keep that HTML title thing in mind.  :)

--

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



[issue7111] abort when stderr is closed

2011-11-28 Thread Roundup Robot

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

New changeset f15943505db0 by Antoine Pitrou in branch '3.2':
Issue #7111: Python can now be run without a stdin, stdout or stderr stream.
http://hg.python.org/cpython/rev/f15943505db0

New changeset c86fb10eaf68 by Antoine Pitrou in branch 'default':
Issue #7111: Python can now be run without a stdin, stdout or stderr stream.
http://hg.python.org/cpython/rev/c86fb10eaf68

--
nosy: +python-dev

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



[issue7111] abort when stderr is closed

2011-11-28 Thread Antoine Pitrou

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

Thanks, committed.

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

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



[issue13487] inspect.getmodule fails when module imports change sys.modules

2011-11-28 Thread Erik Tollerud

Erik Tollerud erik.tolle...@gmail.com added the comment:

The package that triggers it for me is the py (http://pypi.python.org/pypi/py) 
package - when in gets imported, it does some trick with sys.modules that is in 
place to get around some pickling restriction, but that means sys.modules is 
altered during the import of the `py` package... and that triggers the 
exception.

--

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



[issue13093] Redundant code in PyUnicode_EncodeDecimal()

2011-11-28 Thread Charles-François Natali

Charles-François Natali neolo...@free.fr added the comment:

A 2.7 OS X buildbot segfaults in test_unicode since 0cd197f13400 :

http://www.python.org/dev/buildbot/all/builders/AMD64 Snow Leopard 2 
2.7/builds/409/steps/test/logs/stdio


test_unicode
make: *** [buildbottest] Segmentation fault
program finished with exit code 2


--
nosy: +neologix
status: closed - open

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



[issue13487] inspect.getmodule fails when module imports change sys.modules

2011-11-28 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

When a package is imported sys.modules changes... nothing special here.
But it's true true that py.std, for example, is a lazy module with a special 
__getattr__ that will import submodules.

Patch looks good to me as well.

--

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



[issue11379] Remove lightweight from minidom description

2011-11-28 Thread Stefan Behnel

Stefan Behnel sco...@users.sourceforge.net added the comment:

Ok, so, what do we make of this? I proposed improvements to the wording in the 
documentation, which make it much clearer for users what they are buying into 
when they start using minidom. I still think that factually correct but 
clearly misleading documentation is not helpful and that it needs fixing. Here 
is an updated phrasing that I hope we can settle on:


:mod:`xml.dom.minidom` --- Pure Python DOM implementation

[...]

:mod:`xml.dom.minidom` is a pure Python implementation of the Document Object 
Model interface, as known from other programming languages. It is intended to 
provide a smaller and simpler API than the full W3C DOM.

Note that MiniDOM has a several times larger memory footprint than 
:mod:`xml.etree.ElementTree`, the light-weight Python XML library in the 
standard library. If you do not need a (mostly) compliant W3C DOM 
implementation, but a fast and memory friendly XML tree implementation with an 
easy to learn API, use that instead.


--

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



[issue12119] distutils and python -B

2011-11-28 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@haypocalc.com:


--
nosy:  -haypo

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



[issue13495] IDLE: Regression - Two ColorDelegator instances loaded

2011-11-28 Thread Roger Serwy

New submission from Roger Serwy roger.se...@gmail.com:

Two instances of ColorDelegator are in the percolator chain. This is a 
regression from 2.x.

The problem can be found in __init__ of EditorWindow in EditorWindow.py.

Calling io.loadfile eventually calls filename_change_hook (See 
IOBinding.py's set_filename). The filename_change_hook calls 
ResetColorizer which brings up an instance of ColorDelegator. Then, the 
self.color reference is overwritten by a new ColorDelegator instance and added 
to the percolator chain.

The attached patch fixes the problem.

--
components: IDLE
files: colorbug.patch
keywords: patch
messages: 148513
nosy: ned.deily, serwy
priority: normal
severity: normal
status: open
title: IDLE: Regression - Two ColorDelegator instances loaded
type: behavior
versions: Python 3.1, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file23798/colorbug.patch

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



[issue13434] time.xmlrpc.com dead

2011-11-28 Thread Roundup Robot

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

New changeset da148f0d86bd by Antoine Pitrou in branch '3.2':
Issue #13434: skip the time.xmlrpc.com test, and reenable the buildbot test.
http://hg.python.org/cpython/rev/da148f0d86bd

New changeset 1330beac9ec9 by Antoine Pitrou in branch 'default':
Merge test_xmlrpc_net fixes (issue #13434)
http://hg.python.org/cpython/rev/1330beac9ec9

--
nosy: +python-dev

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



[issue13434] time.xmlrpc.com dead

2011-11-28 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


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

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



[issue13093] Redundant code in PyUnicode_EncodeDecimal()

2011-11-28 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 A 2.7 OS X buildbot segfaults in test_unicode since 0cd197f13400
 http://www.python.org/dev/buildbot/all/builders/AMD64 Snow Leopard 2 
 2.7/builds/409/steps/test/logs/stdio

Hum, I'm unable to reproduce the crash on Linux or Mac OS X Tiger.

--

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



[issue13093] Redundant code in PyUnicode_EncodeDecimal()

2011-11-28 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

I am able to reproduce the problem on 2.7 OS X 10.7 64-bit. 
unicode._encodedecimal is gobbling up memory.  Looks like length is incorrect.

Breakpoint 1, unicode_encodedecimal (self=0x0, args=0x1007ce0d0) at 
/Users/nad/Projects/PyDev/active/temp/u27-clang/Modules/_testcapimodule.c:1122
1122decimal = PyBytes_FromStringAndSize(NULL, decimal_length);
(gdb) p length
$1 = 4294967299
Current language:  auto; currently minimal
(gdb) p unicode
$2 = (Py_UNICODE *) 0x101827ab8
(gdb) p errors
$3 = 0x0

--
nosy: +ned.deily
resolution: fixed - 
stage: committed/rejected - needs patch

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



[issue13496] bisect module: Overflow at index computation

2011-11-28 Thread Daniel Sturm

New submission from Daniel Sturm voodoo...@gmail.com:

The mid index computation in _bisectmodule.c in both internal_bisect_right and 
internal_bisect_left is done with:

mid = (lo + hi) / 2; // all three variables Py_ssize_t

which is  susceptible to overflows for large arrays, which would lead to 
undefined behavior (and in practice almost certainly a crash with a negative 
index)

The fix is trivial - mid = lo + (hi - lo) / 2; - but since I'm just starting to 
look into the code base I may be missing some undocumented assertions that 
guarantee this can't happen.

--
components: Extension Modules
messages: 148517
nosy: Voo
priority: normal
severity: normal
status: open
title: bisect module: Overflow at index computation
type: behavior
versions: Python 3.4

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



[issue13496] bisect module: Overflow at index computation

2011-11-28 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +mark.dickinson, rhettinger
versions: +Python 2.7, Python 3.2, Python 3.3 -Python 3.4

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



[issue13486] msvc9compiler.py doesn't properly generate manifest files.

2011-11-28 Thread Mark Hammond

Mark Hammond skippy.hamm...@gmail.com added the comment:

A manifest seems to be currently created fine - can you provide steps to 
reproduce the problem you see?

--

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



[issue13481] Use an accurate clock in timeit

2011-11-28 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

Are CLOCK_MONOTONIC_RAW, CLOCK_MONOTONIC and CLOCK_REALTIME more accurate than 
gettimeofday (time.time)?

--
nosy: +haypo

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



[issue13496] bisect module: Overflow at index computation

2011-11-28 Thread Raymond Hettinger

Raymond Hettinger raymond.hettin...@gmail.com added the comment:

This looks like a reasonable suggestion.

--
assignee:  - rhettinger
priority: normal - low

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



[issue13465] A Jython section in the dev guide would be great

2011-11-28 Thread Frank Wierzbicki

Frank Wierzbicki fwierzbi...@gmail.com added the comment:

I'll take a look at the dev guide this week and see how much it differs from 
what I'd want to do and report back here. If it doesn't make sense to include a 
Jython page here I can either copy content over or link to the CPython dev 
guide from the Jython one.

--

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



[issue3786] _curses, _curses_panel _multiprocessing can't be build in 2.6b3 w/ SunStudio 12

2011-11-28 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

EKIT.patch is not correct: it fails to find mvwchgat() on Linux, whereas the 
function is present. The test program is not linked to curses nor ncurses.

 Solaris has both traditional System V curses and an XPG4-compatible
curses that does include mvwchgat.  The traditional system V curses is
the default, for backward compatibility.

...

- rebuild readline to use XPG4 curses, and then rebuild every single
  application that links against readline.  Then build Python, using
  the -I and -L/-R flags to get XPG4 curses for the entire Python build.

- modify the setup.py for the _curses module so that
  logic is added for Solaris to look for the XPG4 curses only during
  the build of the _curses module. 

Link _curses module to a different curses library than the library used by 
readline may lead to crash: see issue #7384.

--
nosy: +haypo

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



[issue3786] _curses, _curses_panel _multiprocessing can't be build in 2.6b3 w/ SunStudio 12

2011-11-28 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@haypocalc.com:


--
versions: +Python 3.2, Python 3.3

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



[issue3786] _curses, _curses_panel _multiprocessing can't be build in 2.6b3 w/ SunStudio 12

2011-11-28 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy:  -pitrou

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



[issue10278] add time.wallclock() method

2011-11-28 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

wallclock-2.patch: implement wallclock() using the new 
clock_getime(CLOCK_MONOTONIC) function (or other, depending on the OS).

I removed description on how the function is implemented from the doc.

--
Added file: http://bugs.python.org/file23799/wallclock-2.patch

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



[issue13496] bisect module: Overflow at index computation

2011-11-28 Thread Tim Peters

Tim Peters tim.pet...@gmail.com added the comment:

FWIW, I doubt there's a real issue here.  Objects in Python consume a lot more 
than a byte or two of memory, so the index range of a Python list is generally 
a lot less than ssize_t allows for.  In other words, quantify large in large 
arrays.  How large can a Python list actually be, relative to ssize_t?  
Similar reasoning accounts for why we never worry about overflow when mucking 
with refcounts:  the size of a refcount member  exceeds the maximum number of 
references that could exist.

--
nosy: +tim_one

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



[issue12822] NewGIL should use CLOCK_MONOTONIC if possible.

2011-11-28 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 The patch is ok on the principle, but we do need a check
 that CLOCK_MONOTONIC is supported at build time.

timemodule.c is now using #ifdef CLOCK_MONOTONIC.

--

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



[issue13093] Redundant code in PyUnicode_EncodeDecimal()

2011-11-28 Thread Roundup Robot

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

New changeset 3ecddf168f1f by Victor Stinner in branch '2.7':
Issue #13093: Fix _testcapi.unicode_encodedecimal()
http://hg.python.org/cpython/rev/3ecddf168f1f

--

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



[issue13093] Redundant code in PyUnicode_EncodeDecimal()

2011-11-28 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 Looks like length is incorrect.

Oh ok, _testcapimodule.c is sssize_t safe in Python 3, not in Python 2. Can 
you please try with the last tip?

--

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



[issue12822] NewGIL should use CLOCK_MONOTONIC if possible.

2011-11-28 Thread Antoine Pitrou

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

Marc-Andre is right, a runtime check is probably also needed.
(for example with mismatching kernel/libc)

--

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



[issue12822] NewGIL should use CLOCK_MONOTONIC if possible.

2011-11-28 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

pthread_condattr_setclock() result should be checked.

The pthread_condattr_setclock() function may fail if:

EINVAL The value specified by clock_id does not refer to a known clock, or is a 
CPU-time clock.

--

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



[issue10278] add time.wallclock() method

2011-11-28 Thread Antoine Pitrou

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

As discussed elsewhere, there should be a fallback when clock_gettime() fails 
for the given clock.

--
stage: committed/rejected - patch review

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



[issue13496] bisect module: Overflow at index computation

2011-11-28 Thread Daniel Sturm

Daniel Sturm voodoo...@gmail.com added the comment:

TBH I saw this more as an opportunity to get used to the whole system, how to 
create a patch, etc. :) Should've made it clearer at the start that this is 
unlikely to ever be a problem, sorry (didn't see a way to set priority to low 
myself).


If my math isn't completely off, the highest possible value here is 
hi + (hi - 1) so this only occurs if hi  (MAX_SSIZE_T + 1) / 2. So this would 
only work out if we had such an array containing only a handful different 
objects. And then that's me assuming that a list is actually a thin wrapper 
around an array of PyObject*.

--

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



[issue13093] Redundant code in PyUnicode_EncodeDecimal()

2011-11-28 Thread Ned Deily

Ned Deily n...@acm.org added the comment:

That fixes it.

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

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



[issue13492] ./configure --with-system-ffi=LIBFFI-PATH

2011-11-28 Thread Meador Inge

Meador Inge mead...@gmail.com added the comment:

Also see issue4130.

--

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



[issue12945] ctypes works incorrectly with _swappedbytes_ = 1

2011-11-28 Thread Meador Inge

Meador Inge mead...@gmail.com added the comment:

Without seeing a specific example of what you are trying to do, it is hard to 
tell whether ctypes would be a good fit.  I am closing this issue since the 
original questions have been answered.  Please open a new issue if you think 
ctypes could be modified to support your use cases.

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

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



[issue13096] ctypes: segfault with large POINTER type names

2011-11-28 Thread Meador Inge

Changes by Meador Inge mead...@gmail.com:


--
assignee:  - meador.inge

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



[issue13097] ctypes: segfault with large number of callback arguments

2011-11-28 Thread Meador Inge

Changes by Meador Inge mead...@gmail.com:


--
assignee:  - meador.inge

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



[issue11427] ctypes from_buffer no longer accepts bytes

2011-11-28 Thread Meador Inge

Meador Inge mead...@gmail.com added the comment:

benrg, any further interest in this?  If so, please comment on my last reply.  
Otherwise, I am closing this issue.

--

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




[issue13493] Import error with embedded python on AIX 6.1

2011-11-28 Thread python_hu

python_hu nari...@163.com added the comment:

thanks a lot. as your surggest,i try python2.7.2,but when i build it on AIX 
6.1, it can not compile success,breaked by xlc_c console. 
Informations:


checking size of double... 8
checking size of long double... 8
checking whether byte ordering is bigendian... yes
checking assembler .cfi pseudo-op support... no
checking whether .eh_frame section should be read-only... no
checking for __attribute__((visibility(hidden)))... no
xlc_r: 1501-210 (W) command option t contains an incorrect subargument



  xlc(1) IBM (2008)  xlc(1)



  NAME
 xlc, xlc++, xlC, cc, c89, c99, xlCcore, xlc++core and
 related commands - invoke the IBM XL C/C++ compiler.


  SYNTAX
 invocation-command [ option | inputfile ] ...


  DESCRIPTION
 The invocation commands compile C and C++ source files.
 The commands and their recommended uses are described
 below.

 Invocations   Usage (supported standards)
 _

 xlc, xlc_r, xlc_r4,   Compile C source files.
 xlc_r7, xlc128, xlc128_r, (ANSI C89, ISO C99,
 xlc128_r4, xlc128_r7  IBM language extensions)

 xlc++, xlc++_r, xlc++_r4, Compile C++ source files.
 xlc++_r7, xlc++128,
 xlc++128_r, xlc++128_r4,
 xlc++128_r7, xlC, xlC_r,
 xlC_r4, xlC_r7, xlC128,
 xlC128_r, xlC128_r4,
:

--

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



[issue13494] 'cast' any value to a Boolean?

2011-11-28 Thread Eli Bendersky

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

'bool' is just one of many conversion functions that convert their argument to 
the type they designate. Does this doc problem only exist for 'bool' or also 
for 'int', 'float' and others?

--
nosy: +eli.bendersky

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



[issue13493] Import error with embedded python on AIX 6.1

2011-11-28 Thread python_hu

python_hu nari...@163.com added the comment:

By the way,i have compared the configure.in with Python-2.7_shared_AIX.diff 
in Issue941346,and can not find any modification of building share library on 
AIX in Python 2.7.2' source code.

--

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



[issue13096] ctypes: segfault with large POINTER type names

2011-11-28 Thread Meador Inge

Meador Inge mead...@gmail.com added the comment:

Here is a small patch against tip.  OK?

--
keywords: +patch
stage: needs patch - patch review
Added file: http://bugs.python.org/file23800/issue13096.patch

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



[issue13223] pydoc removes 'self' in HTML for method docstrings with example code

2011-11-28 Thread vterron

Changes by vterron quinta...@gmail.com:


Removed file: http://bugs.python.org/file23477/issue13223.patch

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



[issue13223] pydoc removes 'self' in HTML for method docstrings with example code

2011-11-28 Thread vterron

vterron quinta...@gmail.com added the comment:

Patch updated with the test cases. I have added a third class to 
Lib/test/pydoc_mod.py and updated two of the existing cases, test_text_doc and 
test_html_doc, accordingly.

The news entry could be: Issue #13223: Fix pydoc.writedoc so that the HTML 
documentation for methods that use 'self' in the example code is generated 
correctly.

--
Added file: http://bugs.python.org/file23801/issue13223.patch

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



[issue13223] pydoc removes 'self' in HTML for method docstrings with example code

2011-11-28 Thread vterron

Changes by vterron quinta...@gmail.com:


Added file: http://bugs.python.org/file23802/issue13223_python2.7.patch

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



[issue4502] Allowing get_pre_input_hook from Readline

2011-11-28 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
components: +Extension Modules -Library (Lib)
stage:  - test needed
versions: +Python 3.3 -Python 3.2

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



[issue6766] Cannot modify dictionaries inside dictionaries using Managers from multiprocessing

2011-11-28 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
stage:  - needs patch
versions: +Python 2.7 -Python 2.6

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



[issue12771] 2to3 -d adds extra whitespace

2011-11-28 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +benjamin.peterson
stage:  - test needed
type:  - behavior
versions: +Python 3.3

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



[issue6167] Tkinter.Scrollbar: the activate method needs to return a value, and set should take only two args

2011-11-28 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy:  -BreamoreBoy
versions: +Python 3.3 -Python 3.1

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



[issue11113] html.entities mapping dicts need updating?

2011-11-28 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
assignee:  - ezio.melotti

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



[issue11001] Various obvious errors in cookies documentation

2011-11-28 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
keywords: +easy
nosy: +petri.lehtinen
stage:  - patch review
versions: +Python 3.3 -Python 3.1

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



[issue5815] locale.getdefaultlocale() missing corner case

2011-11-28 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
keywords: +easy
versions: +Python 3.2, Python 3.3 -Python 2.6, Python 3.0, Python 3.1

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



[issue3665] Support \u and \U escapes in regexes

2011-11-28 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +mrabarnett

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



[issue10052] Python/dtoa.c:158: #error Failed to find an exact-width 32-bit integer type (FreeBSD 4.11 + gcc 2.95.4)

2011-11-28 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
stage:  - patch review
versions:  -Python 3.1

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



[issue7238] frame.f_lineno doesn't get updated after local trace function assigned to it

2011-11-28 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ncoghlan
versions: +Python 3.3 -Python 3.1

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



[issue8065] Memory leak in readline.get_current_history_length

2011-11-28 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
versions:  -Python 3.1

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



[issue12790] doctest.testmod does not run tests in functools.partial functions

2011-11-28 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
components: +Library (Lib)
stage:  - needs patch

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



[issue12919] Control what module is imported first

2011-11-28 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
stage: needs patch - patch review

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



[issue1877] unhelpful error when calling python dirname

2011-11-28 Thread Eric Snow

Changes by Eric Snow ericsnowcurren...@gmail.com:


--
nosy: +eric.snow

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



[issue1040439] Missing documentation on How To Link With libpython

2011-11-28 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy:  -BreamoreBoy
stage:  - needs patch
versions: +Python 2.7, Python 3.3

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



  1   2   >