Re: auto-correct a speech-to-text output and relate to of the words based on syllables

2018-02-01 Thread Steven D'Aprano
On Fri, 02 Feb 2018 08:14:03 +0100, dieter wrote: >> The user speaks "Light". The system translates it as "Bright" The user >> speaks "White" The system translates it as "Bright" > > As those words are phonetically quite apart (they have very different > first consonants), some step in your proce

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread dieter
jlada...@itu.edu writes: > ... > Let me ask those of you who are not using Google Groups: how do you search? > In my experience, searching through mailing list archives has been poor. I am using "gmane.org" which has quite a good search (in my view). Not sure, whether "gmane.org" hosts "your" ne

Re: auto-correct a speech-to-text output and relate to of the words based on syllables

2018-02-01 Thread dieter
nav...@emagevisionpl.com writes: > I have to make an application in which, > > The user asks a question, Google's API is used to convert the speech to text. > But the problem is due to different accent the translator misunderstands the > words. > I want my application to guess the word to the

Re: Dependency injection: overriding defaults

2018-02-01 Thread dieter
Kushal Kumaran writes: > Victor Porton writes: >> dieter wrote: > ... >>> I would distinguish between the common library and distinct >>> applications (command line utility, daemon). The applications >>> configure the logging system (differently) while the library uses >>> uniform logging calls.

Re: Trace back error just trying to run a simple import of requests

2018-02-01 Thread Cameron Simpson
On 02Feb2018 02:01, William Sewell wrote: It is allright. I just cannot account for the sudden change. In my usual path everything worked fine. Now, I have to navigate to where the Python executable, even though I have added the path to the Windows path. Unfortunately I'm not an expert in

RE: Trace back error just trying to run a simple import of requests

2018-02-01 Thread William Sewell
It is allright. I just cannot account for the sudden change. In my usual path everything worked fine. Now, I have to navigate to where the Python executable, even though I have added the path to the Windows path. Please close my case. Dr. William Sewell Direct Line: 385.428.5377 Toll Free:

Re: Trace back error just trying to run a simple import of requests

2018-02-01 Thread Cameron Simpson
On 01Feb2018 20:26, William Sewell wrote: My python script which I run daily just blew up. So, I went into python to diagnose and just typed in the first line - import requests. I received screenfulls of errors. Why? What could have happened when nothing changed on my end? The traceback

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread Cameron Simpson
On 01Feb2018 15:48, jlada...@itu.edu wrote: On Thursday, February 1, 2018 at 9:07:15 AM UTC-8, alister wrote: simple solution stop using google groups & use either the mailing list or a news server with an NNTP client Sigh. I've been on Usenet since 1986. Is this how it ends? I will move i

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread Steven D'Aprano
On Thu, 01 Feb 2018 15:48:36 -0800, jladasky wrote: > Let me ask those of you who are not using Google Groups: how do you > search? In my experience, searching through mailing list archives has > been poor. https://duckduckgo.com/?q=site%3Amail.python.org+searching+through+mailing+list+archives

Re: Trace back error just trying to run a simple import of requests

2018-02-01 Thread MRAB
On 2018-02-01 22:32, Grant Edwards wrote: On 2018-02-01, William Sewell wrote: My python script which I run daily just blew up. So, I went into python to diagnose and just typed in the first line - import requests. I received screenfulls of errors. Why? What could have happened when nothin

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread jladasky
On Thursday, February 1, 2018 at 9:07:15 AM UTC-8, alister wrote: > simple solution stop using google groups & use either the mailing list or > a news server with an NNTP client Sigh. I've been on Usenet since 1986. Is this how it ends? I will move if I must. Let me ask those of you who are

Re: Trace back error just trying to run a simple import of requests

2018-02-01 Thread Steven D'Aprano
On Thu, 01 Feb 2018 20:26:20 +, William Sewell wrote: > My python script which I run daily just blew up. So, I went into python > to diagnose and just typed in the first line - import requests. I > received screenfulls of errors. Why? What could have happened when > nothing changed on my e

Re: Trace back error just trying to run a simple import of requests

2018-02-01 Thread Grant Edwards
On 2018-02-01, William Sewell wrote: > My python script which I run daily just blew up. So, I went into > python to diagnose and just typed in the first line - import > requests. I received screenfulls of errors. Why? What could have > happened when nothing changed on my end? The traceback i

Re: for info

2018-02-01 Thread Dan Stromberg
On Wed, Jan 31, 2018 at 7:55 AM, wrote: > from where we learn python for free of cost. i am begineer in python.plzz > help me If you already know another programming language: https://wiki.python.org/moin/BeginnersGuide/Programmers If you're making Python your first language: https://wiki.pyth

RE: Trace back error just trying to run a simple import of requests

2018-02-01 Thread William Sewell
My python script which I run daily just blew up. So, I went into python to diagnose and just typed in the first line - import requests. I received screenfulls of errors. Why? What could have happened when nothing changed on my end? The traceback is copied below. [cid:image001.png@01D39B71

Re: Dependency injection: overriding defaults

2018-02-01 Thread Kushal Kumaran
Victor Porton writes: > dieter wrote: > >> Victor Porton writes: >> >>> I am writing a library, a command line utility which uses the library, >>> and a I am going to use dependency_injector package. >>> >>> Consider loggers: >>> >>> For the core library the logger should default to stderr. >>>

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread Pete Forman
mark...@gmail.com writes: > On Thursday, February 1, 2018 at 6:01:58 PM UTC+1, superchromix wrote: >> Our own programming discussion newsgroup, located at >> comp.lang.idl-pvwave, started receiving spam messages several months >> ago. >> >> Two weeks ago, access to comp.lang.idl-pvwave was blocked

Re: Problem with coroutines old-style / new-style usage and features

2018-02-01 Thread Yahya Abou 'Imran via Python-list
>> @asyncio.coroutine >> def recorder(): >> dialog = [] >> while True: >> sent = yield dialog >> if sent is not None: >> name, things = sent >> dialog.append(f'{name} says : {things}') >This is not an asyncio coroutine. This is just a normal generator that > you're sending to. So you should probabl

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread Grant Edwards
On 2018-02-01, Jan van den Broek wrote: > On 2018-02-01, superchromix wrote: >> >> Our own programming discussion newsgroup, located at >> comp.lang.idl-pvwave, started receiving spam messages several >> months ago. >> >> Two weeks ago, access to comp.lang.idl-pvwave was blocked by Google >> Grou

Re: Problem with coroutines old-style / new-style usage and features

2018-02-01 Thread Ian Kelly
On Thu, Feb 1, 2018 at 5:38 AM, Yahya Abou 'Imran via Python-list wrote: > Hi guys. > > I am discovering coroutines and asynchronous programming, and I have a little > problem with a little example I'm coding myself as an excercice. > > Let say you take two guys in the street: Dave and Bryan. > Y

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread Jan van den Broek
On 2018-02-01, superchromix wrote: > > Our own programming discussion newsgroup, located at comp.lang.idl-pvwave, >started receiving spam messages several months ago. > > Two weeks ago, access to comp.lang.idl-pvwave was blocked by Google Groups. > > When trying to access comp.lang.idl-pvwave,

Re: Create an alias to an attribute on superclass

2018-02-01 Thread Ben Finney
Sean DiZazzo writes: > I basically just want to create an alias to an attribute on an item's > superclass. This description – “attribute on an item's superclass” – does not match what you have described in the rest of the message. Note the difference between an attribute ‘spam’ on a class ‘Lore

Re: Create an alias to an attribute on superclass

2018-02-01 Thread Sean DiZazzo
On Thursday, February 1, 2018 at 10:23:06 AM UTC-8, Sean DiZazzo wrote: > Hi! > > I basically just want to create an alias to an attribute on an item's > superclass. So that after I create the subclass object, I can access the > alias attribute to get the value back. > > > class Superclass(ob

Re: Create an alias to an attribute on superclass

2018-02-01 Thread Ian Kelly
On Thu, Feb 1, 2018 at 11:44 AM, Sean DiZazzo wrote: > On Thursday, February 1, 2018 at 10:37:32 AM UTC-8, Chris Angelico wrote: >> On Fri, Feb 2, 2018 at 5:22 AM, Sean DiZazzo wrote: >> > Hi! >> > >> > I basically just want to create an alias to an attribute on an item's >> > superclass. So th

Re: Create an alias to an attribute on superclass

2018-02-01 Thread Chris Angelico
On Fri, Feb 2, 2018 at 5:44 AM, Sean DiZazzo wrote: > On Thursday, February 1, 2018 at 10:37:32 AM UTC-8, Chris Angelico wrote: >> On Fri, Feb 2, 2018 at 5:22 AM, Sean DiZazzo wrote: >> > Hi! >> > >> > I basically just want to create an alias to an attribute on an item's >> > superclass. So tha

Re: Create an alias to an attribute on superclass

2018-02-01 Thread Sean DiZazzo
On Thursday, February 1, 2018 at 10:37:32 AM UTC-8, Chris Angelico wrote: > On Fri, Feb 2, 2018 at 5:22 AM, Sean DiZazzo wrote: > > Hi! > > > > I basically just want to create an alias to an attribute on an item's > > superclass. So that after I create the subclass object, I can access the > >

Re: Create an alias to an attribute on superclass

2018-02-01 Thread Chris Angelico
On Fri, Feb 2, 2018 at 5:22 AM, Sean DiZazzo wrote: > Hi! > > I basically just want to create an alias to an attribute on an item's > superclass. So that after I create the subclass object, I can access the > alias attribute to get the value back. > > > class Superclass(object): > def __in

Create an alias to an attribute on superclass

2018-02-01 Thread Sean DiZazzo
Hi! I basically just want to create an alias to an attribute on an item's superclass. So that after I create the subclass object, I can access the alias attribute to get the value back. class Superclass(object): def __init__(self, value): """ I want to pass x by refere

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread mm0fmf
On 01/02/2018 17:15, Chris Angelico wrote: On Fri, Feb 2, 2018 at 4:01 AM, superchromix wrote: Our own programming discussion newsgroup, located at comp.lang.idl-pvwave, started receiving spam messages several months ago. Two weeks ago, access to comp.lang.idl-pvwave was blocked by Google Gr

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread Chris Angelico
On Fri, Feb 2, 2018 at 4:50 AM, wrote: > On Thursday, February 1, 2018 at 6:01:58 PM UTC+1, superchromix wrote: >> Our own programming discussion newsgroup, located at comp.lang.idl-pvwave, >> started receiving spam messages several months ago. >> >> Two weeks ago, access to comp.lang.idl-pvwave

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread markb77
On Thursday, February 1, 2018 at 6:01:58 PM UTC+1, superchromix wrote: > Our own programming discussion newsgroup, located at comp.lang.idl-pvwave, > started receiving spam messages several months ago. > > Two weeks ago, access to comp.lang.idl-pvwave was blocked by Google Groups. > > When try

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread markb77
On Thursday, February 1, 2018 at 6:22:22 PM UTC+1, Jack Dangler wrote: > On 02/01/2018 12:06 PM, alister via Python-list wrote: > > On Thu, 01 Feb 2018 09:01:35 -0800, superchromix wrote: > > > >> Our own programming discussion newsgroup, located at > >> comp.lang.idl-pvwave, started receiving spam

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread Chris Angelico
On Fri, Feb 2, 2018 at 4:01 AM, superchromix wrote: > > Our own programming discussion newsgroup, located at comp.lang.idl-pvwave, > started receiving spam messages several months ago. > > Two weeks ago, access to comp.lang.idl-pvwave was blocked by Google Groups. > > When trying to access comp.l

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread Tim Golden
On 01/02/2018 17:01, superchromix wrote: Our own programming discussion newsgroup, located at comp.lang.idl-pvwave, started receiving spam messages several months ago. Two weeks ago, access to comp.lang.idl-pvwave was blocked by Google Groups. When trying to access comp.lang.idl-pvwave, a mess

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread Jack Dangler
On 02/01/2018 12:06 PM, alister via Python-list wrote: On Thu, 01 Feb 2018 09:01:35 -0800, superchromix wrote: Our own programming discussion newsgroup, located at comp.lang.idl-pvwave, started receiving spam messages several months ago. Two weeks ago, access to comp.lang.idl-pvwave was bloc

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread alister via Python-list
On Thu, 01 Feb 2018 09:01:35 -0800, superchromix wrote: > Our own programming discussion newsgroup, located at > comp.lang.idl-pvwave, started receiving spam messages several months > ago. > > Two weeks ago, access to comp.lang.idl-pvwave was blocked by Google > Groups. > > When trying to access

This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread superchromix
Our own programming discussion newsgroup, located at comp.lang.idl-pvwave, started receiving spam messages several months ago. Two weeks ago, access to comp.lang.idl-pvwave was blocked by Google Groups. When trying to access comp.lang.idl-pvwave, a message is now displayed, stating that the

Re: Dependency injection: overriding defaults

2018-02-01 Thread Victor Porton
dieter wrote: > Victor Porton writes: > >> I am writing a library, a command line utility which uses the library, >> and a I am going to use dependency_injector package. >> >> Consider loggers: >> >> For the core library the logger should default to stderr. >> >> For the command line utility, we

Problem with coroutines old-style / new-style usage and features

2018-02-01 Thread Yahya Abou 'Imran via Python-list
Hi guys. I am discovering coroutines and asynchronous programming, and I have a little problem with a little example I'm coding myself as an excercice. Let say you take two guys in the street: Dave and Bryan. You ask dave to count from 1 to 50, 1 by 1. He will do it fast. And you ask Bryan to co

Re: for info

2018-02-01 Thread Mario R. Osorio
On Wednesday, January 31, 2018 at 10:55:59 AM UTC-5, M.Haroon Ali wrote: > from where we learn python for free of cost. i am begineer in python.plzz > help me And after you're done with the OFFICIAL tutorials; there thousands of excellent free tutorials online. Just do some research. If you're

Re: PyPy support breaking CPython compatibility?

2018-02-01 Thread Etienne Robillard
Le 2018-01-31 à 05:21, Ned Batchelder a écrit : On 1/30/18 3:58 PM, Etienne Robillard wrote: Hi Ned, Le 2018-01-30 à 15:14, Ned Batchelder a écrit : I'm curious what you had to change for PyPy? (Unless it's a Py2/Py3 thing as Chris mentions.) Please take a look at the changesets: https:

auto-correct a speech-to-text output and relate to of the words based on syllables

2018-02-01 Thread naveen
Hi, I have to make an application in which, The user asks a question, Google's API is used to convert the speech to text. But the problem is due to different accent the translator misunderstands the words. I want my application to guess the word to the nearest word spoken by the user. When t