[issue24825] visual margin indicator for breakpoints in IDLE

2015-08-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I believe one of Saimadhav's original patches used a symbol. I suggested color 
highlighting instead, and it seems to work better.  In any case, debating such 
details is part of an issue.

--
resolution:  - duplicate
stage:  - resolved
status: open - closed
superseder:  - IDLE: Add an option to show line numbers along the left side of 
the editor window, and have it enabled by default.

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



[issue4214] no extension debug info with msvc9compiler.py

2015-08-07 Thread John Ehresman

John Ehresman added the comment:

I just ran into this again when I installed 2.7.10 -- evidently I had patched 
my local installation and forgot about it.  This is very important to anyone 
who tries to use the Visual Studio C debugger to debug extension modules.

--
nosy: +jpe

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



[issue9262] IDLE: Use tabbed shell and edit windows

2015-08-07 Thread Mark Roseman

Changes by Mark Roseman m...@markroseman.com:


--
nosy: +markroseman

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



[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-08-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset adb510322c8f by Eric Snow in branch '3.5':
Issue #24667: Resize odict in all cases that the underlying dict resizes.
https://hg.python.org/cpython/rev/adb510322c8f

New changeset 47287c998bb0 by Eric Snow in branch 'default':
Merge from 3.5 (issue #24667).
https://hg.python.org/cpython/rev/47287c998bb0

--
nosy: +python-dev

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



[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-08-07 Thread Eric Snow

Eric Snow added the comment:

I've pushed the fix for RC1.  Thanks again Fabian for bringing it to our 
attention.

--
resolution:  - fixed
stage: patch review - resolved
status: open - closed

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



[issue24812] All standard keystrokes not recognized in IDLE dialogs on Mac

2015-08-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Then either simpledialog should changed, or Idle should subclass or rewrite it 
to work as it should.

--

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



[issue24765] Move .idlerc to %APPDATA%\IDLE on Windows

2015-08-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

And if the older version is still present, as 2.7 will be for years, copy back 
to .idlerc.  To me, having two copies of the directory, one in the 'wrong' 
place, is worse than one copy in the wrong place.

--

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



[issue24774] inconsistency in http.server.test

2015-08-07 Thread Martin Panter

Martin Panter added the comment:

Yeah you are probably right. This way keeps things simple.

--
stage: patch review - commit review

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



[issue4214] no extension debug info with msvc9compiler.py

2015-08-07 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
nosy: +steve.dower

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



[issue17776] IDLE Internationalization

2015-08-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I just noticed https://pypi.python.org/pypi/idle-lif/1.0 Python IDLE Language 
Pack.  Have not looked at it.

If someone decides to work on this, I have ideas on how i18n could be done with 
minimal impact on the code, partly based on https://pythonhosted.org/flufl.i18n/

--

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



[issue24827] round(1.65, 1) return 1.6 with decimal

2015-08-07 Thread umedoblock

New submission from umedoblock:

round(1.65, 1) return 1.6 with decimal.
I feel bug adobe result.
not bug ?

 import decimal
 d1 = decimal.Decimal(1.65)
 d2 = decimal.Decimal(10 ** -2) * 5
 d1
Decimal('1.65')
 d2
Decimal('0.05000104083408559')
 d1 + d2
Decimal('1.71040834086')
 data = list(map(decimal.Decimal, 1.05 1.15 1.25 1.35 1.45 1.55 1.65 1.75 
 1.85 1.95.split()))
 for x in data:
...   print(round({}, 1) = {}.format(x, round(x, 1)))
... 
round(1.05, 1) = 1.0
round(1.15, 1) = 1.2
round(1.25, 1) = 1.2
round(1.35, 1) = 1.4
round(1.45, 1) = 1.4
round(1.55, 1) = 1.6
round(1.65, 1) = 1.6
round(1.75, 1) = 1.8
round(1.85, 1) = 1.8
round(1.95, 1) = 2.0
 round(2.675, 2)
2.67
 d4 = decimal.Decimal(2.675)
 round(d4, 2)
Decimal('2.68')

--
components: Library (Lib)
messages: 248246
nosy: umedoblock
priority: normal
severity: normal
status: open
title: round(1.65, 1) return 1.6 with decimal
type: behavior
versions: Python 3.3

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



[issue24827] round(1.65, 1) return 1.6 with decimal

2015-08-07 Thread Zachary Ware

Zachary Ware added the comment:

The rounding mode of the default context is ROUND_HALF_EVEN[1]:

 import decimal
 decimal.getcontext()
Context(prec=28, rounding=ROUND_HALF_EVEN, Emin=-99, Emax=99, 
capitals=1, clamp=0, flags=[], traps=[InvalidOperation, DivisionByZero, 
Overflow])

For your examples near the end, see [2]:

 round(2.675, 2)
2.67
 round(decimal.Decimal('2.675'), 2)
Decimal('2.68')
 decimal.Decimal(2.675)
Decimal('2.67482236431605997495353221893310546875')
 round(_, 2)
Decimal('2.67')

[1] https://docs.python.org/3/library/decimal.html#decimal.ROUND_HALF_EVEN
[2] https://docs.python.org/3/tutorial/floatingpoint.html

--
nosy: +zach.ware
resolution:  - not a bug
stage:  - resolved
status: open - closed

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



[issue4214] no extension debug info with msvc9compiler.py

2015-08-07 Thread Steve Dower

Changes by Steve Dower steve.do...@microsoft.com:


--
assignee: tarek - steve.dower
resolution:  - fixed
stage:  - resolved
status: open - closed

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



[issue4214] no extension debug info with msvc9compiler.py

2015-08-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 418095f0d711 by Steve Dower in branch '2.7':
Issue #4214: Remove ineffectual /pdb:none option from msvc9compiler.py
https://hg.python.org/cpython/rev/418095f0d711

New changeset 7c322c296a3b by Steve Dower in branch '3.4':
Issue #4214: Remove ineffectual /pdb:none option from msvc9compiler.py
https://hg.python.org/cpython/rev/7c322c296a3b

New changeset 6a1c2c7b0ee0 by Steve Dower in branch '3.5':
Issue #4214: Remove ineffectual /pdb:none option from msvc9compiler.py
https://hg.python.org/cpython/rev/6a1c2c7b0ee0

New changeset b35df92f69e4 by Steve Dower in branch 'default':
Issue #4214: Remove ineffectual /pdb:none option from msvc9compiler.py
https://hg.python.org/cpython/rev/b35df92f69e4

--
nosy: +python-dev

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



[issue24827] round(1.65, 1) return 1.6 with decima modulel

2015-08-07 Thread umedoblock

umedoblock added the comment:

I don't agree with not a bug.

 s1, v1, ndigits1 = 1.65, 1.65, 1
 s2, v2, ndigits2 = 2.675, 2.675, 2

 decimal.Decimal(v1)
Decimal('1.649911182158029987476766109466552734375')
 round(v1, ndigits1)
1.6
 round(decimal.Decimal(s1), ndigits1)
Decimal('1.6') # EQUAL expression round(v1, ndigits1)

 decimal.Decimal(v2)
Decimal('2.67482236431605997495353221893310546875')
 round(v2, ndigits2)
2.67
 round(decimal.Decimal(s2), ndigits2)
Decimal('2.68') # DIFFERENT expression round(v2, ndigits2)

decimal module should give me different expression about below.
round(decimal.Decimal(s1), ndigits1) and round(v1, ndigits1).

BECAUSE

round(decimal.Decimal(s2), ndigits2) and round(v2, ndigits2)
give me DIFFERENT expression.

--
title: round(1.65, 1) return 1.6 with decimal - round(1.65, 1) return 1.6 with 
decima modulel

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



[issue24814] Idle: Disable menu items when not applicable

2015-08-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I want to make this the cover issue for the general topic.  We should make an 
overall list here.  A patch can cover whatever subset of items that someone 
wants to tackle.  Specific issues should only be opened when there is a 
specific patch, or if there are specific problems to discuss for a particular 
item or set of items. Such separate issues become dependencies of this one.

24817 Format menu

--
dependencies: +disable format menu items when not applicable
stage:  - test needed
title: Disable Undo/Redo menu items when not applicable - Idle: Disable menu 
items when not applicable

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



[issue24820] IDLE themes for light on dark

2015-08-07 Thread Mark Roseman

Mark Roseman added the comment:

I read #7949 as saying the text widget picks up the background color from the 
system-wide GTk theme. 

This one is saying that the background color of the text widget should be 
changeable as part of an IDLE highlighting theme.

--

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



[issue15944] memoryview: allow all casts to bytes

2015-08-07 Thread Stefan Krah

Changes by Stefan Krah ste...@bytereef.org:


--
title: memoryviews and ctypes - memoryview: allow all casts to bytes

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



[issue15944] memoryviews and ctypes

2015-08-07 Thread Stefan Krah

Stefan Krah added the comment:

Ok, shall we sneak this past Larry for 3.5?

--

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



[issue15944] memoryviews and ctypes

2015-08-07 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Why not :)

--

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



[issue19771] runpy should check ImportError.name before wrapping it

2015-08-07 Thread Laura Creighton

Laura Creighton added the comment:

I tried to run some tests from  the python3.4 test suite and got:
python3 -m test -ugui test_tk test_ttk_guionly test_idle
/usr/bin/python3: Error while finding spec for 'test.__main__' (class 
'ImportError': bad magic number in 'test': b'\x03\xf3\r\n'); 'test' is a 
package and cannot be directly executed

The actual problem has nothing to do with test being a package.  It
had to do with finding a python2 pyc and trying to run that.  It would be nice 
if the patch checked for this problem as well before concluding that somebody 
just tried to execute a package.

--
nosy: +lac

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



[issue15944] memoryviews and ctypes

2015-08-07 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Le 07/08/2015 14:57, Stefan Krah a écrit :
 
 If people are content with writing m[124:128] = b'abcd' and accept
 that tolist() etc. won't represent the original structure of the
 object, then let's do it.

As long as the casting has to be explicit, this sounds ok to me.

--
title: memoryview: allow all casts to bytes - memoryviews and ctypes

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



[issue23672] IDLE can crash if file name contains non-BMP Unicode characters

2015-08-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Interesting, this doesn't work with non-UTF-8 locale.

$ touch astral피.py
$ LC_ALL=en_US.iso88591 ./python -m idlelib.idle -e astral피.py
Traceback (most recent call last):
  File /home/serhiy/py/cpython/Lib/runpy.py, line 170, in _run_module_as_main
__main__, mod_spec)
  File /home/serhiy/py/cpython/Lib/runpy.py, line 85, in _run_code
exec(code, run_globals)
  File /home/serhiy/py/cpython/Lib/idlelib/idle.py, line 11, in module
idlelib.PyShell.main()
  File /home/serhiy/py/cpython/Lib/idlelib/PyShell.py, line 1553, in main
if flist.open(filename) is None:
  File /home/serhiy/py/cpython/Lib/idlelib/FileList.py, line 36, in open
edit = self.EditorWindow(self, filename, key)
  File /home/serhiy/py/cpython/Lib/idlelib/PyShell.py, line 123, in __init__
EditorWindow.__init__(self, *args)
  File /home/serhiy/py/cpython/Lib/idlelib/EditorWindow.py, line 288, in 
__init__
if io.loadfile(filename):
  File /home/serhiy/py/cpython/Lib/idlelib/IOBinding.py, line 244, in loadfile
self.updaterecentfileslist(filename)
  File /home/serhiy/py/cpython/Lib/idlelib/IOBinding.py, line 525, in 
updaterecentfileslist
self.editwin.update_recent_files_list(filename)
  File /home/serhiy/py/cpython/Lib/idlelib/EditorWindow.py, line 899, in 
update_recent_files_list
if '\0' in path or not os.path.exists(path[0:-1]):
  File /home/serhiy/py/cpython/Lib/genericpath.py, line 19, in exists
os.stat(path)
UnicodeEncodeError: 'latin-1' codec can't encode character '\U0001d53c' in 
position 22: ordinal not in range(256)

--
nosy: +serhiy.storchaka

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



[issue24798] _msvccompiler.py doesn't properly support manifests

2015-08-07 Thread Steve Dower

Steve Dower added the comment:

Made a couple more changes (including a fix for vcruntime140.dll embedding) 
after testing numpy's build, but that worked fine with the final fixes.

--
resolution:  - fixed
stage:  - resolved
status: open - closed

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



[issue24801] right-mouse click in IDLE on Mac doesn't work

2015-08-07 Thread Mark Roseman

Mark Roseman added the comment:

Have attached macpopup.patch which removes the incorrect Tk behaviour and makes 
it so that right click on Mac will bring up the context menu as appropriate.

--
keywords: +patch
Added file: http://bugs.python.org/file40148/macpopup.patch

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



[issue24787] csv.Sniffer guesses M instead of \t or , as the delimiter

2015-08-07 Thread Tiago Wright

Tiago Wright added the comment:

Attached is a .py file with 32 test cases for the Sniff class, 18 that
fail, 14 that pass.

My hope is that these samples can be used to improve the delimiter
detection code.

-Tiago

--
Added file: http://bugs.python.org/file40149/testround8.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24787
___import csv

def test_delimiters():

delimiter_samples = [

{ 'delimiter' :\t, 'sample' :   # error:Exception
'''Field Name   Definition
RefID   Unique (sequential) number assigned to 
vehicles
IsBadBuyIdentifies if the kicked vehicle was an 
avoidable purchase 
PurchDate   The Date the vehicle was Purchased at 
Auction
Auction Auction provider at which the  vehicle 
was purchased
VehYear The manufacturer's year of the vehicle
VehicleAge  The Years elapsed since the 
manufacturer's year
''' },

{ 'delimiter' :\t, 'sample' :   # error:Exception
'''rulessupport confidence  lift
1   {Brushes} = {Nail.Polish}  0.149   1   3.57142857142857
2   {Brushes} = {Bronzer}  0.097   0.651006711409396   2.5738856414
3   {Brushes} = {Concealer}0.092   0.61744966442953
1.39694494214826
4   {Lip.liner} = {Concealer}  0.179   0.764957264957265   
1.73067254515218
5   {Bronzer} = {Concealer}0.175   0.627240143369176   
1.41909534698909
6   {Blush} = {Concealer}  0.220.606060606060606   1.37117784176608
''' },

{ 'delimiter' :,, 'sample' :   # error:Exception
'''A,B,C,D,E
2000-01-03 
00:00:00,0.980268513777,3.68573087906,-0.364216805298,-1.15973806169,foo
2000-01-04 
00:00:00,1.04791624281,-0.0412318367011,-0.16181208307,0.212549316967,bar
2000-01-05 
00:00:00,0.498580885705,0.731167677815,-0.537677223318,1.34627041952,baz
2000-01-06 
00:00:00,1.12020151869,1.56762092543,0.00364077397681,0.67525259227,qux
2000-01-07 
00:00:00,-0.487094399463,0.571454623474,-1.6116394093,0.103468562917,foo2
''' },

{ 'delimiter' :,, 'sample' :   # error:Exception
'''1,699,4751,4158
8,1856
12,4059,5716,4299,4967,2128
16,1928,1176
19,1928,2775,4646,1720,3148,2552,5978,3736,3090
22,4059,1856,4103,4739,4865,4769,621,2874,1637,252
28,5321,4059,4952,1856,4103,699,1976
''' },

{ 'delimiter' :,, 'sample' :   # error:Exception
'''���Date,From,To,Flight_Number,Airline,Distance,Duration,Seat,Seat_Type,Class,Reason,Plane,Registration,Trip,Note,From_OID,To_OID,Airline_OID,Plane_OID
2004-08-27,YHZ,YYZ,,Air Canada,801,01:56,,A,Y,L,73,193,330
2004-08-01,YYZ,YHZ,,Air Canada,801,01:56,,A,Y,L,193,73,330
2004-07-30,YHZ,YYZ,,Air Canada,801,01:56,,A,Y,L,73,193,330
2004-05-30,ZRH,MUC,,Lufthansa,162,00:47,,,Y,L,1678,346,3320
2004-05-30,MUC,YYZ,,Air Canada,4131,07:53,,,Y,L,346,193,330
2004-05-30,YYZ,YOW,,Unknown,226,00:54,,,Y,L,193,100,-1
''' },

{ 'delimiter' :\t, 'sample' :   # error:Exception
'''Format version   Start date  End dateSender  Recipient   
Aggregator
5   2010-05-01  2010-05-31  Spotify Udsvxd  Udsvxd
Country Label   Product CurrencyTotal tracksRightholder's tracks
Pro rata share  Revenue share   Number of users Net revenue Payable USD 
RateUSD Payable
XV  Ipstqx Gjivgmn  C   JFG 331264067   0.0020.00   
87845   851092.49   0.045.6647  0.09
JN  Mvcqxv Gjivgmqxd Iv P   JFG 368037889   635611  0.01
40.00   472355  639147.36   506.62  5.6647  562.82
IL  Mvcqxv Gjivgmn  C   JFG 35016   0.0420.00   8   
31.61   0.055.6647  0.05
DW  Mvcqxv  C   DWO 6283654158448   0.0420.00   84344   
330574.21   557.63  5.8230  513.62
''' },

{ 'delimiter' :,, 'sample' :   # error:Exception
'''age,workclass,education,education-num,marital-status,occupation,relationship,race,sex,capital-gain,capital-loss,hours-per-week,native-country,1iclass
39, State-gov, 77516, Bachelors, 13, Never-married, Adm-clerical, 
Not-in-family, White, Male, 2174, 0, 40, United-States, =50K
50, Self-emp-not-inc, 83311, Bachelors, 13, Married-civ-spouse, 
Exec-managerial, Husband, White, Male, 0, 0, 13, United-States, =50K
38, Private, 215646, HS-grad, 9, Divorced, Handlers-cleaners, Not-in-family, 
White, Male, 0, 0, 40, United-States, =50K
53, Private, 234721, 11th, 7, Married-civ-spouse, Handlers-cleaners, Husband, 
Black, Male, 0, 0, 40, United-States, =50K
28, Private, 338409, Bachelors, 13, Married-civ-spouse, Prof-specialty, Wife, 
Black, Female, 0, 0, 40, Cuba, =50K
37, Private, 284582, Masters, 14, Married-civ-spouse, 

[issue23937] IDLE: revise window size, placement startup options

2015-08-07 Thread Terry J. Reedy

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


--
title: IDLE start maximized - IDLE: revise window size, placement startup 
options

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



[issue24750] IDLE: Cosmetic improvements for main window

2015-08-07 Thread Mark Roseman

Mark Roseman added the comment:

I'm attaching mainwin3.patch, which is a subset of the previous patches, 
modified to not use ttk. It gets rid of the highlightthickness, the sunken 
line/column effect, and adds a thin separator below the text widget.

--
Added file: http://bugs.python.org/file40147/mainwin3.patch

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



[issue24812] All standard keystrokes not recognized in IDLE dialogs on Mac

2015-08-07 Thread Mark Roseman

Mark Roseman added the comment:

note that many of these are using 'simpledialog' which has that limitation

--

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



[issue24765] Move .idlerc to %APPDATA%\IDLE on Windows

2015-08-07 Thread jan parowka

jan parowka added the comment:

 fiddling with the entry bar the right way and adding exactly 'AppDate\' to 
 the existing path

You can type in '%APPDATA%' in the path bar, run dialog, or even start menu, 
and it will take you to the current user's Application Data folder. It works 
from XP upwards.

 The one .idlerc directory is used for all currently installed python versions

Yes, I imagine that's a bigger issue. The installer could, however, check 
whether there is currently an .idle directory in user folder and copy the 
settings over.

--

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



[issue24798] _msvccompiler.py doesn't properly support manifests

2015-08-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8e966eba2b5e by Steve Dower in branch '3.5':
Issue #24798: _msvccompiler.py doesn't properly support manifests
https://hg.python.org/cpython/rev/8e966eba2b5e

New changeset f61a083b843f by Steve Dower in branch 'default':
Issue #24798: _msvccompiler.py doesn't properly support manifests
https://hg.python.org/cpython/rev/f61a083b843f

--
nosy: +python-dev

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



[issue24821] The optimization of string search can cause pessimization

2015-08-07 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Search in strings is highly optimized for common case. However for some input 
data the search in non-ascii string becomes unexpectedly slow. Compare:

$ ./python -m timeit -s 's = АБВГД*10**4' -- 'є in s'
10 loops, best of 3: 11.7 usec per loop
$ ./python -m timeit -s 's = АБВГД*10**4' -- 'Є in s'
1000 loops, best of 3: 769 usec per loop

It's because the lowest byte of the code of Ukrainian capital letter Є (U+0404) 
matches the highest byte of codes of most Cyrillic letters (U+04xx). There are 
similar issues with some other scripts.

I think we should use more robust optimization.

--
assignee: serhiy.storchaka
components: Interpreter Core
messages: 248179
nosy: haypo, pitrou, serhiy.storchaka
priority: low
severity: normal
stage: needs patch
status: open
title: The optimization of string search can cause pessimization
type: performance
versions: Python 3.6

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



[issue24822] IDLE: Accelerator key doesn't work for Options

2015-08-07 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Accelerator key (Alt+O) for the Options menu works in IDLE Shell window, but 
doesn't work in IDLE Editor windows due to conflict with the accelerator key 
for the Format menu.

--
components: IDLE
messages: 248180
nosy: kbk, roger.serwy, serhiy.storchaka, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE: Accelerator key doesn't work for Options
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6

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



[issue15443] datetime module has no support for nanoseconds

2015-08-07 Thread Tomi Kyöstilä

Changes by Tomi Kyöstilä tomi.kyost...@gmail.com:


--
nosy: +tomikyos

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



[issue23812] asyncio.Queue.put_nowait(), followed get() task cancellation leads to item being lost

2015-08-07 Thread Guido van Rossum

Guido van Rossum added the comment:

So this looks like it will miss 3.5.0rc1. How confident are we that the new
patch won't introduce new bugs? This late in the release process that would
be awkward.

On Fri, Aug 7, 2015 at 12:47 AM, Gustavo J. A. M. Carneiro 
rep...@bugs.python.org wrote:


 Gustavo J. A. M. Carneiro added the comment:

 Sure, just give me a couple of days.

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue23812
 ___


--

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



[issue15944] memoryviews and ctypes

2015-08-07 Thread Antoine Pitrou

Antoine Pitrou added the comment:

The proposal sounds reasonable to me.

--

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



[issue24824] Pydoc fails with codecs

2015-08-07 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Pydoc fails with the codecs module in 3.5+. All works in 3.4.

$ ./python -m pydoc codecs
Traceback (most recent call last):
  File /home/serhiy/py/cpython-3.5/Lib/runpy.py, line 170, in 
_run_module_as_main
__main__, mod_spec)
  File /home/serhiy/py/cpython-3.5/Lib/runpy.py, line 85, in _run_code
exec(code, run_globals)
  File /home/serhiy/py/cpython-3.5/Lib/pydoc.py, line 2648, in module
cli()
  File /home/serhiy/py/cpython-3.5/Lib/pydoc.py, line 2613, in cli
help.help(arg)
  File /home/serhiy/py/cpython-3.5/Lib/pydoc.py, line 1895, in help
elif request: doc(request, 'Help on %s:', output=self._output)
  File /home/serhiy/py/cpython-3.5/Lib/pydoc.py, line 1632, in doc
pager(render_doc(thing, title, forceload))
  File /home/serhiy/py/cpython-3.5/Lib/pydoc.py, line 1625, in render_doc
return title % desc + '\n\n' + renderer.document(object, name)
  File /home/serhiy/py/cpython-3.5/Lib/pydoc.py, line 370, in document
if inspect.ismodule(object): return self.docmodule(*args)
  File /home/serhiy/py/cpython-3.5/Lib/pydoc.py, line 1160, in docmodule
contents.append(self.document(value, key, name))
  File /home/serhiy/py/cpython-3.5/Lib/pydoc.py, line 372, in document
if inspect.isroutine(object): return self.docroutine(*args)
  File /home/serhiy/py/cpython-3.5/Lib/pydoc.py, line 1345, in docroutine
signature = inspect.signature(object)
  File /home/serhiy/py/cpython-3.5/Lib/inspect.py, line 2988, in signature
return Signature.from_callable(obj, follow_wrapped=follow_wrapped)
  File /home/serhiy/py/cpython-3.5/Lib/inspect.py, line 2738, in from_callable
follow_wrapper_chains=follow_wrapped)
  File /home/serhiy/py/cpython-3.5/Lib/inspect.py, line 2229, in 
_signature_from_callable
skip_bound_arg=skip_bound_arg)
  File /home/serhiy/py/cpython-3.5/Lib/inspect.py, line 2061, in 
_signature_from_builtin
return _signature_fromstr(cls, func, s, skip_bound_arg)
  File /home/serhiy/py/cpython-3.5/Lib/inspect.py, line 2009, in 
_signature_fromstr
p(name, default)
  File /home/serhiy/py/cpython-3.5/Lib/inspect.py, line 1991, in p
default_node = RewriteSymbolics().visit(default_node)
  File /home/serhiy/py/cpython-3.5/Lib/ast.py, line 245, in visit
return visitor(node)
  File /home/serhiy/py/cpython-3.5/Lib/ast.py, line 310, in generic_visit
new_node = self.visit(old_value)
  File /home/serhiy/py/cpython-3.5/Lib/ast.py, line 245, in visit
return visitor(node)
  File /home/serhiy/py/cpython-3.5/Lib/inspect.py, line 1978, in 
visit_Attribute
return wrap_value(value)
  File /home/serhiy/py/cpython-3.5/Lib/inspect.py, line 1965, in wrap_value
raise RuntimeError()
RuntimeError

--
components: Library (Lib)
messages: 248184
nosy: doerwalter, lemburg, serhiy.storchaka, yselivanov
priority: normal
severity: normal
status: open
title: Pydoc fails with codecs
type: behavior
versions: Python 3.5, Python 3.6

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



[issue24764] cgi.FieldStorage can't parse multipart part headers with Content-Length and no filename in Content-Disposition

2015-08-07 Thread Pierre Quentel

Pierre Quentel added the comment:

I don't really see why there is a Content-Length in the headers of a
multipart form data. The specification at
http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2 doesn't
mention it, and it is absent in the example that looks like the one tested
by Peter :

Content-Type: multipart/form-data; boundary=AaB03x
--AaB03x
Content-Disposition: form-data; name=submit-name

Larry
--AaB03x
Content-Disposition: form-data; name=files; filename=file1.txt
Content-Type: text/plain
... contents of file1.txt ...
--AaB03x--

In case a user agent would insert it, I think the best would be to
ignore it. That is, inside read_multi(), after

headers = parser.close()

add these lines :

if 'content-length' in headers:
del headers['content-length']

It's hard to see the potential side effects but I think it's cleaner
than the proposed patch, which is not correct anyway for another
reason : the attribute value is set to a bytes objects, instead of a
string.

Peter, does this make sense ? If so, can you submit another patch ?

--

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



[issue678264] test_resource fails when file size is limited

2015-08-07 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' g.rod...@gmail.com:


--
nosy: +giampaolo.rodola

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



[issue9917] resource max value represented as signed when should be unsigned

2015-08-07 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' g.rod...@gmail.com:


--
nosy: +giampaolo.rodola

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



[issue24823] ctypes.create_string_buffer does not add NUL if len(init) == size

2015-08-07 Thread Tom Pohl

New submission from Tom Pohl:

From the ctypes.create_string_buffer docs:
If a bytes object is specified as first argument, the buffer is made one 
item larger than its length so that the last element in the array is a NUL 
termination character. An integer can be passed as second argument which allows 
to specify the size of the array if the length of the bytes should not be 
used.

Based on this documentation I would expect a NUL-terminated byte array in any 
case. However, when I do this

 for size in range(5, 2, -1): print(size, 
 ctypes.create_string_buffer(b'123', size).raw)
5 b'123\x00\x00'
4 b'123\x00'
3 b'123'

I get b'123' for size=3 without a NUL. My expectation would be the same 
exception as I get for create_string_buffer(b'123', 2).

--
components: ctypes
messages: 248183
nosy: tom.pohl
priority: normal
severity: normal
status: open
title: ctypes.create_string_buffer does not add NUL if len(init) == size
type: behavior
versions: Python 3.4

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



[issue23004] mock_open() should allow reading binary data

2015-08-07 Thread Berker Peksag

Berker Peksag added the comment:

data_as_list = read_data.splitlines(True)

is not actually the equivalent of

data_as_list = [l + sep for l in read_data.split(sep)]

It will change the behavior of the _iterate_read_data helper. See the comment 
at 
https://github.com/python/cpython/blob/78d05eb847c6b8fede08ca74bb59210c00e4c599/Lib/unittest/mock.py#L2278

However, in default branch, we can simplify it to

yield from read_data.splitlines(keepends=True)

--

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



[issue24824] Pydoc fails with codecs

2015-08-07 Thread Yury Selivanov

Yury Selivanov added the comment:

This is related to Arguments Clinic and Larry's implementation of signature 
parsing for built-in functions.

This particular bug is caused by 'codecs.encode'  'codecs.decode' functions 
with the AC signatures defined as follows:

  _codecs.encode
  obj: object
  encoding: str(c_default=NULL) = sys.getdefaultencoding()
  errors: str(c_default=NULL) = strict

encoding argument's default is a method call, and _signature_fromstr fails to 
recognize method calls appropriately.

The attached patch fixes the problem by rendering such default values as 
method_name().  I don't think we should evaluate the method call anyways, 
because it can cause strange side effects and can be just plain wrong -- like 
in this issue -- we shouldn't render 'encoding=utf-8' just because that's how 
docs.python.org server is configured.

Anyways, the patch isn't pretty, but does fix the problem with minimal code.  
Another option would be to fix codecs.encode and codecs.decode signatures to 
encoding: None and edit documentation accordingly.

Assigning this issue to Larry for his review.

--
assignee:  - larry
keywords: +patch
nosy: +larry
priority: normal - release blocker
stage:  - patch review
Added file: http://bugs.python.org/file40146/inspect.patch

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



[issue24825] visual margin indicator for breakpoints in IDLE

2015-08-07 Thread Mark Roseman

New submission from Mark Roseman:

Right now breakpoints can only be set/cleared by using a context menu on a line 
in the editor. I discovered this entirely by reading through the bug database, 
as right-click doesn't work on OS X (#24801).

Some other tools use an indicator (e.g. stop sign) in the left margin, which 
can be toggled on and off by a simple click. This could exist in conjunction 
with line numbering (#17535)

--
components: IDLE
messages: 248194
nosy: kbk, markroseman, roger.serwy, terry.reedy
priority: normal
severity: normal
status: open
title: visual margin indicator for breakpoints in IDLE
type: enhancement
versions: Python 3.5, Python 3.6

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



[issue24764] cgi.FieldStorage can't parse multipart part headers with Content-Length and no filename in Content-Disposition

2015-08-07 Thread Peter Landry

Peter Landry added the comment:

Yeah, I think that makes the most sense to me as well. I tried to make a 
minimum-impact patch, but this feels cleaner.

If we remove the Content-Length header, the `limit` kwarg might occur at an odd 
place in the part itself, but that feels unavoidable if someone submits an 
incorrect Content-Length for the request itself.

I'll re-work the patch and make sure the tests I added still add value. Thanks!

--

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



[issue23004] mock_open() should allow reading binary data

2015-08-07 Thread R. David Murray

R. David Murray added the comment:

splitlines(keepends=True) is not ever equivalent to splitting by just '\n'.  I 
don't know the details here, but switching to that would certainly be a 
behavior change.  (Especially if the code path also applies to non-binary 
data!):

 b'abc\nde\r\nf\x1dg'.splitlines(True)
[b'abc\n', b'de\r\n', b'f\x1dg']
 'abc\nde\r\nf\x1dg'.splitlines(True)
['abc\n', 'de\r\n', 'f\x1d', 'g']

--
nosy: +r.david.murray

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



[issue23812] asyncio.Queue.put_nowait(), followed get() task cancellation leads to item being lost

2015-08-07 Thread Yury Selivanov

Yury Selivanov added the comment:

Yep, GH works. Thanks!

--

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



[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-08-07 Thread Yury Selivanov

Yury Selivanov added the comment:

Alex, sure, go ahead.  Although I think python-ideas would be a better choice.

--

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



[issue22028] Python 3.4.1 Installer ended prematurely (Windows msi)

2015-08-07 Thread Chris Brennan

Chris Brennan added the comment:

This bug appears (for me) when I use longer install paths, both in the GUI 
installer and doing a silent install via msiexec. The paths I've used so far 
are these:

E:\langs\Python\x32\27
E:\langs\Python\x32\34
E:\langs\Python\x64\27
E:\langs\Python\x64\34

E:\Python\x32\27
E:\Python\x32\34
E:\Python\x64\27
E:\Python\x64\34

Both of these paths fail to install when pip is called. If I install to a 
single-level directory, the install works fine (doesn't matter what drive I use 
either)

--
nosy: +Chris Brennan
versions: +Python 2.7

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



[issue24826] ability to integrate editor, shell, debugger in one window

2015-08-07 Thread Mark Roseman

New submission from Mark Roseman:

This builds on things like the tabbed editor suggestion, but essentially I'm 
talking about a scenario where you'd have your one (editor) window open working 
on your program, you click 'run...' or 'debug...' from the menu, and a shell 
and debugger area open up at the bottom of that one window, and you can resize 
that area.

This is analogous to what happens if you click 'inspect element' in most web 
browsers nowadays.

Getting rid of the *need* for multiple windows would help simplify a lot of 
things.

--
components: IDLE
messages: 248195
nosy: kbk, markroseman, roger.serwy, terry.reedy
priority: normal
severity: normal
status: open
title: ability to integrate editor, shell, debugger in one window
type: enhancement
versions: Python 3.5, Python 3.6

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



[issue24272] PEP 484 docs

2015-08-07 Thread Ivan Levkivskyi

Ivan Levkivskyi added the comment:

Here is a new patch for the first part of classes at the end of docs.
I also did some minor changes (in particular added more info on generics and 
removed the section about ellipsis for default arguments, we could return it if 
we decide to write something about stub files here).

--
Added file: http://bugs.python.org/file40144/typedoc_new.patch

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



[issue24764] cgi.FieldStorage can't parse multipart part headers with Content-Length and no filename in Content-Disposition

2015-08-07 Thread Peter Landry

Peter Landry added the comment:

A new patch that simply removes Content-Length from part headers when present.

--
Added file: http://bugs.python.org/file40145/cgi_multipart.patch

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



[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-08-07 Thread Alex Grönholm

Alex Grönholm added the comment:

Where do we stand with this then? Should I start a thread on python-dev to get 
the ball rolling?

--

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



[issue23812] asyncio.Queue.put_nowait(), followed get() task cancellation leads to item being lost

2015-08-07 Thread Yury Selivanov

Yury Selivanov added the comment:

Guido, I agree, let's not push the updated implementation in 3.5.0.

Gustavo, could you please generate the patch with hg diff, so that code 
review here works?  And I think we need a new issue to track the new patch.

--
nosy: +larry
priority: deferred blocker - release blocker

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



[issue23812] asyncio.Queue.put_nowait(), followed get() task cancellation leads to item being lost

2015-08-07 Thread Yury Selivanov

Changes by Yury Selivanov yseliva...@gmail.com:


--
nosy:  -larry
priority: release blocker - deferred blocker

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



[issue23812] asyncio.Queue.put_nowait(), followed get() task cancellation leads to item being lost

2015-08-07 Thread Gustavo J. A. M. Carneiro

Gustavo J. A. M. Carneiro added the comment:

I am not using hg anymore, since asyncio migrated to git.

Here's a github PR, does that help? 
https://github.com/python/asyncio/pull/260

--

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



[issue24765] Move .idlerc to %APPDATA%\IDLE on Windows

2015-08-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Two negative factors.

1. Users may edit the user config files 'by hand'. They occasionally must edit 
them to fix problems. Burying them in a *hidden* directory (invisible in 
Explorer) will make editing much harder, *especially for beginners*.  Even as a 
long-time Windows user, I only recently learned how to access %APPDATA% in Win 
7, by fiddling with the entry bar the right way and adding exactly 'AppDate\' 
to the existing path, displayed as a path.  I am pretty sure this is different 
than with XP.  I imagine this has changed again in Win 8 and Win 10.  I really 
do not want to have to explain the Win version specific details when someone 
asks how to fix a problem here, python-list, or stackoverflow.  I doubt either 
of you want to either.

2. The one .idlerc directory is used for all currently installed python 
versions.  When one installs a new version, such as the upcoming 3.5.0, the 
custom font and size, custom keybindings, and anything else, are just there.  
We cannot magically go back and change all existing installations.

--
nosy: +terry.reedy

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



[issue24810] UX mode for IDLE targeted to 'new learners'

2015-08-07 Thread Mark Roseman

Mark Roseman added the comment:

While the thing about asking for a favourite colour before switching to 
advanced mode was a joke, I do sincerely believe that extensive progressive 
disclosure techniques should be used to keep much of IDLE's features and 
options hidden out of the box.

If the response to the question how can we make IDLE easier to use for X is 
always add feature Y, we're screwed.

--

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



[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-08-07 Thread Alex Grönholm

Alex Grönholm added the comment:

I've already made my case on python-ideas, so let's talk it over there.

--

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



[issue24383] consider implementing __await__ on concurrent.futures.Future

2015-08-07 Thread Guido van Rossum

Guido van Rossum added the comment:

You could also withdraw. The more I think about it the more I dislike it. I 
just don't think we should do *anything* that encourages confusion between 
threads and tasks. They are fundamentally different concepts and should remain 
so.

--

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



[issue24801] right-mouse click in IDLE on Mac doesn't work

2015-08-07 Thread Mark Roseman

Mark Roseman added the comment:

If you have your mouse set up to have two buttons, right-clicking in the editor 
window doesn't bring up the context menu it's supposed to.

--

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



[issue24813] Idle Help dialogs shouldn't be modal

2015-08-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I am broadening this to include re-evaluation of everything under Help.  There 
are other issues for search on config.

--
title: About IDLE dialog shouldn't be modal - Idle Help dialogs shouldn't be 
modal

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



[issue24823] ctypes.create_string_buffer does not add NUL if len(init) == size

2015-08-07 Thread eryksun

eryksun added the comment:

Not every buffer is null-terminated. That's just the assumption used if the 
size isn't specified. The documentation can possibly be reworded to make this 
clearer, but the function itself shouldn't be changed.

--
assignee:  - docs@python
components: +Documentation
keywords: +easy
nosy: +docs@python, eryksun
priority: normal - low
stage:  - needs patch
versions: +Python 2.7, Python 3.5, Python 3.6

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



[issue24801] right-mouse click in IDLE on Mac doesn't work

2015-08-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

From your description, I an not sure what it is that does not work.

--

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



[issue24823] ctypes.create_string_buffer does not add NUL if len(init) == size

2015-08-07 Thread Tom Pohl

Tom Pohl added the comment:

I agree: not every buffer is null-terminated.

But the function name suggests that it creates a _string_ buffer which will 
most likely be used as an input to a C function. There, it can easily trigger a 
buffer overflow without a null termination which can be considered a severe 
security risk.

--
components:  -Documentation
versions:  -Python 2.7, Python 3.5, Python 3.6

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



[issue17397] ttk::themes missing from ttk.py

2015-08-07 Thread Mark Roseman

Mark Roseman added the comment:

I believe the ttk::themes call is older, part of when it was still Tile. There 
are a bunch of those kind of API's that were kept around (for compatibility I 
presume) when the official API (style theme names) was created and documented.

As explained on the original mailing list thread, the difference has to do with 
Tcl's lazy loading of packages (i.e. it knows what package to load when you 
need a particular command, but will not necessarily load it until the command 
is used)
http://code.activestate.com/lists/python-tkinter-discuss/3371/

To summarize, even now you can install themes and use them, they just won't 
appear in the list until they're used.

Because calls like ttk::themes are *not* part of the official, documented API, 
I would strongly suggest not adding a separate API in tkinter; instead, stay 
with Style.theme_names

I would suggest that the default behaviour of theme_names be changed to call 
ttk::themes (falling back on theme use if it generates an error). I would also 
suggest adding a tkinter-only optional keyword parameter to this call (e.g. 
loaded, defaulting to False; if True is would call 'ttk::style theme names'). 
Then document that loaded=True is not guaranteed to be only loaded ones in 
future, because I wouldn't be surprised if Tk changes this at some point.

--

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



[issue24810] UX mode for IDLE targeted to 'new learners'

2015-08-07 Thread Raymond Hettinger

Raymond Hettinger added the comment:

 In general, users and instructors are demanding more
 options, not less.

This is correct.  I teach Python classes using IDLE.  It does NOT need to be 
dumbed down (people has notepad for that).   The API can be made more usable 
but I am against this feature request.

--

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



[issue24819] replace window size preference with just use last window size

2015-08-07 Thread Terry J. Reedy

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


--
resolution:  - duplicate
stage:  - resolved
status: open - closed
superseder:  - IDLE: revise window size, placement startup options

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



[issue24823] ctypes.create_string_buffer does not add NUL if len(init) == size

2015-08-07 Thread Tom Pohl

Tom Pohl added the comment:

If one needs to set a general buffer (i.e. not a null-terminated string buffer) 
one could always use:

 string = (ctypes.c_char*4)()
 string.raw = b'abcd'

--

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



[issue24825] visual margin indicator for breakpoints in IDLE

2015-08-07 Thread Mark Roseman

Mark Roseman added the comment:

oh agree, definitely don't want a symbol on every line. i was already thinking 
implementation where you'd probably have an object matching the background for 
hit detection! :-)

but yes, visually nothing there but empty space when there isn't a breakpoint, 
and a symbol there when the breakpoint is set

--

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



[issue24818] no way to run program in debugger from edit window

2015-08-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Agreed.  I believe Al's menu revision suggested moving Debugger to Run. 
Debugger has to hook into Shell because it has to see packets moving between 
Shell and the execution process. Opening the debugger window currently requires 
that Shell already be open. Running a file opens Shell.  So we need to rewrite 
Debugger to delay hooking into Shell unless Shell is present .. or until it is 
activated (by running a file).  I believe this could be done by having a 
.connect_to_shell method that can be called either from .__init__ or the 
activate method.

There are several worse problems with Debugger.  I think they need some 
consideration together, lest a patch for one issue interfere with a patch for 
another.

--

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



[issue24820] IDLE themes for light on dark

2015-08-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

This looks like mostly a duplicate of #7949.  Can you differentiate?

--

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



[issue24816] don't allow selecting IDLE debugger menu item when running

2015-08-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Stackviewer should also be disabled when not applicable, which I believe 
included while debugger is running (unless it is modified, or including in 
debugger).

--

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



[issue24825] visual margin indicator for breakpoints in IDLE

2015-08-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

#24801 needs to be fixed so we can depend on right clicking. I think SET and 
CLEAR should be replace by TOGGLE (#22083). The patch for #17535 already 
includes marking breakpoints in the margin.  I am opposed to a putting a symbol 
on every line.  Too noisy and too confusing to beginners for an advanced 
feature.  There are other things that could be added to a line-number context 
menu, such as cutting or copying a line without having to drag select it (which 
is too easy to mess up).

--

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



[issue15944] memoryviews and ctypes

2015-08-07 Thread Stefan Krah

Stefan Krah added the comment:

If people are content with writing m[124:128] = b'abcd' and accept
that tolist() etc. won't represent the original structure of the
object, then let's do it.

On the bright side, it is less work. -- I'll review the patch.

--

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



[issue23812] asyncio.Queue.put_nowait(), followed get() task cancellation leads to item being lost

2015-08-07 Thread Gustavo J. A. M. Carneiro

Gustavo J. A. M. Carneiro added the comment:

I was wrong, there still needs to be some cleanup in cancellation, even with 
the new approach.  But it does solve the out-of-order problem.

I don't know if it should be applied to rc1.  I wish I had more time to test.  
Up to you guys.

--
Added file: http://bugs.python.org/file40142/p.diff

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



[issue23672] IDLE can crash if file name contains non-BMP Unicode characters

2015-08-07 Thread sanad

sanad added the comment:

Hey Terry, after testing the committed patch on my Linux Mint, I have found the 
following behaviour:

1. The issue of IDLE not starting when Recent File list has name outside BMP 
has been fixed.

2. The File Name is correctly formatted and displayed in the file editor window 
title and in the recent file list.(astral chars replaced by diamond question 
mark symbol)

3. Files with astral char names now RUN perfectly.

4. You can create a file with astral char in its name and run it effectively 
and re run it from the recent file list.

PS : since you are unable to test it own windows and many other developers 
might face the same I'm uploading the screenshot of the IDLE windows after the 
patch is applied.
In the given test , I had kept my file name as 피피hello풵My피Name풫.py
and it was displayed as ��hello�My�Name�.py

--
Added file: http://bugs.python.org/file40143/idlerun.png

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