[issue33955] Implement PyOS_CheckStack on macOS using pthread_get_stack*_np

2018-07-13 Thread Dong-hee Na
Dong-hee Na added the comment: FYI, I've updated the patch to use rlim_cur() on the main thread when pthread_get_stacksize_np() is not accurate. This way works pretty well on my local machine. Enjoy your travel! -- ___ Python tracker

Re: Kindness

2018-07-13 Thread Abdur-Rahmaan Janhangeer
is Bart here the same as python-commiters? Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ -- https://mail.python.org/mailman/listinfo/python-list

Re: Kindness

2018-07-13 Thread Steven D'Aprano
On Sat, 14 Jul 2018 00:45:00 +0300, Marko Rauhamaa wrote: > Chris Angelico : >> Oh, sorry, I mean "how Python lacks basic features that your language >> just happens to tick all the boxes on". People who come in and ask >> genuine questions about Python seem to find the group far more >>

[issue34087] int(s), float(s) and others may cause segmentation fault

2018-07-13 Thread INADA Naoki
Change by INADA Naoki : -- pull_requests: +7815 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34087] int(s), float(s) and others may cause segmentation fault

2018-07-13 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 ___ Python tracker ___

[issue34087] int(s), float(s) and others may cause segmentation fault

2018-07-13 Thread miss-islington
miss-islington added the comment: New changeset c721472fb83d1f7c7606bcf33ba2d42d6127a764 by Miss Islington (bot) in branch '3.7': bpo-34087: Fix buffer overflow in int(s) and similar functions (GH-8274) https://github.com/python/cpython/commit/c721472fb83d1f7c7606bcf33ba2d42d6127a764

os with python[s]

2018-07-13 Thread Edward Montague
I encounter numerous problems when changing between versions of python ; one possible answer , Fedora 28 Labs python . So far this has been fairly reliable , I installed Geany , as this is my preferred editor for Python. -- https://mail.python.org/mailman/listinfo/python-list

[issue34087] int(s), float(s) and others may cause segmentation fault

2018-07-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +7814 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34087] int(s), float(s) and others may cause segmentation fault

2018-07-13 Thread INADA Naoki
INADA Naoki added the comment: New changeset 16dfca4d829e45f36e71bf43f83226659ce49315 by INADA Naoki in branch 'master': bpo-34087: Fix buffer overflow in int(s) and similar functions (GH-8274) https://github.com/python/cpython/commit/16dfca4d829e45f36e71bf43f83226659ce49315 --

Re: Kindness

2018-07-13 Thread boB Stepp
On Fri, Jul 13, 2018 at 7:54 PM Steven D'Aprano wrote: > It's not helped by do-gooders who by their own admission have no idea of > the context sticking their nose in to tell off those who chastise Bart... I'm not sure if I am one of the "do-gooders" or not in your perspective, Steve. I have

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Terry Reedy
On 7/13/2018 9:54 AM, Nicholas Cole wrote: Is it irrational to wonder whether projects should be looking to migrate to new languages? At this point, I would say yes. The immediate effect is no more PEP approvals for maybe 3 months. This kind of announcement makes me worry for the future.

Kindness

2018-07-13 Thread Mikhail V
Steven D'Aprano wrote: > Over the many months, I've tried defending Bart, engaging with him, > patiently explaining that his choices and our choices are not always the > same and that there's no objective "right" and "wrong" between them, > making subtle hints, and less subtle hints that he's

Re: Cult-like behaviour [was Re: Kindness]

2018-07-13 Thread Steven D'Aprano
On Fri, 13 Jul 2018 17:48:15 -0700, dbd wrote: > On Friday, July 13, 2018 at 4:59:06 PM UTC-7, Steven D'Aprano wrote: ... >> I think that Marko sometimes likes to stir the ants nest by looking >> down at the rest of us and painting himself as the Lone Voice Of Sanity >> in a community gone mad

Re: Kindness

2018-07-13 Thread Steven D'Aprano
On Fri, 13 Jul 2018 19:52:45 +0100, Rhodri James wrote: > Honestly, I don't know why anybody bothers responding to him. Boredom, > I suppose. I respond to Bart because I recognise he does bring a perspective and experience to the community which many of us lack. That makes his troll-like

Re: Cult-like behaviour [was Re: Kindness]

2018-07-13 Thread dbd
On Friday, July 13, 2018 at 4:59:06 PM UTC-7, Steven D'Aprano wrote: ... > I think that Marko sometimes likes to stir the ants nest by looking down > at the rest of us and painting himself as the Lone Voice Of Sanity in a > community gone mad *wink* ... You mean he thinks he's Ranting Rick?

[issue33361] readline() + seek() on codecs.EncodedFile breaks next readline()

2018-07-13 Thread Ammar Askar
Change by Ammar Askar : -- keywords: +patch pull_requests: +7813 stage: -> patch review ___ Python tracker ___ ___

[issue30400] Race condition in shutil.copyfile(): source file replaced file during copy

2018-07-13 Thread Preston Moore
Preston Moore added the comment: I like Victor's idea for updating public functions to support file descriptors. I could submit a patch for this instead if desired. In the meantime, I've updated the pull request for this issue so the patch I originally created that compares inode numbers

Re: Cult-like behaviour [was Re: Kindness]

2018-07-13 Thread Chris Angelico
On Sat, Jul 14, 2018 at 9:56 AM, Steven D'Aprano wrote: > On Fri, 13 Jul 2018 19:04:39 -0400, D'Arcy Cain wrote: > >> On 2018-07-13 05:45 PM, Marko Rauhamaa wrote: >>> Yeah, that is cult behavior. Here's a few boxes to tick on: >>> >>>http://www.csj.org/infoserv_cult101/checklis.htm> >> >> I

Re: Kindness

2018-07-13 Thread Steven D'Aprano
On Sat, 14 Jul 2018 00:45:00 +0300, Marko Rauhamaa wrote: > Chris Angelico : > >> On Sat, Jul 14, 2018 at 7:16 AM, Bart wrote: >>> This group is openly hostile and unwelcoming. >> >> Have you noticed how a lot of the hostility seems to happen shortly >> after you make your posts about how

Re: Kindness

2018-07-13 Thread Bart
On 13/07/2018 22:28, Chris Angelico wrote: On Sat, Jul 14, 2018 at 7:16 AM, Bart wrote: This group is openly hostile and unwelcoming. Have you noticed how a lot of the hostility seems to happen shortly after you make your posts about how Python sucks compared to your nameless and unpublished

Cult-like behaviour [was Re: Kindness]

2018-07-13 Thread Steven D'Aprano
On Fri, 13 Jul 2018 19:04:39 -0400, D'Arcy Cain wrote: > On 2018-07-13 05:45 PM, Marko Rauhamaa wrote: >> Yeah, that is cult behavior. Here's a few boxes to tick on: >> >>http://www.csj.org/infoserv_cult101/checklis.htm> > > I couldn't find a single item that applies to this group. What's

[issue32430] Simplify Modules/Setup{,.dist,.local}

2018-07-13 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Kindness

2018-07-13 Thread D'Arcy Cain
On 2018-07-13 05:45 PM, Marko Rauhamaa wrote: > Yeah, that is cult behavior. Here's a few boxes to tick on: > >http://www.csj.org/infoserv_cult101/checklis.htm> I couldn't find a single item that applies to this group. What's your point? -- D'Arcy J.M. Cain Vybe Networks Inc.

[issue34110] cPickle may raise AttributeError when loading concurrently in threads

2018-07-13 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- versions: +Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list

[issue34110] cPickle may raise AttributeError when loading concurrently in threads

2018-07-13 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This behaviour also happens on the current master. -- nosy: +pablogsal ___ Python tracker ___

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Rich Shepard
On Fri, 13 Jul 2018, Marko Rauhamaa wrote: The Netherlands is a latter-day innovation. Holland is the central region of the Netherlands. Compare that with the UK and England. As for why they are called Dutch, see https://www.etymonline.com/word/Dutch> Generally Germanic peoples called

[issue32584] Uninitialized free_extra in code_dealloc

2018-07-13 Thread Brett Cannon
Brett Cannon added the comment: co_extra_freefuncs is an array of pointers, so there's no way for it to be uninitialized unless you didn't initialize the interpreter state (https://github.com/python/cpython/blob/b193fa996a746111252156f11fb14c12fd6267e6/Include/pystate.h#L155). And looking

So assignment expressions in generators…

2018-07-13 Thread ΤΖΩΤΖΙΟΥ
Self correction: assignment expressions in generator comprehensions inside a function body. -- https://mail.python.org/mailman/listinfo/python-list

So assignment expressions in generators…

2018-07-13 Thread ΤΖΩΤΖΙΟΥ
…will normally issue STORE_DEREF opcodes for the assignment? This is what I understand from reading PEP-572, just wanted to ask whether I got it right. Example of what I'm referring to: def f(): return ( (s := x*x) for x in range(5)) -- https://mail.python.org/mailman/listinfo/python-list

Re: Kindness

2018-07-13 Thread Marko Rauhamaa
Chris Angelico : > On Sat, Jul 14, 2018 at 7:16 AM, Bart wrote: >> This group is openly hostile and unwelcoming. > > Have you noticed how a lot of the hostility seems to happen shortly > after you make your posts about how Python sucks compared to your > nameless and unpublished language?

[issue33073] Add as_integer_ratio() to int() objects

2018-07-13 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33073] Add as_integer_ratio() to int() objects

2018-07-13 Thread Guido van Rossum
Guido van Rossum added the comment: I assume it's decided what to do -- it may not be easy to do it, but I wouldn't call it controversial at this point. -- ___ Python tracker

[issue34037] asyncio: BaseEventLoop.close() shutdowns the executor without waiting causing leak of dangling threads

2018-07-13 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34102] None.splitlines raises AttributeError in email.feedparser

2018-07-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: What you can do is report to pip and ansible-lint that there is a bug somewhere in one of the two packages, or try to figure out which and report it to one of them. -- ___ Python tracker

[issue34102] None.splitlines raises AttributeError in email.feedparser

2018-07-13 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: local variable 'parts' referenced before assignment in feedparser in email module -> None.splitlines raises AttributeError in email.feedparser ___ Python tracker

[issue34102] local variable 'parts' referenced before assignment in feedparser in email module

2018-07-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: An exception is not a crash. An intended exception is not even a bug. A bug is a discrepancy between behavior and doc. In this case, email.parser.Feedparser is imported from email.feedparser. Its doc

Re: Kindness

2018-07-13 Thread Chris Angelico
On Sat, Jul 14, 2018 at 7:16 AM, Bart wrote: > This group is openly hostile and unwelcoming. Have you noticed how a lot of the hostility seems to happen shortly after you make your posts about how Python sucks compared to your nameless and unpublished language? Oh, sorry, I mean "how Python

Re: Kindness

2018-07-13 Thread Bart
On 13/07/2018 21:43, Marko Rauhamaa wrote: Ethan Furman : Does anything good come from engaging with Bart? I haven't seen it yet. Seems to me the solution is not to engage. He must be a very lonely person as he keeps coming here for repeated beatings from the regulars. You are admitting

[issue33361] readline() + seek() on codecs.EncodedFile breaks next readline()

2018-07-13 Thread Diego Argueta
Diego Argueta added the comment: Bug still present in 3.7.0, now seeing it in 3.8.0a0 as well. -- versions: +Python 3.8 ___ Python tracker ___

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Marko Rauhamaa
Larry Martell : > And while we're talking about the Dutch, why is the country called > Holland, but then also The Netherlands, but the people are Dutch? The Netherlands is a latter-day innovation. Holland is the central region of the Netherlands. Compare that with the UK and England. As for why

[issue34100] Same constants in tuples are not merged while compile()

2018-07-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think (space) 'performance' would be a better label, as this is strictly an implementation improvement, not a language change. But we often (usually? sometimes?) limit performance improvements to the 'next version' so we have the alpha/beta/candidate

[issue34107] root.warning('msg') output format modified by logging.warning('msg')

2018-07-13 Thread Michael Kearney
Michael Kearney added the comment: Thanks for the clarification and doc pointers. I saw "lastResort" attribute in the code but had not fully understood what was going on. I am not certain I really do now, but that's ok. That's why we read docs, read and write code. Eventually it starts

Re: Kindness

2018-07-13 Thread Ethan Furman
On 07/13/2018 11:52 AM, Rhodri James wrote: I should point out that the number of people I have killfiled in all my > Internet dealings can be counted on the fingers of one hand. Your left one? * -- ~Ethan~ * Bonus points for getting the reference. ;) --

[issue34095] [2.7] test_idle fails with: /usr/bin/xvfb-run: line 181: 3617 Segmentation fault

2018-07-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think we should first determine whether xvfb is required to get the segfault, and second, where it fails. Does -m test.regrtest -v -m test_io test_idle fail and fail in the same place, the 11th and last test run in the module? If not, what about

Re: Kindness

2018-07-13 Thread Rhodri James
On 13/07/18 19:27, Devin Jeanpierre wrote: On Fri, Jul 13, 2018 at 10:49 AM Mark Lawrence wrote: On 13/07/18 16:16, Bart wrote: On 13/07/2018 13:33, Steven D'Aprano wrote: On Fri, 13 Jul 2018 11:37:41 +0100, Bart wrote: (** Something so radical I've been using them elsewhere since

[issue21446] Update reload fixer to use importlib instead of imp

2018-07-13 Thread Brett Cannon
Brett Cannon added the comment: I would still fix it as I suspect there will be a burst of users of this come 2020 and at this point it won't be a compatibility issue going forward since 3.4 is so old. :) -- ___ Python tracker

[issue34108] 2to3 munges new lines on Windows

2018-07-13 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34108] 2to3 munges new lines on Windows

2018-07-13 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset cf21d0031dd84544d4108765553c2b03dfe726c5 by Jason R. Coombs (Miss Islington (bot)) in branch '3.7': bpo-34108: Fix double carriage return in 2to3 on Windows (GH-8271) (#8275)

Re: Kindness

2018-07-13 Thread Ethan Furman
On 07/13/2018 11:37 AM, Steven D'Aprano wrote: On Fri, 13 Jul 2018 11:27:29 -0700, Devin Jeanpierre wrote: [a reminder to be kind] [ignored the reminder] Does anything good come from engaging with Bart? I haven't seen it yet. Seems to me the solution is not to engage. "If you're not

[issue34110] cPickle may raise AttributeError when loading concurrently in threads

2018-07-13 Thread Guoqiang Zhang
Change by Guoqiang Zhang : -- keywords: +patch pull_requests: +7812 stage: -> patch review ___ Python tracker ___ ___

[issue27741] datetime.datetime.strptime functionality description incorrect

2018-07-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The same part repeated at https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior can also be corrected. It seems both of them use _strptime which returns microseconds but only datetime.datetime.strptime uses it with

Re: Kindness

2018-07-13 Thread Steven D'Aprano
On Fri, 13 Jul 2018 11:27:29 -0700, Devin Jeanpierre wrote: > I don't know who Bart is or what their language is Or apparently any of the context of the last six months (nine? twelve? how long has Bart been annoying people here? practically since his first post) of his interaction with the

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Larry Martell
On Fri, Jul 13, 2018 at 2:26 PM, Chris Angelico wrote: > On Sat, Jul 14, 2018 at 4:14 AM, Larry Martell > wrote: >> On Fri, Jul 13, 2018 at 2:05 PM, Chris Angelico wrote: >>> On Sat, Jul 14, 2018 at 3:37 AM, Alexandre Brault >>> wrote: The important question we should ask ourselves: Do

[issue34110] cPickle may raise AttributeError when loading concurrently in threads

2018-07-13 Thread Guoqiang Zhang
New submission from Guoqiang Zhang : If two threads use cPickle to load objects simultaneously, one thread may raise an AttributeError. This problem is caused by the partially loaded module. To reproduce, create a file 'foo.py': import time time.sleep(0.1) class foo(): pass Then in

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Chris Angelico
On Sat, Jul 14, 2018 at 4:14 AM, Larry Martell wrote: > On Fri, Jul 13, 2018 at 2:05 PM, Chris Angelico wrote: >> On Sat, Jul 14, 2018 at 3:37 AM, Alexandre Brault >> wrote: >>> The important question we should ask ourselves: Do we have a replacement >>> Dutch person to figure out the one

Kindness

2018-07-13 Thread Devin Jeanpierre
On Fri, Jul 13, 2018 at 10:49 AM Mark Lawrence wrote: > > On 13/07/18 16:16, Bart wrote: > > On 13/07/2018 13:33, Steven D'Aprano wrote: > >> On Fri, 13 Jul 2018 11:37:41 +0100, Bart wrote: > >> > >>> (** Something so radical I've been using them elsewhere since forever.) > >> > >> And you just

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Larry Martell
On Fri, Jul 13, 2018 at 2:05 PM, Chris Angelico wrote: > On Sat, Jul 14, 2018 at 3:37 AM, Alexandre Brault > wrote: >> The important question we should ask ourselves: Do we have a replacement >> Dutch person to figure out the one obvious way to do things that may not >> be obvious at first? >>

[issue34063] binhex REASONABLY_LARGE = 32768 so what is 128000

2018-07-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I tried changing it to REASONABLY_LARGE and could see no test failures. It seems the literal was added as part of a220e67a9ed94d66b81e393a3bb9e6acd10068c1 (23/03/1996) and REASONABLY_LARGE was before that as added part of

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Chris Angelico
On Sat, Jul 14, 2018 at 3:37 AM, Alexandre Brault wrote: > The important question we should ask ourselves: Do we have a replacement > Dutch person to figure out the one obvious way to do things that may not > be obvious at first? > We'll use distributed computing.. I, for example, had two Dutch

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Alexandre Brault
The important question we should ask ourselves: Do we have a replacement Dutch person to figure out the one obvious way to do things that may not be obvious at first? Alex -- https://mail.python.org/mailman/listinfo/python-list

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Mark Lawrence
On 13/07/18 16:16, Bart wrote: On 13/07/2018 13:33, Steven D'Aprano wrote: On Fri, 13 Jul 2018 11:37:41 +0100, Bart wrote: (** Something so radical I've been using them elsewhere since forever.) And you just can't resist making it about you and your language. And you can't resist having a

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Mark Lawrence
On 13/07/18 17:14, Mario R. Osorio wrote: On Friday, July 13, 2018 at 11:16:44 AM UTC-4, Bart wrote: On 13/07/2018 13:33, Steven D'Aprano wrote: On Fri, 13 Jul 2018 11:37:41 +0100, Bart wrote: You've made it a current affair issue... Please don't feed the troll, it's obvious that he's

[issue34109] Accumulator bug

2018-07-13 Thread Victor Pires
Victor Pires added the comment: Sorry, you are right -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue34109] Accumulator bug

2018-07-13 Thread Victor Pires
Change by Victor Pires : Removed file: https://bugs.python.org/file47689/Bug.html ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34109] Accumulator bug

2018-07-13 Thread Tim Peters
Tim Peters added the comment: ? I expect your code to return -1 about once per 7**4 = 2401 times, which would be about 400 times per million tries, which is what your output shows. If you start with -5, and randint(1, 7) returns 1 four times in a row, r5 is left at -5 + 4 = -1. --

[issue34109] Accumulator bug

2018-07-13 Thread Victor Pires
New submission from Victor Pires : A function to return a number from 1 to 5 (inclusive) sometimes returns -1 when called thousands of times. from random import randint import sys def rand5(): """Returns a random integer from 1 to 5 (inclusive)""" r5 = -5 # This *should* accumulate

Re: Google weirdness

2018-07-13 Thread Skip Montanaro
> btw google wants to hide even the mention of it? -- https://mail.python.org/mailman/listinfo/python-list

Re: Google weirdness

2018-07-13 Thread Abdur-Rahmaan Janhangeer
btw google wants to hide even the mention of it? Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ -- https://mail.python.org/mailman/listinfo/python-list

Re: Google weirdness

2018-07-13 Thread Abdur-Rahmaan Janhangeer
exact found it ! thanks ! Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ On Fri, 13 Jul 2018, 20:19 Skip Montanaro, wrote: > > euhh where is the original mail, may i ask? > > Gmail routed the original to my spam folder. > > Skip > --

[issue34066] Possible resource warning in "with open()"

2018-07-13 Thread Jakub Wilk
Change by Jakub Wilk : -- nosy: +jwilk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Google weirdness

2018-07-13 Thread Skip Montanaro
> euhh where is the original mail, may i ask? Gmail routed the original to my spam folder. Skip -- https://mail.python.org/mailman/listinfo/python-list

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Mario R. Osorio
On Friday, July 13, 2018 at 11:16:44 AM UTC-4, Bart wrote: > On 13/07/2018 13:33, Steven D'Aprano wrote: > > On Fri, 13 Jul 2018 11:37:41 +0100, Bart wrote: > > > >> (** Something so radical I've been using them elsewhere since forever.) > > > > And you just can't resist making it about you and

Re: Python 3.6 can find cairo libs but not Python 2.7

2018-07-13 Thread Peter Otten
D'Arcy Cain wrote: > On 2018-07-13 10:28 AM, Peter Otten wrote: >> As far as I can see -- without having access to a netbsd machine -- this > > Would it help if I gave you a login on one? Sorry, no. > Interestingly, I don't have this issue on my NetBSD machine built from > HEAD. Maybe it is

[issue34093] Reproducible pyc: FLAG_REF is not stable.

2018-07-13 Thread INADA Naoki
INADA Naoki added the comment: > Would it not be easy to add a named optional keyword > argument, like "stable=True"? My pull request did it. But for now, I get hint on ML and overwrote my PR with another way: Use FLAG_REF for all interned strings. --

[issue34087] int(s), float(s) and others may cause segmentation fault

2018-07-13 Thread Ezio Melotti
Change by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34087] int(s), float(s) and others may cause segmentation fault

2018-07-13 Thread INADA Naoki
INADA Naoki added the comment: When I commented out the fix: $ ./python -c 'int("こんにちは")' python: Objects/unicodeobject.c:484: _PyUnicode_CheckConsistency: Assertion `PyUnicode_READ(kind, data, ascii->length) == 0' failed. Aborted I added this to test cases. --

Re: Google weirdness

2018-07-13 Thread Abdur-Rahmaan Janhangeer
euhh where is the original mail, may i ask? Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ On Fri, 13 Jul 2018, 16:42 Steven D'Aprano, < steve+comp.lang.pyt...@pearwood.info> wrote: > On Thu, 12 Jul 2018 22:31:35 -0400, Travis McGee wrote: > > > I somehow managed to trigger the

[issue34075] asyncio: We should prohibit setting a ProcessPoolExecutor in with set_default_executor

2018-07-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree, restricting to ThreadPoolExecutor sounds reasonable. A custom executor may have the same problem as ProcessPoolExecutor. Moreover it can work under same scenarios but crash with other third-party libs. --

EuroPython 2018: Conference App available

2018-07-13 Thread M.-A. Lemburg
We will be switching to the late bird rates for tickets on Monday next week (July 16), so this is your last chance to get tickets at the regular rate, which is about 30% less than the late bird rate. * EuroPython 2018 Tickets *

[issue34108] 2to3 munges new lines on Windows

2018-07-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +7811 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34108] 2to3 munges new lines on Windows

2018-07-13 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset cafaf0447b950fd4f59edd8cbde040c61ae528f8 by Jason R. Coombs in branch 'master': bpo-34108: Fix double carriage return in 2to3 on Windows (#8271) https://github.com/python/cpython/commit/cafaf0447b950fd4f59edd8cbde040c61ae528f8 --

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Bart
On 13/07/2018 13:33, Steven D'Aprano wrote: On Fri, 13 Jul 2018 11:37:41 +0100, Bart wrote: (** Something so radical I've been using them elsewhere since forever.) And you just can't resist making it about you and your language. And you can't resist having a personal dig. You and others

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Nicholas Cole
On Fri, 13 Jul 2018 at 10:31, Jim Oberholtzer wrote: > Nicholas: > > I am relatively new to Python, and my system of choice, IBM i on POWER, > now supports Python directly. The open source movement is so strong that I > think Python will be just fine. I've been a system programmer for 35 >

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Nicholas Cole
On Fri, 13 Jul 2018 at 10:04, Chris Angelico wrote: > On Fri, Jul 13, 2018 at 11:54 PM, Nicholas Cole > wrote: > > Is it irrational to wonder whether projects should be looking to migrate > to > > new languages? This kind of announcement makes me worry for the future. > > > > The Python

[issue32046] 2to3 fix for operator.isCallable()

2018-07-13 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34087] int(s), float(s) and others may cause segmentation fault

2018-07-13 Thread Jonas H.
Jonas H. added the comment: The assertion in the patched code, yes. The segfault in the unpatched code, no. -- ___ Python tracker ___

[issue34087] int(s), float(s) and others may cause segmentation fault

2018-07-13 Thread STINNER Victor
STINNER Victor added the comment: > I don't think this can be tested with Python code, unless you can make sure > the target buffer _PyUnicode_TransformDecimalAndSpaceToASCII operates on is > initialised with garbage bytes. We just have to call float() with a non-ASCII string, no? An

Re: Python 3.6 can find cairo libs but not Python 2.7

2018-07-13 Thread D'Arcy Cain
On 2018-07-13 10:28 AM, Peter Otten wrote: > As far as I can see -- without having access to a netbsd machine -- this Would it help if I gave you a login on one? Interestingly, I don't have this issue on my NetBSD machine built from HEAD. Maybe it is something that was fixed but not pulled up

[issue34087] int(s), float(s) and others may cause segmentation fault

2018-07-13 Thread Jonas H.
Jonas H. added the comment: I don't think this can be tested with Python code, unless you can make sure the target buffer _PyUnicode_TransformDecimalAndSpaceToASCII operates on is initialised with garbage bytes. -- ___ Python tracker

Re: Google weirdness

2018-07-13 Thread Bill Deegan
I also got such. I'm guessing your track record of searches has flagged you as someone they might want to hire. On Fri, Jul 13, 2018 at 5:36 AM, Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > On Thu, 12 Jul 2018 22:31:35 -0400, Travis McGee wrote: > > > I somehow managed to

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Steven D'Aprano
On Fri, 13 Jul 2018 11:37:41 +0100, Bart wrote: > (** Something so radical I've been using them elsewhere since forever.) And you just can't resist making it about you and your language. "Hey Bart, did you hear? Nuclear war just broke out between Russia and Britain. Dozens of cities are

RE: Guido van Rossum resigns as Python leader

2018-07-13 Thread Jim Oberholtzer
Nicholas: I am relatively new to Python, and my system of choice, IBM i on POWER, now supports Python directly. The open source movement is so strong that I think Python will be just fine. I've been a system programmer for 35 years, and this tooling (along with the 1000's APIs that IBM has

Re: Python 3.6 can find cairo libs but not Python 2.7

2018-07-13 Thread Peter Otten
D'Arcy Cain wrote: > On 2018-07-13 08:05 AM, Peter Otten wrote: >> D'Arcy Cain wrote: >>> Nope. Both are 64 bit. >> >> Just to be 100% sure, what does >> >> $ python2.7 -c 'import struct; print(struct.calcsize("l"))' >> >> $ python3.6 -c 'import struct; print(struct.calcsize("l"))' >> >>

[issue34108] 2to3 munges new lines on Windows

2018-07-13 Thread Jason R. Coombs
Jason R. Coombs added the comment: The regression never got to 3.6, so this issue likely only affects 3.7+. -- versions: -Python 3.6 ___ Python tracker ___

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Chris Angelico
On Fri, Jul 13, 2018 at 11:54 PM, Nicholas Cole wrote: > Is it irrational to wonder whether projects should be looking to migrate to > new languages? This kind of announcement makes me worry for the future. > The Python committers are currently in charge. If you don't trust them, you should have

[issue4260] Document that ctypes.xFUNCTYPE are decorators.

2018-07-13 Thread Berker Peksag
Berker Peksag added the comment: I think we can now close this one. Thanks for the report, David, and thanks for the PR Andreas. (And thanks for creating and maintaining this awesome module for years, Thomas :)) -- resolution: -> fixed stage: patch review -> resolved status: open

Re: variable scope in try ... EXCEPT block.

2018-07-13 Thread Chris Angelico
On Fri, Jul 13, 2018 at 10:43 PM, Ed Kellett wrote: > On 2018-07-12 18:00, Chris Angelico wrote: >> What do you mean by "fix"? Make the 'x' bind eagerly? That would break >> basically every other use of closures. > > No. I mean make each x a new variable--closures would work as before, >

[issue34087] int(s), float(s) and others may cause segmentation fault

2018-07-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is it possible to write a reproducer in Python? The string returned by _PyUnicode_TransformDecimalAndSpaceToASCII() is still a NUL-terminated, but the NUL can be far past the end of the string. -- nosy: +serhiy.storchaka

Re: Guido van Rossum resigns as Python leader

2018-07-13 Thread Nicholas Cole
On Fri, 13 Jul 2018 at 08:51, Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > On Fri, 13 Jul 2018 22:29:29 +1000, Chris Angelico wrote: > > > To be quite frank, the proposal would have quietly died on python-ideas > > if it hadn't been for Guido's explicit support early on. (I

[issue4260] Document that ctypes.xFUNCTYPE are decorators.

2018-07-13 Thread miss-islington
miss-islington added the comment: New changeset 083a836937b734fcc81b2482d2c52825caff0115 by Miss Islington (bot) in branch '3.6': bpo-4260: Document that ctypes.xFUNCTYPE are decorators (GH-7924) https://github.com/python/cpython/commit/083a836937b734fcc81b2482d2c52825caff0115 --

  1   2   >