Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread Steven D'Aprano
On Mon, 29 Jan 2018 21:32:11 -0800, Rustom Mody wrote: > On Sunday, January 28, 2018 at 8:37:11 PM UTC+5:30, Steven D'Aprano > wrote: >> I'm seeing this annoying practice more and more often. Even for trivial >> pieces of text, a few lines, people post screenshots instead of copying >> the code. >

Re: New to Python and understanding problem

2018-01-29 Thread Michelle Konzack
Good morning, Am 2018-01-30 hackte careenjosep...@gmail.com in die Tasten: > One contributing factor to this problem is the artificial environment that > online courses provide to students. Students are usually typing code into > a web page that contains instructions and hints. This is not how rea

Re: New to Python and understanding problem

2018-01-29 Thread careenjoseph36
One contributing factor to this problem is the artificial environment that online courses provide to students. Students are usually typing code into a web page that contains instructions and hints. This is not how real programming gets done. So when the course is over and it’s time to use a real

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread Rustom Mody
On Sunday, January 28, 2018 at 8:37:11 PM UTC+5:30, Steven D'Aprano wrote: > I'm seeing this annoying practice more and more often. Even for trivial > pieces of text, a few lines, people post screenshots instead of copying > the code. > > Where has this meme come from? It seems to be one which i

Re: Variable scope in nested functions

2018-01-29 Thread Prahallad Achar
Thanks Chris, Without using nonlocal any other options available? On 30 Jan 2018 8:30 am, "Chris Angelico" wrote: > On Tue, Jan 30, 2018 at 1:48 PM, Prahallad Achar > wrote: > > def a() : > > Print (value) > > def b() : > > Value = 100 > > Return b > > > > Its a nested func

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread Chris Angelico
On Tue, Jan 30, 2018 at 12:56 PM, Abdur-Rahmaan Janhangeer wrote: > > XD since we were elaborating on the reasons why users use screenshot, well i > was elaborating why users use screenshot, not me. those are some reasons i > came across being admin in some whatsapp groups and python lists (wher

Re: Variable scope in nested functions

2018-01-29 Thread Chris Angelico
On Tue, Jan 30, 2018 at 1:48 PM, Prahallad Achar wrote: > def a() : > Print (value) > def b() : > Value = 100 > Return b > > Its a nested function. How can I use variable value just one function > above the parent function. > This is possible in tcl.. Is it possible in Python

Variable scope in nested functions

2018-01-29 Thread Prahallad Achar
def a() : Print (value) def b() : Value = 100 Return b Its a nested function. How can I use variable value just one function above the parent function. This is possible in tcl.. Is it possible in Python too? -- https://mail.python.org/mailman/listinfo/python-list

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread Abdur-Rahmaan Janhangeer
XD since we were elaborating on the reasons why users use screenshot, well i was elaborating why users use screenshot, not me. those are some reasons i came across being admin in some whatsapp groups and python lists (where the user complains of his attachments not showing).

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread Chris Angelico
On Tue, Jan 30, 2018 at 11:40 AM, Abdur-Rahmaan Janhangeer wrote: > well maybe screenshot of shell sessions to show varying formatted test > cases might be valid (like the increasingly popular practise of coding py > on android) Maybe, but that isn't code. > also, sreenshot sources tend to be sy

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread Abdur-Rahmaan Janhangeer
well maybe screenshot of shell sessions to show varying formatted test cases might be valid (like the increasingly popular practise of coding py on android) also, sreenshot sources tend to be syntax colored which might be easier to read. overall it is a bad idea as you won't have the full code if

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread Ethan Furman
On 01/29/2018 02:41 PM, Steven D'Aprano wrote: On Mon, 29 Jan 2018 11:43:36 -0800, John Ladasky wrote: On Sunday, January 28, 2018 at 7:07:11 AM UTC-8, Steven D'Aprano wrote: (The day a programmer posts a WAV file of themselves reading their code out aloud, is the day I turn my modem off and

Re: String matching based on sound?

2018-01-29 Thread Steven D'Aprano
On Mon, 29 Jan 2018 13:28:32 -0900, Israel Brewster wrote: > In initial searching, I did find the "fuzzy" library, which at first > glance appeared to be what I was looking for, but it, apparently, > ignores numbers, with the result that "all 4 one" gave the same output > as "all in", but NOT the

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread Steven D'Aprano
On Mon, 29 Jan 2018 17:34:34 +, John Gordon wrote: [...] > The displayed filename in File Explorer was input.txt -- meaning that > the real filename was actually input.txt.txt, because File Explorer > shows file extensions as a separate column. > > Without this screenshot, we would have had o

String matching based on sound?

2018-01-29 Thread Israel Brewster
I am working on a python program that, at one step, takes an input (string), and matches it to songs/artists in a users library. I'm having some difficulty, however, figuring out how to match when the input/library contains numbers/special characters. For example, take the group "All-4-One". In

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread Steven D'Aprano
On Mon, 29 Jan 2018 11:43:36 -0800, John Ladasky wrote: > On Sunday, January 28, 2018 at 7:07:11 AM UTC-8, Steven D'Aprano wrote: >> >> (The day a programmer posts a WAV file of themselves reading their code >> out aloud, is the day I turn my modem off and leave the internet >> forever.) > > What

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread Grant Edwards
On 2018-01-29, D'Arcy Cain wrote: > Modems are still around. They have simply evolved from the 300 baud > acoustic coupler. Those did _not_ work well with "trimline" style phones, but you could get by if you wrapped it in a couple towels, stuffed it in a small cooler, and kept the TV volume low

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread Michelle Konzack
Am 2018-01-29 hackte John Ladasky in die Tasten: > On Sunday, January 28, 2018 at 7:07:11 AM UTC-8, Steven D'Aprano wrote: >> >> (The day a programmer posts a WAV file of themselves reading their code >> out aloud, is the day I turn my modem off and leave the internet >> forever.) > > What's a... m

Re: python not working

2018-01-29 Thread Terry Reedy
On 1/29/2018 10:35 AM, Dan Stromberg wrote: Please google for "pythonw.exe system error: The program can't start because api-ms-win-crt-runtime-|1-1-0.dll is missing from your computer. try reinstalling the program to fix this problem.". I believe the Windows binaries for Python are built with

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread D'Arcy Cain
On 01/29/2018 01:43 PM, John Ladasky wrote: > On Sunday, January 28, 2018 at 7:07:11 AM UTC-8, Steven D'Aprano wrote: >> >> (The day a programmer posts a WAV file of themselves reading their code >> out aloud, is the day I turn my modem off and leave the internet forever.) > > What's a... modem?

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread eryk sun
On Mon, Jan 29, 2018 at 7:43 PM, John Ladasky wrote: > On Sunday, January 28, 2018 at 7:07:11 AM UTC-8, Steven D'Aprano wrote: >> >> (The day a programmer posts a WAV file of themselves reading their code >> out aloud, is the day I turn my modem off and leave the internet forever.) > > What's a...

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread eryk sun
On Mon, Jan 29, 2018 at 5:34 PM, John Gordon wrote: > > The displayed filename in File Explorer was input.txt -- meaning that the > real filename was actually input.txt.txt, because File Explorer shows file > extensions as a separate column. One of the first things I do after creating an account

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread Chris Angelico
On Tue, Jan 30, 2018 at 6:43 AM, John Ladasky wrote: > On Sunday, January 28, 2018 at 7:07:11 AM UTC-8, Steven D'Aprano wrote: >> >> (The day a programmer posts a WAV file of themselves reading their code >> out aloud, is the day I turn my modem off and leave the internet forever.) > > What's a...

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread John Ladasky
On Sunday, January 28, 2018 at 7:07:11 AM UTC-8, Steven D'Aprano wrote: > > (The day a programmer posts a WAV file of themselves reading their code > out aloud, is the day I turn my modem off and leave the internet forever.) What's a... modem? -- https://mail.python.org/mailman/listinfo/python-l

Re: New to Python and understanding problem

2018-01-29 Thread Peter Otten
Michelle Konzack wrote: > Hello *, > > because I am runing into problems with SOME python based programs, I the > this as opportunity to learn python (after ASM, C, BaSH, CP/M, COBOL, > JS, PHP and perl). > > > OK, I tried to install "blueman" (Bluetooth Manager) on my Debian 9.2 > (Stret

Re: New to Python and understanding problem

2018-01-29 Thread Michelle Konzack
Hello Dan, Am 2018-01-29 hackte Dan Stromberg in die Tasten: > I don't see blueman on pypi, so this is probably part of the package > you downloaded, and not something you need to "pip3 install". I have Python 2.7 and 3.5 from the Debian GNU/Linux repository installed I use the Stable (Stretch) v

Re: New to Python and understanding problem

2018-01-29 Thread MRAB
On 2018-01-29 17:01, Michelle Konzack wrote: [snip] I think, that I have found the error here: sys.path = [_dirname, os.path.join(_dirname, 'module', '.libs')] + sys.path because there is written in [ '/usr/lib/python-3.5/os.py' ]- To get a full path (w

Re: New to Python and understanding problem

2018-01-29 Thread Dan Stromberg
On Mon, Jan 29, 2018 at 9:01 AM, Michelle Konzack wrote: > OK, I tried to install "blueman" (Bluetooth Manager) on my Debian 9.2 > (Stretch system and discovered a problem: > > [ c 'blueman-applet' ]-- > Traceback (most recent call last): > File

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread John Gordon
In Steven D'Aprano writes: > I'm seeing this annoying practice more and more often. Even for trivial > pieces of text, a few lines, people post screenshots instead of copying > the code. In some (perhaps rare) cases, a screenshot can provide useful independent verification. Such a screensho

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread Peter Pearson
On Sun, 28 Jan 2018 20:24:55 -0800, Dan Stromberg wrote: [snip] > > Is it really true that OCR appeared long before Neural Networks > (NN's)? I first heard of NN's in the 80's, but OCR more like the > 90's. In 1964, the IBM exhibit at the World's Fair in New York demonstrated a system that read

Re: Automation query... Plz help

2018-01-29 Thread Prahallad Achar
Thanks for the kind response. Sure.. Definitely I shall ask development team for the same. Regards Prahallad On 29 Jan 2018 7:48 pm, "Steven D'Aprano" < steve+comp.lang.pyt...@pearwood.info> wrote: > On Mon, 29 Jan 2018 17:50:46 +0530, Prahallad Achar wrote: > > > No.. Not at all. > > > > Its CT

New to Python and understanding problem

2018-01-29 Thread Michelle Konzack
Hello *, because I am runing into problems with SOME python based programs, I the this as opportunity to learn python (after ASM, C, BaSH, CP/M, COBOL, JS, PHP and perl). OK, I tried to install "blueman" (Bluetooth Manager) on my Debian 9.2 (Stretch system and discovered a problem: [

Re: python not working

2018-01-29 Thread Dan Stromberg
Please google for "pythonw.exe system error: The program can't start because api-ms-win-crt-runtime-|1-1-0.dll is missing from your computer. try reinstalling the program to fix this problem.". I believe the Windows binaries for Python are built with a proprietary compiler that requires a separa

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread Rhodri James
On 29/01/18 04:29, Dan Stromberg wrote: On Sun, Jan 28, 2018 at 8:24 PM, Dan Stromberg wrote: If an NN can ... play go on a level that can beat the best human in the world Correcting myself: I think Google's AlphaGo used more than one NN, plus perhaps a little traditional reading algorithm.

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread alister via Python-list
On Mon, 29 Jan 2018 12:17:39 +1300, Gregory Ewing wrote: > Steven D'Aprano wrote: >> (The day a programmer posts a WAV file of themselves reading their code >> out aloud, is the day I turn my modem off and leave the internet >> forever.) > > Shh! Don't give them ideas! just wait, once they reali

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread alister via Python-list
On Mon, 29 Jan 2018 15:20:06 +0100, Jugurtha Hadjar wrote: > On 01/28/2018 04:43 PM, Skip Montanaro wrote: >> I've never been a Windows user, but at my current job, Windows is core >> to just about everything, so I am forced to use it for a lot of stuff >> (Outlook, SQL Server, Excel, etc). > > I

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread alister via Python-list
On Sun, 28 Jan 2018 22:11:12 +, Stefan Ram wrote: > Tim Delaney writes: >>These are support people who are employed by the company I'm contracted >>to. >>Doesn't matter how often I try to train them otherwise, this type of >>thing keeps happening. > > That might be more a problem of power.

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread Jugurtha Hadjar
On 01/28/2018 04:43 PM, Skip Montanaro wrote: I've never been a Windows user, but at my current job, Windows is core to just about everything, so I am forced to use it for a lot of stuff (Outlook, SQL Server, Excel, etc). I was hired at a startup which made a good impression on me and I was ea

Re: Automation query... Plz help

2018-01-29 Thread Steven D'Aprano
On Mon, 29 Jan 2018 17:50:46 +0530, Prahallad Achar wrote: > No.. Not at all. > > Its CTP application.. Which is basically transport planner for networks If you want to know whether CTP can be run headless, you should ask the CTP support team or software maintainer, not Python forums. Do you h

Re: Automation query... Plz help

2018-01-29 Thread Prahallad Achar
No.. Not at all. Its CTP application.. Which is basically transport planner for networks On 29 Jan 2018 5:38 pm, "Steven D'Aprano" < steve+comp.lang.pyt...@pearwood.info> wrote: > On Mon, 29 Jan 2018 16:23:23 +0530, Prahallad Achar wrote: > > > Hello friends, > > > > There is an desktop applicat

Re: Automation query... Plz help

2018-01-29 Thread Steven D'Aprano
On Mon, 29 Jan 2018 16:23:23 +0530, Prahallad Achar wrote: > Hello friends, > > There is an desktop application which runs on Windows and written in > java [...] > Is there a way to run this automation without launching the application > (headless) Is the name of the application a secret? --

Re: Issues while using CallerLookup Package

2018-01-29 Thread Chris Angelico
On Mon, Jan 29, 2018 at 9:52 PM, Mark.luther0987 via Python-list wrote: > I accessed the CallerLookup package from below link > https://pypi.python.org/pypi/CallerLookup > > and faced the following issue- > RESTART: > C:\Users\hp\Desktop\CallerLookup-1.2.94\CallerLookup-1.2.94\CallerLookup\M

Automation query... Plz help

2018-01-29 Thread Prahallad Achar
Hello friends, There is an desktop application which runs on Windows and written in java There is a requirement to automate that application. Am trying with pyautogui but it is very slow and lengthy code to compete. Is there a way to run this automation without launching the application (headle

Issues while using CallerLookup Package

2018-01-29 Thread Mark.luther0987 via Python-list
I accessed the CallerLookup package from below link https://pypi.python.org/pypi/CallerLookup and faced the following issue- >>> RESTART: C:\Users\hp\Desktop\CallerLookup-1.2.94\CallerLookup-1.2.94\CallerLookup\Main.py Traceback (most recent call last): File "C:\Users\hp\Desktop\CallerLookup-

python not working

2018-01-29 Thread Abbas Hans
it shows thepythonw.exe system error: The program can't start because api-ms-win-crt-runtime-|1-1-0.dll is missing from your computer. try reinstalling the program to fix this problem. I reinstall it many times try to repair it is not working -- https://mail.python.org/mailman/listinfo/pyt

Re: IoT automation

2018-01-29 Thread Prahallad Achar via Python-list
Thank you Mr. Marvin On 29 Jan 2018 12:02 pm, "Dale Marvin via Python-list" < python-list@python.org> wrote: > On 1/28/18 7:39 AM, Prahallad Achar wrote: > >> Hello team, >> Could you please help me out in automation of IoT product end to end >> >> Regards >> Prahallad >> >> >