[issue18220] In itertools.islice() make prototype like in help()

2013-06-15 Thread py.user

New submission from py.user:

http://docs.python.org/3/library/itertools.html#itertools.islice
 itertools.islice(iterable, stop)
itertools.islice(iterable, start, stop[, step])

 print(itertools.islice.__doc__)
islice(iterable, [start,] stop [, step]) -- islice object
...

--
assignee: docs@python
components: Documentation
files: issue.patch
keywords: patch
messages: 191199
nosy: docs@python, py.user
priority: normal
severity: normal
status: open
title: In itertools.islice() make prototype like in help()
type: enhancement
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file30599/issue.patch

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



[issue18220] In itertools.islice() make prototype like in help()

2013-06-15 Thread Serhiy Storchaka

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


--
nosy: +rhettinger

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



[issue18220] In itertools.islice() make prototype like in help()

2013-06-15 Thread py.user

py.user added the comment:

same thing with range():
http://docs.python.org/3/library/stdtypes.html?highlight=range#range
http://docs.python.org/3//library/functions.html#func-range

and with slice():
http://docs.python.org/3/library/functions.html?highlight=slice#slice
http://docs.python.org/3//library/functions.html#slice

can't patch them, because comma doesn't get into brackets
class range([start], stop[, step])

--

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



[issue18220] In itertools.islice() make prototype like in help()

2013-06-15 Thread R. David Murray

R. David Murray added the comment:

The documentation is correct, it is the docstrings that need to be changed.

--
nosy: +r.david.murray

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



[issue18221] abspath strips trailing spaces on win32

2013-06-15 Thread Jeremy Gray

New submission from Jeremy Gray:

The behavior of os.path.abspath differs between Mac OS X and Windows. It seems 
like a bug that, on Windows, abspath strips trailing whitespace:
Windows:
 from os.path import abspath
 abspath('start  ') + 'END'
'c:\Users\jgray\code\startEND'
 ^
Mac:
 from os.path import abspath
 abspath('start  ') + 'END'
'/Users/jgray/code/start  END'
^^

I have only tested with python 2.7.3 (Enthought distribution), 32-bit, and only 
Mac 10.8.2 and Windows 7.

--
components: Windows
messages: 191202
nosy: Jeremy.Gray
priority: normal
severity: normal
status: open
title: abspath strips trailing spaces on win32
type: behavior
versions: Python 2.7

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



[issue18222] os.path.abspath should accept multiple path parts and join them

2013-06-15 Thread Łukasz Balcerzak

New submission from Łukasz Balcerzak:

In projects I work on I constantly end up creating something like:

abspath = lambda *p: os.path.abspath(os.path.join(*p))

This could be easily avoided by allowing abspath to accept multiple arguments. 
This would be:

1. Backward compatibile (calls with single argument would remain the same)
2. Very simple to fix (just join given path parts before doing anything else)

I can document this, do most of the coding and test on Mac and linux, however 
would not be able to test on other platforms.

Let me know if this is acceptable. Attaching a diff with posixpath update.

--
components: Library (Lib)
files: abspath-with-joins.diff
keywords: patch
messages: 191203
nosy: Łukasz.Balcerzak
priority: normal
severity: normal
status: open
title: os.path.abspath should accept multiple path parts and join them
type: enhancement
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file30600/abspath-with-joins.diff

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



[issue17944] Refactor test_zipfile

2013-06-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

If there are no objection I'm going to commit this patch soon.

--

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



[issue15869] IDLE: Include .desktop file and icon

2013-06-15 Thread Rene Hahne

Rene Hahne added the comment:

I have the same issue with arch linux and gnome 3.8.

Solution was adding Type=Application to idle.desktop file

--
nosy: +Rene.Hahne

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



[issue18222] os.path.abspath should accept multiple path parts and join them

2013-06-15 Thread R. David Murray

R. David Murray added the comment:

I'm -1 on this.  It doesn't make sense to me to conflate two functions like 
that.  If you need that functionality often in your application, just write a 
small helper function.

--
nosy: +r.david.murray

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



[issue18222] os.path.abspath should accept multiple path parts and join them

2013-06-15 Thread Łukasz Langa

Łukasz Langa added the comment:

Would you expect to make the following also accept a sequence of path elements?

- normpath, realpath, relpath
- dirname
- exists, lexists
- expanduser, expandvars
- isdir, isfile, islink
- getsize, etc.

I agree with R. David's sentiment. Moreover, relpath takes an optional second 
argument which would make this change backward incompatible.

--
nosy: +lukasz.langa
versions:  -Python 3.5

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



[issue18167] cgi.FieldStorage fails to handle multipart/form-data when \r\n appears at end of 65535 bytes without other newlines

2013-06-15 Thread Chris AtLee

Chris AtLee added the comment:

Thanks, your patch is definitely much simpler!

I was worried about the case where you have interrupted \r\n that appears in 
the middle of the content. But that case is handled by the next readline(), 
which returns a single \n.

One question about the tests you've attached - would it be better to be 
explicit about the line endings in check()? Do triple quoted strings in python 
always use \n for EOL regardless of the source code EOL format?

--

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



[issue18223] Refactor test_tarfile

2013-06-15 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

test_tarfile already use parametric classes approach for constructing different 
tests. The proposed patch extends this approach to generating tests for 
different compression types.

In additional this patch:

* Makes test_tarfile discoverable.
* Uses more special tests (i.e. assertEqual, assertIs) instead of assertTrue.
* Adds explicit test skips instead of reporting skipped tests as passed.
* Wraps long lines.

--
components: Tests
files: test_tarfile.patch
keywords: patch
messages: 191209
nosy: ezio.melotti, lars.gustaebel, michael.foord, pitrou, serhiy.storchaka, 
zach.ware
priority: normal
severity: normal
stage: patch review
status: open
title: Refactor test_tarfile
type: enhancement
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file30601/test_tarfile.patch

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



[issue18224] pyvenv pydoc.py script causing AttributeErrors on Windows

2013-06-15 Thread Peter Santoro

New submission from Peter Santoro:

I've recently hit an issue with pyvenv in Python 3.3.2 that is causing 
AttributeErrors in other packages on Windows (see 
https://groups.google.com/forum/?fromgroups#!topic/pylons-discuss/FpOSMDpdvy4). 
 Here's what I believe is going on:

On Windows, the pyvenv pydoc script has a .py extension - so import finds it 
instead of the system's pydoc module.  On Linux, the pyvenv pydoc script 
doesn't have an extension - so import finds the system's pydoc module.

I believe the Windows pyvenv pydoc.py script should be renamed to something 
like pydocs.py to prevent AttributeErrors.

--
components: Windows
messages: 191210
nosy: pe...@psantoro.net
priority: normal
severity: normal
status: open
title: pyvenv pydoc.py script causing AttributeErrors on Windows
type: behavior
versions: Python 3.3

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



[issue18113] Memory leak in curses.panel

2013-06-15 Thread A.M. Kuchling

Changes by A.M. Kuchling li...@amk.ca:


--
nosy: +akuchling

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



[issue16136] Removal of VMS support

2013-06-15 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

Possibly relevant:

http://www.theregister.co.uk/2013/06/10/openvms_death_notice/

http://www.openvms.org/stories.php?story=13/06/06/2422149

--

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



[issue18167] cgi.FieldStorage fails to handle multipart/form-data when \r\n appears at end of 65535 bytes without other newlines

2013-06-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

 Do triple quoted strings in python always use \n for EOL regardless of the 
 source code EOL format?

Python parser always interprets EOL as \n in string literals.

--

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



[issue18221] abspath strips trailing spaces on win32

2013-06-15 Thread Serhiy Storchaka

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


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

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



[issue18225] ctypes Structure data size is incorrect

2013-06-15 Thread Tomer Levi

New submission from Tomer Levi:

Whenever you create a ctypes.Structure with mixed ctypes, the size of all 
components is calculated by the size of largest one. This is especially 
irritating when trying to use Structure on bytearray.
The problem repeated for me in Python2.6 and 2.7 (both 32bit and 64bit 
versions) [My computer is 64bit]

Example:
#Creating a Structure that should take up 5 bytes
class Test(ctypes.Structure):
_fields_ = [(test, ctypes.c_byte),
(test2, ctypes.c_uint32),]

#Initiating the Structure
Test.from_buffer(bytearray(5))

--- OUTPUT 

Traceback (most recent call last):

  File ipython-input-45-cd4b7501baee, line 1, in module
Test.from_buffer(bytearray(5))

ValueError: Buffer size too small (5 instead of at least 8 bytes)

--
components: ctypes
messages: 191213
nosy: Tomer.Levi
priority: normal
severity: normal
status: open
title: ctypes Structure data size is incorrect
type: behavior
versions: Python 2.6, Python 2.7

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



[issue18225] ctypes Structure data size is incorrect

2013-06-15 Thread Alex Gaynor

Alex Gaynor added the comment:

This is how padding works in the C ABI, not a bug.

--
nosy: +alex
resolution:  - invalid
status: open - closed

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



[issue17177] Deprecate imp

2013-06-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 30aa032c4bd0 by Brett Cannon in branch 'default':
Issue #17177: Stop using imp in distutils
http://hg.python.org/cpython/rev/30aa032c4bd0

--

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



[issue18214] Stop purging modules which are garbage collected before shutdown

2013-06-15 Thread Richard Oudkerk

Changes by Richard Oudkerk shibt...@gmail.com:


--
nosy: +pitrou

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



[issue17177] Deprecate imp

2013-06-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0b96a16656b7 by Brett Cannon in branch 'default':
Issue #17177: Stop using imp in multiprocessing
http://hg.python.org/cpython/rev/0b96a16656b7

--

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



[issue18214] Stop purging modules which are garbage collected before shutdown

2013-06-15 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 Usually garbage collection will end up clearing the module's dict anyway.

This is not true, since global objects might have a __del__ and then hold the 
whole module dict alive through a reference cycle. Happily though, PEP 442 is 
going to make that concern obsolete.

As for the interpreter shutdown itself, I have a pending patch (post-PEP 442) 
to get rid of the globals cleanup as well. It may be better to merge the two 
approaches.

--

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



[issue18112] PEP 442 implementation

2013-06-15 Thread Antoine Pitrou

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


--
keywords: +patch
Added file: http://bugs.python.org/file30602/19fd6ab59bbb.diff

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



[issue18112] PEP 442 implementation

2013-06-15 Thread Antoine Pitrou

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


Removed file: http://bugs.python.org/file30602/19fd6ab59bbb.diff

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



[issue18112] PEP 442 implementation

2013-06-15 Thread Antoine Pitrou

New submission from Antoine Pitrou:

Here is the patch implementing PEP 442.

--
nosy: +benjamin.peterson

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



[issue17177] Deprecate imp

2013-06-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8fff5554125d by Brett Cannon in branch 'default':
Issue #17177: switch from imp.new_module to types.ModuleType for runpy
http://hg.python.org/cpython/rev/8fff5554125d

--

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



[issue17177] Deprecate imp

2013-06-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1e141c2cc0d7 by Brett Cannon in branch 'default':
Issue #17177: Stop using imp in sysconfig
http://hg.python.org/cpython/rev/1e141c2cc0d7

--

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



[issue18224] pyvenv pydoc.py script causing AttributeErrors on Windows

2013-06-15 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
nosy: +vinay.sajip

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



[issue18112] PEP 442 implementation

2013-06-15 Thread Antoine Pitrou

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


Added file: http://bugs.python.org/file30604/1d47c88412ac.diff

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



[issue17177] Deprecate imp

2013-06-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 91467f342977 by Brett Cannon in branch 'default':
Issue #17177: Stop using imp with py_compile
http://hg.python.org/cpython/rev/91467f342977

New changeset 81cf3d6e6756 by Brett Cannon in branch 'default':
Issue #17177: Stop using imp in pydoc
http://hg.python.org/cpython/rev/81cf3d6e6756

--

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



[issue1253] IDLE - Percolator overhaul

2013-06-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
assignee: kbk - 
versions: +Python 3.3, Python 3.4 -Python 3.1, Python 3.2

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



[issue13179] IDLE uses common tkinter variables across all editor windows

2013-06-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.4 -Python 3.2

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



[issue13319] IDLE: Menu accelerator conflict between Format and Options

2013-06-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.4 -Python 3.2

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



[issue13504] Meta-issue for Invent with Python IDLE feedback

2013-06-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.4

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



[issue12690] Tix bug 2643483

2013-06-15 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I do not think there is any pydev interest in separately patching tix, any more 
than we patch tk itself.

--
resolution: rejected - invalid
status: open - closed

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



[issue18113] Memory leak in curses.panel

2013-06-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset aff0bdab358e by Andrew Kuchling in branch '2.7':
#18113: Objects associated to a curses.panel object with set_userptr() were 
leaked.
http://hg.python.org/cpython/rev/aff0bdab358e

--
nosy: +python-dev

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



[issue13630] IDLE: Find(ed) text is not highlighted while dialog box is open

2013-06-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.3, Python 3.4 -Python 3.2

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



[issue13519] Tkinter rowconfigure and columnconfigure functions crash if minsize, pad, or weight is not None

2013-06-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.4 -Python 3.2

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



[issue13586] IDLE: Replace selected not working/consistent with find

2013-06-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.3, Python 3.4 -Python 3.2

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



[issue13582] IDLE and pythonw.exe stderr problem

2013-06-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.4 -Python 3.2

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



[issue13659] Add a help() viewer for IDLE's Shell.

2013-06-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 2.7, Python 3.3

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



[issue14105] Breakpoints in debug lost if line is inserted; IDLE

2013-06-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.4 -Python 3.2

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



[issue13802] IDLE Prefernces/Fonts: use multiple alphabets in examples

2013-06-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.4 -Python 3.2

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



[issue14440] Close background process if IDLE closes abnormally.

2013-06-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 2.7, Python 3.4

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



[issue14111] IDLE Debugger should handle interrupts

2013-06-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.3, Python 3.4

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



[issue14576] IDLE: resolving home directory for configuration uses HOMEDRIVE, HOMEPATH, and USERPROFILE inconsistently on Windows.

2013-06-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 2.7, Python 3.4 -Python 3.2

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



[issue9625] argparse: Problem with defaults for variable nargs when using choices

2013-06-15 Thread Cédric Krier

Cédric Krier added the comment:

ping

--

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



[issue15308] IDLE - add an Interrupt Execution to shell menu

2013-06-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.4

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



[issue14944] Setup Usage documentation for pydoc, idle 2to3

2013-06-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.4 -Python 3.2

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



[issue1524639] Fix Tkinter Tcl-commands memory-leaks

2013-06-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.3, Python 3.4 -Python 3.1, Python 3.2

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



[issue18113] Memory leak in curses.panel

2013-06-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3d75bd69e5a9 by Andrew Kuchling in branch '3.3':
#18113: Objects associated to a curses.panel object with set_userptr() were 
leaked.
http://hg.python.org/cpython/rev/3d75bd69e5a9

--

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



[issue15335] IDLE - debugger steps through run.py internals

2013-06-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 2.7, Python 3.3

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



[issue15313] IDLE - remove all bare excepts

2013-06-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.4

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



[issue15363] Idle/tkinter ~x.py 'save as' fails. closes idle

2013-06-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.4 -Python 3.2

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



[issue15457] consistent treatment of generator terminology

2013-06-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.4

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



[issue15786] IDLE code completion window does not scroll/select with mouse

2013-06-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions:  -Python 3.2

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



[issue16547] IDLE raises an exception in tkinter after fresh file's text has been rendered

2013-06-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions:  -Python 3.2

___
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



[issue16893] Create IDLE help.txt from Doc/library/idle.rst

2013-06-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
assignee: docs@python - 
versions: +Python 2.7, Python 3.3

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



[issue16655] IDLE list.append calltips test failures

2013-06-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.3, Python 3.4 -Python 3.2

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



[issue17224] can not open idle in python 2.7.3

2013-06-15 Thread Terry J. Reedy

Terry J. Reedy added the comment:

This is probably a duplicate of other issues. But please try with the newest 
2.7.5.

--

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



[issue17238] IDLE: Enhance import statement completion

2013-06-15 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Making a list of all possible modules is harder than a list of attributes. With 
relative imports, I am not sure its even possible to sensible make a list of 
every entry that would work.

--

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



[issue18113] Memory leak in curses.panel

2013-06-15 Thread A.M. Kuchling

Changes by A.M. Kuchling li...@amk.ca:


--
stage: needs patch - committed/rejected

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



[issue18113] Memory leak in curses.panel

2013-06-15 Thread A.M. Kuchling

A.M. Kuchling added the comment:

Thanks for the bug report!  I've committed a fix to the 2.7 and 3.3 branches 
that retrieves the existing userptr and Py_DECREFs it if it's not null.  This 
seems to fix the leak.

--
assignee:  - akuchling
resolution:  - fixed
status: open - closed

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



[issue18214] Stop purging modules which are garbage collected before shutdown

2013-06-15 Thread Richard Oudkerk

Richard Oudkerk added the comment:

On 15/06/2013 7:11pm, Antoine Pitrou wrote:
 Usually garbage collection will end up clearing the module's dict anyway.

 This is not true, since global objects might have a __del__ and then hold
 the whole module dict alive through a reference cycle. Happily though,
 PEP 442 is going to make that concern obsolete.

I did say usually.

 As for the interpreter shutdown itself, I have a pending patch (post-PEP 442)
 to get rid of the globals cleanup as well. It may be better to merge the two 
 approaches.

So you would just depend on garbage collection?  Do you know how many 
refs/blocks are left at exit if one just uses garbage collection 
(assuming PEP 442 is in effect)?  I suppose adding GC support to those 
modules which currently lack it would help a lot.

BTW, I had a more complicated patch which keeps track of module dicts 
using weakrefs and purges any which were left after garbage collection 
has had a chance to free stuff.  But most module dicts ended up being 
purged anyway, so it did not seem worth the hassle when a two-line patch 
mostly fixes the immediate problem.

--

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



[issue18214] Stop purging modules which are garbage collected before shutdown

2013-06-15 Thread Antoine Pitrou

Antoine Pitrou added the comment:

  As for the interpreter shutdown itself, I have a pending patch (post-PEP 
  442)
  to get rid of the globals cleanup as well. It may be better to merge the 
  two approaches.
 
 So you would just depend on garbage collection?

No, I also clean up those modules that are left alive after a garbage
collection pass.

--

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



[issue18223] Refactor test_tarfile

2013-06-15 Thread Zachary Ware

Zachary Ware added the comment:

Looks like a winner, barring a few nits picked on Rietveld.  This issue 
supersedes issue17689, would anyone mind marking that for me?

--

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




[issue17689] Fix test discovery for test_tarfile.py

2013-06-15 Thread Ezio Melotti

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


--
stage:  - committed/rejected

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



[issue17689] Fix test discovery for test_tarfile.py

2013-06-15 Thread Zachary Ware

Zachary Ware added the comment:

Superseded by issue18223.

--
resolution:  - duplicate
status: open - closed

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



[issue18221] abspath strips trailing spaces on win32

2013-06-15 Thread Jeremy Gray

Jeremy Gray added the comment:

Maybe this a documentation / run-time warning issue, rather than bug. Trailing 
spaces in filenames are illegal in Win32; nonetheless they can occur, because 
there are instructions on how to remove such files: 
http://support.microsoft.com/kb/320081. So os.path.abspath() not only returns 
the absolute path of a (hypothetical) file, it is also ensuring that the file 
name is legal within the operating system. It does so silently. (I say 
hypothetical because there's no requirement that the file actually exists.)

This behavior from python was surprising since explicit is better than 
implicit: I was not getting just an absolute path, but a changed filename 
(causing a file-not-found error later in my code), with no warning from python 
at any point that the filename was illegal and so was being cleaned up for 
me, behind the scenes. Maybe this is the Windows-like way to do things 
(longtime mac / linux here).

Playing around a little, I see open('file  ', 'wb') also silently changes the 
filename.

--

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



[issue18163] Add a 'key' attribute to KeyError

2013-06-15 Thread Ezio Melotti

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


--
nosy: +ezio.melotti

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



[issue18166] 'value' attribute for ValueError

2013-06-15 Thread Ezio Melotti

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


--
nosy: +ezio.melotti

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



[issue18170] define built-in exceptions in Python code

2013-06-15 Thread Ezio Melotti

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


--
nosy: +ezio.melotti

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



[issue18162] Add index attribute to IndexError

2013-06-15 Thread Ezio Melotti

Ezio Melotti added the comment:

Is there a meta-issue for these changes?
I remember a similar discussion a couple of years ago, but I don't remember if 
it was on python-dev/ideas or on the bug tracker.
I agree that exceptions could be improved, but I would like to get the big 
picture of the changes you are planning to do instead of many individual 
issues.  A simple PEP might also be good, depending on how far you want to go :)

--
nosy: +ezio.melotti

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



[issue18165] Add 'unexpected_type' to TypeError

2013-06-15 Thread Ezio Melotti

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


--
nosy: +ezio.melotti

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



[issue17177] Deprecate imp

2013-06-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset bc18b5d4920e by Brett Cannon in branch 'default':
Issue #17177: Stop using imp in a bunch of tests
http://hg.python.org/cpython/rev/bc18b5d4920e

--

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



[issue18174] Make regrtest with --huntrleaks check for fd leaks

2013-06-15 Thread Ezio Melotti

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


--
nosy: +ezio.melotti

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



[issue18176] Builtins documentation refers to old version of UCD.

2013-06-15 Thread Ezio Melotti

Ezio Melotti added the comment:

If all the versions are up to date it shouldn't be difficult to grep for 
'6.2.0' at the next update, and I would expect people to do it when it happens. 
 Maybe adding a comment where unidata_version is defined as a remainder to 
update the rest will suffice.

That said there might be some rst trick to define constants and use them around 
but I don't know it off the top of my head and if there is, I'm not sure it can 
be used in links.

--
nosy: +eric.araujo, georg.brandl
type:  - enhancement

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



[issue18177] Incorect quote marks in code section-headers in PDF version of docs

2013-06-15 Thread Ezio Melotti

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


--
nosy: +ezio.melotti
type:  - enhancement
versions: +Python 3.4

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



[issue17177] Deprecate imp

2013-06-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f96eb1dc335f by Brett Cannon in branch 'default':
Issue #17177: Stop using imp in zipfile
http://hg.python.org/cpython/rev/f96eb1dc335f

New changeset b2b2bdc4cf6f by Brett Cannon in branch 'default':
Issue # 17177: Stop using imp in turtledemo
http://hg.python.org/cpython/rev/b2b2bdc4cf6f

--

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



[issue17177] Deprecate imp

2013-06-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4a1161eaed99 by Brett Cannon in branch 'default':
Issue # 17177: Stop using imp in setup.py
http://hg.python.org/cpython/rev/4a1161eaed99

--

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



[issue18111] Add a default argument to min max

2013-06-15 Thread R. David Murray

R. David Murray added the comment:

I find it interesting that I just came across a case where I want this 
functionality, involving a generator derived from a possibly-empty sql table.  
I'm using Stefan's functional expression for now :)

--

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



[issue17177] Deprecate imp

2013-06-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ca3bdac1f88a by Brett Cannon in branch 'default':
Issue #17177: update checkpyc to stop using imp
http://hg.python.org/cpython/rev/ca3bdac1f88a

--

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



[issue18189] IDLE Improvements: Unit test for Delegator.py

2013-06-15 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The format looks good.

The content looks skimpy. I am not familiar with Delegator and have not yet 
looked to see what more is needed. But this is enough to test working with a 
gui test.

This *is* a gui test. See msg190576. So it must be protected by requiring the 
gui resource. I am still investigating this subject, but I believe the 
following should work for the momemnt.

from test.resource import requires
...
class ...
@classmethod
def setUpClass(cls):
requires('gui')

In a console, python -m test test_idle should report that 
test_delegator.Test_delegator was skipped, follows by other stuff. Please make 
the change, run from the console, and copy the result here. Add '-ugui' 
*before* 'test_idle' and Test_delegator should run.

As written, the empty root window is left to be closed by hand. The teardown 
method should have self.root.destroy(). That will destroy the children also, so 
I believe that is all that is needed.

--
nosy: +kbk, roger.serwy

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



[issue18226] IDLE Unit test for FormatParagrah.py

2013-06-15 Thread Todd Rovito

Changes by Todd Rovito rovit...@gmail.com:


--
nosy: +JayKrish

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



[issue18226] IDLE Unit test for FormatParagrah.py

2013-06-15 Thread Todd Rovito

New submission from Todd Rovito:

Continuing the IDLE unittest framework initiated in 
http://bugs.python.org/issue15392.

A small unit test for IDLE FormatParagraph.py. This patch introduces a test 
module named test_format_paragraph.py inside Lib/idlelib/idle_test, considering 
the guidance in README file from idle_test. I should have a patch uploaded by 
Monday 6/17/2013 night.

--
messages: 191242
nosy: Todd.Rovito, philwebster, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE Unit test for FormatParagrah.py
type: enhancement
versions: Python 2.7, Python 3.4

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



[issue17177] Deprecate imp

2013-06-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5e8b377942f7 by Brett Cannon in branch 'default':
Issue #17177: stop using imp in test_importlib
http://hg.python.org/cpython/rev/5e8b377942f7

--

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



[issue18103] Create a GUI test framework for Idle

2013-06-15 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The basic question for this issue is whether to segregate gui tests in a 
separate directory (idle_test_gui?) and run them with a separate 
test_idle_gui.py? or to sprinkle gui test cases throughout the test suite, 
perhaps one to each test_idle/text_xxx.py file?

For development, I am pretty sure I would prefer the latter. I have started 
test_grep for the 3 methods that can be gui free, but if (when) I do a 
gui-requiring test of the dialog itself, I would prefer to have it follow in 
the same file.

However, my impression is that each requires('gui') call will result in a skip 
message on the test output. (Correct?) So my question is: will non-idle 
developers tolerate over 50 skip warnings from Idle tests? or is there a way to 
suppress multiple warnings and consolidate them into just one if there is at 
least one?

--
nosy: +ncoghlan, r.david.murray

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



[issue18162] Add index attribute to IndexError

2013-06-15 Thread Brett Cannon

Brett Cannon added the comment:

Nope, no meta-issue. I literally just realized one evening that the handful of 
exceptions that I filed bugs for could use an attribute for why the exception 
was raised.

--

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



[issue18103] Create a GUI test framework for Idle

2013-06-15 Thread Ned Deily

Ned Deily added the comment:

Individual test cases are only seen if you run regrtest (-m test) in verbose 
mode (-v).  There are many test cases that are akipped in the standard library, 
depending on platform and -u options, and you normally don't see them (without 
-v).  So mixing gui-dependent test cases in with others shouldn't be a problem.

--

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



[issue17177] Deprecate imp

2013-06-15 Thread Brett Cannon

Brett Cannon added the comment:

At this point I have updated all the code that does not directly exposes imp 
somehow or in Tools.

At this point the only thing I need to decide is whether I want to continue to 
expose the lock stuff from imp or leave it private. After that the pending 
deprecation is ready to go.

--

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



[issue18203] Replace direct calls to malloc() with PyMem_Malloc() or PyMem_RawMalloc()

2013-06-15 Thread STINNER Victor

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


--
title: Replace calls to malloc() with PyMem_Malloc() or PyMem_RawMalloc() - 
Replace direct calls to malloc() with PyMem_Malloc() or PyMem_RawMalloc()

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



[issue18227] Use Python memory allocators in external libraries like zlib or OpenSSL

2013-06-15 Thread STINNER Victor

New submission from STINNER Victor:

With the PEP 445 and the issue #3329, Python will get an API to setup custom 
memory allocators. To be able to configure how memory is handled in external 
libraries, some libraries allow to setup a custom allocator too. New functions 
PyMem_RawMalloc(), PyMem_GetRawAllocators() PyMem_SetRawAllocators() can be 
used for that.

The safest option is to only reuse custom allocators if a library allows to 
setup them for a specfic function call or a specific object, and not replace 
the memory allocators globally. For example, the lzma library allows to set 
memory allocators only for one compressor object: 
LzmaEnc_Create(SzAllocForLzma);

We might change the global allocators of a library if Python is not embedded, 
but Python *is* the application (the standard python program).

I don't know yet if it is safe to reuse custom memory allocators.

Windows has for example a special behaviour: each DLL (dynamic library) has its 
own heap, memory allocator in a DLL cannot be released from another DLL. Would 
this issue introduce such bug?

--
components: Interpreter Core
messages: 191248
nosy: christian.heimes, haypo
priority: normal
severity: normal
status: open
title: Use Python memory allocators in external libraries like zlib or OpenSSL
versions: Python 3.4

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



[issue18227] Use Python memory allocators in external libraries like zlib or OpenSSL

2013-06-15 Thread STINNER Victor

STINNER Victor added the comment:

See also the issue #18203: Replace calls to malloc() with PyMem_Malloc() or 
PyMem_RawMalloc().

--

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



[issue18203] Replace calls to malloc() with PyMem_Malloc() or PyMem_RawMalloc()

2013-06-15 Thread STINNER Victor

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


--
title: Replace calls to malloc() with PyMem_Malloc() - Replace calls to 
malloc() with PyMem_Malloc() or PyMem_RawMalloc()

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



[issue18227] Use Python memory allocators in external libraries like zlib or OpenSSL

2013-06-15 Thread STINNER Victor

STINNER Victor added the comment:

Uncomplete(?) list of external libraries used by Python:

- libffi (_ctypes): has its own memory allocator (dlmalloc), is it used? see 
also issue #18178
- libmpdec (_decimal): already configured to reuse the PyMem_Malloc() family 
(see Modules/_decimal/_decimal.c: Init libpdec)
- _sqlite (sqlite3: see http://www.sqlite.org/malloc.html
- expat (expact): ?
- zlib (zlib): http://www.zlib.net/manual.html#Usage
- OpenSSL (_ssl, hashlib): CRYPTO_set_mem_functions, 
http://git.openssl.org/gitweb/?p=openssl.git;a=blob;f=crypto/mem.c;h=f7984fa958eb1edd6c61f6667f3f2b29753be662;hb=HEAD#l124
- Tcl/Tk (_tkinter): http://tmml.sourceforge.net/doc/tcl/Alloc.html
- bz2: http://www.bzip.org/1.0.5/bzip2-manual-1.0.5.html
- libncurses (curses): ?
- dbm libraries: ndbm, gdbm, db, ... (dbm): ?
- lzma: http://www.asawicki.info/news_1368_lzma_sdk_-_how_to_use.html
- Windows API (_winapi, nt): ?
- readline (readline): ?

--

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



[issue13797] Allow objects implemented in pure Python to export PEP 3118 buffers

2013-06-15 Thread Jacob Holm

Changes by Jacob Holm j...@poplar.dk:


--
nosy: +Jacob.Holm

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



[issue17547] checking whether gcc supports ParseTuple __format__... erroneously returns yes with gcc 4.8

2013-06-15 Thread Jesús Cea Avión

Changes by Jesús Cea Avión j...@jcea.es:


--
nosy: +jcea

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



[issue17547] checking whether gcc supports ParseTuple __format__... erroneously returns yes with gcc 4.8

2013-06-15 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

This is affecting 3.2.5.

--

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



[issue13483] Use VirtualAlloc to allocate memory arenas

2013-06-15 Thread STINNER Victor

STINNER Victor added the comment:

Martin von Loewis: If we take the route proposed by this patch, I recommend 
also dropping all other CRT malloc() calls in Python, and make allocations from 
the process heap instead (that's a separate issue, though).

= see issue #18203

--

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



  1   2   >