Book for Long Short-Term Memory for Sequential Data

2019-09-21 Thread Duc T. Ha
Please, help me the title of a book about Deep Learning with the Recurrent Neural Network network structure using Long Short-term Memory for Sequential Data (time-series data). The R or Python language is OK. I need a book like hand-on because I do not work in information technology. Thank you s

Installing python into Blender 2.79

2019-06-17 Thread flori....@t-online.de
Hallo Python, I want to import DWG- or FBX-data from AutoCAD Architecture 2015 into Blender. I downloaded Python 3.7.3 into Windows 10 Prof., but I cannot find the python-program and do not know the path to bind python into blender. Please could you help and tell me how to bring python into B

don't quite understand mailing list

2018-09-06 Thread VanDyk, Richard T
Greetings; I sent in a question on how to install robot framework on python 3.7 using pip (or any other way). None of the commands on the >>> seem to work for me. I was asked to update the c/c++ runtime which I don't know what that means. I was also asked to subscribe to the mailing list. I did

Getting process details on an operating system process/question answer by vouce

2018-07-16 Thread John T. Haggerty
So, it's early for me---and I'm not sure if these things can be done but I'd like to know the following: 1. How can Python connect to a running operating system process on a host operating system to see what part of the execution is like?---ie keep track of health stats like it's stuck on disk acc

Re: Getting posts to sort chronologically in tree view

2018-07-03 Thread T Berger
On Tuesday, July 3, 2018 at 4:00:03 PM UTC-4, Ben Finney wrote: > T Berger writes: > > > I'm posting directly to the forum (computer.lang.python, at this web > > address: > > https://groups.google.com/forum/#!topic/comp.lang.python/vWCvLYjOWUQ) > > Thank

Re: Getting posts to sort chronologically in tree view

2018-07-03 Thread T Berger
On Monday, July 2, 2018 at 2:36:00 PM UTC-4, Dan Stromberg wrote: > On Mon, Jul 2, 2018 at 11:02 AM, T Berger wrote: > > > Is there any way to set posts to appear chronologically in tree view? And > > why is the tree view completely out of order? My last two posts in this >

Re: Getting posts to sort chronologically in tree view

2018-07-02 Thread T Berger
On Monday, July 2, 2018 at 2:36:00 PM UTC-4, Dan Stromberg wrote: > On Mon, Jul 2, 2018 at 11:02 AM, T Berger wrote: > > > Is there any way to set posts to appear chronologically in tree view? And > > why is the tree view completely out of order? My last two posts in this >

Getting posts to sort chronologically in tree view

2018-07-02 Thread T Berger
Is there any way to set posts to appear chronologically in tree view? And why is the tree view completely out of order? My last two posts in this view are from 6/27 and 6/28. -- https://mail.python.org/mailman/listinfo/python-list

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-07-02 Thread T Berger
On Monday, July 2, 2018 at 1:22:59 PM UTC-4, T Berger wrote: > On Saturday, June 30, 2018 at 6:02:06 PM UTC-4, T Berger wrote: > > On Friday, June 29, 2018 at 7:00:15 PM UTC-4, Cameron Simpson wrote: > > > > > The key point here from Jim is "simultaneously". Are

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-07-02 Thread T Berger
On Saturday, June 30, 2018 at 6:02:06 PM UTC-4, T Berger wrote: > On Friday, June 29, 2018 at 7:00:15 PM UTC-4, Cameron Simpson wrote: > > > The key point here from Jim is "simultaneously". Are you properly shutting > > down > > the Flask instance in IDLE befo

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-30 Thread T Berger
On Saturday, June 30, 2018 at 6:39:36 PM UTC-4, MRAB wrote: > On 2018-06-30 23:01, T Berger wrote: > > On Friday, June 29, 2018 at 7:00:15 PM UTC-4, Cameron Simpson wrote: > > > >> The key point here from Jim is "simultaneously". Are you properly shutting >

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-30 Thread T Berger
On Friday, June 29, 2018 at 7:00:15 PM UTC-4, Cameron Simpson wrote: > The key point here from Jim is "simultaneously". Are you properly shutting > down > the Flask instance in IDLE before running from Terminal, and vice versa? Cameron, I try every option to quit either program, but they don't

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-29 Thread T Berger
On Friday, June 29, 2018 at 10:45:10 AM UTC-4, T Berger wrote: > On Thursday, June 28, 2018 at 1:21:32 AM UTC-4, T Berger wrote: > > Hi Guys, > > > > Thanks for all the suggestions. I found the problem. I had saved my program > > in IDLE and quit out of the shell

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-29 Thread T Berger
On Thursday, June 28, 2018 at 1:21:32 AM UTC-4, T Berger wrote: > Hi Guys, > > Thanks for all the suggestions. I found the problem. I had saved my program > in IDLE and quit out of the shell, and then tried to run the program in > Terminal. Previously, restarting the shell was

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-27 Thread T Berger
Hi Guys, Thanks for all the suggestions. I found the problem. I had saved my program in IDLE and quit out of the shell, and then tried to run the program in Terminal. Previously, restarting the shell was enough to break the connection with the port. This time, I guess, it wasn't. So after think

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-27 Thread T Berger
On Wednesday, June 27, 2018 at 1:40:20 PM UTC-4, Marko Rauhamaa wrote: > Joaquin Henriquez : > > >>Subject: EXTERNAL: OSError: [Errno 48] Address already in use > > > > The best way to help if got you to put the relevant code here. > > > > The error you are experiencing means that the Port you are

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-27 Thread T Berger
Let me add this information to clarify the context in which I got this error 48. It doesn't make sense to me, and it might not to you. This morning, I opened my webapp (vsearch4web.py in the terminal code above) and noticed a whole bunch of code I had not typed. I also noticed something weird a

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-27 Thread T Berger
On Wednesday, June 27, 2018 at 12:17:28 PM UTC-4, Joaquin Henriquez wrote: > >Subject: EXTERNAL: OSError: [Errno 48] Address already in use > > The best way to help if got you to put the relevant code here. Last login: Wed Jun 27 12:45:08 on ttys000 192:~ TamaraB$ cd Desktop/Webapp/ 192:Webapp Ta

Re: OSError: [Errno 48] Address already in use

2018-06-27 Thread T Berger
On Wednesday, June 27, 2018 at 11:49:18 AM UTC-4, T Berger wrote: > Why am I getting this error? I'm not sure what additional information I need > to supply, so please let me know. I'm working on a Flask webapp. I know there is another google group specifically for Flask. Can yo

OSError: [Errno 48] Address already in use

2018-06-27 Thread T Berger
Why am I getting this error? I'm not sure what additional information I need to supply, so please let me know. -- https://mail.python.org/mailman/listinfo/python-list

Proper way to download stylesheets and templates

2018-06-26 Thread T Berger
From: T Berger IΓ ╓m creating a webapp and trying to download a stylesheet and templates from my manualΓ ╓s support site. I must be doing something wrong, because when I try to run my app, I get a 404 error message. I downloaded the files by dragging them off the screen into my webapp folder

Re: Proper way to download stylesheets and templates

2018-06-25 Thread T Berger
On Monday, June 25, 2018 at 12:12:26 PM UTC-4, T Berger wrote: > I’m creating a webapp and trying to download a stylesheet and templates from > my manual’s support site. I must be doing something wrong, because when I try > to run my app, I get a 404 error message. I downloaded the

Proper way to download stylesheets and templates

2018-06-25 Thread T Berger
I’m creating a webapp and trying to download a stylesheet and templates from my manual’s support site. I must be doing something wrong, because when I try to run my app, I get a 404 error message. I downloaded the files by dragging them off the screen into my webapp folder. But I’m getting a wei

Re: Flask failure

2018-06-18 Thread T Berger
On Friday, June 15, 2018 at 1:48:16 PM UTC-4, Elismar Luz wrote: > Address already in use! Hi Elismar, I'm new to Python and didn't understand your post when I first read it. Thanks, Tamara -- https://mail.python.org/mailman/listinfo/python-list

Re: Python list vs google group

2018-06-15 Thread T Berger
On Friday, June 15, 2018 at 12:32:17 PM UTC-4, T Berger wrote: > On Friday, June 15, 2018 at 11:55:59 AM UTC-4, Chris Angelico wrote: > > Perhaps quantity is not the important thing here. > > It is the important thing. I'm stuck with a problem and still waiting for > re

Re: Python list vs google group

2018-06-15 Thread T Berger
Hi Rich, Please define YMMV, MUA. Thanks, Tamara -- https://mail.python.org/mailman/listinfo/python-list

Re: Python list vs google group

2018-06-15 Thread T Berger
On Friday, June 15, 2018 at 12:14:30 PM UTC-4, Mark Lawrence wrote: > For the third and final time, just get a (semi-)decent email client/news > reader/whatever it's called, point it at news.gmane.org and read this > forum, hundreds of other python forums and thousands of other technical > foru

Re: Python list vs google group

2018-06-15 Thread T Berger
On Friday, June 15, 2018 at 12:14:30 PM UTC-4, Mark Lawrence wrote: > On 15/06/18 16:47, T Berger wrote: > > On Friday, June 15, 2018 at 11:31:47 AM UTC-4, Alister wrote: > > > >> it certainly seems to be the source of most SPAM > >> as such some users of this lis

Re: Python list vs google group

2018-06-15 Thread T Berger
On Friday, June 15, 2018 at 11:55:59 AM UTC-4, Chris Angelico wrote: > Perhaps quantity is not the important thing here. It is the important thing. I'm stuck with a problem and still waiting for replies to my email. I've decided to repost my problem here, so we'll see whether my hypothesis holds

Re: Python list vs google group

2018-06-15 Thread T Berger
On Friday, June 15, 2018 at 11:31:47 AM UTC-4, Alister wrote: > it certainly seems to be the source of most SPAM > as such some users of this list/newsgroup call it what you like block all > posts from google groups But you don't think you get more replies to a question posted here than emailed

Python list vs google group

2018-06-15 Thread T Berger
I'm suspecting that posting to python google groups (this site) gets more responses than mailing to the python list. Am I correct? Also, contrary to what I read on the python list information sheet, what shows up in this forum does not match what comes into my inbox. I started a post here and th

Flask failure

2018-06-15 Thread T Berger
I’m trying to build a webapp with flask. I installed flask, created a webapp in IDLE, but when I tried testing it at my terminal, I got a huge error message. This is the app: from flask import Flask app = Flask(__name__) @app.route('/') def hello() -> str:     return 'Hello world from Flask!' ap

Re: Posting warning message

2018-06-15 Thread T Berger
On Monday, June 11, 2018 at 4:32:56 AM UTC-4, Cameron Simpson wrote: > This is one reason to prefer the mailing list. You can subscribe here: > > https://mail.python.org/mailman/listinfo/python-list > > Many of us prefer that to Google Groups. You have the advantage that email > messages arri

Re: How to apply filters to posts

2018-06-14 Thread T Berger
On Thursday, June 14, 2018 at 3:39:44 PM UTC-4, Ben Finney wrote: > T Berger writes: > > > Thanks, Rhodri. One more question. What is a daily digest? I'm > > wondering whether to choose that option. > > Don't choose the daily digest, because it makes a speci

Re: How to apply filters to posts

2018-06-14 Thread T Berger
On Thursday, June 14, 2018 at 11:26:00 AM UTC-4, Rhodri James wrote: > On 14/06/18 16:00, T Berger wrote: > > On Thursday, June 14, 2018 at 8:02:44 AM UTC-4, Chris Angelico wrote: > > > >> They're connected. "Subscribe to the list" makes you a member of t

Re: How to apply filters to posts

2018-06-14 Thread T Berger
On Thursday, June 14, 2018 at 8:02:44 AM UTC-4, Chris Angelico wrote: > They're connected. "Subscribe to the list" makes you a member of the > mailing list (and thus you will start receiving posts), which also > entitles you to send to the list. Sending email to that address will > send it to the

Re: How to apply filters to posts

2018-06-13 Thread T Berger
On Tuesday, April 10, 2018 at 1:21:53 AM UTC-4, Chris Angelico wrote: > I recommend, instead, joining the mailing list: > > https://mail.python.org/mailman/listinfo/python-list There seem to be two options on the Python-list Information Page. * Subscribe to the list (see sections below) * Sen

Re: PEP8 compliance

2018-06-13 Thread T Berger
On Wednesday, June 13, 2018 at 1:44:49 PM UTC-4, Paul Moore wrote: > On 13 June 2018 at 17:35, T Berger wrote: > > > I did make the changes in IDLE, but I thought I must be in the wrong place. > > The line of code I got in terminal was: > > /Users/TamaraB/Desktop/m

Re: PEP8 compliance

2018-06-13 Thread T Berger
On Wednesday, June 13, 2018 at 11:04:39 AM UTC-4, T Berger wrote: > Sorry for this basic question, but to change my code if it's failed the PEP8 > test, what code do I use to open my program and make changes? Obviously, I > should still be in bash, but then what? > > Thanks

PEP8 compliance

2018-06-13 Thread T Berger
Sorry for this basic question, but to change my code if it's failed the PEP8 test, what code do I use to open my program and make changes? Obviously, I should still be in bash, but then what? Thanks, Tamara -- https://mail.python.org/mailman/listinfo/python-list

Re: Posting warning message

2018-06-12 Thread T Berger
On Tuesday, June 12, 2018 at 3:28:29 AM UTC-4, Cameron Simpson wrote: > On 11Jun2018 22:51, Tamara Berger wrote: > >On Monday, June 11, 2018 at 7:24:58 PM UTC-4, Gregory Ewing wrote: > >> Tamara Berger wrote: > >> > I typed these 2 lines in the terminal: > >> > 192:~ TamaraB$ sudo python3 > >> >>>

Filters

2018-06-12 Thread T Berger
Why doesn't the system allow me to set filters for my own posts? I was able to do it once, but when I returned to the forum, I was back among the unfiltered posts. When I tried to reapply the filter, the option was grayed out. Also, I've selected the option to get email updates to my posts, but

Re: Posting warning message

2018-06-12 Thread T Berger
On Tuesday, June 12, 2018 at 10:27:06 AM UTC-4, Chris Angelico wrote: > On Wed, Jun 13, 2018 at 12:17 AM, T Berger wrote: > > > > Sorry, to bother you again. But is there some way to edit a message once > > its posted? Or do I have to delete it and rewrite it? > > No

Re: Posting warning message

2018-06-12 Thread T Berger
On Tuesday, June 12, 2018 at 3:28:29 AM UTC-4, Cameron Simpson wrote: > On 11Jun2018 22:51, Tamara Berger wrote: > >On Monday, June 11, 2018 at 7:24:58 PM UTC-4, Gregory Ewing wrote: > >> Tamara Berger wrote: > >> > I typed these 2 lines in the terminal: > >> > 192:~ TamaraB$ sudo python3 > >> >>>

Re: Posting warning message

2018-06-12 Thread T Berger
On Tuesday, June 12, 2018 at 3:28:29 AM UTC-4, Cameron Simpson wrote: > On 11Jun2018 22:51, Tamara Berger wrote: > >On Monday, June 11, 2018 at 7:24:58 PM UTC-4, Gregory Ewing wrote: > >> Tamara Berger wrote: > >> > I typed these 2 lines in the terminal: > >> > 192:~ TamaraB$ sudo python3 > >> >>>

Re: Posting warning message

2018-06-12 Thread T Berger
On Monday, June 11, 2018 at 7:24:58 PM UTC-4, Gregory Ewing wrote: > Tamara Berger wrote: > > I typed these 2 lines in the terminal: > > > > 192:~ TamaraB$ sudo python3 > > ... > python3 -m pip install pytest > > You need to enter this *single* line in the Terminal: > > sudo python3 -m

Re: Posting warning message

2018-06-12 Thread T Berger
On Tuesday, June 12, 2018 at 3:28:29 AM UTC-4, Cameron Simpson wrote: > On 11Jun2018 22:51, Tamara Berger wrote: > >On Monday, June 11, 2018 at 7:24:58 PM UTC-4, Gregory Ewing wrote: > >> Tamara Berger wrote: > >> > I typed these 2 lines in the terminal: > >> > 192:~ TamaraB$ sudo python3 > >> >>>

Re: Posting warning message

2018-06-11 Thread T Berger
On Monday, June 11, 2018 at 7:24:58 PM UTC-4, Gregory Ewing wrote: > Tamara Berger wrote: > > I typed these 2 lines in the terminal: > > > > 192:~ TamaraB$ sudo python3 > > ... > python3 -m pip install pytest > > You need to enter this *single* line in the Terminal: > > sudo python3 -m

Re: Posting warning message

2018-06-10 Thread T Berger
Thanks, everyone, for your suggestions. I didn't respond to your posts earlier because I wasn't notified by email updates. I don't understand why they've stopped coming. I didn't change any settings. -- https://mail.python.org/mailman/listinfo/python-list

Posting warning message

2018-06-10 Thread T Berger
When I go to post a reply, I get a warning asking if I want my email address (or other email addresses listed) visible to all, and do I want to edit my post. What should I do? -- https://mail.python.org/mailman/listinfo/python-list

Re: Problem finding my folder via terminal

2018-06-09 Thread T Berger
On Saturday, June 9, 2018 at 3:30:39 PM UTC-4, MRAB wrote: > On 2018-06-09 18:48, T Berger wrote: > [snip] > > > I want to read your last two emails in the evening when I have more time to > > digest the information, but I have a quick question now. I made the > >

Re: Problem finding my folder via terminal

2018-06-09 Thread T Berger
On Saturday, June 9, 2018 at 5:05:25 AM UTC-4, Cameron Simpson wrote: > On 09Jun2018 02:37, Gene Heskett wrote: > >On Saturday 09 June 2018 01:36:17 Tamara Berger wrote: > >> Re inline style: When I hit reply, this is the window I get. > > The python-list server strips attachments, so I didn't ge

Distribution file error

2018-06-08 Thread T Berger
Hi, I really need help here. I’m trying to create a distribution file for my module, but got an error message. The module, including the setup and read me files, are contained within the folder “mymodules.” I typed this command (per instructions from my workbook) from within mymodules folder:

Re: Problem finding my folder via terminal

2018-06-07 Thread T Berger
On Wednesday, June 6, 2018 at 12:19:35 PM UTC-4, T Berger wrote: > I’m learning Python on my own and have been stuck for two days trying to get > modules I created into site-packages. As a trial step, we were asked to > change directly into the folder containing our modules. I

Re: Problem finding my folder via terminal

2018-06-07 Thread T Berger
On Wednesday, June 6, 2018 at 12:19:35 PM UTC-4, T Berger wrote: > I’m learning Python on my own and have been stuck for two days trying to get > modules I created into site-packages. As a trial step, we were asked to > change directly into the folder containing our modules. I

Problem finding my folder via terminal

2018-06-06 Thread T Berger
I’m learning Python on my own and have been stuck for two days trying to get modules I created into site-packages. As a trial step, we were asked to change directly into the folder containing our modules. I typed “cd mymodules” per instructions, but got this error message: “-bash: cd: mymodules:

Learning Python

2018-06-05 Thread T Berger
Can someone learn Python through a book such as Head Start Python? Would an online course from MIT or google be better? -- https://mail.python.org/mailman/listinfo/python-list

Re: Meaning of abbreviated terms

2018-05-10 Thread T Berger
On Saturday, May 5, 2018 at 6:45:46 PM UTC-4, MRAB wrote: > On 2018-05-05 17:57, T Berger wrote: > > What does the "p" in "plist" stand for? > > Is there a python glossary that spells out the meanings of abbreviated > > terms? > > > &qu

Meaning of abbreviated terms

2018-05-05 Thread T Berger
What does the "p" in "plist" stand for? Is there a python glossary that spells out the meanings of abbreviated terms? -- https://mail.python.org/mailman/listinfo/python-list

How to apply filters to posts

2018-04-09 Thread T Berger
This is the first time I've joined a google group and I don't understand the setup. Why are most of the posts in this group unrelated to python, and how do I filter this junk (sorry) out? -- https://mail.python.org/mailman/listinfo/python-list

Filtering computer.lang.python

2018-04-09 Thread T Berger
This is the first time I've joined a google group and I don't understand the setup. Why are most of the posts in this group unrelated to python, and how do I filter this junk (sorry) out? -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Idle not giving my prompt after If line

2018-04-09 Thread T Berger
On Monday, April 9, 2018 at 1:19:13 PM UTC-4, Terry Reedy wrote: > On 4/9/2018 3:07 AM, Peter Otten wrote: > > brg...@gmail.com wrote: > > > >> I typed the If part of an If/Else statement, but did not get a prompt at > >> the beginning of the next line when I hit return. Instead, the cursor > >> l

Re: Python Idle not giving my prompt after If line

2018-04-09 Thread T Berger
On Monday, April 9, 2018 at 1:34:04 PM UTC-4, Peter Otten wrote: > brg...@gmail.com wrote: > > > On Monday, April 9, 2018 at 3:08:28 AM UTC-4, Peter Otten wrote: > >> brg...@gmail.com wrote: > >> > >> > I typed the If part of an If/Else statement, but did not get a prompt > >> > at the beginning

Sockets but calling from different programs

2017-10-23 Thread T Obulesu
I'm new to python3 and scratching my head to write a program for this logic: classA.py Class A: # class for socket communication basic init method that initializes port, address, connection method send(message): # for sending any message through the given por

Re: Want to write a python code for sending and receiving frames over wifi/wlan0 using python

2017-10-12 Thread T Obulesu
On Thursday, 12 October 2017 13:38:55 UTC+5:30, T Obulesu wrote: > Hello all, I want to send some frames defined by me{Example, > [0x45,0x43,0x32]} to the raspberry pi from any macine(Desktop/Laptop/other > raspberry pi). But I want to send those frames over wifi or use wlan0 using

Want to write a python code for sending and receiving frames over wifi/wlan0 using python

2017-10-12 Thread T Obulesu
Hello all, I want to send some frames defined by me{Example, [0x45,0x43,0x32]} to the raspberry pi from any macine(Desktop/Laptop/other raspberry pi). But I want to send those frames over wifi or use wlan0 using python Any suggestions? -- https://mail.python.org/mailman/listinfo/python-list

Re: Case Solution: The Los Angeles Philharmonic Orchestra Cultural Entrepreneurship by Rohit Deshpande, Annelena Lobb

2017-07-27 Thread t . ueda0820
On Saturday, July 1, 2017 at 10:56:39 PM UTC+3, Case Solution & Analysis wrote: > Case Solution and Analysis of The Los Angeles Philharmonic Orchestra: > Cultural Entrepreneurship by Rohit Deshpande, Annelena Lobb, send email to > casesolutionscentre(at)gmail(dot)com > > Case Study ID: 9-517-00

How Can I edit and update my .config (for my python application) file using WebSockets exactly like how we edit and update router .config file?

2017-07-18 Thread T Obulesu
I have my python application running on Raspberry Pi and it needs to be configured every time. Hence I want to access this .config file over online and configure it exactly like how we can configure our router, but I want to use only web sockets. -- https://mail.python.org/mailman/listinfo/pyth

Re: help with an error msg please

2017-05-14 Thread Charles T. Smith
On Sun, 14 May 2017 15:30:52 +0200, Pavol Lisy wrote: > On 5/14/17, Charles T. Smith wrote: >> I'm stumped by this: ... > Did you create getopt.py in your working directory? If so then try to > rename it. > > PL. That was it! Not in my working directory, but in th

help with an error msg please

2017-05-14 Thread Charles T. Smith
import getopt try: opts, args = getopt.getopt (sys.argv[1:], "t:") except getopt.error, msg: raise "Usage: some other way", msg what am I doing wrong? -- https://mail.python.org/mailman/listinfo/python-list

Python 3.5 Cross Compile for ARM

2016-05-23 Thread billy . t . west
Hi. Can anyone point me to documentation/instructions for cross compiling Python 3.5? I'm trying to compile Python for an ARM processor. It seems like something broke with cross compilation in 3.5 and a patch was created (https://bugs.python.org/issue22359), but I don't even know where to beg

Re: recursive methods require implementing a stack?

2016-04-06 Thread Charles T. Smith
On Wed, 06 Apr 2016 20:28:47 +, Rob Gaddi wrote: > Charles T. Smith wrote: > >> I just tried to write a recursive method in python - am I right that local >> variables are only lexically local scoped, so sub-instances have the same >> ones? Is there a way out of that

recursive methods require implementing a stack?

2016-04-06 Thread Charles T. Smith
I just tried to write a recursive method in python - am I right that local variables are only lexically local scoped, so sub-instances have the same ones? Is there a way out of that? Do I have to push and pop my own simulated stack frame entry? -- https://mail.python.org/mailman/listinfo/python

Re: crash while using PyCharm / Python3

2016-03-21 Thread Dirk T. Verbeek
Op 21-03-16 om 17:51 schreef Adam: "Adam" wrote in message news:ncikss$tks$1...@news.albasani.net... Host OS:Ubuntu Desktop 14.04 LTS / Unity System crashed while using PyCharm / Python3. Booting takes forever and stuck at the purple screen with the Ubuntu logo and the five dots cycling.

Re: sobering observation, python vs. perl

2016-03-20 Thread Charles T. Smith
On Thu, 17 Mar 2016 21:18:43 +0530, srinivas devaki wrote: > please upload the log file, Sorry, it's work stuff, can't do that, but just take any big set of files and change the strings appropriately and the numbers should be equivalent. > > and global variables in python are slow, so just ke

Re: sobering observation, python vs. perl

2016-03-20 Thread Charles T. Smith
On Thu, 17 Mar 2016 15:29:47 +, Charles T. Smith wrote: And for completeness, and also surprising: time sed -n -e '/ is ready/{s///;h}' -e '/release_req/{g;p}' *.out | sort -u TestCase_F_00_P TestCase_F_00_S TestCase_F_01_S TestCase_F_02_M real0m10.998s u

Re: sobering observation, python vs. perl

2016-03-20 Thread Charles T. Smith
On Thu, 17 Mar 2016 19:08:58 +0200, Marko Rauhamaa wrote: > "Charles T. Smith" : > > > Compare Perl (http://www.perlmonks.org/?node_id=98357>): > >my $str = "I have a dream"; >my $find = "have"; >my $replace = "h

Re: sobering observation, python vs. perl

2016-03-19 Thread Charles T. Smith
On Thu, 17 Mar 2016 10:52:30 -0500, Tim Chase wrote: >> Not saying this will make a great deal of difference, but these two > items jumped out at me. I'd even be tempted to just use string > manipulations for the isready aspect as well. Something like > (untested) well, I don't want to forgo RE

Re: sobering observation, python vs. perl

2016-03-19 Thread Charles T. Smith
On Thu, 17 Mar 2016 18:30:29 +0200, Marko Rauhamaa wrote: > "Charles T. Smith" : > >> I need the second check to also be a RE because it's not >> separate tokens. > > The string "in" check doesn't care about tokens. > > > Marko

Re: sobering observation, python vs. perl

2016-03-19 Thread Charles T. Smith
On Thu, 17 Mar 2016 10:26:12 -0700, Ethan Furman wrote: > On 03/17/2016 09:36 AM, Charles T. Smith wrote: > >> Yes, your point was to forgo REs despite that they are useful. >> I could have thought the search would have been better as: >> >> 'release[

Re: sobering observation, python vs. perl

2016-03-19 Thread Charles T. Smith
On Thu, 17 Mar 2016 18:07:12 +0200, Marko Rauhamaa wrote: > "Charles T. Smith" : > Ok. The LANG=C setting has a tremendous effect on the performance of > textutils. > > > Marko Good to know, thank you... -- https://mail.python.org/mailman/listinfo/python-list

Re: sobering observation, python vs. perl

2016-03-19 Thread Charles T. Smith
On Thu, 17 Mar 2016 17:48:54 +0200, Marko Rauhamaa wrote: > "Charles T. Smith" : > >> On Thu, 17 Mar 2016 15:29:47 +, Charles T. Smith wrote: >> >> And for completeness, and also surprising: >> >> time sed -n -e '/ is ready

Re: sobering observation, python vs. perl

2016-03-19 Thread Charles T. Smith
On Thu, 17 Mar 2016 09:21:51 -0700, Ethan Furman wrote: >> well, I don't want to forgo REs in order to have python's numbers be >> better > > The issue is not avoiding REs, but using Python's strengths and idioms. > Write the code in Python's style, get the same results, then compare > t

Re: sobering observation, python vs. perl

2016-03-19 Thread Charles T. Smith
On Thu, 17 Mar 2016 17:47:55 +0200, Marko Rauhamaa wrote: > Can't comment on the numbers but the code segments are not quite > analogous. What about this one: > > #!/usr/bin/env python > # vim: tw=0 > import sys > import re > > isready = re.compile("(.*) is ready") > for

Re: sobering observation, python vs. perl

2016-03-19 Thread Charles T. Smith
On Thu, 17 Mar 2016 18:34:06 +0200, Marko Rauhamaa wrote: > n-vs-perl-performance Okay, that was interesting. Actually, I saw a study some years ago that concluded that python could be both slower and faster than perl, but that perl had much less deviation than python. I took that and accepted

sobering observation, python vs. perl

2016-03-18 Thread Charles T. Smith
I've really learned to love working with python, but it's too soon to pack perl away. I was amazed at how long a simple file search took so I ran some statistics: $ time python find-rel.py ./find-relreq *.out | sort -u TestCase_F_00_P TestCase_F_00_S TestCase_F_01_S TestCa

Re: hasattr() or "x in y"?

2016-03-11 Thread Charles T. Smith
On Fri, 11 Mar 2016 22:00:41 +, Grant Edwards wrote: > Since they behave differently, perhaps the question ought to be "which > does what you want to do?" For parsed msgs, I had this: elif hasattr (msg.msgBody, 'request'): It occurred to me that this was less abstruse:

Re: hasattr() or "x in y"?

2016-03-11 Thread Charles T. Smith
On Fri, 11 Mar 2016 21:44:27 +, Charles T. Smith wrote: > From the performance point of view, which is better: - hasattr() > - x in y > > TIA > cts I just realized that "in" won't look back through the class hierarchy... that clearly makes them not interc

hasattr() or "x in y"?

2016-03-11 Thread Charles T. Smith
>From the performance point of view, which is better: - hasattr() - x in y TIA cts -- https://mail.python.org/mailman/listinfo/python-list

Re: a clarification on the "global" statement sought

2016-03-11 Thread Charles T. Smith
On Fri, 11 Mar 2016 08:31:22 +, Mark Lawrence wrote: > Never. Hopefully this > http://www.python-course.eu/python3_global_vs_local_variables.php can > explain it better than I can :) The article is good, I'm glad to have confirmed what I have so empirical stumbled over. ... Irrespective of t

Re: a clarification on the "global" statement sought

2016-03-11 Thread Charles T. Smith
On Fri, 11 Mar 2016 19:29:20 +1100, Chris Angelico wrote: > Usefully? Never. > > Simple question - simple answer :) > > ChrisA Right, that was the expected answer as well. I just ran into that in legacy code, checked out the documentation and couldn't really make that out. So I figured I bet

a clarification on the "global" statement sought

2016-03-11 Thread Charles T. Smith
When might a "global" statement be used in the outermost level of a module? (whereby, I assume a module is equivalent to a python file, correct?) TIA for any thoughts. cts -- https://mail.python.org/mailman/listinfo/python-list

merging two csv files

2016-03-03 Thread m . t . egle
Hey! I want to merge column-wise two csv files, say: file1.csv and file2.csv, both containing two columns, into a new csv file. I could not find a good code for doing this. It never really worked. If you could show me the code with this example, I would highly appreciate it. Best wishes, Tib

merging number of csv files

2016-03-03 Thread m . t . egle
Hey! I have been goggling around for the last few days and tried out many python codes. I want to merge two csv files, say thought_probe1.csv and thought_probe2.csv. I want them to merge column-wise in a new csv file 'new_file.csv'. What coding is smart to use in order to achieve it? I would r

Re: Refactoring in a large code base

2016-01-22 Thread Charles T. Smith
On Fri, 22 Jan 2016 12:19:50 +0200, Marko Rauhamaa wrote: > We need similar code sanity management. Developers are given much too > much power to mess up the source code. That's why "legacy" is considered > a four-letter word among developers. When I started in this business, in the mid-70s, ther

Re: importing: what does "from" do?

2016-01-21 Thread Charles T. Smith
On Thu, 21 Jan 2016 16:30:30 +, Charles T. Smith wrote: >> Side observation: 'int' is a bad name for a package, because it will >> shadow the name of the 'int' built-in. > > > Boy oh boy have I experienced that now! :) (it wasn't me! ;)

Re: importing: what does "from" do?

2016-01-21 Thread Charles T. Smith
On Thu, 21 Jan 2016 08:59:39 -0700, Ian Kelly wrote: > What happens if you just do 'import utilities'. Can you then call > utilities.hexdump? Can you see anything in the utilities module? Yes, that works! That's what I'm doing as a work around. I was trying to avoid doing that because I figured

Re: importing: what does "from" do?

2016-01-21 Thread Charles T. Smith
On Thu, 21 Jan 2016 15:44:43 +, John Gordon wrote: > In that case, the problem is most likely a circular import issue, as you > mentioned. The only way to fix it is to reorganize your modules. > > How did this error come up? Did the code work previously? If so, what > changed? What I nee

Re: importing: what does "from" do?

2016-01-21 Thread Charles T. Smith
On Thu, 21 Jan 2016 15:44:43 +, John Gordon wrote: > How did this error come up? Did the code work previously? If so, what > changed? The developers of this legacy code had this as well as other functions duplicated throughout the system, in order to avoid confronting these issues. I'm tr

Re: importing: what does "from" do?

2016-01-21 Thread Charles T. Smith
On Thu, 21 Jan 2016 15:31:45 +, John Gordon wrote: > The most likely explanation here is that the 'utilities' module simply > does not contain something named 'hexdump'. > > Have you inspected the 'utilities' module? Does it, in fact, contain > something named 'hexdump'? Yes -- https://ma

  1   2   3   4   5   >