[issue18401] Tests for pdb import ~/.pdbrc

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 09c730db1aac by Victor Stinner in branch 'default':
Issue #18401: Fix test_pdb if $HOME is not set
https://hg.python.org/cpython/rev/09c730db1aac

--

___
Python tracker 

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



[issue27931] Email parse IndexError <""@wiarcom.com>

2016-09-09 Thread Xiang Zhang

Xiang Zhang added the comment:

You are right David. But I don't understand what it has to do with 
headerregistry. I update my original patch to get that behaviour, limit it the 
affection in angleaddr. Now seems everything is fine.

>>> email._header_value_parser.get_angle_addr('<""@wiarcom.com> 
>>> SIZE=28113')[0].local_part
''
>>> email._header_value_parser.get_angle_addr('<""@wiarcom.com> 
>>> SIZE=28113')[0].domain
'wiarcom.com'
>>> email._header_value_parser.get_angle_addr('<""@wiarcom.com> 
>>> SIZE=28113')[0].route
>>> email._header_value_parser.get_angle_addr('<""@wiarcom.com> 
>>> SIZE=28113')[0].addr_spec
'""@wiarcom.com'

--
Added file: http://bugs.python.org/file44523/issue27931_v2.patch

___
Python tracker 

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



Re: python3 regex?

2016-09-09 Thread Christian Gollwitzer

Am 10.09.16 um 05:12 schrieb dkole...@olearycomputers.com:

Hey;

Long term perl ahderent finally making the leap to python.  From my reading, 
python, for the most part, uses perl regex.. except, I can't seem to make it 
work...

I have a txt file from which I can grab specific titles via a perl one-liner:

$ perl -ne 'print if (m{^("?)[1-9]*\.})' tables
1. ${title1}
2. ${title2}
"3. ${title3}",,,
4. one more title
5. nuther title
6. and so on...,,
...
25. last title

I can't seem to get the same titles to appear using python:


$ python -V
Python 3.5.2
$ python
Python 3.5.2 (default, Jul  5 2016, 12:43:10)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.

import os
import re
with open('tables','rt') as f:

data = f.read()

printing data results in the output I would expect..

Trying to compile a regex and display the results does not show the same 
results I get from perl.


regex = r'^("?)[1-9]*\.'
re.search(regex, data)




p = re.compile(r'^("?)[1-9]*\.')
p

re.compile('^("?)[1-9]*\\.')

p.findall(data)


I've tried any number of options shown on the net all with the same result.
Can someone point out what I'm messing up?


I think the difference is the anchor ^. In perl, you apply the regex to 
each line, whereas in Python you apply it to the whole file. You would 
either need to switch the re to multiline mode

https://docs.python.org/2/library/re.html#re.MULTILINE

or do it in a loop, the same way that perl does it implicitly:

for line in f:
print(re.findall(line).group(0))

(untested)

Christian

--
https://mail.python.org/mailman/listinfo/python-list


[issue18401] Tests for pdb import ~/.pdbrc

2016-09-09 Thread Łukasz Langa

Łukasz Langa added the comment:

Thanks for your contribution, Martin and Sam!

--
nosy: +lukasz.langa
resolution:  -> fixed
status: open -> closed
versions: +Python 3.6 -Python 3.5

___
Python tracker 

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



[issue18401] Tests for pdb import ~/.pdbrc

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ee0bbfd972de by Łukasz Langa in branch 'default':
Issue #18401: pdb tests don't read ~/.pdbrc anymore
https://hg.python.org/cpython/rev/ee0bbfd972de

--
nosy: +python-dev

___
Python tracker 

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



[issue27899] Apostrophe is not replace with ElementTree.tostring (also in Element.write)

2016-09-09 Thread Stefan Behnel

Stefan Behnel added the comment:

Definitely not a bug since this isn't required by the XML spec. As said in 
issue 2647, you shouldn't rely on exact lexical characteristics of an XML byte 
stream, unless you request canonical serialisation (C14N).

--

___
Python tracker 

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



[issue28039] x86 Tiger buildbot needs __future__ with_statement

2016-09-09 Thread Ned Deily

Ned Deily added the comment:

Thanks, David!

--

___
Python tracker 

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



[issue28056] sizeof unit tests fail on ARMv7

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset c3776dd858f0 by Victor Stinner in branch 'default':
Try to fix sizeof unit tests on dict
https://hg.python.org/cpython/rev/c3776dd858f0

--
nosy: +python-dev

___
Python tracker 

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



[issue26058] PEP 509: Add ma_version to PyDictObject

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset c3776dd858f0 by Victor Stinner in branch 'default':
Try to fix sizeof unit tests on dict
https://hg.python.org/cpython/rev/c3776dd858f0

--

___
Python tracker 

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



[issue28057] Warnings (45) building Doc/library/email.*.rst

2016-09-09 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Hmm.  I just touched both email.compat32-message.rst and email.message.rst and 
retried, and there was no problem.

--
resolution:  -> not a bug
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

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



[issue28057] Warnings (45) building Doc/library/email.*.rst

2016-09-09 Thread Terry J. Reedy

New submission from Terry J. Reedy:

Sphinx v1.3.6
F:\Python\dev\36\Doc\library\email.compat32-message.rst:54: WARNING: duplicate 
object description of email.message.Message, other instance in 
F:\Python\dev\36\Doc\library\email.message.rst, use :noindex: for one of them

+ 44 more

--
assignee: docs@python
components: Documentation, email
messages: 275564
nosy: barry, docs@python, r.david.murray, terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: Warnings (45) building Doc/library/email.*.rst
type: behavior
versions: Python 3.6

___
Python tracker 

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



[issue20476] If new email policies are used, default message factory should be EmailMessage

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8375b8d54bf7 by R David Murray in branch 'default':
#20476: Deal with the message_factory circular import differently.
https://hg.python.org/cpython/rev/8375b8d54bf7

--

___
Python tracker 

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



[issue28056] sizeof unit tests fail on ARMv7

2016-09-09 Thread STINNER Victor

New submission from STINNER Victor:

Hum, I used "+ 8" to add the new 64-bit version tag of dictionaries. But I 
didn't use struct.calcsize() to compute it, so there is maybe an 
aliasing/padding issue.

http://buildbot.python.org/all/builders/ARMv7%20Ubuntu%203.x/builds/4815/steps/test/logs/stdio

==
FAIL: test_objecttypes (test.test_sys.SizeofTest)
--
Traceback (most recent call last):
  File 
"/ssd/buildbot/buildarea/3.x.gps-ubuntu-exynos5-armv7l/build/Lib/test/test_sys.py",
 line 940, in test_objecttypes
check({}, size('n2P') + 8 + calcsize('2nP2n') + 8 + 
(8*2//3)*calcsize('n2P'))
  File 
"/ssd/buildbot/buildarea/3.x.gps-ubuntu-exynos5-armv7l/build/Lib/test/support/__init__.py",
 line 1510, in check_sizeof
test.assertEqual(result, size, msg)
AssertionError: 144 != 140 : wrong size for : got 144, expected 
140

==
FAIL: test_sizeof_exact (test.test_ordered_dict.CPythonOrderedDictSubclassTests)
--
Traceback (most recent call last):
  File 
"/ssd/buildbot/buildarea/3.x.gps-ubuntu-exynos5-armv7l/build/Lib/test/test_ordered_dict.py",
 line 677, in test_sizeof_exact
check(od, basicsize + 8*p + 8 + 5*entrysize)  # 8byte indicies + 8*2//3 * 
entry table
  File 
"/ssd/buildbot/buildarea/3.x.gps-ubuntu-exynos5-armv7l/build/Lib/test/support/__init__.py",
 line 1510, in check_sizeof
test.assertEqual(result, size, msg)
AssertionError: 208 != 204 : wrong size for : got 208, 
expected 204

==
FAIL: test_sizeof_exact (test.test_ordered_dict.CPythonOrderedDictTests)
--
Traceback (most recent call last):
  File 
"/ssd/buildbot/buildarea/3.x.gps-ubuntu-exynos5-armv7l/build/Lib/test/test_ordered_dict.py",
 line 677, in test_sizeof_exact
check(od, basicsize + 8*p + 8 + 5*entrysize)  # 8byte indicies + 8*2//3 * 
entry table
  File 
"/ssd/buildbot/buildarea/3.x.gps-ubuntu-exynos5-armv7l/build/Lib/test/support/__init__.py",
 line 1510, in check_sizeof
test.assertEqual(result, size, msg)
AssertionError: 208 != 204 : wrong size for : 
got 208, expected 204

--
messages: 275562
nosy: haypo
priority: normal
severity: normal
status: open
title: sizeof unit tests fail on ARMv7
versions: Python 3.6

___
Python tracker 

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



Re: pymssql

2016-09-09 Thread Miki Tebeka
> for row in cus:
>print(row.budget_code)
> 
> 
> NameError: name 'budget_code' is not defined
You'll need to use a DictCursor to be able to access rows by name and not 
position (which IMO is the preferred way).

cus = conn.cursor(pymysql.cursors.DictCursor)
cus.execute("SELECT * FROM glbud ") 
for row in cus:
print(row['budget_code'])
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: how to set paramiko to use ssh version 1?

2016-09-09 Thread Lawrence D’Oliveiro
On Thursday, September 1, 2016 at 3:26:26 PM UTC+12, meInvent bbird wrote:
> how to set paramiko to use ssh version 1?

Be polite, but firm. Tell it “paramiko, this is ssh version 1, use it”. Then, 
when it responds “but SSHv1 is an obsolete stinking pile of crap that nobody in 
their right mind should be using any more”, make it quite clear: “I’m the 
human, you’re the machine, *you* are supposed to serve *me*, not point out how 
stupid I am”.

Then pull the plug. That will shut it up.
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue27705] Updating old C:/Windows/System32/ucrtbased.dll

2016-09-09 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Thanks, looks good to me.

--
resolution:  -> fixed
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

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



[issue27810] Add METH_FASTCALL: new calling convention for C functions

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3934e070c9db by Victor Stinner in branch 'default':
Issue #27810: Fix getargs.c compilation on Windows
https://hg.python.org/cpython/rev/3934e070c9db

--

___
Python tracker 

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



Re: How to extend a tuple of tuples?

2016-09-09 Thread Lawrence D’Oliveiro
On Saturday, September 10, 2016 at 12:21:48 AM UTC+12, Frank Millman wrote:
> The short answer is that I am using it as a dictionary key.

Another option is, if it takes several steps to construct the tuple, to build 
it incrementally as a list and then cast it to a tuple.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: python3 regex?

2016-09-09 Thread Lawrence D’Oliveiro
On Saturday, September 10, 2016 at 3:12:17 PM UTC+12, Doug OLeary wrote:
> $ perl -ne 'print if (m{^("?)[1-9]*\.})' tables

Perl has this feature of being able to use alternate delimiter symbols for the 
pattern; Python does not.

> >>> regex = r'^("?)[1-9]*\.'

Try putting a backslash in front of the “"”:

regex = r'^(\"?)[1-9]*\.'
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue28039] x86 Tiger buildbot needs __future__ with_statement

2016-09-09 Thread Martin Panter

Martin Panter added the comment:

Okay happy to close this then

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

___
Python tracker 

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



[issue27830] Add _PyObject_FastCallKeywords(): avoid the creation of a temporary dictionary for keyword arguments

2016-09-09 Thread STINNER Victor

Changes by STINNER Victor :


--
dependencies:  -Rework CALL_FUNCTION* opcodes
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-09 Thread STINNER Victor

STINNER Victor added the comment:

> Added test which reproduce the issue on current master.

Oh, great :-) Thanks for the quick fix AND test.

I pushed your latest change.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue24454] Improve the usability of the match object named group API

2016-09-09 Thread Eric V. Smith

Eric V. Smith added the comment:

Updated patch, with docs. I'd like to get this in to 3.6. Can anyone take a 
look?

--
Added file: http://bugs.python.org/file44522/issue-24454-1.diff

___
Python tracker 

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



[issue27952] Finish converting fixcid.py from regex to re

2016-09-09 Thread Martin Panter

Martin Panter added the comment:

New patch with more fixes and test cases. Also dropped some of the less useful 
raw string changes.

--
Added file: http://bugs.python.org/file44521/fixcid-re.v2.patch

___
Python tracker 

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



[issue27810] Add METH_FASTCALL: new calling convention for C functions

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 86b0f5a900c7 by Victor Stinner in branch 'default':
Add METH_FASTCALL calling convention
https://hg.python.org/cpython/rev/86b0f5a900c7

New changeset 633f850038c3 by Victor Stinner in branch 'default':
Emit METH_FASTCALL code in Argument Clinic
https://hg.python.org/cpython/rev/633f850038c3

New changeset 97a68adbe826 by Victor Stinner in branch 'default':
Issue #27810: Rerun Argument Clinic on all modules
https://hg.python.org/cpython/rev/97a68adbe826

--

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4a5b61b0d090 by Victor Stinner in branch 'default':
Fix SystemError in compact dict
https://hg.python.org/cpython/rev/4a5b61b0d090

--
nosy: +python-dev

___
Python tracker 

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



python3 regex?

2016-09-09 Thread dkoleary
Hey;

Long term perl ahderent finally making the leap to python.  From my reading, 
python, for the most part, uses perl regex.. except, I can't seem to make it 
work...

I have a txt file from which I can grab specific titles via a perl one-liner:

$ perl -ne 'print if (m{^("?)[1-9]*\.})' tables
1. ${title1}
2. ${title2}
"3. ${title3}",,,
4. one more title
5. nuther title
6. and so on...,,
...
25. last title

I can't seem to get the same titles to appear using python:


$ python -V
Python 3.5.2
$ python
Python 3.5.2 (default, Jul  5 2016, 12:43:10) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> import re
>>> with open('tables','rt') as f:
data = f.read()

printing data results in the output I would expect..

Trying to compile a regex and display the results does not show the same 
results I get from perl.  

>>> regex = r'^("?)[1-9]*\.'
>>> re.search(regex, data)
>>>

>>> p = re.compile(r'^("?)[1-9]*\.')
>>> p
re.compile('^("?)[1-9]*\\.')
>>> p.findall(data)

I've tried any number of options shown on the net all with the same result.  
Can someone point out what I'm messing up?

Thanks

Doug
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue2651] Strings passed to KeyError do not round trip

2016-09-09 Thread Łukasz Langa

Łukasz Langa added the comment:

So actually the issue long predates Python 2.5...

https://hg.python.org/cpython/rev/0401a0ead1eb

Now I'm not so sure it's worth touching it anymore ;)

--

___
Python tracker 

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



[issue25235] EmailMessage.add_attachment() creates parts with spurious MIME-Version header.

2016-09-09 Thread R. David Murray

Changes by R. David Murray :


Added file: http://bugs.python.org/file44520/fix_mime_version_headers.patch

___
Python tracker 

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



[issue25235] EmailMessage.add_attachment() creates parts with spurious MIME-Version header.

2016-09-09 Thread R. David Murray

R. David Murray added the comment:

Attached is my proposal (absent the doc changes).  I'm not happy with it, 
though, because it means that you don't have the MIME-Version header until you 
do bytes(msg) (or otherwise generate it), *and* you get a MIME-Version header 
if you do str(part) for a subpart.  That makes debugging significantly 
confusing, but only with respect to whether or not you have a MIME-Version 
header.

I'm inclined to commit it, since this whole thing applies *only* to fully 
constructed messages, rather than parsed-and-manipulated messages.  I don't 
like it, but I haven't come up with a better solution so far.

--

___
Python tracker 

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



[issue26331] PEP 515: Tokenizer: allow underscores for grouping in numeric literals

2016-09-09 Thread Eric V. Smith

Eric V. Smith added the comment:

I'm done with the formatting (issue 27080), so PEP 515 can be marked as final.

--

___
Python tracker 

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



[issue27080] Implement the formatting part of PEP 515, '_' in numeric literals.

2016-09-09 Thread Eric V. Smith

Eric V. Smith added the comment:

I also fixed the code so both '_' and ',' can't be specified, and added tests. 
The documentation is also updated.

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

___
Python tracker 

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



[issue27080] Implement the formatting part of PEP 515, '_' in numeric literals.

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 99abb731ea7a by Eric V. Smith in branch 'default':
Issue 27080: PEP 515: add '_' formatting option.
https://hg.python.org/cpython/rev/99abb731ea7a

--
nosy: +python-dev

___
Python tracker 

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



[issue28042] Coverity Scan defects in new dict code

2016-09-09 Thread INADA Naoki

INADA Naoki added the comment:

> Inada, I sent you an invite.

Does the invite sent me by email?
I'm sorry, but I may lost the mail.

--

___
Python tracker 

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



[issue27199] TarFile expose copyfileobj bufsize to improve throughput

2016-09-09 Thread Łukasz Langa

Łukasz Langa added the comment:

Thanks for the patch!

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue27199] TarFile expose copyfileobj bufsize to improve throughput

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0bac85e355b5 by Łukasz Langa in branch 'default':
Issue #27199: TarFile expose copyfileobj bufsize to improve throughput
https://hg.python.org/cpython/rev/0bac85e355b5

--
nosy: +python-dev

___
Python tracker 

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



[issue27080] Implement the formatting part of PEP 515, '_' in numeric literals.

2016-09-09 Thread Eric V. Smith

Eric V. Smith added the comment:

I just noticed that the patch doesn't handle 'X' (uppercase) correctly, while 
it does handle 'x' (lowercase). I'll fix that when I commit.

--

___
Python tracker 

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



[issue27593] Deprecate sys._mercurial and create sys._git

2016-09-09 Thread Brett Cannon

Brett Cannon added the comment:

https://github.com/python/cpython/blob/master/Modules/getbuildinfo.c will need 
to be updated on top of configure.ac and Makefile.pre.in.

--

___
Python tracker 

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



[issue21590] Systemtap and DTrace support

2016-09-09 Thread Łukasz Langa

Łukasz Langa added the comment:

Landed during the 3.6 beta1 sprint:
https://hg.python.org/cpython/rev/d622dbd71f2b

Thanks all for the preliminary tasks! I rebuilt the patch from first 
principles, reusing large parts of Jesús' work, as well as work by Dave and 
Nikhil.

Things deliberately left out for simplicity:
- ustack helpers, I have no way of testing them at this point since
they are Solaris-specific, don't work on macOS or Linux
- PyFrameObject * in function__entry/function__return, this is
SystemTap-specific and won't compile with DTrace
- SPARC support
- dynamic tracing
- sys module dtrace facility introspection (as described in the documentation, 
there's facilities in both Linux and macOS to do the same thing)

All of those might be added later.

I also left out instance new/delete probes for now since I had problems making 
them stable. We might still be able to squeeze them in if we're quick about it.

Dave, if you have an idea how to integrate your FrameObject pointer in a way 
that compiles for DTrace, too, this is the time to speak up :)

Jesús, if you'd like to add the ustack helper back in a separate patch and add 
to the documentation how this can be tested, that's great, too. I just didn't 
feel comfortable committing code myself that I have no way of testing, 
especially that it required more code (the offsets, including the generated .h 
here and there, etc.).

--
assignee:  -> lukasz.langa
nosy: +lukasz.langa
versions: +Python 3.6 -Python 3.5

___
Python tracker 

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



[issue14776] Add SystemTap static markers

2016-09-09 Thread Łukasz Langa

Changes by Łukasz Langa :


--
resolution:  -> out of date
status: open -> closed
superseder:  -> Systemtap and DTrace support
versions: +Python 3.6 -Python 3.5

___
Python tracker 

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



[issue13405] Add DTrace probes

2016-09-09 Thread Łukasz Langa

Changes by Łukasz Langa :


--
resolution:  -> out of date
status: open -> closed
superseder:  -> Systemtap and DTrace support

___
Python tracker 

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



[issue27357] Enhancing the Windows installer

2016-09-09 Thread Steve Dower

Steve Dower added the comment:

FWIW, the one thing that might be implemented here is disabling the "for all 
users" checkbox when the option to install the launcher is disabled. But I 
think it's fairly clear what's implied there (that is to say, the checkbox not 
being disabled doesn't increase the confusion significantly :) )

The other checkboxes are in different contexts, and so deserve different text.

We don't install any desktop shortcuts, so there's no reason to split that 
checkbox.

--

___
Python tracker 

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



[issue27948] f-strings: allow backslashes only in the string parts, not in the expression parts

2016-09-09 Thread Eric V. Smith

Eric V. Smith added the comment:

I've fixed the code and fixed/added tests. I still need to update the docs and 
PEP 498. I'll create a separate issue for the docs, once I'm done with the PEP.

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

___
Python tracker 

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



[issue27948] f-strings: allow backslashes only in the string parts, not in the expression parts

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b3ac1e154cdd by Eric V. Smith in branch 'default':
Issue 27948: Allow backslashes in the literal string portion of f-strings, but 
not in the expressions. Also, require expressions to begin and end with literal 
curly braces.
https://hg.python.org/cpython/rev/b3ac1e154cdd

--
nosy: +python-dev

___
Python tracker 

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



[issue27516] Wrong initialization of python path with embeddable distribution

2016-09-09 Thread Steve Dower

Steve Dower added the comment:

This has changed for 3.6 and won't be changing again for 3.5. See 
https://docs.python.org/3.6/using/windows.html#finding-modules for info on the 
new support.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue27520] Issue when building PGO

2016-09-09 Thread Steve Dower

Steve Dower added the comment:

Need more info, but I believe this is expected. Our --pgo suite does not cover 
all code, and some projects explicitly do not create a pgd. We also only 
support 64-bit PGO builds.

If this is actually causing compilation errors, please reopen with logs and 
attach them here so we don't suffer from 404s. Otherwise, the fact that it 
works on my build machine (that is, the official one) means I'm not going to 
try and guess what needs fixing.

--
resolution:  -> works for me
status: open -> closed

___
Python tracker 

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



[issue27564] 2.7.12 Windows Installer package broken.

2016-09-09 Thread Steve Dower

Steve Dower added the comment:

The fix for issue27888 will prevent this from happening again.

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

___
Python tracker 

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



[issue28027] Remove Lib/plat-*/* files

2016-09-09 Thread Guido van Rossum

Guido van Rossum added the comment:

The modules should remain deleted for 3.6b1 so we can see if there are
actually any complaints -- if we get any we can consider restoring
them for b2. I fail to be convinced by the arguments against deletion
brought up so far -- the "evidence" produced is way too thin to
matter.

--

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-09 Thread INADA Naoki

INADA Naoki added the comment:

Added test which reproduce the issue on current master.

--

___
Python tracker 

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



[issue27566] Tools/freeze/winmakemakefile.py clean target should use 'del' instead of 'rm'

2016-09-09 Thread Steve Dower

Steve Dower added the comment:

Committed the patch as-is. I suspect make will have a way to suppress UI 
anyway, but if not then we can do another patch!

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

___
Python tracker 

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



[issue27566] Tools/freeze/winmakemakefile.py clean target should use 'del' instead of 'rm'

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e96eb2bd0d5e by Steve Dower in branch '2.7':
Issue #27566: Fix clean target in freeze makefile (patch by Lisa Roach)
https://hg.python.org/cpython/rev/e96eb2bd0d5e

New changeset 3303df95 by Steve Dower in branch '3.5':
Issue #27566: Fix clean target in freeze makefile (patch by Lisa Roach)
https://hg.python.org/cpython/rev/3303df95

New changeset 6a2d95630a7c by Steve Dower in branch 'default':
Issue #27566: Fix clean target in freeze makefile (patch by Lisa Roach)
https://hg.python.org/cpython/rev/6a2d95630a7c

--
nosy: +python-dev

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-09 Thread INADA Naoki

Changes by INADA Naoki :


Added file: http://bugs.python.org/file44519/fix-splittable-pop.patch

___
Python tracker 

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



[issue28046] Remove the concept of platform-specific directories

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2bfe63a3eb5c by Zachary Ware in branch 'default':
Issue #28046: Fix distutils
https://hg.python.org/cpython/rev/2bfe63a3eb5c

--

___
Python tracker 

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



Re: PEP suggestion: Uniform way to indicate Python language version

2016-09-09 Thread Steve D'Aprano
On Tue, 23 Aug 2016 12:29 am, Random832 wrote:

> Receiving a SyntaxError or whatever other exception, which provides no
> suggestion about how to actually fix the issue (install a later version
> of python / run with "python3" instead of "python"), is a bad user
> experience.

Er wot?

If I run the following code in Python 3.4:

x:int = spam.method(?) - 1

how is the 3.4 interpreter supposed to know when the x:int and the (?)
syntax were introduced? I can tell you when x:int is introduced (Python
3.6) but I have no idea when (?) will be introduced, or what it will mean.


> It will continue to be a bad user experience when people are 
> using features that only work on python 5.0 and later and other people
> are trying to run their scripts under python 4.0, 

Suppose that version 4.5 introduces |: syntax and version 4.8 removes it
again because it was a terrible idea. And 4.9 introduces unless
expressions. I write this:

x = spam |: eggs unless ValueError then cheese

What syntax error should Python 4.0 give?




-- 
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.

-- 
https://mail.python.org/mailman/listinfo/python-list


[issue25969] Update lib2to3 grammar to include missing unpacking generalizations.

2016-09-09 Thread Gregory P. Smith

Changes by Gregory P. Smith :


--
resolution:  -> fixed
stage: needs patch -> commit review
status: open -> closed

___
Python tracker 

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



[issue25969] Update lib2to3 grammar to include missing unpacking generalizations.

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8344cf7eebf8 by Gregory P. Smith in branch '2.7':
Issue #25969: Update the lib2to3 grammar to handle the unpacking
https://hg.python.org/cpython/rev/8344cf7eebf8

--

___
Python tracker 

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



[issue18199] Windows: support path longer than 260 bytes using "\\?\" prefix

2016-09-09 Thread Steve Dower

Steve Dower added the comment:

Given that Windows 10 already supports this without us having to do the 
processing ourselves (see issue27731), I don't see us implementing this.

--
resolution:  -> rejected
status: open -> closed

___
Python tracker 

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



[issue27890] platform.release() incorrect in Python 3.5.2 on Windows 2008ServerR2

2016-09-09 Thread Steve Dower

Steve Dower added the comment:

Fixed on issue26513

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

___
Python tracker 

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



[issue27705] Updating old C:/Windows/System32/ucrtbased.dll

2016-09-09 Thread Steve Dower

Steve Dower added the comment:

The message now calls out the Windows 10 SDK specifically, and includes the 
(current) link to the download.

--

___
Python tracker 

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



[issue27705] Updating old C:/Windows/System32/ucrtbased.dll

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7f7a994bbfbc by Steve Dower in branch '3.5':
Issue #27705: Update message in validate_ucrtbase.py
https://hg.python.org/cpython/rev/7f7a994bbfbc

New changeset a791a54c0a1c by Steve Dower in branch 'default':
Issue #27705: Update message in validate_ucrtbase.py
https://hg.python.org/cpython/rev/a791a54c0a1c

--
nosy: +python-dev

___
Python tracker 

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



[issue25969] Update lib2to3 grammar to include missing unpacking generalizations.

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1206c64de875 by Gregory P. Smith in branch '3.5':
Issue #25969: Update the lib2to3 grammar to handle the unpacking
https://hg.python.org/cpython/rev/1206c64de875

New changeset 2460b30c1985 by Gregory P. Smith in branch 'default':
Issue #25969: Update the lib2to3 grammar to handle the unpacking
https://hg.python.org/cpython/rev/2460b30c1985

--
nosy: +python-dev

___
Python tracker 

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



[issue25969] Update lib2to3 grammar to include missing unpacking generalizations.

2016-09-09 Thread Gregory P. Smith

Changes by Gregory P. Smith :


--
versions:  -Python 3.5, Python 3.6

___
Python tracker 

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



[issue27593] Deprecate sys._mercurial and create sys._git

2016-09-09 Thread Brett Cannon

Brett Cannon added the comment:

Get the current revision: `git rev-parse HEAD`

--

___
Python tracker 

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



[issue27593] Deprecate sys._mercurial and create sys._git

2016-09-09 Thread Brett Cannon

Brett Cannon added the comment:

Get the current branch: `git rev-parse --abbrev-ref HEAD`

--
assignee:  -> brett.cannon

___
Python tracker 

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



[issue25969] Update lib2to3 grammar to include missing unpacking generalizations.

2016-09-09 Thread Gregory P. Smith

Changes by Gregory P. Smith :


--
keywords: +patch
Added file: http://bugs.python.org/file44518/issue25969-gps01.diff

___
Python tracker 

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



[issue28017] bluetooth.h on big endian needs GNU C extensions

2016-09-09 Thread Martin Panter

Martin Panter added the comment:

For the record (and my curiosity) I think the header file was fixed in 2014:
https://git.kernel.org/cgit/bluetooth/bluez.git/commit?id=cf52a40

--

___
Python tracker 

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



[issue27971] utf-16 decoding can't handle lone surrogates

2016-09-09 Thread Eryk Sun

Eryk Sun added the comment:

I wasn't trying to put words in your mouth, Victor. I was replying to Terry 
(msg275406).

--

___
Python tracker 

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



[issue27932] platform.win32_ver() leaks in 2.7.12

2016-09-09 Thread Steve Dower

Steve Dower added the comment:

I fixed in 3.5 and 3.6, but I'm not set up for 2.7 so someone will have to 
backport it.

--
versions: +Python 3.5, Python 3.6

___
Python tracker 

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



[issue27932] platform.win32_ver() leaks in 2.7.12

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 384c178cf823 by Steve Dower in branch '3.5':
Issue #27932: Fixes memory leak in platform.win32_ver()
https://hg.python.org/cpython/rev/384c178cf823

New changeset 31b7eaff5588 by Steve Dower in branch 'default':
Issue #27932: Fixes memory leak in platform.win32_ver()
https://hg.python.org/cpython/rev/31b7eaff5588

--
nosy: +python-dev

___
Python tracker 

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



[issue28046] Remove the concept of platform-specific directories

2016-09-09 Thread Zachary Ware

Zachary Ware added the comment:

Xavier: I'm still interested in hearing whether this breaks anything for you, 
but I went ahead and pushed it.

--

___
Python tracker 

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



[issue28046] Remove the concept of platform-specific directories

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 90396ec9a2f8 by Zachary Ware in branch 'default':
Issue #28046: Remove platform-specific directories from sys.path
https://hg.python.org/cpython/rev/90396ec9a2f8

--
nosy: +python-dev

___
Python tracker 

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



[issue28027] Remove Lib/plat-*/* files

2016-09-09 Thread STINNER Victor

STINNER Victor added the comment:

Sorry, I'm leaving this discussion now.

--

___
Python tracker 

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



[issue28027] Remove Lib/plat-*/* files

2016-09-09 Thread Zachary Ware

Zachary Ware added the comment:

"Agreed" is a bit strong, I still don't agree that the change was bad or should 
be reverted.  I'm just not ruling out the possibility of a partial (because 
there is absolutely no reason to re-add the files for any platform but Linux 
and *maybe* OSX) reversion if you put forth the effort to do it after #28046 
and add deprecation notice.

--

___
Python tracker 

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



Re: PEP suggestion: Uniform way to indicate Python language version

2016-09-09 Thread Lawrence D’Oliveiro
On Tuesday, August 23, 2016 at 2:30:10 AM UTC+12, Random832 wrote:
> Receiving a SyntaxError or whatever other exception, which provides no
> suggestion about how to actually fix the issue (install a later version
> of python / run with "python3" instead of "python"), is a bad user
> experience.

When people say “user experience”, that immediately brings to mind the kinds of 
long-winded messages that Microsoft Windows might put out, that nobody pays 
attention to, because in trying to be “friendly” and “approachable” they become 
effectively meaningless.

At least the SyntaxError exception, with traceback, will give you some details 
about what went wrong. The “user” having the “experience” doesn’t need to 
understand the message to be able to copy and paste it into a bug report, and 
the developer(s) will then have some information to at least make a start on 
figuring out the problem.
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue27810] Add METH_FASTCALL: new calling convention for C functions

2016-09-09 Thread STINNER Victor

STINNER Victor added the comment:

fastcall.patch combines two changes:

changeset:   103513:74abb8ddf7f2
tag: tip
user:Victor Stinner 
date:Fri Sep 09 17:40:38 2016 -0700
files:   Include/modsupport.h Python/getargs.c Tools/clinic/clinic.py
description:
Emit METH_FASTCALL code in Argument Clinic

Issue #27810:

* Modify vgetargskeywordsfast() to work on a C array of PyObject* rather than
  working on a tuple directly.
* Add _PyArg_ParseStack()
* Argument Clinic now emits code using the new METH_FASTCALL calling convention


changeset:   103512:d55abcddd194
user:Victor Stinner 
date:Fri Sep 09 17:40:22 2016 -0700
files:   Include/abstract.h Include/methodobject.h Objects/abstract.c 
Objects/methodobject.c
description:
Add METH_FASTCALL calling convention

Issue #27810: Add a new calling convention for C functions:

PyObject* func(PyObject *self, PyObject **args,
   Py_ssize_t nargs, PyObject *kwnames);

Where args is a C array of positional arguments followed by values of keyword
arguments. nargs is the number of positional arguments, kwnames are keys of
keyword arguments. kwnames can be NULL.

--
keywords: +patch
Added file: http://bugs.python.org/file44517/fastcall.patch

___
Python tracker 

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



[issue28027] Remove Lib/plat-*/* files

2016-09-09 Thread Matthias Klose

Matthias Klose added the comment:

"It's a matter of maintenance burden". No I don't think so.

As agreed on IRC with zware, I'll restore the removed modules, including a 
deprecation notice.

--
assignee: zach.ware -> doko
resolution: fixed -> 
status: closed -> open

___
Python tracker 

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



[issue27931] Email parse IndexError <""@wiarcom.com>

2016-09-09 Thread R. David Murray

R. David Murray added the comment:

Reviewed.  There is something else that needs fixing.  The address needs to 
re-render as ""@wiarcom.com, which it doesn't currently.  I scanned the 
rendering code in _header_value_registry quickly and its not obvious to me why 
it doesn't work, so it may be a bug in the headerregistry.Address object.  I'm 
uploading the patch with the added test.

--
Added file: http://bugs.python.org/file44516/issue27931.patch

___
Python tracker 

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



[issue25758] ensurepip/venv broken on Windows if path includes unicode

2016-09-09 Thread Steve Dower

Steve Dower added the comment:

Applied Eryk's patch and updated the test to repro it (though it wouldn't repro 
on 3.6 with PEP 529 applied, but it definitely did on 3.5).

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

___
Python tracker 

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



[issue25758] ensurepip/venv broken on Windows if path includes unicode

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 663a62bcf9c9 by Steve Dower in branch '3.5':
Issue #25758: Prevents zipimport from unnecessarily encoding a filename (patch 
by Eryk Sun)
https://hg.python.org/cpython/rev/663a62bcf9c9

New changeset ead30e7262d5 by Steve Dower in branch 'default':
Issue #25758: Prevents zipimport from unnecessarily encoding a filename (patch 
by Eryk Sun)
https://hg.python.org/cpython/rev/ead30e7262d5

--
nosy: +python-dev

___
Python tracker 

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



[issue1602] windows console doesn't print or input Unicode

2016-09-09 Thread Martin Panter

Martin Panter added the comment:

Okay so regarding blocking reads with a full buffer, what you are saying is the 
second check to break the read loop should be sufficient:

+/* If the buffer ended with a newline, break out */
+if (buf[*readlen - 1] == '\n')
+break;

--

___
Python tracker 

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



[issue28055] pyhash's siphash24 assumes alignment of the data pointer

2016-09-09 Thread Benjamin Peterson

Benjamin Peterson added the comment:

I believe the unaligned memory access configure check is supposed to prevent 
siphash from being used, so we might look into why that's not working.

IMO, though, we should just require alignment for the argument to 
_PyHash_Bytes. It's private after all.

--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue28007] Bad .pyc files prevent import of otherwise valid .py files.

2016-09-09 Thread Eric Snow

Changes by Eric Snow :


--
assignee:  -> eric.snow

___
Python tracker 

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



[issue27951] the reply's additional "Re:" is ok

2016-09-09 Thread Martin Panter

Martin Panter added the comment:

All good, it’s already closed. Thanks for clarifying!

--

___
Python tracker 

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



[issue27268] Incorrect error message on float('')

2016-09-09 Thread Łukasz Langa

Changes by Łukasz Langa :


--
dependencies: +Strings passed to KeyError do not round trip

___
Python tracker 

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



[issue14977] mailcap does not respect precedence in the presence of wildcards

2016-09-09 Thread R. David Murray

R. David Murray added the comment:

Thanks, Michael.  I didn't see anything that needed updating in the docs.

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

___
Python tracker 

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



[issue14977] mailcap does not respect precedence in the presence of wildcards

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f1bf0abcca0c by R David Murray in branch '3.5':
#14977: Make mailcap respect the order of the lines in the mailcap file.
https://hg.python.org/cpython/rev/f1bf0abcca0c

New changeset efd692c86429 by R David Murray in branch 'default':
Merge: #14977: Make mailcap respect the order of the lines in the mailcap file.
https://hg.python.org/cpython/rev/efd692c86429

--
nosy: +python-dev

___
Python tracker 

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



[issue17394] Add slicing support to collections.deque

2016-09-09 Thread Raymond Hettinger

Raymond Hettinger added the comment:

> If no, you can just close it.

Yes, I would rather close this than apply this patch.

--
resolution:  -> rejected
status: open -> closed

___
Python tracker 

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



[issue27976] Deprecate building with bundled copy of libffi on non-Darwin POSIX platforms

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3e02187e50df by Zachary Ware in branch 'default':
Closes #27976: Deprecate bundled full copy of libffi
https://hg.python.org/cpython/rev/3e02187e50df

--
nosy: +python-dev
resolution:  -> fixed
stage: commit review -> resolved
status: open -> closed

___
Python tracker 

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



[issue27951] the reply's additional "Re:" is ok

2016-09-09 Thread Seif Elsallamy

Seif Elsallamy added the comment:

I'm sorry i sent it by mistake you can close it 

On Friday, September 9, 2016 9:25 PM, SilentGhost  
wrote:

Changes by SilentGhost :

--
resolution:  -> not a bug
stage: test needed -> resolved

___
Python tracker 

___

--

___
Python tracker 

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



[issue28039] x86 Tiger buildbot needs __future__ with_statement

2016-09-09 Thread David Bolen

David Bolen added the comment:

I've bumped the tiger default python to 2.7.12 and updated hg to use it 
(bumping to 3.9.1 in the process).  It appears to have fixed the current touch 
and compile errors.  I've restarted builds for the most recent commits.

The need for a tiger slave is still up for debate, but can be separate from 
this issue.

-- David

--

___
Python tracker 

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



[issue22450] urllib doesn't put Accept: */* in the headers

2016-09-09 Thread Senthil Kumaran

Senthil Kumaran added the comment:

@Martin, I weight in 'curl's behavior for de-facto things that differ slightly 
from standards. It's simply what folks have gotten used to, and sometimes 
expect.

@Raymond, unit-tests will be a good addition too.

--

___
Python tracker 

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



[issue28055] pyhash's siphash24 assumes alignment of the data pointer

2016-09-09 Thread Christian Heimes

Christian Heimes added the comment:

Good catch! I had trouble with the data structures in the TZ module before.

I'm fine with memcpy() on just ARM platforms as a temporary workaround. Let's 
discuss the issue another time. Right now I'm busy with ssl improvements for 
3.6.0b1.

--

___
Python tracker 

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



[issue22450] urllib doesn't put Accept: */* in the headers

2016-09-09 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue22450] urllib doesn't put Accept: */* in the headers

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 00da8bfa2a60 by Raymond Hettinger in branch '3.5':
Issue #22450: Use "Accept: */*" in the default headers for urllib.request
https://hg.python.org/cpython/rev/00da8bfa2a60

--

___
Python tracker 

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



[issue22450] urllib doesn't put Accept: */* in the headers

2016-09-09 Thread Kenneth Reitz

Kenneth Reitz added the comment:

I fully second Corey's comment.

--
nosy: +kennethreitz

___
Python tracker 

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



[issue28055] pyhash's siphash24 assumes alignment of the data pointer

2016-09-09 Thread Matthias Klose

Changes by Matthias Klose :


Removed file: http://bugs.python.org/file44514/pyhash.diff

___
Python tracker 

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



[issue28055] pyhash's siphash24 assumes alignment of the data pointer

2016-09-09 Thread Matthias Klose

Changes by Matthias Klose :


Added file: http://bugs.python.org/file44515/pyhash.diff

___
Python tracker 

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



[issue25144] 3.5 Win install fails with "TARGETDIR"

2016-09-09 Thread Steve Dower

Steve Dower added the comment:

I believe this change will fix it, or at least provide some more diagnostic 
info if it fails again. There doesn't seem to be any other way to trigger the 
install process without setting a target directory.

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
versions: +Python 3.6

___
Python tracker 

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



[issue25144] 3.5 Win install fails with "TARGETDIR"

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 16d652760a06 by Steve Dower in branch '3.5':
Issue #25144: Ensures TargetDir is set before continuing with custom install.
https://hg.python.org/cpython/rev/16d652760a06

New changeset 024f3312ccee by Steve Dower in branch 'default':
Issue #25144: Ensures TargetDir is set before continuing with custom install.
https://hg.python.org/cpython/rev/024f3312ccee

--
nosy: +python-dev

___
Python tracker 

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



[issue27971] utf-16 decoding can't handle lone surrogates

2016-09-09 Thread STINNER Victor

STINNER Victor added the comment:

> Considering the UTF-16 codec isn't self-consistent, it's a stretch to say 
> it's not a bug.

I didn't say that it's not a bug. I said that it's not possible to
modify a codec at this point in Python 2.7 without taking a risk of
breaking applications relying on the current behaviour. Even in Python
3, we don't do such change in minor releases, but only in major
releases.

--

___
Python tracker 

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



  1   2   3   4   5   >