[issue30113] Allow helper functions to wrap sys.setprofile

2017-04-21 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks Louie. I've adjusted the issue title, as I think the core RFE is that we'd like the following helper function to work exactly the same way as calling sys.setprofile directly: def setprofile_helper(f): sys.setprofile(f) The following utility

[issue29782] Use __builtin_clzl for bits_in_digit if available

2017-04-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: But even 15% speed up in particular microbenchmarks looks too small to me for such complex change. -- ___ Python tracker

[issue29782] Use __builtin_clzl for bits_in_digit if available

2017-04-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In some microbenchmarks this can give up to 15%. $ ./python.patched -m perf timeit -q --compare-to=./python.default -s "a = list(map(float, range(1)))" "12345 in a" Mean +- std dev: [python.default] 1.28 ms +- 0.11 ms -> [python.patched] 1.12 ms +- 0.07

[issue30136] Add test.support.script_helper to documentation

2017-04-21 Thread Berker Peksag
Berker Peksag added the comment: This is a duplicate of issue 18576. -- nosy: +berker.peksag resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Document test.support.script_helper ___ Python tracker

[issue30136] Add test.support.script_helper to documentation

2017-04-21 Thread Louie Lu
New submission from Louie Lu: `test.support.script_helper` didn't document at `test` document. It should be add on. -- assignee: docs@python components: Documentation messages: 292103 nosy: docs@python, louielu priority: normal severity: normal status: open title: Add

[issue30133] Strings that end with properly escaped backslashes cause error to be thrown in re.search/sub/etc. functions.

2017-04-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: re.escape() shouldn't be used for a replacement template. You need just double backslashes when escape a literal string for a replacement template: s.replace('\\', ''). This should be documented if still is not documented. -- nosy:

[issue30134] BytesWarning is missing from the documents

2017-04-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: BytesWarning should be added in the table in warnings.rst (and check that all other built-in warning categories are in this table). It is worth to mention the -b option. And I think the docstring of BytesWarning should be corrected. "Unicode" should be

[issue30135] default value of argument seems to be overwritten

2017-04-21 Thread Klaus Wolf
New submission from Klaus Wolf: Two function results differ if the parameter is given explictly instead of using the given default. (Enclosed example: A small simple interpreter of Forth language, both scripts should give the same result, but the first one (variant1) fails because the value

[issue30134] BytesWarning is missing from the documents

2017-04-21 Thread KINEBUCHI Tomohiko
Changes by KINEBUCHI Tomohiko : -- pull_requests: +1365 ___ Python tracker ___ ___

[issue30134] BytesWarning is missing from the documents

2017-04-21 Thread KINEBUCHI Tomohiko
New submission from KINEBUCHI Tomohiko: In Python 2.6, BytesWarning was added, but a description of that warning is missing from the document, library/exceptions.rst. -- assignee: docs@python components: Documentation messages: 292099 nosy: cocoatomo, docs@python priority: normal

[issue29952] "keys and values" preferred to "keys and elements" for dict constituent

2017-04-21 Thread KINEBUCHI Tomohiko
Changes by KINEBUCHI Tomohiko : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30098] Verbose TypeError for asyncio.ensure_future

2017-04-21 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: PR has been merged and backported to 3.5 and 3.6. Thanks everyone :) -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker

[issue30098] Verbose TypeError for asyncio.ensure_future

2017-04-21 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset a3d8dda7d899bf41ab7eb2c6148459ad276fe295 by Mariatta in branch '3.6': bpo-30098: Clarify that run_coroutine_threadsafe expects asyncio.Future (GH-1170) (#1247) https://github.com/python/cpython/commit/a3d8dda7d899bf41ab7eb2c6148459ad276fe295

[issue30098] Verbose TypeError for asyncio.ensure_future

2017-04-21 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 503d74a60aa9290cf8d174eab95fdfdea1f2b284 by Mariatta in branch '3.5': bpo-30098: Clarify that run_coroutine_threadsafe expects asyncio.Future (GH-1170) (#1246) https://github.com/python/cpython/commit/503d74a60aa9290cf8d174eab95fdfdea1f2b284

[issue30133] Strings that end with properly escaped backslashes cause error to be thrown in re.search/sub/etc. functions.

2017-04-21 Thread Matthew Barnett
Matthew Barnett added the comment: The function solution does have a larger overhead than a literal. Could the template be made more accepting of backslashes without breaking anything? (There's also issue29995 "re.escape() escapes too much", which might help.) --

[issue30133] Strings that end with properly escaped backslashes cause error to be thrown in re.search/sub/etc. functions.

2017-04-21 Thread R. David Murray
R. David Murray added the comment: Good point, re.escape is for literal text you want to insert into a matching pattern, but the replacement template isn't a matching pattern. Do we need a different escape function? I guess the function solution is enough? --

[issue30098] Verbose TypeError for asyncio.ensure_future

2017-04-21 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +1363 ___ Python tracker ___ ___

[issue30098] Verbose TypeError for asyncio.ensure_future

2017-04-21 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +1364 ___ Python tracker ___ ___

[issue23404] 'make touch' does not work with git clones of the source repository

2017-04-21 Thread Kubilay Kocak
Changes by Kubilay Kocak : -- nosy: +koobs ___ Python tracker ___ ___

Re: combine if filter terms from list

2017-04-21 Thread Ben Finney
Rory Schramm writes: > I'm trying to use python list comprehensions to combine multiple terms > for use by a for loop if condition. Thank you for a small code example. It doesn't have enough to illustrate the problem you're describing; we can't run it and see what you're

[issue30133] Strings that end with properly escaped backslashes cause error to be thrown in re.search/sub/etc. functions.

2017-04-21 Thread Matthew Barnett
Matthew Barnett added the comment: Yes, the second argument is a replacement template, not a literal. This issue does point out a different problem, though: re.escape will add backslashes that will then be treated as literals in the template, for example: >>> re.sub(r'a', re.escape('(A)'),

Re: textwrap.fill algorithm? (Difference with vim)

2017-04-21 Thread Gregory Ewing
Matěj Cepl wrote: On 2017-04-21, 21:54 GMT, Peter Otten wrote: It's not the algorithm, it's the width. Try textwrap.fill(text, 72). I don’t understand. Why 72? Because the first line including those words is 72 characters long. I don't know what vim is doing, but if you tell Python you

Re: combine if filter terms from list

2017-04-21 Thread MRAB
On 2017-04-22 01:17, Rory Schramm wrote: Hi, I'm trying to use python list comprehensions to combine multiple terms for use by a for loop if condition. filters = [ 'one', 'two', 'three'] for line in other_list: if ' and '.join([item for item in filters]) not in line[2]: print

Re: Basics of pythons 

2017-04-21 Thread tommy yama
Hi there, For what, you want to learn? On Sat, Apr 22, 2017 at 1:10 AM, Thomas Nyberg wrote: > On 04/21/2017 08:06 AM, harounelyaako...@gmail.com wrote: > > Hey everyone, I'm willing to learn python , ant advices ? > > Thanks in advance > > > Here is a tutorial: > >

Re: textwrap.fill algorithm? (Difference with vim)

2017-04-21 Thread MRAB
On 2017-04-21 23:17, Matěj Cepl wrote: On 2017-04-21, 21:54 GMT, Peter Otten wrote: It's not the algorithm, it's the width. Try textwrap.fill(text, 72). I don’t understand. Why 72? I have set tw=65 in vim. textwrap.fill counts characters. It won't put "grown so" on the first line because

combine if filter terms from list

2017-04-21 Thread Rory Schramm
Hi, I'm trying to use python list comprehensions to combine multiple terms for use by a for loop if condition. filters = [ 'one', 'two', 'three'] for line in other_list: if ' and '.join([item for item in filters]) not in line[2]: print line The list comp returns one and two and

[issue23404] 'make touch' does not work with git clones of the source repository

2017-04-21 Thread Martin Panter
Martin Panter added the comment: Last time I proposed removing the automatic rebuilding of checked-in generated files, it seemed getting a consensus would not be trivial. Nick seemed strongly against changing the status quo:

[issue29442] Replace optparse with argparse in setup.py

2017-04-21 Thread STINNER Victor
STINNER Victor added the comment: Did someone test the patch? Does Python still bootstrap after a distclean or not? If not, I suggest to close the issue, except if Chi Hsuan Yen finf an elegant way to fix them :-) -- ___ Python tracker

[issue29782] Use __builtin_clzl for bits_in_digit if available

2017-04-21 Thread STINNER Victor
STINNER Victor added the comment: I concur with Antoine and suggest to reject this issue. -- ___ Python tracker ___

[issue29867] Add asserts in PyXXX_GET_SIZE macros

2017-04-21 Thread STINNER Victor
STINNER Victor added the comment: I merged your PR. We are at the begining of the 3.7 cycle. Applications can be fixed before 3.7. In the worst case, we can revert the change. I like this enhancement, it should help to catch bugs ;-) -- resolution: -> fixed stage: patch review ->

[issue30129] functools.partialmethod should look more like what it's impersonating.

2017-04-21 Thread Skip Montanaro
Skip Montanaro added the comment: Again, my apologies for the crappy initial bug report. Hopefully this comment and the two files I just attached demonstrate what I am getting at. I just uploaded a stupid little example, partial3.py. Stupid, but still, it demonstrates part of how I think

[issue30126] CheckTraceCallbackContent of test_sqlite3 fails on OS X Tiger

2017-04-21 Thread David Bolen
David Bolen added the comment: Ok, this should be resolved. I opted to be a bit more conservative and only upgraded to sqlite3 3.8.3.1, which is the oldest version still in use for the dmg installer packages (for 2.7). I restarted the most recent 3.x build and while it's not completely done

[issue29867] Add asserts in PyXXX_GET_SIZE macros

2017-04-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1a5856bf9295fa73995898d576e0bedf016aee1f by Victor Stinner (Serhiy Storchaka) in branch 'master': bpo-29867: Add asserts in PyTuple_GET_SIZE, PyList_GET_SIZE and PySet_GET_SIZE. (#751)

[issue28041] Inconsistent behavior: Get st_nlink from os.stat() and os.scandir()

2017-04-21 Thread STINNER Victor
STINNER Victor added the comment: scandir () is designed for effiency, not for portability or correctness. The API has deliberate limitations which are well documented, as the one you spotted: https://docs.python.org/dev/library/os.html#os.DirEntry.stat Your PR would defeat the whole purpose

[issue30129] functools.partialmethod should look more like what it's impersonating.

2017-04-21 Thread Skip Montanaro
Changes by Skip Montanaro : -- keywords: +patch Added file: http://bugs.python.org/file46824/ft.diff ___ Python tracker ___

[issue29059] Windows: Python not using ANSI compatible console

2017-04-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: In #30075, Tithen Firion reports that "subprocess.call('', shell=True)" leaves the console in ANSI mode. In Eryk Sun says that this is likely a bug in cmd.exe and gives improved code for putting the console in VT mode, when this is possible. I closed that

[issue30129] functools.partialmethod should look more like what it's impersonating.

2017-04-21 Thread Skip Montanaro
Changes by Skip Montanaro : Added file: http://bugs.python.org/file46823/partial3.py ___ Python tracker ___

[issue30075] Printing ANSI Escape Sequences on Windows 10

2017-04-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is a (duplicate) enhancement request, not a bug report. The superseder field is for when an issue is closed as a duplicate; I decided that this should be. Further discussion should be on python-ideas. -- nosy: +terry.reedy resolution: ->

[issue29903] struct.Struct Addition

2017-04-21 Thread STINNER Victor
STINNER Victor added the comment: I dislike this feature. I reject it: Serhiy, Raymond and me dislike it. I never needed this feature and a correct implementation can be very complex if you have to take care of endian, alignement, etc. It's trivial to implement you own add using the format

[issue30125] test_SEH() of test_ctypes logs "Windows fatal exception: access violation"

2017-04-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset a36e939aeb3b5a2c56561eb24f0e339eee9f3f9d by Victor Stinner in branch 'master': bpo-30125: disable faulthandler in ctypes test_SEH (#1237) https://github.com/python/cpython/commit/a36e939aeb3b5a2c56561eb24f0e339eee9f3f9d --

Re: textwrap.fill algorithm? (Difference with vim)

2017-04-21 Thread Matěj Cepl
On 2017-04-21, 21:54 GMT, Peter Otten wrote: > It's not the algorithm, it's the width. Try > textwrap.fill(text, 72). I don’t understand. Why 72? I have set tw=65 in vim. Matěj -- https://matej.ceplovi.cz/blog/, Jabber: mc...@ceplovi.cz GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802

Re: textwrap.fill algorithm? (Difference with vim)

2017-04-21 Thread Peter Otten
Matěj Cepl wrote: > I have a gedit Python plugin which should do line wrap using > textwrap.fill() function. However, even when I have set the > length of line to the same number as in vim (65), the result is > substantially different (textwrap.fill paragraphs are > significantly narrower). See

[issue30133] Strings that end with properly escaped backslashes cause error to be thrown in re.search/sub/etc. functions.

2017-04-21 Thread R. David Murray
R. David Murray added the comment: I think you are missing a re.escape around text. Text is otherwise not a valid replacement pattern. -- nosy: +r.david.murray ___ Python tracker

textwrap.fill algorithm? (Difference with vim)

2017-04-21 Thread Matěj Cepl
Hi, I have a gedit Python plugin which should do line wrap using textwrap.fill() function. However, even when I have set the length of line to the same number as in vim (65), the result is substantially different (textwrap.fill paragraphs are significantly narrower). See for example this

Re: Write a function sorting(L).

2017-04-21 Thread Tim Chase
On 2017-04-21 12:58, Mohammed Ahmed wrote: > Write a function sorting(L) that takes a list of numbers and > returns the list with all elements sorted in ascending order. > Note: do not use the sort built in function > > it is a python question No "sort" functions here... >>>

Re: Write a function sorting(L).

2017-04-21 Thread bartc
On 21/04/2017 21:04, Mohammed Ahmed wrote: On Friday, April 21, 2017 at 10:02:55 PM UTC+2, Chris Angelico wrote: On Sat, Apr 22, 2017 at 5:58 AM, Mohammed Ahmed wrote: Write a function sorting(L) that takes a list of numbers and returns the list with all elements

Re: Write a function group(L).

2017-04-21 Thread Gary Herron
On 04/21/2017 01:01 PM, Mohammed Ahmed wrote: Write a function group(L) that takes a list of integers. The function returns a list of two lists one containing the even values and another containing the odd values. it is a python question In fact, this is *not* a question, Python or

[issue30133] Strings that end with properly escaped backslashes cause error to be thrown in re.search/sub/etc. functions.

2017-04-21 Thread Patrick Foley
New submission from Patrick Foley: The following code demonstrates: import re text = 'ab\\' exp = re.compile('a') print(re.sub(exp, text, '')) If you remove the backslash(es), the code runs fine. This appears to be specific to the re module and only to strings that end in (even properly

[issue30125] test_SEH() of test_ctypes logs "Windows fatal exception: access violation"

2017-04-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3a8f8ea2aca46f9ef1e715f2c924357b6719525f by Victor Stinner in branch '3.6': bpo-30125: Fix faulthandler.disable() on Windows (#1243) https://github.com/python/cpython/commit/3a8f8ea2aca46f9ef1e715f2c924357b6719525f --

Re: Write a function group(L).

2017-04-21 Thread Ian Kelly
On Fri, Apr 21, 2017 at 2:01 PM, Mohammed Ahmed wrote: > Write a function group(L) that takes a list of integers. The function returns > a list of > two lists one containing the even values and another containing the odd > values. > > it is a python question This group

[issue30098] Verbose TypeError for asyncio.ensure_future

2017-04-21 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset ae5b3260dd459845aad8a30491b76d471577785d by Mariatta (Charles Renwick) in branch 'master': bpo-30098: Clarify that run_coroutine_threadsafe expects asyncio.Future (GH-1170)

Re: Write a function sorting(L).

2017-04-21 Thread Michael Torrie
On 04/21/2017 01:58 PM, Mohammed Ahmed wrote: > Write a function sorting(L) that takes a list of numbers and returns the list > with all > elements sorted in ascending order. > Note: do not use the sort built in function > > it is a python question Sounds like a basic homework question. Which

[issue30098] Verbose TypeError for asyncio.ensure_future

2017-04-21 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: -> backport needed versions: +Python 3.5, Python 3.6 ___ Python tracker ___

Re: Write a function sorting(L).

2017-04-21 Thread Rob Gaddi
On 04/21/2017 01:04 PM, Mohammed Ahmed wrote: On Friday, April 21, 2017 at 10:02:55 PM UTC+2, Chris Angelico wrote: On Sat, Apr 22, 2017 at 5:58 AM, Mohammed Ahmed wrote: Write a function sorting(L) that takes a list of numbers and returns the list with all elements

Re: Write a function sorting(L).

2017-04-21 Thread Chris Angelico
On Sat, Apr 22, 2017 at 6:04 AM, Mohammed Ahmed wrote: > On Friday, April 21, 2017 at 10:02:55 PM UTC+2, Chris Angelico wrote: >> On Sat, Apr 22, 2017 at 5:58 AM, Mohammed Ahmed >> wrote: >> > Write a function sorting(L) that takes a list of numbers

[issue30126] CheckTraceCallbackContent of test_sqlite3 fails on OS X Tiger

2017-04-21 Thread David Bolen
David Bolen added the comment: The test appears to pass against a local test build of sqlite3 3.18.0, so I'll probably just plan on updating the slave to that later tonight. Unless anyone is interested in figuring out why it fails with 3.6.11 and not 3.18.0 (e.g., does the test have a higher

Re: Write a function sorting(L).

2017-04-21 Thread Mohammed Ahmed
On Friday, April 21, 2017 at 10:02:55 PM UTC+2, Chris Angelico wrote: > On Sat, Apr 22, 2017 at 5:58 AM, Mohammed Ahmed wrote: > > Write a function sorting(L) that takes a list of numbers and returns the > > list with all > > elements sorted in ascending order. > > Note:

Re: Write a function sorting(L).

2017-04-21 Thread Mohammed Ahmed
On Friday, April 21, 2017 at 10:01:40 PM UTC+2, alister wrote: > On Fri, 21 Apr 2017 12:58:52 -0700, Mohammed Ahmed wrote: > > > Write a function sorting(L) that takes a list of numbers and returns the > > list with all elements sorted in ascending order. > > Note: do not use the sort built in

Write a function group(L).

2017-04-21 Thread Mohammed Ahmed
Write a function group(L) that takes a list of integers. The function returns a list of two lists one containing the even values and another containing the odd values. it is a python question -- https://mail.python.org/mailman/listinfo/python-list

Re: Write a function sorting(L).

2017-04-21 Thread alister
On Fri, 21 Apr 2017 12:58:52 -0700, Mohammed Ahmed wrote: > Write a function sorting(L) that takes a list of numbers and returns the > list with all elements sorted in ascending order. > Note: do not use the sort built in function > > it is a python question & the reason for this question is

Re: Write a function sorting(L).

2017-04-21 Thread Chris Angelico
On Sat, Apr 22, 2017 at 5:58 AM, Mohammed Ahmed wrote: > Write a function sorting(L) that takes a list of numbers and returns the list > with all > elements sorted in ascending order. > Note: do not use the sort built in function > > it is a python question Yes, it is. It

Write a function sorting(L).

2017-04-21 Thread Mohammed Ahmed
Write a function sorting(L) that takes a list of numbers and returns the list with all elements sorted in ascending order. Note: do not use the sort built in function it is a python question -- https://mail.python.org/mailman/listinfo/python-list

[issue30126] CheckTraceCallbackContent of test_sqlite3 fails on OS X Tiger

2017-04-21 Thread David Bolen
David Bolen added the comment: No recent changes to the buildbot (I think the last was in September to bump the local python used to run the slave/build installer to 2.7). The default system sqlite (/usr/lib) is 3.0.8.6, so extremely old, but 3.6.11 is in /usr/local/{lib,include} from early

[issue28909] Adding LTTng-UST tracing support

2017-04-21 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Just a small note here for the documentation patch. yum is deprecated in Fedora, and dnf is now the default package manager, so the respective instructions for Fedora should reflect that. -- nosy: +cstratak

[issue29191] liblzma is missing from pcbuild.sln

2017-04-21 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks everyone :) I merged the backport PR, so I'm closing this issue. While backporting is still a manual effort, this utility script automates some part of it. https://github.com/python/core-workflow/tree/master/cherry_picker -- resolution: ->

[issue29191] liblzma is missing from pcbuild.sln

2017-04-21 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 1ccbe6007e5569ab25170f8ecddd5fbbc2ef36b0 by Mariatta (Steve Dower) in branch '3.6': bpo-29191: Add liblzma.vcxproj to pcbuild.sln and other missing entries (GH-1222) (GH-1244)

[issue28909] Adding LTTng-UST tracing support

2017-04-21 Thread cburroughs
Changes by cburroughs : -- nosy: +cburroughs ___ Python tracker ___ ___

[issue28787] Out of tree --with--dtrace builds fail with a traceback

2017-04-21 Thread cburroughs
Changes by cburroughs : -- nosy: +cburroughs ___ Python tracker ___ ___

[issue30122] Added missing archive programs.

2017-04-21 Thread Decorater
Decorater added the comment: Oh -- title: Added missing archive programs and close option to Windows docs. -> Added missing archive programs. ___ Python tracker

[issue29077] build failure when enabling dtrace on FreeBSD

2017-04-21 Thread cburroughs
Changes by cburroughs : -- nosy: +cburroughs ___ Python tracker ___ ___

[issue30129] functools.partialmethod should look more like what it's impersonating.

2017-04-21 Thread Skip Montanaro
Skip Montanaro added the comment: Yeah, sorry about that. I work in an environment where I can't "eject" any code from my work computer. I've come up with a simple Python3 example, but it will have to wait until I can recreate it from scratch on my home computer. --

[issue30130] array.array is not an instance of collections.MutableSequence

2017-04-21 Thread Alexander Gosselin
Alexander Gosselin added the comment: Thanks for taking a look at this. I think array is little used, so registering it as a member of some of the abstract base classes in collections could easily have been overlooked. One of the prerequisites for membership in MutableSequence is a .clear()

[issue30060] Crash on Py_Finalize if Py_NoSiteFlag is used

2017-04-21 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

Re: Direct Download Movies - No Download Limits - Download DivX DVD Movies

2017-04-21 Thread pradawalker
On Saturday, December 5, 2009 at 11:52:52 PM UTC-5, hussain dandan wrote: > Movie Download Reviews offers Free Online Movie Download,Hollywood > Movie Download,Free Full Movie Download,Download Latest Hollywood > Movies,Free Movie > > http://hollywood-moives.blogspot.com/ >

[issue23404] 'make touch' does not work with git clones of the source repository

2017-04-21 Thread STINNER Victor
STINNER Victor added the comment: > Anyway my preference was to stop automatically regenerating files, and to > keep the build system as simple as practical without hacks like the BOOT="#" > flag. In the past, this issue bite me so many times on Solaris, FreeBSD, etc. One because there was

[issue23404] 'make touch' does not work with git clones of the source repository

2017-04-21 Thread STINNER Victor
STINNER Victor added the comment: FYI 3 FreeBSD buildbots are currently broken because of this issue. -- nosy: +haypo ___ Python tracker ___

[issue29191] liblzma is missing from pcbuild.sln

2017-04-21 Thread Steve Dower
Changes by Steve Dower : -- pull_requests: +1362 ___ Python tracker ___ ___

[issue29191] liblzma is missing from pcbuild.sln

2017-04-21 Thread Steve Dower
Steve Dower added the comment: Yeah, merging into master is easy right now, but backports are still manual effort. It should only require 3.6, so I'll try to get to it today. -- ___ Python tracker

[issue29950] Rename SlotWrapperType to WrapperDescriptorType

2017-04-21 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: This was added in python/typing just a couple of days ago, so I'm bumping to maybe get the PR to python/cpython merged too. -- ___ Python tracker

[issue29840] Avoid raising OverflowError in bool()

2017-04-21 Thread STINNER Victor
STINNER Victor added the comment: Hum, I dislike this change since it's non-obvious what/who is raising the OverflowError. If an object calls a function in __len__() and the function raises OverflowError, should we consider that object is "true"? In temptation to guess, I prefer to not guess

[issue30130] array.array is not an instance of collections.MutableSequence

2017-04-21 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Thanks for the bug report, Alexander. This is related, if not a superseder, of: https://bugs.python.org/issue29727 -- nosy: +Jim Fasarakis-Hilliard ___ Python tracker

[issue30121] Windows: subprocess debug assertion on failure to execute the process

2017-04-21 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue30085] Discourage operator.__dunder__ functions

2017-04-21 Thread Sanket Dasgupta
Sanket Dasgupta added the comment: @terry, I have updated the same, thanks! -- nosy: +sanketdg ___ Python tracker ___

[issue30107] python.core file created when running tests on AMD64 FreeBSD CURRENT Non-Debug 3.x buildbot

2017-04-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset b984a05d557e78b928f38098d0b6c0e95f737b9a by Victor Stinner in branch '3.6': bpo-30107: don't dump core on expected test_io crash (#1235) (#1241) https://github.com/python/cpython/commit/b984a05d557e78b928f38098d0b6c0e95f737b9a --

[issue17703] Trashcan mechanism segfault during interpreter finalization in Python 2.7.4

2017-04-21 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue30132] [Windows] test_distutils leaks a vc140.pdb file

2017-04-21 Thread STINNER Victor
Changes by STINNER Victor : -- title: test_distutils leaks a vc140.pdb file -> [Windows] test_distutils leaks a vc140.pdb file ___ Python tracker

[issue30132] test_distutils leaks a vc140.pdb file

2017-04-21 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/AMD64%20Windows8%203.x/builds/566/steps/test/logs/stdio Warning -- files was modified by test_distutils Before: [] After: ['vc140.pdb'] -- components: Tests, Windows messages: 292060 nosy: haypo,

[issue30125] test_SEH() of test_ctypes logs "Windows fatal exception: access violation"

2017-04-21 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1361 ___ Python tracker ___ ___

[issue30117] test_lib2to3.test_parser.test_all_project_files() fails

2017-04-21 Thread Eric Appelt
Eric Appelt added the comment: I added a PR to fix these two (in my opinion) spurious failure conditions in the lib2to3.tests.test_parser.TestParserIdempotency test_parser test with the following changes to the test: 1. Use the same encoding found in the initial file to write a temp file for

[issue30117] test_lib2to3.test_parser.test_all_project_files() fails

2017-04-21 Thread Eric Appelt
Changes by Eric Appelt : -- pull_requests: +1360 ___ Python tracker ___ ___

[issue30131] test_logging leaks a "dangling" thread

2017-04-21 Thread STINNER Victor
New submission from STINNER Victor: Example on Windows from AppVeyor: https://ci.appveyor.com/project/python/cpython/build/3.7.0a0.1402 Warning -- threading._dangling was modified by test_logging Before: <_weakrefset.WeakSet object at 0x027CBE30> After: <_weakrefset.WeakSet object at

Re: Basics of pythons 

2017-04-21 Thread Thomas Nyberg
On 04/21/2017 08:06 AM, harounelyaako...@gmail.com wrote: > Hey everyone, I'm willing to learn python , ant advices ? > Thanks in advance > Here is a tutorial: https://docs.python.org/3/tutorial/ -- https://mail.python.org/mailman/listinfo/python-list

[issue30125] test_SEH() of test_ctypes logs "Windows fatal exception: access violation"

2017-04-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset 46c2b81026bbf966c0898a1fa30d98c33673aea0 by Victor Stinner in branch 'master': bpo-30125: Fix faulthandler.disable() on Windows (#1240) https://github.com/python/cpython/commit/46c2b81026bbf966c0898a1fa30d98c33673aea0 --

[issue30107] python.core file created when running tests on AMD64 FreeBSD CURRENT Non-Debug 3.x buildbot

2017-04-21 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1359 ___ Python tracker ___ ___

[issue30107] python.core file created when running tests on AMD64 FreeBSD CURRENT Non-Debug 3.x buildbot

2017-04-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2a1aed04b0943636f605543522e16cca1dc23e70 by Victor Stinner in branch 'master': bpo-30107: don't dump core on expected test_io crash (#1235) https://github.com/python/cpython/commit/2a1aed04b0943636f605543522e16cca1dc23e70 --

[issue30125] test_SEH() of test_ctypes logs "Windows fatal exception: access violation"

2017-04-21 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1358 ___ Python tracker ___ ___

[issue30126] CheckTraceCallbackContent of test_sqlite3 fails on OS X Tiger

2017-04-21 Thread STINNER Victor
STINNER Victor added the comment: > It seems there might be mismatch between sqlite3_libversion() and > SQLITE_VERSION. I am not familiar with the buildbots but can you run a test > that check that sqlite3_libversion() == SQLITE_VERSION? The Python sqlite3 exports sqlite3_libversion() as

Re: Bigotry (you win, I give up)

2017-04-21 Thread Ethan Furman
On 04/21/2017 06:33 AM, Ethan Furman wrote: On 04/21/2017 03:38 AM, breamore...@gmail.com wrote: Talking of signatures another of Robert L's beauties landed three or so hours ago. He really is a right little charmer :-( Not on the Python Mailing List. I see one of them made it through.

Re: Bigotry (you win, I give up)

2017-04-21 Thread breamoreboy
On Friday, April 21, 2017 at 2:33:03 PM UTC+1, Ethan Furman wrote: > On 04/21/2017 03:38 AM, breamoreboy wrote: > > > Talking of signatures another of Robert L's beauties landed three or so > > hours ago. He really is a right little charmer :-( > > Not on the Python Mailing List. > > -- >

[issue30124] Fix C aliasing issue in Python/dtoa.c to use strict aliasing on Clang 4.0

2017-04-21 Thread Eric V. Smith
Eric V. Smith added the comment: I agree we shouldn't do anything heroic to "fix" dtoa.c. I'd wait and see if Gay (or other maintainers) will chose an approach if Clang keeps this behavior. At most, I think Mark's idea to use -fno-strict-aliasing only on dtoa.c and nowhere else would be the

  1   2   >