Re: How to record the console's content in the interpreter?

2019-08-23 Thread jfong
eryk sun於 2019年8月24日星期六 UTC+8上午2時53分56秒寫道: > On 8/23/19, jf...@ms4.hinet.net wrote: > > > > it won't show output from print command, and "print" is the most > > command used in a module when a response was needed > > ConEmu is an alternate console for Windows that allows logging all > console out

Re: How to record the console's content in the interpreter?

2019-08-23 Thread jfong
Terry Reedy於 2019年8月23日星期五 UTC+8下午7時27分50秒寫道: > On 8/23/2019 3:42 AM, jf...@ms4.hinet.net wrote: > > > Say I like to record everything showing in the console into a file > > after I start a debug session, and stop it when finished. It's not > > a console redirection. I still need to se

Re: installation 3.7.3

2019-08-23 Thread MRAB
On 2019-08-23 15:33, Marilynn Huret wrote: Having problems trying to install 3.7.3 with IDLE on a windows 7. When I try to run it, get a message that a .DLL is missing Am reviewing a book for Manning -"hello World" by Sande, third edition and have tried different install options

installation 3.7.3

2019-08-23 Thread Marilynn Huret
Having problems trying to install 3.7.3 with IDLE on a windows 7. When I try to run it, get a message that a .DLL is missing Am reviewing a book for Manning -"hello World" by Sande, third edition  and have tried different install options Can you help? Thank you Marilynn Hure

Re: Newbie question about Python syntax

2019-08-23 Thread Cameron Simpson
On 23Aug2019 13:49, Paul St George wrote: Context: I am using Python to interrogate the value of some thing in Blender (just as someone else might want to use Python to look at an email in a Mail program or an image in Photoshop). Assumptions: So, I want to look at the attribute of an instan

Re: Style suggestions/critiques

2019-08-23 Thread DL Neil
On 24/08/19 7:15 AM, Michael F. Stemper wrote: On 20/08/2019 21.57, DL Neil wrote: On 21/08/19 9:11 AM, Michael F. Stemper wrote: I recently wrote a couple of modules (more to come) to help me use the tikz package in TeX/LaTeX. Since it's all to do with drawing, I have a lot of points in R^2. B

Re: Let the copyfilepath.py to support chinese file path name.

2019-08-23 Thread DL Neil
On 24/08/19 2:36 AM, Hongyi Zhao wrote: Hi, The following is a gedit plugin which provides a way to copy the current file path to the clipboard. https://github.com/willianveiga/gedit-copy-file-path/blob/master/ copyfilepath.py But, I try and find that it doesn't support the path/file names inc

Re: Style suggestions/critiques

2019-08-23 Thread Michael F. Stemper
On 20/08/2019 21.57, DL Neil wrote: > On 21/08/19 9:11 AM, Michael F. Stemper wrote: >> I recently wrote a couple of modules (more to come) to help me >> use the tikz package in TeX/LaTeX. Since it's all to do with >> drawing, I have a lot of points in R^2. Being unimaginative, I >> This all seems

Re: How to record the console's content in the interpreter?

2019-08-23 Thread eryk sun
On 8/23/19, jf...@ms4.hinet.net wrote: > > it won't show output from print command, and "print" is the most > command used in a module when a response was needed ConEmu is an alternate console for Windows that allows logging all console output to a file: https://conemu.github.io/en/AnsiLogFiles.

Re: How to record the console's content in the interpreter?

2019-08-23 Thread Tomasz Rola
On Thu, Aug 22, 2019 at 07:38:54PM -0700, jf...@ms4.hinet.net wrote: > Say I like to record everything showing in the console into a file > after I start a debug session, and stop it when finished. It's not a > console redirection. I still need to see what is going on during the > session. > You

How Bidirectional Neural Networks could be used to predict future data while they need future data?!

2019-08-23 Thread Amirreza Heidari
In the following link I see that Bidirectional LSTM is used to predict the future data in time series. I know that a Bidirectional recurrent neural network use both past and future data, and therefore for predicting future data we need future data1! Can anyone explain me how they work when in a

Using the same data for both validation and prediction in Keras

2019-08-23 Thread Amirreza Heidari
I was reading a tutorial for time series prediction by Neural Networks. I found that this code have used the same test data in the following code for validation, and later also for prediction. history = model.fit(train_X, train_y, epochs=50, batch_size=72, validation_data=(test_X, test_y), ver

Let the copyfilepath.py to support chinese file path name.

2019-08-23 Thread Hongyi Zhao
Hi, The following is a gedit plugin which provides a way to copy the current file path to the clipboard. https://github.com/willianveiga/gedit-copy-file-path/blob/master/ copyfilepath.py But, I try and find that it doesn't support the path/file names including chinese characters. In this case

Re: Newbie question about Python syntax

2019-08-23 Thread Paul St George
On 22/08/2019 23:21, Kyle Stanley wrote: [snip] The tutorial that Terry was referring to was the one on docs.python.org, here's a couple of links for the sections he was referring to: Full section on classes: https://docs.python.org/3/tutorial/classes.html Section on instantiating objects from

Re: How to record the console's content in the interpreter?

2019-08-23 Thread Terry Reedy
On 8/23/2019 3:42 AM, jf...@ms4.hinet.net wrote: Say I like to record everything showing in the console into a file after I start a debug session, and stop it when finished. It's not a console redirection. I still need to see what is going on during the session. After a quick try on IPython 6

Re: How to record the console's content in the interpreter?

2019-08-23 Thread jfong
Manfred Lotz於 2019年8月23日星期五 UTC+8下午6時08分11秒寫道: > On Fri, 23 Aug 2019 00:42:26 -0700 (PDT) > jf...@ms4.hinet.net wrote: > > > Manfred Lotz於 2019年8月23日星期五 UTC+8下午2時58分48秒寫道: > > > On Thu, 22 Aug 2019 21:48:33 -0700 (PDT) > > > jf...@ms4.hinet.net wrote: > > > > > > > Cameron Simpson於 2019年8月23日星期

Re: How to record the console's content in the interpreter?

2019-08-23 Thread Manfred Lotz
On Fri, 23 Aug 2019 00:42:26 -0700 (PDT) jf...@ms4.hinet.net wrote: > Manfred Lotz於 2019年8月23日星期五 UTC+8下午2時58分48秒寫道: > > On Thu, 22 Aug 2019 21:48:33 -0700 (PDT) > > jf...@ms4.hinet.net wrote: > > > > > Cameron Simpson於 2019年8月23日星期五 > > > UTC+8下午12時09分54秒寫道: > > > > On 22Aug2019 19:38, Jach

Re: How to use regex to search string between {}?

2019-08-23 Thread Chris Angelico
On Fri, Aug 23, 2019 at 6:44 PM lampahome wrote: > > I want to parse a path string with multiple files and try to figure out a > one-line way. > > If I have path: /home/admin/hello/yo/{h1,h2,h3,h4} > > What I thought is use regex.search, but the pattern always failed. > > I use below: > import re

How to use regex to search string between {}?

2019-08-23 Thread lampahome
I want to parse a path string with multiple files and try to figure out a one-line way. If I have path: /home/admin/hello/yo/{h1,h2,h3,h4} What I thought is use regex.search, but the pattern always failed. I use below: import re path = /home/admin/hello/yo/{h1,h2,h3,h4} r = re.search('{.}', path

Re: How should we use global variables correctly?

2019-08-23 Thread Joel Goldstick
On Fri, Aug 23, 2019 at 4:00 AM Windson Yang wrote: > > Thank you all. I agreed with Frank that > > > It would make sense to use the 'global' keyword if you have a module > with various functions, several of which refer to 'foo', but only one of > which changes the value of 'foo'. > > I also found

Re: How should we use global variables correctly?

2019-08-23 Thread Windson Yang
Thank you all. I agreed with Frank that > It would make sense to use the 'global' keyword if you have a module with various functions, several of which refer to 'foo', but only one of which changes the value of 'foo'. I also found an example in cpython/lib/gettext.py, only 'textdomain function' c

Re: How to record the console's content in the interpreter?

2019-08-23 Thread jfong
Manfred Lotz於 2019年8月23日星期五 UTC+8下午2時58分48秒寫道: > On Thu, 22 Aug 2019 21:48:33 -0700 (PDT) > jf...@ms4.hinet.net wrote: > > > Cameron Simpson於 2019年8月23日星期五 UTC+8下午12時09分54秒寫道: > > > On 22Aug2019 19:38, Jach Fong wrote: > > > >Say I like to record everything showing in the console into a file >

Re: How should we use global variables correctly?

2019-08-23 Thread Cameron Simpson
On 23Aug2019 09:07, Frank Millman wrote: On 2019-08-23 8:43 AM, Windson Yang wrote: In class.py class Example: def __init__(self): self.foo = 1 def bar() return self.foo + 1 Expect the syntax, why using class variable self.foo would be better (or m

Re: How should we use global variables correctly?

2019-08-23 Thread Cameron Simpson
On 23Aug2019 14:43, Windson Yang wrote: I also want to know what is the difference between "using 'global variables' in a py module" and "using a variable in class". For example: In global.py: foo = 1 def bar(): global foo return foo + 1 In class.py class Example:

Re: How should we use global variables correctly?

2019-08-23 Thread Frank Millman
On 2019-08-23 8:43 AM, Windson Yang wrote: I also want to know what is the difference between "using 'global variables' in a py module" and "using a variable in class". For example: In global.py: foo = 1 def bar(): global foo return foo + 1 In class.py class

Re: How to record the console's content in the interpreter?

2019-08-23 Thread Manfred Lotz
On Thu, 22 Aug 2019 21:48:33 -0700 (PDT) jf...@ms4.hinet.net wrote: > Cameron Simpson於 2019年8月23日星期五 UTC+8下午12時09分54秒寫道: > > On 22Aug2019 19:38, Jach Fong wrote: > > >Say I like to record everything showing in the console into a file > > >after I start a debug session, and stop it when finished