[issue5654] Add C hook in PyDict_SetItem for debuggers

2011-11-28 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

Can this be closed?

--

___
Python tracker 

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

Changes by Eli Bendersky :


--
nosy: +eli.bendersky

___
Python tracker 

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



[issue3932] HTMLParser cannot handle '&' and non-ascii characters in attribute names

2011-11-28 Thread Ezio Melotti

Ezio Melotti  added the comment:

I'll change this in a doc issue then.

Any suggestions about the wording?
Adding "Passing unicode strings is suggested/advised/preferred." in the .feed() 
section is a bit vague, and mentioning the problem (with str it might break in 
some corner cases) while keeping a positive tone is somewhat difficult.

--
components: +Documentation -Library (Lib)
nosy: +rhettinger

___
Python tracker 

___
___
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 Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

Is the man page really displayed during compilation? It's a bit weird that the 
CC compiler behaves this way. Is this common behavior on AIX?

By the way, you are already in the "make" command;  the output you show is made 
during compilation of the "_ctypes" module, by the script 
Modules/_ctypes/libffi/configure.  Can you try and see which part of the script 
displays the man page?

--

___
Python tracker 

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



[issue12014] str.format parses replacement field incorrectly

2011-11-28 Thread Ben Wolfson

Ben Wolfson  added the comment:

I just noticed that the patch labelled strformat-as-document is actually the 
same as the other one, owing to my incompetence. Anyway, as far as I can tell 
the patches would have to be reworked in the light of recent changes anyway. I 
am willing to do this if there's actually interest. Otherwise, is there 
anything else I can do here? Is it necessary to write a PEP or take this to 
python-ideas or something?

--

___
Python tracker 

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



[issue11374] pkgutil.extend_path do not recognize py{c,o} file

2011-11-28 Thread Ezio Melotti

Changes by Ezio Melotti :


--
stage:  -> needs patch

___
Python tracker 

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



[issue6899] Base.replace breaks tree

2011-11-28 Thread Ezio Melotti

Changes by Ezio Melotti :


--
stage:  -> patch review
type:  -> behavior

___
Python tracker 

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



[issue7074] Turtle module crashes python

2011-11-28 Thread Ezio Melotti

Changes by Ezio Melotti :


--
versions: +Python 3.3 -Python 3.1

___
Python tracker 

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



[issue5654] Add C hook in PyDict_SetItem for debuggers

2011-11-28 Thread Ezio Melotti

Changes by Ezio Melotti :


--
stage:  -> needs patch
type:  -> feature request
versions: +Python 3.3 -Python 2.7

___
Python tracker 

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



[issue6816] Provide CPython command line functionality via runpy module

2011-11-28 Thread Eric Snow

Changes by Eric Snow :


--
nosy: +eric.snow

___
Python tracker 

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



[issue6753] Python 3.1.1 test_cmd_line fails on Fedora 11

2011-11-28 Thread Ezio Melotti

Ezio Melotti  added the comment:

Is this still an issue?

--
nosy: +ezio.melotti

___
Python tracker 

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


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

___
Python tracker 

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

2011-11-28 Thread Eric Snow

Changes by Eric Snow :


--
nosy: +eric.snow

___
Python tracker 

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



[issue12919] Control what module is imported first

2011-11-28 Thread Ezio Melotti

Changes by Ezio Melotti :


--
stage: needs patch -> patch review

___
Python tracker 

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


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

___
Python tracker 

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


--
versions:  -Python 3.1

___
Python tracker 

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


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

___
Python tracker 

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


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

___
Python tracker 

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


--
nosy: +mrabarnett

___
Python tracker 

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


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

___
Python tracker 

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


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

___
Python tracker 

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


--
assignee:  -> ezio.melotti

___
Python tracker 

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


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

___
Python tracker 

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


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

___
Python tracker 

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



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

2011-11-28 Thread Ezio Melotti

Changes by Ezio Melotti :


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

___
Python tracker 

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


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

___
Python tracker 

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


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

___
Python tracker 

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

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


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

___
Python tracker 

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

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

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

___
___
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  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
  [  |  ] ...


  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 

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

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


--
assignee:  -> meador.inge

___
Python tracker 

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


--
assignee:  -> meador.inge

___
Python tracker 

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

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

Also see issue4130.

--

___
Python tracker 

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

That fixes it.

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

___
Python tracker 

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



[issue13496] bisect module: Overflow at index computation

2011-11-28 Thread Daniel Sturm

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

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

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

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

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

--

___
Python tracker 

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

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

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

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

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

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


--
nosy:  -pitrou

___
Python tracker 

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


--
versions: +Python 3.2, Python 3.3

___
Python tracker 

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

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

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

This looks like a reasonable suggestion.

--
assignee:  -> rhettinger
priority: normal -> low

___
Python tracker 

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

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

--
nosy: +haypo

___
Python tracker 

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

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

--

___
Python tracker 

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


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

___
Python tracker 

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



[issue13496] bisect module: Overflow at index computation

2011-11-28 Thread Daniel Sturm

New submission from Daniel Sturm :

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 

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

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

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


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

___
Python tracker 

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



[issue13434] time.xmlrpc.com dead

2011-11-28 Thread Roundup Robot

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

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

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 

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


--
nosy:  -haypo

___
Python tracker 

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

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

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

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

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

Thanks, committed.

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

___
Python tracker 

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



[issue7111] abort when stderr is closed

2011-11-28 Thread Roundup Robot

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

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

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

--

___
Python tracker 

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

> Updated patch.
>

LGTM.

--

___
Python tracker 

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

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


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

___
Python tracker 

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



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

2011-11-28 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis  added the comment:

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

(Gentoo uses py_compile and compileall modules.)

--

___
Python tracker 

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

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

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

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

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

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

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

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

--
nosy: +r.david.murray

___
Python tracker 

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



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

2011-11-28 Thread Éric Araujo

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

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

> Is subprocess affected by PYTHONIOENCODING?

Yes, as any Python process.

--

___
Python tracker 

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



[issue13210] Support Visual Studio 2010

2011-11-28 Thread Éric Araujo

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

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


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

___
Python tracker 

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



[issue12618] py_compile cannot create files in current directory

2011-11-28 Thread Meador Inge

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

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

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

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

+1

--
nosy: +meador.inge

___
Python tracker 

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


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

___
Python tracker 

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



[issue13210] Support Visual Studio 2010

2011-11-28 Thread Sébastien Sablé

Sébastien Sablé  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 

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


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

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

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

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

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

Is subprocess affected by PYTHONIOENCODING?

--

___
Python tracker 

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

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

--

___
Python tracker 

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

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

--

___
Python tracker 

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

+1

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

___
Python tracker 

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

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 

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



  1   2   >