[issue16547] IDLE segfaults in tkinter after fresh file's text has been rendered

2012-11-25 Thread Ned Deily

Ned Deily added the comment:

From the backtrace it shows you are linking with the Apple-supplied Tk 
(/System/Library/Frameworks/Tk.framework/Versions/8.5/Tk) framework. The 
Apple-supplied Tk 8.5 in OS X 10.6 was the first release of the Cocoa Aqua Tk. 
It has proven to be unusable with Python Tkinter and IDLE.  There have been 
numerous Python issues opened about it.  If you wish to use Tkinter on OS X 
10.6, you should either supply and link with a different Tk 8.5, such as the 
ActiveState Tcl 8.5 or one you build yourself (either Cocoa, Carbon, or X11) 
or, if you don't need 64-bit support, link with the Apple-supplied Carbon Tk 
8.4.  See http://www.python.org/download/mac/tcltk/ for current 
recommendations.

That said, it wouldn't explain crashes on Windows (can you produce a trace  for 
that?) and there's no guarantee you won't run into other bugs using a more 
recent Tk on OS X.  But you'll most likely be wasting your time if you try to 
debug anything with the Apple Tk 8.5 in 10.6.  Any Tk problems you find should 
be reported on one of the Tcl/Tk mailing lists, for example, the Mac-specific 
Tcl list (most easily accessed here: 
http://dir.gmane.org/gmane.comp.lang.tcl.mac) or the Tk bug tracker 
(http://tcl.sourceforge.net).

Unless there is evidence that Python is doing something wrong and you can 
provide a reproducible test case, this issue should be closed.

--

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



[issue16546] ast.YieldFrom needlessly has its expr value as optional

2012-11-25 Thread Mark Dickinson

Mark Dickinson added the comment:

New patch: move new test to the correct test class.

--
Added file: http://bugs.python.org/file28103/issue16546_v2.patch

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



[issue4591] 32-bits unsigned user/group identifier

2012-11-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Patch updated. The converters declaration moved to the new file 
Modules/posixmodule.h (Modules/grpmodule.c, Modules/posixmodule.c, 
Modules/pwdmodule.c, and Modules/signalmodule.c use it) and the implementation 
moved to Modules/posixmodule.c.

--
Added file: http://bugs.python.org/file28104/posix_uid_gid_conv_4.patch

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



[issue16483] Make int(float('inf')) raise ValueError rather than OverflowError.

2012-11-25 Thread Mark Dickinson

Mark Dickinson added the comment:

Closing as won't fix.

--
resolution:  - wont fix
status: open - closed

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



[issue4591] 32-bits unsigned user/group identifier

2012-11-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

 The value -1 is used is some functions like chown() (to only change the
user, only the group or none, to check if you are allowed or not). How do
you handle this value?

Yes, there is a special case for -1. Look at the code.

--

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



[issue16209] add a class str entry to the docs

2012-11-25 Thread Nick Coghlan

Nick Coghlan added the comment:

Right, aside from my recent revamp, much of the existing layout of the types 
section has been inherited from the pre-new style classes days when you 
*couldn't* inherit from types, and strings were the only one with a non-trivial 
number of methods.

Rearranging as Chris suggests makes sense to me - my work was certainly only 
intended to be the *start* of improvements to the builtin type docs.

The main thing to watch out for is ensuring we don't break any incoming deep 
links while rearranging things (perhaps by adding the appropriate explicit 
anchor targets). It's OK if some cases end up just linking to the page (e.g. 
that's what now happens to reference to the old monolithic sequence types 
section, as there's no obviously better destination), but in this case the old 
deep links should go to the new class docs.

--

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



[issue16209] add a class str entry to the docs

2012-11-25 Thread Nick Coghlan

Nick Coghlan added the comment:

The simpler approach Chris has taken here (i.e. just leaving the string methods 
separate from the class definition) also works.

Patch looks good to me - I'm definitely in favour of moving towards a more 
consistent approach of having the builtin function definitions reference to 
full class definitions (as shown by the changes I made to the docs for the 
other sequence types).

--

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



[issue16339] Document exec(stmt, global_dict, local_dict) form in Python 2?

2012-11-25 Thread Mark Dickinson

Mark Dickinson added the comment:

Here's a patch for the documentation and tests.

--
keywords: +patch
Added file: http://bugs.python.org/file28105/issue16339.patch

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



[issue16339] Document exec(stmt, global_dict, local_dict) form in Python 2?

2012-11-25 Thread Mark Dickinson

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


Added file: http://bugs.python.org/file28106/issue16339.patch

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



[issue16339] Document exec(stmt, global_dict, local_dict) form in Python 2?

2012-11-25 Thread Mark Dickinson

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


Removed file: http://bugs.python.org/file28105/issue16339.patch

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



[issue8824] Improve documentation of exec

2012-11-25 Thread Mark Dickinson

Mark Dickinson added the comment:

Should this be closed as a duplicate of issue #13557?

--

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



[issue16339] Document exec(stmt, global_dict, local_dict) form in Python 2?

2012-11-25 Thread Mark Dickinson

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


--
stage: needs patch - patch review

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



[issue16496] Simplify and optimize random_seed()

2012-11-25 Thread Mark Dickinson

Mark Dickinson added the comment:

Updated patch: adds in the missing checks for PyMem_Malloc errors.

--
Added file: http://bugs.python.org/file28107/random_seed_metd2.patch

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



[issue16339] Document exec(stmt, global_dict, local_dict) form in Python 2?

2012-11-25 Thread Mark Dickinson

Mark Dickinson added the comment:

Updated patch:  drops mention of backwards compatibility, since that's not so 
useful (thanks, Ezio!).  Adds note about resemblance to Python 3 code.

--
Added file: http://bugs.python.org/file28108/issue16339_v2.patch

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



[issue16339] Document exec(stmt, global_dict, local_dict) form in Python 2?

2012-11-25 Thread Mark Dickinson

Mark Dickinson added the comment:

Rewording the sentence about Python 3.

--
Added file: http://bugs.python.org/file28109/issue16339_v3.patch

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



[issue16551] Cleanup the pure Python pickle implementation

2012-11-25 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

This issue inspired by issue12848. The proposed patch get rid of the marshal 
module (the struct module used instead), removes some redundant code, and 
changes the code to use more modern idioms.

--
components: Library (Lib)
files: pickle_cleanup.patch
keywords: patch
messages: 176345
nosy: alexandre.vassalotti, pitrou, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Cleanup the pure Python pickle implementation
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file28111/pickle_cleanup.patch

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



[issue16550] pickletools.py treats 32bit lengths as signed, but pickle.py as unsigned

2012-11-25 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Since issue12848 some lengths in pickle module treated as unsigned, however 
pyckletools module treats all 32-bit lengths as signed. The proposed patch adds 
support of unsigned 32-bit lengths.

--
components: Library (Lib)
files: pickletools_uint4.patch
keywords: patch
messages: 176344
nosy: alexandre.vassalotti, pitrou, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: pickletools.py treats 32bit lengths as signed, but pickle.py as unsigned
type: behavior
versions: Python 3.2, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file28110/pickletools_uint4.patch

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



[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2012-11-25 Thread Jyrki Pulliainen

Jyrki Pulliainen added the comment:

I rebased this change on top of 3.4 and in case of an iterable argument it now 
uses the _convert_names function to convert it to a list of test names.

--
Added file: http://bugs.python.org/file28112/issue15132_py3_v2.patch

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



[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2012-11-25 Thread Jyrki Pulliainen

Changes by Jyrki Pulliainen jy...@dywypi.org:


Removed file: http://bugs.python.org/file27681/issue15132_py2.patch

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



[issue16548] os.system won't run any command and there is no error message when memory cannot be allocated

2012-11-25 Thread Ramchandra Apte

Ramchandra Apte added the comment:

+1 on exception

--
nosy: +ramchandra.apte

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



[issue16333] Trailing whitespace in json dump when using indent

2012-11-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I don't think the code should fixed. You can use separators=(',', ': ') with 
indentation. Perhaps the documentation should contains such suggestion.

--

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



[issue16339] Document exec(stmt, global_dict, local_dict) form in Python 2?

2012-11-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fd9c9579050d by Mark Dickinson in branch '2.7':
Issue #16339: Document and test exec(stmt, globals, locals) form in Python 2.7.
http://hg.python.org/cpython/rev/fd9c9579050d

--
nosy: +python-dev

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



[issue16339] Document exec(stmt, global_dict, local_dict) form in Python 2?

2012-11-25 Thread Mark Dickinson

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


--
resolution:  - fixed
status: open - closed

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



[issue16549] regression: -m json.tool module is broken

2012-11-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a simple patch.

--
keywords: +patch
nosy: +serhiy.storchaka
versions: +Python 3.4 -Python 3.1
Added file: http://bugs.python.org/file28113/json_tool_open.patch

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



[issue16333] Trailing whitespace in json dump when using indent

2012-11-25 Thread anatoly techtonik

anatoly techtonik added the comment:

Would you mind providing some counter-arguments?

--

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



[issue16548] os.system won't run any command and there is no error message when memory cannot be allocated

2012-11-25 Thread Mark Dickinson

Mark Dickinson added the comment:

-1 on an exception.  This would be a backwards-incompatible API change, so 
could only happen in Python 3.4.  os.system is well documented, including a 
recommendation to use the subprocess module instead.

Reclassifying as a feature request, since this isn't a bug.  In any case, I 
think this should be rejected.

--
nosy: +mark.dickinson
type: behavior - enhancement
versions:  -Python 2.7, Python 3.2, Python 3.3

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



[issue16333] Trailing whitespace in json dump when using indent

2012-11-25 Thread anatoly techtonik

anatoly techtonik added the comment:

Trailing whitespace produce visual warnings in diff comparison tools. If you 
have to read docs on how fix every piece of code that produces readable JSON to 
avoid this warnings, it is a very-very bad user experience.

The argument that by default the output with indent option should be 
human-friendly. Don't you agree with that?

--

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



[issue16549] regression: -m json.tool module is broken

2012-11-25 Thread Ezio Melotti

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


--
assignee:  - ezio.melotti
nosy: +ezio.melotti
stage: needs patch - test needed

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



[issue4945] json checks True/False by identity, not boolean value

2012-11-25 Thread anatoly techtonik

anatoly techtonik added the comment:

+1 for all branches.

Is that handling of booleans PEPified somewhere?

--
nosy: +techtonik

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



[issue14478] Decimal hashing very slow, could be cached

2012-11-25 Thread Mark Dickinson

Mark Dickinson added the comment:

Closing as fixed (for the C version, at least).

--
resolution:  - fixed
status: open - closed

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



[issue1569040] Speed up using + for string concatenation

2012-11-25 Thread Ramchandra Apte

Ramchandra Apte added the comment:

Buuump.

--
nosy: +ramchandra.apte

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



[issue2537] re.compile(r'((x|y+)*)*') should fail

2012-11-25 Thread Ramchandra Apte

Changes by Ramchandra Apte maniandra...@gmail.com:


--
components: +Library (Lib) -Regular Expressions
versions: +Python 3.4

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



[issue1569040] Speed up using + for string concatenation

2012-11-25 Thread Benjamin Peterson

Benjamin Peterson added the comment:

This issue hasn't been touched in years and would certainly need a completely 
new patch.

--
resolution:  - rejected
status: open - closed

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



[issue3410] platform.version() don't work as expected in Vista in portuguese

2012-11-25 Thread Ramchandra Apte

Ramchandra Apte added the comment:

Beemp.

--
nosy: +ramchandra.apte

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



[issue3410] platform.version() don't work as expected in Vista in portuguese

2012-11-25 Thread Ezio Melotti

Ezio Melotti added the comment:

I couldn't find a non-English Windows machine to test this, so I'm just going 
to close it.  Feel free to reopen it or create a new issue if there are other 
problems.

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

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



[issue16546] ast.YieldFrom needlessly has its expr value as optional

2012-11-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ffb2fa900cb7 by Mark Dickinson in branch '3.3':
Issue #16546: make ast.YieldFrom argument mandatory.
http://hg.python.org/cpython/rev/ffb2fa900cb7

New changeset 9bc6e157475a by Mark Dickinson in branch 'default':
Issue #16546: merge fix from 3.3
http://hg.python.org/cpython/rev/9bc6e157475a

--
nosy: +python-dev

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



[issue1286] fileinput, StringIO, and cStringIO do not support the with protocol

2012-11-25 Thread Georg Brandl

Georg Brandl added the comment:

It would be a new feature, and as such forbidden to add in maintenance releases.

--

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



[issue16546] ast.YieldFrom needlessly has its expr value as optional

2012-11-25 Thread Mark Dickinson

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


--
resolution:  - fixed
status: open - closed

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



[issue16521] logging.basicConfig creates empty file when using handlers

2012-11-25 Thread Vinay Sajip

Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:


--
assignee:  - vinay.sajip
nosy: +vinay.sajip

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



[issue2537] re.compile(r'((x|y+)*)*') should fail

2012-11-25 Thread Mark Dickinson

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


--
nosy:  -mark.dickinson

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



[issue16333] Trailing whitespace in json dump when using indent

2012-11-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

What you think about default separators will be (', ', ': ') if indent is None 
and (',', ': ') if indent is not None? This will allow indent options be 
human-friendly and keep the flexibility to specify arbitrary separators if they 
needed.

--

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



[issue16521] logging.basicConfig creates empty file when using handlers

2012-11-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d7660ccd8470 by Vinay Sajip in branch '3.2':
Closes #16521: Improved error handling for basicConfig(), added tests for same.
http://hg.python.org/cpython/rev/d7660ccd8470

New changeset 4b522a1c9c27 by Vinay Sajip in branch '3.3':
Null merge for fix for #16521.
http://hg.python.org/cpython/rev/4b522a1c9c27

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

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



[issue9011] ast_for_factor unary minus optimization changes AST

2012-11-25 Thread Mark Dickinson

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


--
versions:  -Python 2.6, Python 3.1

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



[issue16549] regression: -m json.tool module is broken

2012-11-25 Thread Berker Peksag

Berker Peksag added the comment:

Lib/json/tool.py is triggering a ResourceWarning.

Patch attached with a test.

--
nosy: +berker.peksag
Added file: http://bugs.python.org/file28114/issue16549.diff

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



[issue16549] regression: -m json.tool module is broken

2012-11-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Tests added. They fail until issue16333 will be resolved.

--
Added file: http://bugs.python.org/file28115/json_tool_tests.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16549
___diff -r aac6b313ef5f Lib/test/json_tests/test_tool.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +
+++ b/Lib/test/json_tests/test_tool.py  Sun Nov 25 17:03:12 2012 +0200
@@ -0,0 +1,53 @@
+import os
+import textwrap
+import unittest
+from test import support
+from test.script_helper import assert_python_ok
+from test.support import TESTFN
+
+class TestTool(unittest.TestCase):
+data = 
+
+[[blorpie],[ whoops ] , [
+ ],\td-shtaeou,\rd-nthiouh,
+i-vhbjkhnth, {nifty:87}, {morefield :\tfalse,field
+:yes}  ]
+   
+
+expect = textwrap.dedent(\
+[
+[
+blorpie
+],
+[
+whoops
+],
+[],
+d-shtaeou,
+d-nthiouh,
+i-vhbjkhnth,
+{
+nifty: 87
+},
+{
+field: yes,
+morefield: false
+}
+]
+)
+
+def test_tool(self):
+infile = support.TESTFN
+with open(infile, w) as fp:
+self.addCleanup(os.remove, infile)
+fp.write(self.data)
+rc, out, err = assert_python_ok('-m', 'json.tool', infile)
+self.assertEqual(out, self.expect.encode())
+self.assertEqual(err, b'')
+outfile = support.TESTFN + '.out'
+rc, out, err = assert_python_ok('-m', 'json.tool', infile, outfile)
+self.addCleanup(os.remove, outfile)
+with open(outfile, r) as fp:
+self.assertEqual(fp.read(), self.expect)
+self.assertEqual(out, b'')
+self.assertEqual(err, b'')
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16549] regression: -m json.tool module is broken

2012-11-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Oops. This issue becomes very popular.

--
dependencies: +Trailing whitespace in json dump when using indent
stage: test needed - patch review

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



[issue8745] zipimport is a bit slow

2012-11-25 Thread Catalin Iacob

Catalin Iacob added the comment:

I tried Serhiy's suggestion in msg174934, see attached 
attempt-fseek-seek_cur.patch updated to current default. It makes no difference 
relative to the default branch for my test stdlib.zip, dummy reads still work 
better on Windows.

This makes sense if you follow the CRT's implementation, fseek calls 
_fseek_nolock which always calls _flush, regardless whether SEEK_CUR is used or 
not. This is the case with both VS2008 and VS2010. So this patch is a 
workaround for poor fseek performance in Microsoft's CRT, it doesn't cause 
performance issues on Linux but saves quite some milliseconds of startup time 
so I think it's worth the tradeoff.

I'll also upload zipimport_speedup-v3.patch updated to apply to current default 
and with error handling for failing freads since the fseeks that the patch 
replaces have gained error handling on the default branch in the mean time. The 
timings remain the same on my Windows machine: around 30ms for default branch, 
around 15ms with patch.

--
Added file: http://bugs.python.org/file28116/attempt-fseek-seek_cur.patch

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



[issue8745] zipimport is a bit slow

2012-11-25 Thread Catalin Iacob

Changes by Catalin Iacob iacobcata...@gmail.com:


Added file: http://bugs.python.org/file28117/zipimport-speedup-v3.patch

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



[issue2537] re.compile(r'((x|y+)*)*') should fail

2012-11-25 Thread Ezio Melotti

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


--
components: +Regular Expressions

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



[issue9011] ast_for_factor unary minus optimization changes AST

2012-11-25 Thread Mark Dickinson

Mark Dickinson added the comment:

New patch.

--
assignee:  - mark.dickinson
Added file: http://bugs.python.org/file28118/issue9011_v2.patch

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



[issue6744] calling kevent repr raises a TypeError

2012-11-25 Thread Berker Peksag

Berker Peksag added the comment:

The bug has been fixed in issue 7211.

Related changeset: http://hg.python.org/cpython/rev/f89a93a778a8#l4.63

See the output of kevent-repr-test.py(tested in 3.2.3 and 3.3.0):

select.kevent ident=1 filter=-1 flags=0x1 fflags=0x0 data=0x0 udata=0x0

I think this can be closed as out of date.

--
nosy: +berker.peksag

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



[issue4945] json checks True/False by identity, not boolean value

2012-11-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Actually most proposed changes were already committed, only the documentation 
left. Here is an updated and fixed patch for 3.x.

--
components: +Documentation -Library (Lib)
nosy: +serhiy.storchaka
versions: +Python 3.4
Added file: http://bugs.python.org/file28119/json_doc_truefalse.patch

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



[issue4945] json checks True/False by identity, not boolean value

2012-11-25 Thread Serhiy Storchaka

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


Added file: http://bugs.python.org/file28120/json_doc_truefalse-2.7.patch

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



[issue16472] Distutils+mingw links agains msvcr90, while python27.dll is linked agains msvcrt

2012-11-25 Thread Catalin Iacob

Catalin Iacob added the comment:

Václav, are you sure about the official python27.dll being linked against 
msvcrt.dll? Maybe this is your own python27.dll compiled with MinGW?

I see the opposite: for both C:\windows\system32\python27.dll (64 bit) and 
c:\windows\SysWOW64\python27.dll (32 bit) from the Windows 2.7.3 installer, 
Dependency Walker shows they are linked against msvcr90.dll. This is probably 
also the reason why distutils links extensions against msvcr90.dll, exactly to 
avoid linking against 2 different CRTs.

--
nosy: +catalin.iacob

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



[issue16543] improve TypeError messages for missing arguments (meta issue)

2012-11-25 Thread Ezio Melotti

Ezio Melotti added the comment:

See also #15201.

--

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



[issue16333] Trailing whitespace in json dump when using indent

2012-11-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The proposed patch changes default *separators* value to (',', ': ') if 
*indent* is not None.

--
Added file: 
http://bugs.python.org/file28121/json_indent_separators_default.patch

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



[issue16525] wave file module does not support 32bit float format

2012-11-25 Thread Sebastian Kraft

Sebastian Kraft added the comment:

Attached to this mail you find my patch for the implementation of support for 
8, 16, 24, 32 bit signed int PCM and 32, 64 bit float.

24bit on big endian systems is buggy, but this will be reported in another 
ticket.

The modified test checks all number formats apart form 24bit int. If the patch 
is fine and will be accepted I will also update the doc and send a seperate 
patch for this.

--
keywords: +patch
Added file: http://bugs.python.org/file28122/wave_float_issue16525.patch

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



[issue9011] ast_for_factor unary minus optimization changes AST

2012-11-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ea36de7926f8 by Mark Dickinson in branch '2.7':
Issue #9011: AST creation no longer modifies CST for negated numeric literals.
http://hg.python.org/cpython/rev/ea36de7926f8

--
nosy: +python-dev

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



[issue9011] ast_for_factor unary minus optimization changes AST

2012-11-25 Thread Mark Dickinson

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


--
resolution:  - fixed
status: open - closed

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



[issue8745] zipimport is a bit slow

2012-11-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

 So this patch is a workaround for poor fseek performance in Microsoft's CRT, 
 it doesn't cause performance issues on Linux but saves quite some 
 milliseconds of startup time so I think it's worth the tradeoff.

I think some clarifying comments will be good in the code. In particular about 
the `dummy` variable.

 I'll also upload zipimport_speedup-v3.patch updated to apply to current 
default and with error handling for failing freads since the fseeks that the 
patch replaces have gained error handling on the default branch in the mean 
time.

Perhaps getc() requires error handling too.

--

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



[issue16209] add a class str entry to the docs

2012-11-25 Thread Chris Jerdonek

Chris Jerdonek added the comment:

 The simpler approach Chris has taken here (i.e. just leaving the string 
 methods separate from the class definition) also works.

Yes, though I mentioned nesting the string methods beneath the class entry in 
the original post for this issue, I figured we could start smaller and do this 
in more manageable steps.  We can do the bigger change (in the sense of being a 
bigger diff) of indenting as part of a second issue/patch.

--

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



[issue16549] regression: -m json.tool module is broken

2012-11-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Berker and me wrote the different tests. I were add a separate test file 
because json.tool should not be tested for both C and Python implementation and 
because json tests already splitted on many files. Berker tests using json.tool 
as a filter. Both tests should be merged. Of course, using a `with` for open 
files is a good idea.

--

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



[issue16549] regression: -m json.tool module is broken

2012-11-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a merged tests.

--
Added file: http://bugs.python.org/file28123/json_tool_tests_2.patch

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



[issue8824] Improve documentation of exec

2012-11-25 Thread Mark Dickinson

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


--
resolution:  - duplicate
status: open - closed
superseder:  - exec of list comprehension fails on NameError

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



[issue16209] add a class str entry to the docs

2012-11-25 Thread Chris Jerdonek

Chris Jerdonek added the comment:

Updating patch to fix up affected/related index entries.

--
Added file: http://bugs.python.org/file28124/issue-16209-2-default.patch

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



[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2012-11-25 Thread Chris Jerdonek

Chris Jerdonek added the comment:

To clarify, I didn't say that _convert_names() should be used.  I was just 
noting that it returns a list.

--

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



[issue10855] wave.Wave_read.close() doesn't release file

2012-11-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I am not sure, should this issue be closed as rejected because the suggested 
patch for Lib/wave.py was rejected, or as fixed because Georg was committed 
the documentation patch (changeset 8239ec6f39e6) for this issue?

--
nosy: +serhiy.storchaka
status: pending - open

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



[issue8824] Improve documentation of exec

2012-11-25 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I suggested more change here than I committed in #13557. I would like to think 
about the extra a bit more. The issue about def in exec just came up again on 
python-list, but I do not really like the third sentence I suggested.

--
assignee: docs@python - terry.reedy

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



[issue8824] Improve documentation of exec

2012-11-25 Thread Mark Dickinson

Mark Dickinson added the comment:

Okay;  sorry about that.  Reopening.

--
resolution: duplicate - 
status: closed - open

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



[issue6584] gzip module has no custom exception

2012-11-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I added some comments on Rietveld.

--

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



[issue16552] os.path.basename() docs should link to os.path.split()

2012-11-25 Thread Chris Jerdonek

New submission from Chris Jerdonek:

The docs for os.path.abspath(), os.path.basename(), and os.path.dirname():

http://docs.python.org/dev/library/os.path.html#os.path.abspath

should hyperlink to os.path.normpath() and os.path.split() as appropriate for 
easier navigability.

--
assignee: docs@python
components: Documentation
keywords: easy
messages: 176386
nosy: chris.jerdonek, docs@python
priority: normal
severity: normal
stage: needs patch
status: open
title: os.path.basename() docs should link to os.path.split()
type: enhancement
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4

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



[issue16553] named kwd form of OrderedDict ctor yield random key order

2012-11-25 Thread yop

New submission from yop:

tested on 2.7.3 with -R or stock 3.3, the following:

OrderedDict(foo=0,bar=0).keys()

is nondeterminstic as a result of hash randomization. 
probably since **kwds creates a dict.

what is the proper idiom for constructing an ordered-key
dictionary other then (ugly, verbose) piecemeal insertion?

--
components: Library (Lib)
messages: 176387
nosy: benjamin.peterson, rhettinger, yop
priority: normal
severity: normal
status: open
title: named kwd form of OrderedDict ctor yield random key order
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4

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



[issue16553] named kwd form of OrderedDict ctor yield random key order

2012-11-25 Thread Benjamin Peterson

Benjamin Peterson added the comment:

It's random anyway, since keyword arguments have no order.

You can use a tuple.

--

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



[issue16553] named kwd form of OrderedDict ctor yield random key order

2012-11-25 Thread Benjamin Peterson

Changes by Benjamin Peterson benja...@python.org:


--
resolution:  - invalid
status: open - closed

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



[issue10855] wave.Wave_read.close() doesn't release file

2012-11-25 Thread Georg Brandl

Georg Brandl added the comment:

I say fixed: there was a bug (undocumented, but correct behavior) and that 
was fixed.

--
resolution: rejected - fixed
status: open - closed

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



[issue10855] wave.Wave_read.close() doesn't release file

2012-11-25 Thread Serhiy Storchaka

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


--
stage:  - committed/rejected

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



[issue16554] The description of the argument of MAKE_FUNCTION and MAKE_CLOSURE is incorrect

2012-11-25 Thread Daniel Urban

New submission from Daniel Urban:

The description of the argument of the MAKE_FUNCTION and MAKE_CLOSURE opcodes 
in the documentation of the dis module is incorrect. Patch attached.

--
assignee: docs@python
components: Documentation
files: make_function_closure.patch
keywords: needs review, patch
messages: 176390
nosy: daniel.urban, docs@python
priority: normal
severity: normal
stage: patch review
status: open
title: The description of the argument of MAKE_FUNCTION and MAKE_CLOSURE is 
incorrect
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file28125/make_function_closure.patch

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



[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2012-11-25 Thread Jyrki Pulliainen

Jyrki Pulliainen added the comment:

Yeah, I added the convert names call mostly to make the behavior the same as 
with passing things from command line.

However, then we should probably wrap the case of str argument to _convert_name 
and the conversion behavior might be bit too implicit.

I added another patch which does not do the convert_names, but just makes it a 
list

--

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



[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2012-11-25 Thread Jyrki Pulliainen

Changes by Jyrki Pulliainen jy...@dywypi.org:


Added file: http://bugs.python.org/file28126/issue15132_py3_no_convert.patch

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



[issue16555] Add es_cu to locale library.

2012-11-25 Thread Leiser Fernández Gallo

Changes by Leiser Fernández Gallo leise...@gmail.com:


--
components: Library (Lib)
nosy: Leiser.Fernández.Gallo
priority: normal
severity: normal
status: open
title: Add es_cu to locale library.
versions: Python 2.7

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



[issue16555] Add es_cu to locale library.

2012-11-25 Thread Berker Peksag

New submission from Berker Peksag:

Python 2.7 is in bugfix-only mode.

--
nosy: +berker.peksag
versions: +Python 3.4 -Python 2.7

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



[issue16556] Update string.Formatter.vformat documentation to say **kwargs

2012-11-25 Thread Taavi Burns

New submission from Taavi Burns:

The documentation says **kwds instead of **kwargs, which is what the 
function signature uses.

I noticed some other (internally-consistent) occurrences in string.rst. Is 
there any interest in replacing **kwds generally with **kwargs? It looks 
like 327 vs 932 ratio in the docs, and closer to 1185 vs 2361 in the source 
tree as a whole.

Thanks!

--
assignee: docs@python
components: Documentation
files: kwds_kwargs.diff
keywords: patch
messages: 176393
nosy: docs@python, taavi-burns
priority: normal
severity: normal
status: open
title: Update string.Formatter.vformat documentation to say **kwargs
type: enhancement
versions: Python 2.7, Python 3.3
Added file: http://bugs.python.org/file28127/kwds_kwargs.diff

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



[issue16552] os.path.basename() docs should link to os.path.split()

2012-11-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 580ca5c587f6 by Chris Jerdonek in branch '2.7':
Add hyperlinks to the docs of some os.path functions (issue #16552).
http://hg.python.org/cpython/rev/580ca5c587f6

New changeset cde59c6acf98 by Chris Jerdonek in branch '3.2':
Add hyperlinks to the docs of some os.path functions (issue #16552).
http://hg.python.org/cpython/rev/cde59c6acf98

New changeset 3eec2d562df0 by Chris Jerdonek in branch '3.3':
Merge from 3.2: add hyperlinks to some os.path function docs (issue #16552).
http://hg.python.org/cpython/rev/3eec2d562df0

New changeset 25321e2172ad by Chris Jerdonek in branch 'default':
Merge from 3.3: add hyperlinks to some os.path function docs (issue #16552).
http://hg.python.org/cpython/rev/25321e2172ad

--
nosy: +python-dev

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



[issue16552] os.path.basename() docs should link to os.path.split()

2012-11-25 Thread Chris Jerdonek

Changes by Chris Jerdonek chris.jerdo...@gmail.com:


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

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



[issue16555] Add es_cu to locale library.

2012-11-25 Thread Éric Araujo

Éric Araujo added the comment:

Could you expand on the feature request?  The Python locale module delegates to 
the operating system’s locale system; to the best of my knowledge there is no 
registry of locale names at the Python level.

--
nosy: +eric.araujo

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



[issue16556] Update string.Formatter.vformat documentation to say **kwargs

2012-11-25 Thread Éric Araujo

Éric Araujo added the comment:

Hello Taavi!  It seems to me there is little value in changing all docs to use 
“**kwargs” instead of “**kwds”, given that this cannot cause actual problems.  
The interesting thing is that the function takes keyword args.

For string.Formatter.vformat, I see no harm in changing it, but also no value.  
Core developers tend to resist to aesthetic/cleanup/perfectionism-only changes 
for the sake of minimizing diff churn, avoiding divergences between versions 
and not taking unneeded risks (less so for doc changes, but a real concern for 
code cleanups).  Ezio, what do you think?

--
nosy: +eric.araujo, ezio.melotti

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



[issue16543] improve TypeError messages for missing arguments (meta issue)

2012-11-25 Thread Éric Araujo

Éric Araujo added the comment:

I think it’s Terry who has an enlightening distinction between arguments 
definition (positional-or-keyword, positional-only, keyword-only, starargs, 
starkwargs) and function call (positional, keyword, *-unpacked, **-unpacked).  
It may have been Nick or David though.

--
nosy: +eric.araujo, terry.reedy

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



[issue16535] json encoder unable to handle decimal

2012-11-25 Thread Éric Araujo

Éric Araujo added the comment:

Thanks for the workaround Serhiy, I stole that and ran with it :)

For 3.4 I still think something built-in would be best.

--

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



[issue12217] Cross-link docs for faulthandler, traceback and pdb

2012-11-25 Thread Éric Araujo

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


--
nosy: +chris.jerdonek

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



[issue15472] Itertools doc summary table misdocuments some arguments

2012-11-25 Thread Éric Araujo

Éric Araujo added the comment:

cycle was a bad example, but there are other: ifilter, islice, takewhile.  it 
(like what tee uses) instead of seq would work.

--

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



[issue16556] Update string.Formatter.vformat documentation to say **kwargs

2012-11-25 Thread Taavi Burns

Taavi Burns added the comment:

The issue of churn is totally fair.

I'd still advocate for the attached patch, as it's tiny and fixes an 
inconsistency between the function signature and the docs that are referring to 
that signature.

Thanks!

--

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