[issue19239] add inspect functions to retrieve attributes from both old dir() and overridden dir()

2013-10-13 Thread Nick Coghlan

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


--
nosy: +ncoghlan

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



[issue19240] iglob should try to use `readdir`

2013-10-13 Thread Charles-François Natali

Charles-François Natali added the comment:

Actually, it should probably be using a generator-based version of os.listdir().
See #11406.

--
dependencies: +There is no os.listdir() equivalent returning generator instead 
of list
nosy: +neologix

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



[issue19223] Add 'x' mode to bz2.open()

2013-10-13 Thread Vajrasky Kok

Vajrasky Kok added the comment:

Added doc.

--
Added file: http://bugs.python.org/file32075/add_x_mode_to_bz2_v2.patch

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



[issue4965] Can doc index of html version be separately scrollable?

2013-10-13 Thread Georg Brandl

Georg Brandl added the comment:

Very nice, thanks for porting this.  One minor nit: when I close the sidebar, 
then scroll and then reopen it, it does not immediately update the sidebar 
position, only when scrolling again.

--

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



[issue4965] Can doc index of html version be separately scrollable?

2013-10-13 Thread Georg Brandl

Georg Brandl added the comment:

You said you made it a bit more efficient; is this python-specific or can it be 
ported back to Sphinx?

--

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



[issue16203] Proposal: add re.fullmatch() method

2013-10-13 Thread Georg Brandl

Georg Brandl added the comment:

I updated the patch to current tip, fixed three issues from the review, and 
added documentation updates.

--
nosy: +georg.brandl
Added file: http://bugs.python.org/file32076/issue16203_mrab_2.patch

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



[issue19236] Add Tornado HTTP benchmark

2013-10-13 Thread Stefan Behnel

Stefan Behnel added the comment:

Another thing: you are only using one thread for both the client and the 
server, and the app writes the entire content in one go (during one call to 
get()). Wouldn't it be more interesting to make the app's get() method 
asynchronous as well, so that each chunk actually gets passed separately? 
Otherwise, the fact that it's writing chunks wouldn't really contribute all 
that much to the benchmark.

Or maybe split it up into two benchmarks, one that exercises the asynchronous 
client (as your current code does) and one that shifts more work to the server 
side? Not sure if it's worth it, but might be worth trying. I think it would 
cover two different use cases that way.

--

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



[issue16203] Proposal: add re.fullmatch() method

2013-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b51218966201 by Georg Brandl in branch 'default':
Add re.fullmatch() function and regex.fullmatch() method, which anchor the
http://hg.python.org/cpython/rev/b51218966201

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

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



[issue16203] Proposal: add re.fullmatch() method

2013-10-13 Thread Georg Brandl

Georg Brandl added the comment:

Sorry, accidental push, already reverted.

--
resolution: fixed - 
status: closed - open

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



[issue9951] introduce bytes.hex method

2013-10-13 Thread Georg Brandl

Georg Brandl added the comment:

Blasphemous question: why not give bytes a __hex__ method? Then you could use 
hex() to convert them :)

The patch is outdated; it should not use PyUnicode_AS_UNICODE, but 
PyUnicode_New(..., 127) and then PyUnicode_1BYTE_DATA to get the char array.

--
nosy: +georg.brandl

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



[issue19201] Add 'x' mode to lzma.open()

2013-10-13 Thread Vajrasky Kok

Vajrasky Kok added the comment:

Added doc. Revamped the test. The patch did not cater to the order of modes 
(wb is equal to bw?). I think that deserves a separate ticket.

--
Added file: http://bugs.python.org/file32077/add_x_mode_to_lzma_v2.patch

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



[issue13744] raw byte strings are described in a confusing way

2013-10-13 Thread Georg Brandl

Georg Brandl added the comment:

3.3 is now released with both br and rb allowed, and in 2.7 the current 
text looks good enough for me.

--
nosy: +georg.brandl
resolution:  - out of date
status: open - closed

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



[issue14486] Add some versionchanged notes in threading docs

2013-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 81c28c415718 by Georg Brandl in branch '2.7':
Closes #14486: add versionchanged notices throughout the threading docs for 
PEP8-compliant APIs; the note at the top of the page is too hard to notice.
http://hg.python.org/cpython/rev/81c28c415718

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

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



[issue11120] threading.Thread.daemon Documentation Incomplete

2013-10-13 Thread Georg Brandl

Georg Brandl added the comment:

This is now fixed with changeset 81c28c415718.

--
nosy: +georg.brandl
resolution:  - fixed
status: open - closed

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



[issue15829] Threading Lock - Wrong Exception Name

2013-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d7e9c0a6dbcf by Georg Brandl in branch '2.7':
Closes #15829: document ThreadError and fix exception raised for releasing 
unlocked locks.
http://hg.python.org/cpython/rev/d7e9c0a6dbcf

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

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



[issue15829] Threading Lock - Wrong Exception Name

2013-10-13 Thread Georg Brandl

Georg Brandl added the comment:

3.3 didn't need to be updated; it's RuntimeError there everywhere.

--
nosy: +georg.brandl

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



[issue14502] Document better what happens on releasing an unacquired lock

2013-10-13 Thread Georg Brandl

Georg Brandl added the comment:

This is now fixed for 2.7 (see #15829); no fix needed for 3.3+.

--
resolution:  - fixed
status: open - closed

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



[issue18654] modernize mingwcygwin compiler classes

2013-10-13 Thread Roumen Petrov

Changes by Roumen Petrov bugtr...@roumenpetrov.info:


Added file: 
http://bugs.python.org/file32079/0011-MINGW-compiler-customize-mingw-cygwin-compilers.patch

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



[issue18654] modernize mingwcygwin compiler classes

2013-10-13 Thread Roumen Petrov

Changes by Roumen Petrov bugtr...@roumenpetrov.info:


Added file: 
http://bugs.python.org/file32078/modernize-mingw+cygwin-compiler-class.tar.gz

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



[issue17375] Add docstrings to methods in the threading module

2013-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 24429118988b by Georg Brandl in branch '3.3':
Closes #17375: port new threading docstrings from 2.7.
http://hg.python.org/cpython/rev/24429118988b

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

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



[issue17219] cross add Python's library directory when building python standard extensions

2013-10-13 Thread Roumen Petrov

Changes by Roumen Petrov bugtr...@roumenpetrov.info:


Added file: 
http://bugs.python.org/file32080/0002-issue17219-add-current-dir-in-library-path-if-buildi.patch

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



[issue13740] winsound.SND_NOWAIT ignored on modern Windows platforms

2013-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e08dea96b6e2 by Georg Brandl in branch '3.3':
Closes #13740: SND_NOWAIT seems to be ignored on modern Windows.
http://hg.python.org/cpython/rev/e08dea96b6e2

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

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



[issue13740] winsound.SND_NOWAIT ignored on modern Windows platforms

2013-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3c8feb068694 by Georg Brandl in branch '2.7':
Closes #13740: SND_NOWAIT seems to be ignored on modern Windows.
http://hg.python.org/cpython/rev/3c8feb068694

--

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



[issue18632] mingw: build extensions with GCC

2013-10-13 Thread Roumen Petrov

Changes by Roumen Petrov bugtr...@roumenpetrov.info:


Added file: 
http://bugs.python.org/file32081/0015-MINGW-build-extensions-with-GCC.patch

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



[issue18639] mingw: avoid circular dependency from time module during native build of extentions

2013-10-13 Thread Roumen Petrov

Changes by Roumen Petrov bugtr...@roumenpetrov.info:


Added file: 
http://bugs.python.org/file32082/0021-MINGW-avoid-circular-dependency-from-time-module-dur.patch

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



[issue16253] Docs for PyArg_ParseTupleAndKeywords say it doesn't accept nested tuples

2013-10-13 Thread Georg Brandl

Georg Brandl added the comment:

This sentence appears to be from the 1.5.2 docs; I can't find it anywhere else.

--
nosy: +georg.brandl
resolution:  - invalid
status: open - closed

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



[issue19232] Speed up _decimal import

2013-10-13 Thread Mark Dickinson

Mark Dickinson added the comment:

 Mark, Raymond: Would you support the change (__name__ hack and all)?

No objections here.

--

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



[issue19237] Proposal : LCM function to complement GCD

2013-10-13 Thread Mark Dickinson

Mark Dickinson added the comment:

To get the boundary cases correct, you need a special case for lcm(0, 0), which 
should be 0.

Did you have any particular use-cases in mind for this?  It may make sense to 
allow multiple arguments:  e.g., lcm(4, 5, 6) - 60.

Overall, I'm -0 on this addition: I don't think it comes up often enough to 
make it worth adding, and when it does come up it's easy to create the lcm from 
the gcd (just as your patch does).

--

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



[issue18606] Add statistics module to standard library

2013-10-13 Thread Nick Coghlan

Nick Coghlan added the comment:

Are the ReST docs the only missing piece here? It would be nice to have this 
included in alpha 4 next weekend (although the real deadline is beta 1 on 
November 24).

--
nosy: +ncoghlan

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



[issue18842] Add float.is_finite is_nan is_infinite to match Decimal methods

2013-10-13 Thread Mark Dickinson

Mark Dickinson added the comment:

+1 from me.  You want `float.is_infinite` rather than `float.is_infinity`.  
`is_signed` is another one that may be worth considering.

--

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



[issue18739] math.log of a long returns a different value of math.log of an int

2013-10-13 Thread Mark Dickinson

Mark Dickinson added the comment:

Patch applied.

--
resolution:  - fixed
status: open - closed

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



[issue18739] math.log of a long returns a different value of math.log of an int

2013-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f543863f4e43 by Mark Dickinson in branch '2.7':
Issue #18739: Fix inconsistent results from math.log(n) and math.log(long(n))
http://hg.python.org/cpython/rev/f543863f4e43

--
nosy: +python-dev

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



[issue18659] test_precision in test_format.py is not executed and has unused variable

2013-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e7eed20f2da7 by Mark Dickinson in branch 'default':
Issue #18659: fix test_format test that wasn't being executed.  Thanks Vajrasky 
Kok for the patch.
http://hg.python.org/cpython/rev/e7eed20f2da7

--

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



[issue18659] test_precision in test_format.py is not executed and has unused variable

2013-10-13 Thread Mark Dickinson

Mark Dickinson added the comment:

Let's try again.  I'll close once the buildbots have run.

--

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



[issue18606] Add statistics module to standard library

2013-10-13 Thread Georg Brandl

Georg Brandl added the comment:

In the attached patch I took the docstrings, put them in statistics.rst and 
reformatted/marked-up them according to our guidelines.  This should at least 
be good enough to make this committable.

I also modified statistics.py very slightly; I removed trailing spaces and 
added Function/class in the third table in the module docstring.

--
nosy: +georg.brandl
Added file: http://bugs.python.org/file32083/statistics_combined_withdocs.patch

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



[issue18606] Add statistics module to standard library

2013-10-13 Thread Steven D'Aprano

Steven D'Aprano added the comment:

On Sun, Oct 13, 2013 at 09:21:13AM +, Nick Coghlan wrote:
 
 Nick Coghlan added the comment:
 
 Are the ReST docs the only missing piece here? 

As far as I know, the only blocker is that the ReST docs are missing. 
Also Guido would like to see the docstrings be a little smaller (or 
perhaps even a lot smaller), and that will happen at the same time.

The implementation of statistics.sum needs to be a bit faster, but 
that's also coming. I presume that won't be a blocker.

--

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



[issue19237] Proposal : LCM function to complement GCD

2013-10-13 Thread CliffM

CliffM added the comment:

I've handled a patch, and extended both lcm and gcd to take an arbitrary number 
of arguments -- via functools.reduce, as they are both multiplicative (in the 
first argument).

Also handled the zero case , so lcm(0,0) = 0 = gcd(0,0)

Use-case-wise, I do a reasonable amount of number-theoretic work and lcm and 
gcd are always popping up.  If gcd is defined, it's nice to find lcm too.  

For those less well versed in number-theory, the implementation of lcm is not 
so obvious, and many end up going down a tedious prime factorisation route -- 
if they get that far.

But is it all worth it in the fractions module ?  They should really be in the 
math module.

--
Added file: http://bugs.python.org/file32084/lcm2.patch

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



[issue18659] test_precision in test_format.py is not executed and has unused variable

2013-10-13 Thread Mark Dickinson

Mark Dickinson added the comment:

... and the buildbots with sizeof(int) == sizeof(size_t) == 4 still fail, of 
course.

http://hg.python.org/cpython/rev/d115dc671f52 fixes that by removing the check 
for the exact error message.  It should be enough to check for ValueError 
anyway.

--

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



[issue19241] MINGW: install import library

2013-10-13 Thread Roumen Petrov

New submission from Roumen Petrov:

Enhancement of issue3871 - installation

--
components: Installation
files: 0001-MINGW-install-import-library.patch
keywords: patch
messages: 199689
nosy: rpetrov
priority: normal
severity: normal
status: open
title: MINGW: install import library
versions: Python 3.4
Added file: 
http://bugs.python.org/file32085/0001-MINGW-install-import-library.patch

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



[issue19242] MINGW: generalization of posix installation in distutils

2013-10-13 Thread Roumen Petrov

New submission from Roumen Petrov:

Enhancement of issue3871 - installation

--
files: 0002-MINGW-generalization-of-posix-installation-in-distut.patch
keywords: patch
messages: 199690
nosy: rpetrov
priority: normal
severity: normal
status: open
title: MINGW: generalization of posix installation in distutils
Added file: 
http://bugs.python.org/file32086/0002-MINGW-generalization-of-posix-installation-in-distut.patch

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



[issue19232] Speed up _decimal import

2013-10-13 Thread Stefan Krah

Stefan Krah added the comment:

Antoine Pitrou rep...@bugs.python.org wrote:
 You can apply it using hg import --no-commit, I think.

mercurial 2.1 throws an exception even though the patch was created with
that version.  Now I upgraded to 2.7.2 and it works.

Rietveld also seems to choke on the first patch (no review link).

--

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



[issue19242] MINGW: generalization of posix installation in distutils

2013-10-13 Thread Roumen Petrov

Changes by Roumen Petrov bugtr...@roumenpetrov.info:


--
components: +Installation
versions: +Python 3.4

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



[issue19241] MINGW: install import library

2013-10-13 Thread Roumen Petrov

Changes by Roumen Petrov bugtr...@roumenpetrov.info:


--
type:  - enhancement

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



[issue19243] MINGW: support stdcall without underscore

2013-10-13 Thread Roumen Petrov

New submission from Roumen Petrov:

Split of issue3871

--
components: Extension Modules, Installation
files: 0003-MINGW-support-stdcall-without-underscore.patch
keywords: patch
messages: 199692
nosy: rpetrov
priority: normal
severity: normal
status: open
title: MINGW: support stdcall without underscore
type: enhancement
versions: Python 3.4
Added file: 
http://bugs.python.org/file32087/0003-MINGW-support-stdcall-without-underscore.patch

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



[issue19242] MINGW: generalization of posix installation in distutils

2013-10-13 Thread Roumen Petrov

Changes by Roumen Petrov bugtr...@roumenpetrov.info:


--
type:  - enhancement

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



[issue19244] MINGW: use replace instead rename to avoid failure on windows

2013-10-13 Thread Roumen Petrov

New submission from Roumen Petrov:

Enhancement of issue3871 - installation

--
components: Installation
files: 0004-use-replace-instead-rename-to-avoid-failure-on-windo.patch
keywords: patch
messages: 199693
nosy: rpetrov
priority: normal
severity: normal
status: open
title: MINGW: use replace instead rename to avoid failure on windows
type: enhancement
versions: Python 3.4
Added file: 
http://bugs.python.org/file32088/0004-use-replace-instead-rename-to-avoid-failure-on-windo.patch

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



[issue19245] mingw-meta: installation

2013-10-13 Thread Roumen Petrov

New submission from Roumen Petrov:

this is meta issue for enhancement of issue3871 -  part related to 
installation. Remark: build of  core modules is in issue18653 .

01 : issue19241 : install import library
02 : issue19242 : generalization of posix installation in distutils
03 : issue19243 : support stdcall without underscore
04 : issue19244 : use replace instead rename to avoid failure on windows

--
components: Installation
messages: 199694
nosy: rpetrov
priority: normal
severity: normal
status: open
title: mingw-meta: installation
type: enhancement
versions: Python 3.4

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



[issue3871] cross and native build of python for mingw* hosts

2013-10-13 Thread Roumen Petrov

Roumen Petrov added the comment:

For protocol - as requested patches attached to this issue are split ans posted 
as separate issues.

Please follow those listed below:
issue18654 - modernize mingwcygwin compiler classes (new)
issue17605 - mingw-meta: build interpreter core
issue18653 - mingw-meta: build core modules
issue19245 - mingw-meta: install (new)

Test cases are not covered. Patches will be posted later, if above are resolved.

--

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



[issue18842] Add float.is_finite is_nan is_infinite to match Decimal methods

2013-10-13 Thread Christian Heimes

Christian Heimes added the comment:

The code is already there so the patch is really small.

http://hg.python.org/cpython/annotate/5bc7b20dc04a/Objects/floatobject.c#l1046

I love my time machine. *g*

--
keywords: +patch
nosy: +christian.heimes
Added file: http://bugs.python.org/file32089/float_is.patch

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



[issue16938] pydoc confused by __dir__

2013-10-13 Thread Nick Coghlan

Nick Coghlan added the comment:

Part of the issue 19030 patch was incorrect and we missed it in the review. 
Specifically, the else clause in this bit:

try:
get_obj = getattr(cls, name)
except Exception as exc:
pass
else:
homecls = getattr(get_obj, __class__)
homecls = getattr(get_obj, __objclass__, homecls)
if homecls not in possible_bases:
# if the resulting object does not live somewhere in the
# mro, drop it and go with the dict_obj version only
homecls = None
get_obj = sentinel

The restriction that the __class__ of the object returned by a descriptor must 
appear in the MRO doesn't make any sense. The entire else block should be 
simplified to just:

homecls = getattr(get_obj, __objclass__, None)

And a defining class of None should be documented as a possible result for 
dynamic attributes that appear in __dir__ but don't set __objclass__ 
appropriately, and don't correspond to a descriptor.

--
nosy: +ncoghlan

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



[issue19246] GC does not really free up memory in console

2013-10-13 Thread Пётр Дёмин

New submission from Пётр Дёмин:

Taken from http://stackoverflow.com/a/19287553/135079
When I consume all memory:


Python 2.7 (r27:82525, Jul  4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] 
on win32
Type help, copyright, credits or license for more information.
 a = {}
 for k in xrange(100): a['a' * k] = k
...
Traceback (most recent call last):
  File stdin, line 1, in module
MemoryError
 len(a)
64036

If we'll take summary keys length:

 log(sum(xrange(64036)), 2)
30.93316861532543

we'll get near 32-bit integer overflow. After that done,

 a = {}

will free all 2 Gb of allocated memory (as shown in Task Manager), but 
executing:

 for k in xrange(100): a[k] = k

Will cause:

MemoryError

And dictionary length something like:

 len(a)
87382

--
components: Windows
messages: 199698
nosy: Пётр.Дёмин
priority: normal
severity: normal
status: open
title: GC does not really free up memory in console
type: resource usage
versions: Python 2.7

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



[issue18842] Add float.is_finite is_nan is_infinite to match Decimal methods

2013-10-13 Thread Christian Heimes

Christian Heimes added the comment:

Here is a longer patch that also adds the methods to int and numbers.Real. It 
comes with tests and doc updates, too.

--
stage:  - patch review
Added file: http://bugs.python.org/file32090/issue18842.patch

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



[issue19239] add inspect functions to retrieve attributes from both old dir() and overridden dir()

2013-10-13 Thread Nick Coghlan

Nick Coghlan added the comment:

Should we go further and also consider attributes provided through the 
metaclass?

--

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



[issue19229] operator.py: move the Python implementation in the else block of try/except ImportError

2013-10-13 Thread Stefan Krah

Stefan Krah added the comment:

To be fair, for the startup time I can't really detect any difference between 
importing _operator directly and the current setup.

--

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



[issue19219] speed up marshal.loads()

2013-10-13 Thread Kristján Valur Jónsson

Kristján Valur Jónsson added the comment:

In this case, we can remove a bunch of 'retval = NULL' from the code.

--

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



[issue18659] test_precision in test_format.py is not executed and has unused variable

2013-10-13 Thread Mark Dickinson

Mark Dickinson added the comment:

Buildbots are happy now.  Closing.  Thank you!

--
resolution:  - fixed
status: open - closed

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



[issue16203] Proposal: add re.fullmatch() method

2013-10-13 Thread Nick Coghlan

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


--
stage: committed/rejected - patch review

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



[issue18842] Add float.is_finite is_nan is_infinite to match Decimal methods

2013-10-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Fraction? complex? Complex? Integral? Number?

--
nosy: +serhiy.storchaka

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



[issue18842] Add float.is_finite is_nan is_infinite to match Decimal methods

2013-10-13 Thread Christian Heimes

Christian Heimes added the comment:

Pardon?

The methods could be added to complex, too. cmath implements the methods as:

is_finite:
Py_IS_FINITE(z.real)  Py_IS_FINITE(z.imag)
is_infinite:
Py_IS_INFINITY(z.real) || Py_IS_INFINITY(z.imag)
is_nan:
Py_IS_NAN(z.real) || Py_IS_NAN(z.imag)

For numbers.Real: We can't make the methods abstractmethods because it would be 
an incompatible change.

--

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



[issue19247] Describe surrogateescape algorithm in the Library Reference

2013-10-13 Thread Nick Coghlan

New submission from Nick Coghlan:

The codecs module currently refers out to PEP 383 as the documentation for the 
details of the ``surrogateescape`` error handler.

Instead (as per the recent python-dev discussion about not using PEPs as 
substitutes for reference docs), there should be a section providing details on 
surrogateescape directly in the library reference for the codecs module.

This may involve breaking out the current table of standard error handlers 
under its own heading rather than including it in the intro to codec base 
classes. Then the detailed description of surrogateescape could go under a 
dedicated subheading.

--
messages: 199707
nosy: ncoghlan
priority: normal
severity: normal
stage: needs patch
status: open
title: Describe surrogateescape algorithm in the Library Reference
type: enhancement
versions: Python 3.4

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



[issue18999] Robustness issues in multiprocessing.{get, set}_start_method

2013-10-13 Thread Lars Buitinck

Lars Buitinck added the comment:

 BTW, the context objects are singletons.

I haven't read all of your patch yet, but does this mean a forkserver will be 
started regardless of whether it is later used?

That would be a good thing, since starting the fork server after reading in 
large data sets would mean the fork server would hold on to large swaths of 
memory even when the data set is deallocated in the master process.

--

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



[issue18986] Add a case-insensitive case-preserving dict

2013-10-13 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 Antoine, is the PEP ready for review?

Well, I think it is. Do you think other points should be addressed in it?
We still have some time.

--

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



[issue18999] Robustness issues in multiprocessing.{get, set}_start_method

2013-10-13 Thread Richard Oudkerk

Richard Oudkerk added the comment:

 I haven't read all of your patch yet, but does this mean a forkserver 
 will be started regardless of whether it is later used?

No, it is started on demand.  But since it is started using 
_posixsbuprocess.fork_exec(), nothing is inherited from the main process.

--

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



[issue18999] Robustness issues in multiprocessing.{get, set}_start_method

2013-10-13 Thread Lars Buitinck

Lars Buitinck added the comment:

Ok, great.

--

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



[issue16938] pydoc confused by __dir__

2013-10-13 Thread Ethan Furman

Ethan Furman added the comment:

'None' is not an appropriate response to the Where does this attribute come 
from question.  For one, it's wrong.  For two, it breaks help.

The current patch fixes that particular problem (as a last resort it walks the 
mro looking for the last class that reported having the attribute, and returns 
that class as the home class).

The reason it has the __class__, __objclass__ two-step in there was to handle 
cases like Enum members that do have __class__ set correctly and do not have 
__objclass__ set at all as it was falsely reporting the home class in that case 
as None.

Nick Coughlan said:
 The restriction that the __class__ of the object returned by a descriptor
 must appear in the MRO doesn't make any sense.

In the context of finding the home class it does:  if the __class__ returned by 
a descriptor is not in the mro then just like None it 1) is wrong (it doesn't 
reflect how it came it be in the class being looked up), and 2) it gives weird 
results in help.

The added tests in the patch may shed more light if my explanation isn't making 
sense.

--

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



[issue18919] Unify audio modules tests

2013-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a9f967c8d002 by Serhiy Storchaka in branch '2.7':
Issue #18919: Added tests for the sunau module.  Unified and extended tests
http://hg.python.org/cpython/rev/a9f967c8d002

--

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



[issue17827] Document codecs.encode and codecs.decode

2013-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b607ce6c9ee6 by Nick Coghlan in branch '3.3':
Issue #17827: Document codecs.encode and codecs.decode
http://hg.python.org/cpython/rev/b607ce6c9ee6

New changeset 32f3d6721c84 by Nick Coghlan in branch 'default':
Issue #17827: document codecs.encode and codecs.decode
http://hg.python.org/cpython/rev/32f3d6721c84

--
nosy: +python-dev

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



[issue16938] pydoc confused by __dir__

2013-10-13 Thread Nick Coghlan

Nick Coghlan added the comment:

No, __class__ on a descriptor has *NOTHING* to do with how it was looked up. 
It's the class of the *result*.

 property.__class__
class 'type'
 staticmethod.__class__
class 'type'
 classmethod.__class__
class 'type'

It's completely irrelevant to determining *where the attribute came from*.

--

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



[issue19236] Add Tornado HTTP benchmark

2013-10-13 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 Wouldn't it be more interesting to make the app's get() method
 asynchronous as well, so that each chunk actually gets passed
 separately?

That's a good point. I'll try to look into it.

 Or maybe split it up into two benchmarks, one that exercises the
 asynchronous client (as your current code does) and one that shifts more 
 work to the server side? Not sure if it's worth it, but might be worth
 trying. I think it would cover two different use cases that way.

You still need a client to exercise the server, and a server to exercise the 
client, so I'm not sure how to separate them (short of using an external 
utility, which would add dependencies).

--

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



[issue16938] pydoc confused by __dir__

2013-10-13 Thread Nick Coghlan

Nick Coghlan added the comment:

However, setting __objclass__ on Enum members would be a perfectly reasonable 
thing to do.

--

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



[issue16938] pydoc confused by __dir__

2013-10-13 Thread Nick Coghlan

Nick Coghlan added the comment:

That means __objclass__ can have its meaning broadened to say this is where 
this particular instance of this kind of object was defined, and that and 
__class__ are just coincidentally the same for Enum objects.

We should *not* need to have any Enum specific code in the inspect module, and 
the current code that tries to find the home class has Enum specific 
assumptions.

--

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



[issue17827] Document codecs.encode and codecs.decode

2013-10-13 Thread Nick Coghlan

Nick Coghlan added the comment:

Still need to backport this to 2.7

(Thanks for the preliminary patch Grant, but I'm afraid it didn't make it into 
what I ended up committing)

--
versions:  -Python 3.3, Python 3.4

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



[issue4965] Can doc index of html version be separately scrollable?

2013-10-13 Thread Ezio Melotti

Ezio Melotti added the comment:

 One minor nit: when I close the sidebar, then scroll and then reopen
 it, it does not immediately update the sidebar position, only when
 scrolling again.

I'll look into it.

 You said you made it a bit more efficient; is this python-specific
 or can it be ported back to Sphinx?

Some could be backported:
 * $('.sphinxsidebarwrapper'), $(window), and $('.sphinxsidebar') are 
re-evaluated every time the user scrolls. In sidebar.js I already had 
references to these, so I reused them; in Sphinx you can move them outside the 
.scroll();
 * The original code used $(window).innerHeight(), but the code in sidebar.js 
used window.innerHeight if available or $(window).height() if not.  I kept the 
latter, however I'm not sure that is the best option;
 * $(document) and sidebar_height could also be calculated once at the 
beginning, since they shouldn't change, but I haven't done it in my patch;
 * In the patch I also renamed a few variables to be more clear;
 * The fix in #4711 could also be backported.

--

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



[issue19247] Describe surrogateescape algorithm in the Library Reference

2013-10-13 Thread Ezio Melotti

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


--
nosy: +ezio.melotti

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



[issue19246] GC does not really free up memory in console

2013-10-13 Thread Antoine Pitrou

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


--
nosy: +brian.curtin, tim.golden, tim.peters

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



[issue18919] Unify audio modules tests

2013-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ee7563b07c6f by Serhiy Storchaka in branch '3.3':
Issue #18919: Unified and extended tests for audio modules: aifc, sunau and
http://hg.python.org/cpython/rev/ee7563b07c6f

New changeset fc418ecd8777 by Serhiy Storchaka in branch 'default':
Issue #18919: Unified and extended tests for audio modules: aifc, sunau and
http://hg.python.org/cpython/rev/fc418ecd8777

--

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



[issue16938] pydoc confused by __dir__

2013-10-13 Thread Ethan Furman

Ethan Furman added the comment:

Nick Couphlan added the comment:

 No, __class__ on a descriptor has *NOTHING* to do with how it was
 looked up. It's the class of the *result*.

Which is why in most cases it's discarded as the home class.  (I could easily 
be saying this wrong, which is why I directed you to the tests as better 
examples of what I am trying to communicate.)


 However, setting __objclass__ on Enum members would be a perfectly
 reasonable thing to do.

I'm glad you think so, but this patch makes that unnecessary.


 We should *not* need to have any Enum specific code in the inspect
 module, and the current code that tries to find the home class has
 Enum specific assumptions.

Only in the sense that Enum is currently the only thing making use of the new 
DynamicClassAttribute descriptor.

--

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



[issue18919] Unify audio modules tests

2013-10-13 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


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

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



[issue16938] pydoc confused by __dir__

2013-10-13 Thread Nick Coghlan

Nick Coghlan added the comment:

I want to kill the dance in inspect completely. Just use __objclass__
and document it appropriately.

--

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



[issue19239] add inspect functions to retrieve attributes from both old dir() and overridden dir()

2013-10-13 Thread Ethan Furman

Ethan Furman added the comment:

It would certainly be nice.  We could do a dir() on the metaclass, discarding 
anything either not in dir(type) or not dundered, or both.

--

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



[issue19232] Speed up _decimal import

2013-10-13 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I think we should save these sort of tricks only for modules imported during 
startup.

Ideally, a user should expect that the code for the decimal module is in 
decimal.py.  Ideally, tools like IDLE's Open Module should be able to find 
the source code using only the module name.

I'm -0 on this one.  I don't think hacking up the source tree is worth it.  The 
import is only done once -- the important part is what decimal does when it is 
imported.

--

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



[issue19247] Describe surrogateescape algorithm in the Library Reference

2013-10-13 Thread Georg Brandl

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


--
assignee:  - docs@python
components: +Documentation
nosy: +docs@python

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



[issue19198] Improve cross-references in cgi documentation

2013-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 053eb1db0bf8 by Serhiy Storchaka in branch '2.7':
Issue #19198: Improved cross-references in the cgi module documentation.
http://hg.python.org/cpython/rev/053eb1db0bf8

New changeset e52e259d42e8 by Serhiy Storchaka in branch '3.3':
Issue #19198: Improved cross-references in the cgi module documentation.
http://hg.python.org/cpython/rev/e52e259d42e8

New changeset 781deb421ad0 by Serhiy Storchaka in branch 'default':
Issue #19198: Improved cross-references in the cgi module documentation.
http://hg.python.org/cpython/rev/781deb421ad0

--
nosy: +python-dev

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



[issue19203] Improve cross-references in curses howto

2013-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 54d422f5a5c6 by Serhiy Storchaka in branch '3.3':
Issue #19203: Improved cross-references in the curses howto.
http://hg.python.org/cpython/rev/54d422f5a5c6

--
nosy: +python-dev

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



[issue19203] Improve cross-references in curses howto

2013-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 542f96b913ac by Serhiy Storchaka in branch 'default':
Issue #19203: Improved cross-references in the curses howto.
http://hg.python.org/cpython/rev/542f96b913ac

--

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



[issue19235] Add a dedicated subclass for recursion errors

2013-10-13 Thread Georg Brandl

Georg Brandl added the comment:

Attached is a patch, please review.  Introduces a RecursionError that 
subclasses RuntimeError for compatibility.

Note: I also tested this with RecursionError not subclassing RuntimeError, to 
make sure that except clauses in the test suite are sufficiently narrowed to 
RecursionError.

--
keywords: +patch
Added file: http://bugs.python.org/file32091/recursion_error.patch

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



[issue19232] Speed up _decimal import

2013-10-13 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue19229] operator.py: move the Python implementation in the else block of try/except ImportError

2013-10-13 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue15996] pow() for complex numbers is rough around the edges

2013-10-13 Thread Mark Dickinson

Mark Dickinson added the comment:

See also http://stackoverflow.com/q/18243270/270986 , which points out the 
following inconsistencies:

 1e300 ** 2
OverflowError: (34, 'Result too large')
 1e300j ** 2
OverflowError: complex exponentiation
 (1e300 + 1j) ** 2
OverflowError: complex exponentiation
 (1e300 + 1e300j) ** 2
(nan+nanj)

--

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



[issue19246] GC does not really free up memory in console

2013-10-13 Thread R. David Murray

R. David Murray added the comment:

My guess would be you are dealing with memory fragmentation issues, but I'll 
let someone more knowledgeable confirm that before closing the issue :)

--
nosy: +r.david.murray

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



[issue19204] Improve cross-references in urllib documentation

2013-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3901ff1e6547 by Serhiy Storchaka in branch '3.3':
Improve #19204: Improved cross-references in the urllib package documentation.
http://hg.python.org/cpython/rev/3901ff1e6547

New changeset b5bd28d39cf3 by Serhiy Storchaka in branch 'default':
Improve #19204: Improved cross-references in the urllib package documentation.
http://hg.python.org/cpython/rev/b5bd28d39cf3

--
nosy: +python-dev

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



[issue19207] Improve cross-references in os documentation

2013-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7ea984fc9be1 by Serhiy Storchaka in branch '3.3':
Issue #19207: Improved cross-references in the os, os.path, and posix modules
http://hg.python.org/cpython/rev/7ea984fc9be1

New changeset 74c3cf05fb1e by Serhiy Storchaka in branch 'default':
Issue #19207: Improved cross-references in the os, os.path, and posix modules
http://hg.python.org/cpython/rev/74c3cf05fb1e

--
nosy: +python-dev

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



[issue19198] Improve cross-references in cgi documentation

2013-10-13 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


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

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



[issue19207] Improve cross-references in os documentation

2013-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fd2c34e0104b by Serhiy Storchaka in branch '2.7':
Issue #19207: Improved cross-references in the os, os.path, and posix modules
http://hg.python.org/cpython/rev/fd2c34e0104b

--

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



[issue19203] Improve cross-references in curses howto

2013-10-13 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


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

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



[issue19203] Improve cross-references in curses howto

2013-10-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I haven't applied patch to 2.7 because 2.7 and 3.3 are desynchronized enough. 
If anyone want update curses howto in 2.7 it should do this in separated issue.

--

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



[issue19204] Improve cross-references in urllib documentation

2013-10-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I haven't applied the patch to 2.7 because in 2.7 urllib is totally different.

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

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



[issue19207] Improve cross-references in os documentation

2013-10-13 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


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

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



[issue6011] python doesn't build if prefix contains non-ascii characters

2013-10-13 Thread Georg Brandl

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


--
status:  - open

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



[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2013-10-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3752c94368dd by Ethan Furman in branch 'default':
Issue19030: commit tests for DynamicClassAttribute
http://hg.python.org/cpython/rev/3752c94368dd

--

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



  1   2   3   >