[issue12303] expose sigwaitinfo() and sigtimedwait() in the signal module

2011-06-25 Thread Ross Lagerwall

Ross Lagerwall rosslagerw...@gmail.com added the comment:

 What do you mean? signal.SIGPOLL exists in Python 3.3.

Right, si_band added.

 - test_sigwaitinfo(), test_sigtimedwait_poll(), 
 test_sigwaitinfo_interrupted() are called from a child process. In 
 test_wait(), I chose to write manually to stdout and call os._exit(1) (oh, I 
 forgot an explicit sys.stdout.flush()). I don't know if you can use TestCase 
 methods in a child process (I don't know what is written to stdout, 
 _wait_helper() calls os._exit).

I assume you mean stderr? Well anyway if the assert* fails, an exception is 
raised and then caught by this code in wait_helper():

except BaseException as err:
print(error: {}.format(err), file=sys.stderr)
sys.stderr.flush()
os._exit(1)

which prints it to stderr.
If this is OK, I'll commit the patch.

--
Added file: http://bugs.python.org/file22452/issue12303_v3.patch

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



[issue12404] c99 code in mmapmodule

2011-06-25 Thread Akira Kitada

New submission from Akira Kitada akit...@gmail.com:

Modules/mmapmodule.c contains code that makes it incompatible with C89 compiler.

People using recent gcc can check this by running following commands.
 
$ ./configure CFLAGS='-Wdeclaration-after-statement'  make

Attached patch fixes the issue.
(verified on Linux 2.6.39-2-amd64 with gcc 4.6.1)

--
components: Build
files: c89compat_mmap.patch
keywords: patch
messages: 139020
nosy: akitada
priority: normal
severity: normal
status: open
title: c99 code in mmapmodule
type: compile error
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file22453/c89compat_mmap.patch

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



[issue12394] packaging: generate scripts from callable (dotted paths)

2011-06-25 Thread Vinay Sajip

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

 In the setup.cfg files, scripts will now be a mapping of names to
 callables, like the setuptools scripts and gui_scripts entry points:

 scripts =
 sphinx-build = sphinx.build.run

 On UNIX, a Python script named sphinx-build will be created, on
 Windows, a binary sphinx-build.exe will be created.

Perhaps some mechanism needs to be provided to indicate additional processing 
options per script line:

scripts =
script-name = path.to.callable opt1 opt2 opt3

One specific practical use of this is to determine whether the Windows version 
will launch using the text mode launcher or the GUI mode launcher. For example:

scripts =
sphinx-build = sphinx.build.run # No options = text-mode
sphinx-gui = sphinx.gui.run win # Option win = gui-mode

This seems more future proof than an approach like providing for a separate 
gui-scripts entry.

--

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



[issue12394] packaging: generate scripts from callable (dotted paths)

2011-06-25 Thread Vinay Sajip

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

 Version independence always means version independence in the same
 major line of development (i.e. X number in X.Y.Z), or to put it
 another way, version independence among the versions listed as
 supported in the Trove classifiers.

That can still be a problem with e.g. byte literals: 2.5 will raise SyntaxError 
where 2.6, 2.7 will not.

--

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



[issue12399] simplify cell var initialization by storing constant data on the code object

2011-06-25 Thread Nick Coghlan

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

Feel free to create a new issue about the incorrect size calculation on code 
objects, since it is apparently already broken.

--

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



[issue12382] [msilib] Obscure exception message when trying to open a non-existent MSI database

2011-06-25 Thread Mark Mc Mahon

Mark Mc Mahon mtnbikingm...@gmail.com added the comment:

The following two error conditions that can be returned by MsiOpenDatabase do 
not have specific handling:

ERROR_CREATE_FAILED (1631)
The database could not be created.

ERROR_OPEN_FAILED (110)
The database could not be opened as requested.

(the messages are those copied from MSDN).

Should extra cases for these go into the case statement in msierror? or should 
they be handled directly in OpenDatabase.

Does the error text above sound OK - should we add : '%s' % msi_file ?

--
nosy: +markm

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



[issue12374] Execution model should explain compile vs definition vs execution time

2011-06-25 Thread Nick Coghlan

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

Oh, agreed - the quotes above are from the Python's User Reference I wrote 
several years back, but never got around to converting from ODF and 
subsequently updating and publishing in a more accessible way.

It was designed to fill the gap that exists in the documentation between the 
tutorial (which gives usage information, but doesn't really explain how things 
work) and the language reference (which is a fairly minimalist spec that 
doesn't explain design intent or rationale very much). The associated 
publishing deal fell through so I got the copyrights back and donated the whole 
thing to the PSF.

However, the first step in making it more useful is extracting the text from 
the ODF files into reStructuredText and that's never made it to the top of my 
to-do list.

The ideal situation from my point of view would be for someone on doc-sig to 
help with the conversion process, but I've never had any takers (although I'll 
grant that the last time I asked was a number of years ago).

--

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



[issue12404] c99 code in mmapmodule

2011-06-25 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset c72dafb14c49 by Ross Lagerwall in branch '2.7':
Issue 12404: Remove C89 incompatible code from mmap module.
http://hg.python.org/cpython/rev/c72dafb14c49

New changeset 567236a7122c by Ross Lagerwall in branch '3.2':
Issue 12404: Remove C89 incompatible code from mmap module.
http://hg.python.org/cpython/rev/567236a7122c

New changeset 04182fa5255b by Ross Lagerwall in branch 'default':
Merge with 3.2 (Issue #12404).
http://hg.python.org/cpython/rev/04182fa5255b

--
nosy: +python-dev

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



[issue12404] c99 code in mmapmodule

2011-06-25 Thread Ross Lagerwall

Ross Lagerwall rosslagerw...@gmail.com added the comment:

Thanks!

--
assignee:  - rosslagerwall
nosy: +rosslagerwall
resolution:  - fixed
stage:  - committed/rejected
status: open - closed
versions: +Python 3.3

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



[issue12164] str.translate docstring doesn't mention that 'table' can be None

2011-06-25 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 60b3a5615c4e by Mark Dickinson in branch '2.7':
Issue #12164: Document (in docstring) that str.translate accepts None for the 
first argument.
http://hg.python.org/cpython/rev/60b3a5615c4e

--
nosy: +python-dev

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



[issue12164] str.translate docstring doesn't mention that 'table' can be None

2011-06-25 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
resolution: accepted - fixed
status: open - closed

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



[issue12381] refactor slice checks made by methods that take slice like arguments

2011-06-25 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
nosy: +mark.dickinson

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



[issue6474] Inconsistent TypeError message on function calls with wrong number of arguments

2011-06-25 Thread Oleg Oshmyan

Oleg Oshmyan chor...@inbox.lv added the comment:

Yes, thank you. I am (yet) unable to create a misleading error message now. :-)

--

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



[issue8623] Aliasing warnings in socketmodule.c

2011-06-25 Thread Kristian Vlaardingerbroek

Kristian Vlaardingerbroek kristian.vlaardingerbr...@gmail.com added the 
comment:

I can't reproduce both these cases with gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 
4.5.2 on i386 using the current default branch (70943:024827a9db64).

--
nosy: +Kristian.Vlaardingerbroek

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



[issue12245] Document the meaning of FLT_ROUNDS constants for sys.float_info

2011-06-25 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

 all it does is give information about the FPU settings at the time that
 Python was compiled

Hmm.  It's actually a bit better than that:  as far as I can tell, it reflects 
the value of FLT_ROUNDS at the time that Python is started (when the sys module 
is initialized).  OTOH, FLT_ROUNDS on my machine is #define'd to be 1, in 
violation of the C standards.

--

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



[issue12245] Document the meaning of FLT_ROUNDS constants for sys.float_info

2011-06-25 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Patch that elaborates a bit on the meaning of sys.float_info.rounds.

--
keywords: +patch
Added file: http://bugs.python.org/file22454/issue12245.patch

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



[issue12303] expose sigwaitinfo() and sigtimedwait() in the signal module

2011-06-25 Thread STINNER Victor

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

 If this is OK, I'll commit the patch.

Yep, this version is the good one. Please keep the issue open until the test 
pass on all buildbots. Each newly added signal functions took me some days to 
fix the test for Mac OS X and/or FreeBSD 6. But you are maybe more lucky than 
me ;-)

--

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



[issue12341] Some additions to .hgignore

2011-06-25 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset eaaa073a9a42 by Ezio Melotti in branch '3.2':
#12341: add coverage files/dirs to .hgignore. Patch by Sandro Tosi.
http://hg.python.org/cpython/rev/eaaa073a9a42

--
nosy: +python-dev

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



[issue9990] PyMemoryView_FromObject alters the Py_buffer after calling PyObject_GetBuffer when ndim 1

2011-06-25 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
assignee: mark.dickinson - 

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



[issue10227] Improve performance of MemoryView slicing

2011-06-25 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
assignee: mark.dickinson - 

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



[issue12405] packaging does not record/remove directories it creates

2011-06-25 Thread Vinay Sajip

New submission from Vinay Sajip vinay_sa...@yahoo.co.uk:

pysetup3 install should not only record files that it installs, but also any 
directories it creates. pysetup3 remove should then delete those directories 
(if empty after removing their installed contents).

--
assignee: tarek
components: Distutils2, Library (Lib)
messages: 139035
nosy: alexis, eric.araujo, tarek, vinay.sajip
priority: normal
severity: normal
status: open
title: packaging does not record/remove directories it creates
type: feature request
versions: Python 3.3

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



[issue12406] msi.py needs updating for Python 3.3

2011-06-25 Thread Vinay Sajip

New submission from Vinay Sajip vinay_sa...@yahoo.co.uk:

I know it's early days yet, but I've tried to create an MSI for Python 3.3. I 
was able to do so, but I had to make some changes to msi.py (patch attached).

--
components: Build, Demos and Tools, Windows
files: msi.py.diff
keywords: patch
messages: 139036
nosy: loewis, vinay.sajip
priority: normal
severity: normal
status: open
title: msi.py needs updating for Python 3.3
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file22455/msi.py.diff

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



[issue12228] Stat doc - fix swap of UF_OPAQUE and UF_NOUNLINK description

2011-06-25 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset d912dfb7ab7a by Mark Dickinson in branch '2.7':
Issue #12228: Fix exchanged flag descriptions in stat.rst.  Thanks Sandro Tosi.
http://hg.python.org/cpython/rev/d912dfb7ab7a

--
nosy: +python-dev

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



[issue12228] Stat doc - fix swap of UF_OPAQUE and UF_NOUNLINK description

2011-06-25 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 03c8de42c206 by Mark Dickinson in branch '3.1':
Issue #12228: Fix exchanged flag descriptions in stat.rst.  Thanks Sandro Tosi.
http://hg.python.org/cpython/rev/03c8de42c206

New changeset 4a3e528b6b11 by Mark Dickinson in branch '3.2':
Merge #12228
http://hg.python.org/cpython/rev/4a3e528b6b11

New changeset 6c6ee4eb27f8 by Mark Dickinson in branch 'default':
Merge #12228
http://hg.python.org/cpython/rev/6c6ee4eb27f8

--

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



[issue12228] Stat doc - fix swap of UF_OPAQUE and UF_NOUNLINK description

2011-06-25 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Thanks for the patch!

--
nosy: +mark.dickinson
resolution:  - fixed
status: open - closed

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



[issue12303] expose sigwaitinfo() and sigtimedwait() in the signal module

2011-06-25 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 1137f7021b95 by Ross Lagerwall in branch 'default':
Issue #12303: Add sigwaitinfo() and sigtimedwait() to the signal module.
http://hg.python.org/cpython/rev/1137f7021b95

--
nosy: +python-dev

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



[issue10326] Can't pickle unittest.TestCase instances

2011-06-25 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 9c337a4c650d by Raymond Hettinger in branch '2.7':
Issue 10326: Fix regression to get test cases to pickle again.
http://hg.python.org/cpython/rev/9c337a4c650d

--
nosy: +python-dev

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



[issue10326] Can't pickle unittest.TestCase instances

2011-06-25 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
resolution:  - fixed
status: open - closed

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



[issue5114] 2.7: test_threading hangs on Solaris

2011-06-25 Thread Charles-François Natali

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

I'm closing.
Feel free to re-open if this fails with 2.7 or 3.2.

--
resolution:  - duplicate
status: open - closed
superseder:  - Throw away more radioactive locks that could be held across a 
fork in threading.py

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



[issue10845] test_multiprocessing failure under Windows

2011-06-25 Thread Kristian Vlaardingerbroek

Kristian Vlaardingerbroek kristian.vlaardingerbr...@gmail.com added the 
comment:

This has been committed a while ago, can this issue be closed?

--
nosy: +Kristian.Vlaardingerbroek

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



[issue12407] test_subinterps fails on Windows

2011-06-25 Thread Cesare Di Mauro

New submission from Cesare Di Mauro cesare.di.ma...@gmail.com:

This test fails on Windows because it tries to change the working folder to an 
empty string.
Anyway, even changing:
os.chdir(basepath)
with:
os.chdir(basepath or '.')
it fails because the subprocess tries to execute an ELF file 
('Modules/_testembed') which Windows isn't able to handle.

--
components: Tests, Windows
files: test_capi.py.patch
keywords: patch
messages: 139044
nosy: brian.curtin, cdimauro, pitrou
priority: normal
severity: normal
status: open
title: test_subinterps fails on Windows
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file22456/test_capi.py.patch

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



[issue10583] Encoding issue with chm help in 2.7.1

2011-06-25 Thread Sandro Tosi

Sandro Tosi sandro.t...@gmail.com added the comment:

Hello, can you still replicate it with 2.7.2 ?

--
nosy: +sandro.tosi

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



[issue12408] Relative import used on test_future5

2011-06-25 Thread Cesare Di Mauro

New submission from Cesare Di Mauro cesare.di.ma...@gmail.com:

Executing test_future5 fails:

D:\CPythonPCbuild\python_d.exe Lib\test\test_future5.py
Traceback (most recent call last):
  File Lib\test\test_future5.py, line 6, in module
from . import support
ValueError: Attempted relative import in non-package
[51279 refs]

Tested on Windows 7.

--
components: Tests
files: test_future5.py.patch
keywords: patch
messages: 139046
nosy: cdimauro
priority: normal
severity: normal
status: open
title: Relative import used on test_future5
type: behavior
versions: Python 3.2, Python 3.3
Added file: http://bugs.python.org/file22457/test_future5.py.patch

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



[issue12408] Relative import used on test_future5

2011-06-25 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset c5fca67a7e8c by Mark Dickinson in branch '3.2':
Issue #12408: Fix relative import in test_future5.py.  Thanks Cesare Di Mauro.
http://hg.python.org/cpython/rev/c5fca67a7e8c

New changeset 898c0c8ba8ca by Mark Dickinson in branch 'default':
Issue #12408: Merge.
http://hg.python.org/cpython/rev/898c0c8ba8ca

--
nosy: +python-dev

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



[issue12408] Relative import used on test_future5

2011-06-25 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Thanks for the report.

--
nosy: +mark.dickinson
resolution:  - fixed
status: open - closed

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



[issue12382] [msilib] Obscure exception message when trying to open a non-existent MSI database

2011-06-25 Thread Robin Jarry

Robin Jarry diabete...@gmail.com added the comment:

This sounds OK as long as the error message is explicit :)

--

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



[issue11163] iter() documentation code doesn't work

2011-06-25 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
resolution:  - fixed
status: open - closed

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



[issue10020] docs for sqlite3 describe functions not available without recompiling

2011-06-25 Thread Kristian Vlaardingerbroek

Kristian Vlaardingerbroek kristian.vlaardingerbr...@gmail.com added the 
comment:

Attached patch for Python 2.7. 

Since Issue10268 has not been applied to Python 2.7 the sentence you must 
modify setup.py and and remove the line that sets SQLITE_OMIT_LOAD_EXTENSION 
still applies.

--
keywords: +patch
nosy: +Kristian.Vlaardingerbroek
Added file: http://bugs.python.org/file22458/issue10020-python27.patch

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



[issue11889] 'enumerate' 'start' parameter documentation is confusing

2011-06-25 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 0ca8d90b by Raymond Hettinger in branch '2.7':
Issue 11889: Clarify docs for enumerate.
http://hg.python.org/cpython/rev/0ca8d90b

--
nosy: +python-dev

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



[issue11197] information leakage with SimpleHTTPServer

2011-06-25 Thread engelbert gruber

engelbert gruber grub...@users.sourceforge.net added the comment:

SimpleHTTPServer does not exist in Python3.1 up instead http.server.

All versions (3.x 2011-06-25) reply the contents from the served directory on a 
request of the upper directory and act similar with files.

Maybe documentation needs an update documentation.

--
nosy: +grubert
versions:  -Python 3.1, Python 3.2, Python 3.3

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



[issue10583] Encoding issue with chm help in 2.7.1

2011-06-25 Thread Kristian Vlaardingerbroek

Kristian Vlaardingerbroek kristian.vlaardingerbr...@gmail.com added the 
comment:

I can reproduce the issue with Python 2.7.2 and Python 3.2 on Windows 7 
Enterprise SP 1 64-bit.

--
nosy: +Kristian.Vlaardingerbroek

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



[issue11889] 'enumerate' 'start' parameter documentation is confusing

2011-06-25 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset d0df12b32522 by Raymond Hettinger in branch '3.2':
Issue 11889: Clarify docs for enumerate.
http://hg.python.org/cpython/rev/d0df12b32522

New changeset 9b827e3998f6 by Raymond Hettinger in branch 'default':
Issue 11889: Clarify docs for enumerate.
http://hg.python.org/cpython/rev/9b827e3998f6

--

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



[issue11889] 'enumerate' 'start' parameter documentation is confusing

2011-06-25 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
resolution:  - fixed
status: open - closed

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



[issue12303] expose sigwaitinfo() and sigtimedwait() in the signal module

2011-06-25 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 768234f5c246 by Ross Lagerwall in branch 'default':
Fix test_signal on Windows after #12303.
http://hg.python.org/cpython/rev/768234f5c246

--

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



[issue11197] information leakage with SimpleHTTPServer

2011-06-25 Thread engelbert gruber

engelbert gruber grub...@users.sourceforge.net added the comment:

My test setup:

  test.html
  2.5/test.html
  2.7/test.html

in 2.5 and 2.7 execute ::

  python.exe -m SimpleHTTPServer 8000

``http://localhost:8000/../`` shows the contents of the ``2.x`` directory.

``http://localhost:8000/../test.html`` shows the contents of the file in the 
``2.x`` directory not the one in the upper.

Should be closed.

--

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



[issue10845] test_multiprocessing failure under Windows

2011-06-25 Thread Nick Coghlan

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

Yeah, the broader issue with multiprocessing, Windows and state held in the 
main module is covered by PEP 395, so there's no need to double up by keeping 
this open.

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

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



[issue10583] Encoding issue with chm help in 2.7.1

2011-06-25 Thread Sandro Tosi

Sandro Tosi sandro.t...@gmail.com added the comment:

Adding Georg to nosy, he might now how CHM is generated on Windows and shine 
some light here

--
nosy: +georg.brandl

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



[issue11758] increase xml.dom.minidom test coverage

2011-06-25 Thread Sandro Tosi

Sandro Tosi sandro.t...@gmail.com added the comment:

I checked the patch, and it works (in 2.7, 3.2 and default) and it would be 
nice if it can be committed.

--
nosy: +sandro.tosi
stage:  - commit review
versions: +Python 2.7, Python 3.2

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



[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad

Changes by mouad mouad...@gmail.com:


--
keywords: +patch
Added file: http://bugs.python.org/file22459/pool.patch

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



[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad

Changes by mouad mouad...@gmail.com:


Added file: http://bugs.python.org/file22460/test_multiprocess.patch

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



[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad

Changes by mouad mouad...@gmail.com:


Added file: http://bugs.python.org/file22461/support.patch

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



[issue10583] Encoding issue with chm help in 2.7.1

2011-06-25 Thread Kristian Vlaardingerbroek

Kristian Vlaardingerbroek kristian.vlaardingerbr...@gmail.com added the 
comment:

I've looked at the output from make html and make htmlhelp and taking the 
library/json.html as example the text between title /title is exactly the 
same.

Chrome renders both fine:

title18.2. json — JSON encoder and decoder mdash; Python v2.7.2 
documentation/title

But when looking at the file in the HTML Help Workshop it looks like this:

 title18.2. json — JSON encoder and decoder/title

Which is what you see when doing the search.

--

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



[issue11197] information leakage with SimpleHTTPServer

2011-06-25 Thread engelbert gruber

Changes by engelbert gruber grub...@users.sourceforge.net:


--
nosy: +rhettinger

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



[issue11758] increase xml.dom.minidom test coverage

2011-06-25 Thread Sandro Tosi

Changes by Sandro Tosi sandro.t...@gmail.com:


--
assignee:  - rhettinger
nosy: +rhettinger

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



[issue11763] assertEqual memory issues with large text inputs

2011-06-25 Thread Sara Magliacane

Sara Magliacane sara.magliac...@gmail.com added the comment:

Here is a small patch addressing the second point of the last message, but the 
tests are still missing.

--
nosy: +sara.magliacane
Added file: http://bugs.python.org/file22462/issue11763_safe_repr.diff

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



[issue12409] Moving Documenting Python to Devguide

2011-06-25 Thread Sandro Tosi

New submission from Sandro Tosi sandro.t...@gmail.com:

Hi! We have the devguide now, and it should be the place where to look for 
references and docs about contributing to Python, that means also for the 
documentation.

In the official Python doc we have a section Documenting Python 
(http://docs.python.org/py3k/documenting/index.html) and I think it should be 
merged into the devguide - what's your opinion on that?

--
assignee: docs@python
components: Documentation
messages: 139062
nosy: brett.cannon, docs@python, ezio.melotti, georg.brandl, sandro.tosi
priority: normal
severity: normal
status: open
title: Moving Documenting Python to Devguide

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



[issue10583] Encoding issue with chm help in 2.7.1

2011-06-25 Thread Kristian Vlaardingerbroek

Kristian Vlaardingerbroek kristian.vlaardingerbr...@gmail.com added the 
comment:

This might be non-fixable:

http://support.microsoft.com/kb/269766/

HTML Help 1.x does not compile the Unicode characters. Meaning that in the 
search and index views you'll get garbage. For the rest of the rendering IE is 
used which does render the correct characters.

There is support in HTML Help 2.x but as far as I can see that is only 
available as a component in Visual Studio and not included with a default 
Windows installation.

--

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



[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad

mouad mouad...@gmail.com added the comment:

Hello,

This is my first patch to cpython, hope it will be accepted :)

The fix that i did is to remove the ResultMap instance from the pool cache when 
the iterable is empty. 

In general here is what happen: The map method create a MapResult instance, 
which add it self automatically to the pool._cache and this ResultMap instance 
will be used by the task that will be created and added after in the 
pool._taskqueue to communicate the task result, but in case of an empty 
iterable the task will not be created and we will end up with a MapResult with 
no task and when we will try to join the pool, it will hang waiting for the 
task to set the result in the MapResult instance.

For the test i created a new helper `operation_timeout` that is used as a 
contextmanager to make sure that the test will not hang for ever, i don't know 
if it's useful maybe just running the test without checking for any timeout is 
more *realistic*.

--
nosy: +mouad

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



[issue11104] distutils sdist ignores MANIFEST

2011-06-25 Thread Stephen Thorne

Stephen Thorne step...@thorne.id.au added the comment:

Éric mentioned that i should check that this behaviour matches the 
documentation. I have gone and looked for all instances of MANIFEST in the 
documentation and found one place which was inconsistent. I've added the doc 
patch to the patch. Please review this new version.

--
Added file: http://bugs.python.org/file22463/manifest-respect-3

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



[issue11758] increase xml.dom.minidom test coverage

2011-06-25 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 79d61e2050cd by Raymond Hettinger in branch 'default':
Issue 11758: increase xml.dom.minidom test coverage (contributed by mdorn, 
reviewed by Sandro Tosi).
http://hg.python.org/cpython/rev/79d61e2050cd

--
nosy: +python-dev

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



[issue11758] increase xml.dom.minidom test coverage

2011-06-25 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
resolution:  - accepted
status: open - closed

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



[issue10020] docs for sqlite3 describe functions not available without recompiling

2011-06-25 Thread Kristian Vlaardingerbroek

Changes by Kristian Vlaardingerbroek kristian.vlaardingerbr...@gmail.com:


Removed file: http://bugs.python.org/file22458/issue10020-python27.patch

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



[issue10020] docs for sqlite3 describe functions not available without recompiling

2011-06-25 Thread Kristian Vlaardingerbroek

Kristian Vlaardingerbroek kristian.vlaardingerbr...@gmail.com added the 
comment:

Fixed typo (double and).

--
Added file: http://bugs.python.org/file22464/issue10020-python27.patch

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



[issue7123] Multiprocess Process does not always exit when run from a thread.

2011-06-25 Thread Tomaž Šolc

Tomaž Šolc tomaz.s...@tablix.org added the comment:

I am pretty sure this is another instance of issue 6721.

multiprocessing is forking a new process and if that happens while the other 
thread is holding the lock for stdout, the process will deadlock because the 
lock state is replicated in the subprocess while the thread that is supposed 
unlock it isn't (even if you remove all prints, the deadlock will happen on a 
stdout flush).

Attaching a gdb to a hung subprocess confirms that it is waiting for a lock in 
the bufferedio module.

I've reproduced this on Python trunk running on Linux (using pthreads) and can 
confirm that the patch attached to issue 6721 fixes it.

I'm also attaching a shorter test case that omits unused code from the original 
example.

--
nosy: +avian
Added file: http://bugs.python.org/file22465/testing.py

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



[issue10510] distutils upload/register should use CRLF in HTTP requests

2011-06-25 Thread Stephen Thorne

Stephen Thorne step...@thorne.id.au added the comment:

I'm having a look at this ticket now. It looks like this can be rewritten to 
use common code, and it would probably be good to use the 'email' module for 
creating the MIME segements properly.

--
nosy: +jerub

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



[issue11551] test_dummy_thread.py test coverage improvement

2011-06-25 Thread Sandro Tosi

Sandro Tosi sandro.t...@gmail.com added the comment:

I run a review on rietveld, just minor stuff (even though I don't see the 100% 
coverage).

--
nosy: +sandro.tosi

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



[issue12086] Tutorial doesn't discourage name mangling

2011-06-25 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 68bc3c5960a4 by Raymond Hettinger in branch '2.7':
Issue 12086: add example showing how to use name mangling.
http://hg.python.org/cpython/rev/68bc3c5960a4

--
nosy: +python-dev

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



[issue12086] Tutorial doesn't discourage name mangling

2011-06-25 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 79f9698777b7 by Raymond Hettinger in branch '3.2':
Issue 12086: add example showing how to use name mangling.
http://hg.python.org/cpython/rev/79f9698777b7

New changeset fca745bc70be by Raymond Hettinger in branch 'default':
Issue 12086: add example showing how to use name mangling.
http://hg.python.org/cpython/rev/fca745bc70be

--

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



[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad

Changes by mouad mouad...@gmail.com:


Removed file: http://bugs.python.org/file22459/pool.patch

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



[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad

Changes by mouad mouad...@gmail.com:


Removed file: http://bugs.python.org/file22460/test_multiprocess.patch

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



[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad

Changes by mouad mouad...@gmail.com:


Removed file: http://bugs.python.org/file22461/support.patch

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



[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad

Changes by mouad mouad...@gmail.com:


Added file: http://bugs.python.org/file22466/issue-12157.patch

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



[issue12086] Tutorial doesn't discourage name mangling

2011-06-25 Thread Raymond Hettinger

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

Added an example of how to use double underscores correctly.  

I agree with Ezio that the rest of the documentation is clear on the subject.

--
resolution:  - rejected
status: open - closed

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



[issue12403] Mention sys.displayhook in code module docs and the compile builtin docs

2011-06-25 Thread R. David Murray

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

Well, the code is being executed by an exec call on a code object that was 
compiled with the 'single' flag, which is what causes non-None values to get 
printed.  The compile docs aren't clear on how printed is implemented, but 
the answer is that it calls sys.displayhook.  So the way to control that part 
of the output is to assign your own function to sys.displayhook.  None of this 
is documented, and it should be (it took me a while to figure it out, and I had 
a suspicions about how it worked), so I'm changing this to a documentation bug.

However, you mention in the other ticket that are trying to do the interactive 
interpreter trick through a socket.  For that application I think you want to 
ignore both the write method and sys.displayhook, and instead directly patch 
sys.stdout and sys.stderr. Otherwise you'd also miss output sent to those 
destinations via print statements or writing directly to the sys objects, which 
would confuse the user of your interface since the in the normal interactive 
prompt those show up on the console.

--
assignee:  - docs@python
components: +Documentation
nosy: +docs@python, r.david.murray
stage:  - needs patch
title: Allow overriding of writing to stdout in code.InteractiveConsole - 
Mention sys.displayhook in code module docs and the compile builtin docs
type: feature request - behavior
versions: +Python 3.1

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



[issue11869] Include information about the bug tracker Rietveld code review tool

2011-06-25 Thread Sandro Tosi

Changes by Sandro Tosi sandro.t...@gmail.com:


--
nosy: +sandro.tosi

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



[issue12410] Create a new helper function that enable to test that an operation don't hang more than a given timeout.

2011-06-25 Thread mouad

New submission from mouad mouad...@gmail.com:

While working on issue #12157 [http://bugs.python.org/issue12157], I needed a 
function that make sure that an operation will not hang forever, for this 
reason i have create this helper function that support the context manager 
protocol and accept a timeout as an argument and raise an IOError if the 
operation didn't terminate before that timeout.

--
components: Tests
files: operation_timeout.patch
keywords: patch
messages: 139075
nosy: mouad
priority: normal
severity: normal
status: open
title: Create a new helper function that enable to test that an operation don't 
hang more than a given timeout.
type: feature request
versions: Python 3.2
Added file: http://bugs.python.org/file22467/operation_timeout.patch

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



[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on x86 Ubuntu Shared 3.x

2011-06-25 Thread Charles-François Natali

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

test_2_join_in_forked_process fails on FreeBSD 6.4 buildbot.
http://www.python.org/dev/buildbot/all/builders/x86 FreeBSD 6.4 
3.x/builds/1606/steps/test/logs/stdio


==
FAIL: test_2_join_in_forked_process (test.test_threading.ThreadJoinOnShutdown)
--
Traceback (most recent call last):
  File 
/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/test/test_threading.py, 
line 464, in test_2_join_in_forked_process
self._run_and_join(script)
  File 
/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/test/test_threading.py, 
line 436, in _run_and_join
self.assertEqual(data, end of main\nend of thread\n)
AssertionError: '' != 'end of main\nend of thread\n'
+ end of main
+ end of thread


I think it's the same problem as issue #12316: in the child process, even 
calling pthread_create can segfault/abort on FreeBSD6 (async-safe blahblah...).
Tests creating a thread from a fork()ed process should be skipped on FreeBSD6.
Patch attached, along with some refactoring to use the skipIf idiom.

As for test_3_join_in_forked_from_thread, well, it could be more or less the 
same problem. We're really doing something prohibited by POSIX, so things might 
break in unexpected ways. For example, calling pthread_condition_destroy from 
the child process can deadlock (see http://bugs.python.org/issue6721#msg136047).

Victor: to debug this kind of problem, it would be great if faulthandler could 
also dump tracebacks of children processes. Do you mind if I create a new issue?

--
keywords: +patch
nosy: +neologix
Added file: http://bugs.python.org/file22468/test_threading_fork.diff

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



[issue12403] Mention sys.displayhook in code module docs and the compile builtin docs

2011-06-25 Thread Miki Tebeka

Miki Tebeka miki.teb...@gmail.com added the comment:

Yeah, I though about using dup2 from stdout/stderr to the socket. However this 
means I can connect only one client at a time. Which was an issue I was trying 
to avoid. Didn't think about print statements though ...

Thanks.

--

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



[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-06-25 Thread mouad

mouad mouad...@gmail.com added the comment:

The test case use a helper function in test/support.py that i have proposed in 
issue #12410.

I'm dropping this comment here because i don't have the rights to edit the 
issue dependency.

cheers;

--

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



[issue12410] Create a new helper function that enable to test that an operation don't hang more than a given timeout.

2011-06-25 Thread mouad

Changes by mouad mouad...@gmail.com:


Removed file: http://bugs.python.org/file22467/operation_timeout.patch

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



[issue12410] Create a new helper function that enable to test that an operation don't hang more than a given timeout.

2011-06-25 Thread mouad

Changes by mouad mouad...@gmail.com:


Added file: http://bugs.python.org/file22469/operation_timeout.patch

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



[issue12296] Minor clarification in devguide

2011-06-25 Thread Sandro Tosi

Sandro Tosi sandro.t...@gmail.com added the comment:

(this obviously does not apply to new classes, functions or *optional* 
arguments) ?

--
nosy: +sandro.tosi

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



[issue11763] assertEqual memory issues with large text inputs

2011-06-25 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

The basic idea of the patch is good, but instead of introducing _MAX_LENGTH, 
maxDiff should be reused.

--

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



[issue11763] assertEqual memory issues with large text inputs

2011-06-25 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

Sorry, ignore that. I see that the patch already passes maxDiff to truncate_str.

--

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



[issue12411] cgi.parse_multipart is broken on 3.x

2011-06-25 Thread Jonas Wagner

New submission from Jonas Wagner ve...@gmx.ch:

While writing tests for the cgi module I came across what looks like a 
conversion bug.

cgi.parse_multipart is comparing values it reads from a binary file like with a 
string literal:
line = fp.readline()
...
if line.startswith(--):

This patch adds fixes the issue and adds test for it.

--
components: Library (Lib)
files: cgi-coverage.diff
keywords: patch
messages: 139082
nosy: jonas.wagner
priority: normal
severity: normal
status: open
title: cgi.parse_multipart is broken on 3.x
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file22470/cgi-coverage.diff

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



[issue11802] filecmp.cmp needs a documented way to clear cache

2011-06-25 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 11568c59d9d4 by Raymond Hettinger in branch '2.7':
Issue 11802:  filecmp cache was growing without bound.
http://hg.python.org/cpython/rev/11568c59d9d4

--
nosy: +python-dev

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



[issue11233] clarifying Availability: Unix

2011-06-25 Thread Sandro Tosi

Changes by Sandro Tosi sandro.t...@gmail.com:


--
Removed message: http://bugs.python.org/msg130754

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



[issue6721] Locks in python standard library should be sanitized on fork

2011-06-25 Thread Giovanni Bajo

Giovanni Bajo giovannib...@gmail.com added the comment:

If there's agreement that the general problem is unsolvable (so fork and 
threads just don't get along with each other), what we could attempt is trying 
to limit the side effects in the standard library, so that fewest users as 
possible are affected by this problem.

For instance, having deadlocks just because of print statements sounds like a 
bad QoI that we could attempt to improve. Is there a reason while BufferedIO 
needs to hold its internal data-structure lock (used to make it thread-safe) 
while it's doing I/O and releasing the GIL? I would think that it's feasible to 
patch it so that its internal lock is only used to synchronize accesses to the 
internal data structures, but it is never held while I/O is performed (and thus 
the GIL is released -- at which point, if another threads forks, the problem 
appears).

--
nosy: +Giovanni.Bajo

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



[issue12411] cgi.parse_multipart is broken on 3.x

2011-06-25 Thread R. David Murray

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


--
nosy: +haypo

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



[issue6721] Locks in python standard library should be sanitized on fork

2011-06-25 Thread Tomaž Šolc

Changes by Tomaž Šolc tomaz.s...@tablix.org:


--
nosy: +avian

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



[issue11802] filecmp.cmp needs a documented way to clear cache

2011-06-25 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 2bacaf6a80c4 by Raymond Hettinger in branch '3.2':
Issue 11802:  filecmp cache was growing without bound.
http://hg.python.org/cpython/rev/2bacaf6a80c4

New changeset 8f4466619e1c by Raymond Hettinger in branch 'default':
Issue 11802:  filecmp cache was growing without bound.
http://hg.python.org/cpython/rev/8f4466619e1c

--

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



[issue11802] filecmp.cmp needs a documented way to clear cache

2011-06-25 Thread Raymond Hettinger

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

Made a simple fix to keep the cache from growing without bound.
Leaving this open for 3.3 as a feature request to implement a more 
sophisticated strategy using file hashes or somesuch.

--

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



[issue12341] Some additions to .hgignore

2011-06-25 Thread Éric Araujo

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

Please backport.

--
versions: +Python 2.7, Python 3.2

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



[issue12341] Some additions to .hgignore

2011-06-25 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset ef306bd1d122 by Ezio Melotti in branch 'default':
#12341: add coverage files/dirs to .hgignore. Patch by Sandro Tosi.
http://hg.python.org/cpython/rev/ef306bd1d122

--

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



[issue12410] Create a new helper function that enable to test that an operation don't hang more than a given timeout.

2011-06-25 Thread R. David Murray

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


--
nosy: +haypo

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



[issue12341] Some additions to .hgignore

2011-06-25 Thread Ezio Melotti

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

Fixed during the EuroPython sprint, thanks for the patch!

--
nosy: +ezio.melotti
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue12412] non defined representation for pwd.struct_passwd

2011-06-25 Thread Francisco Garcia

New submission from Francisco Garcia pub...@francisco-garcia.net:

pwd.struct_passwd has different representations in cpython 2.7.2 and pypy 1.5

A unit test from cpython might enforce the same representation across 
interpreters:

 print pwd.getpwuid(os.getuid())

Current cpython output:

pwd.struct_passwd(pw_name='demo_user', pw_passwd='', pw_uid=1001, 
pw_gid=100, pw_gecos='demo_user', pw_dir='/Users/demo_user', 
pw_shell='/bin/bash')

Current pypy output
('demo_user', '', 1001, 100, 'demo_user', '/Users/demo_user', 
'/bin/bash')

--
messages: 139090
nosy: fgarciar
priority: normal
severity: normal
status: open
title: non defined representation for pwd.struct_passwd
type: behavior
versions: Python 2.7

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



[issue12410] Create a new helper function that enable to test that an operation don't hang more than a given timeout.

2011-06-25 Thread Charles-François Natali

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

It's a little bit more complicated than that:
- signals and threads don't mix well together
- this will make syscalls fail with EINTR
- the old SIGALRM handler is lost
- etc

In short, don't use signals.
I'm not sure there's a reliable way to write such a general-purpose wrapper 
(usually one can use select() with a timeout or spawn a subprocess and use 
communicate's timeout to achieve this kind of things).
In your use case (issue #12157), I think that letting the test block is fine, 
since:
- there's no easy way to add a timeout (but you could spawn a new interpreter 
and use communicate with a timeout if you really wanted to)
- it will be caught by the faulthandler module
- a test killed by faulthandler's timeout is more interesting to fix that a 
common failed test ;-)

--
nosy: +neologix

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



[issue11669] Clarify Lang Ref Compound statements footnote

2011-06-25 Thread Sandro Tosi

Sandro Tosi sandro.t...@gmail.com added the comment:

Just to make explicit what's happening:


 try:
... try:
... raise TypeError()
... finally:
... raise ValueError()
... except TypeError as e:
... print('mmm')
... 
Traceback (most recent call last):
  File stdin, line 3, in module
TypeError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File stdin, line 5, in module
ValueError

while


 try:
... try:
... raise TypeError()
... finally:
... raise ValueError()
... except ValueError as e:
... print ('mmm')
... 
mmm

--
nosy: +sandro.tosi

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



[issue11669] Clarify Lang Ref Compound statements footnote

2011-06-25 Thread Sandro Tosi

Sandro Tosi sandro.t...@gmail.com added the comment:

Ok, I send it too soon... attached is a patch to fix this bug (it applies on 
default, 3.2 and 2.7).

--

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



  1   2   >