Re: (Execution) Termination bit, Alternation bit.

2015-12-29 Thread Rustom Mody
On Saturday, December 19, 2015 at 11:26:55 PM UTC+5:30, Skybuck Flying wrote: > Hello, > > I'd like to see instruction execution enhanced with the following two ideas: > > 1. A termination bit, and a terminator pointer. > 2. A alternation bit, and a alternate pointer. > > The purpose of these bi

Re: Path problems when I am in bash

2015-12-29 Thread Karim
On 30/12/2015 00:21, xeon Mailinglist wrote: I have my source code inside the directory `medusa`, and my unit tests inside `tests` dir. Both dirs are inside `medusa-2.0` dir. Here is my file structure [1]. When I run my tests inside pycharm, everything works fine, but when I try to run my u

Re: (Execution) Termination bit, Alternation bit.

2015-12-29 Thread Chris Angelico
On Wed, Dec 30, 2015 at 8:43 AM, Skybuck Flying wrote: > Not at all, these assembler statements can be replaced with python > statements and then you have the exact same problem ! ;) Then do so. Give us an example where this problem occurs in pure Python. ChrisA -- https://mail.python.org/mailm

Re: Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread Mark Lawrence
On 29/12/2015 22:57, xeon Mailinglist wrote: On Tuesday, December 29, 2015 at 7:23:40 PM UTC, Mark Lawrence wrote: On 29/12/2015 17:27, xeon Mailinglist wrote: On Tuesday, December 29, 2015 at 5:15:24 PM UTC, Mark Lawrence wrote: On 29/12/2015 15:20, xeon Mailinglist wrote: On Tuesday, Decemb

Path problems when I am in bash

2015-12-29 Thread xeon Mailinglist
I have my source code inside the directory `medusa`, and my unit tests inside `tests` dir. Both dirs are inside `medusa-2.0` dir. Here is my file structure [1]. When I run my tests inside pycharm, everything works fine, but when I try to run my unit tests inside in the prompt [2], the `schedul

Re: Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread xeon Mailinglist
On Tuesday, December 29, 2015 at 7:23:40 PM UTC, Mark Lawrence wrote: > On 29/12/2015 17:27, xeon Mailinglist wrote: > > On Tuesday, December 29, 2015 at 5:15:24 PM UTC, Mark Lawrence wrote: > >> On 29/12/2015 15:20, xeon Mailinglist wrote: > >>> On Tuesday, December 29, 2015 at 11:16:10 AM UTC, xe

Re: (Execution) Termination bit, Alternation bit.

2015-12-29 Thread Skybuck Flying
"Steven D'Aprano" wrote in message news:5682892c$0$1587$c3e8da3$54964...@news.astraweb.com... On Tue, 29 Dec 2015 10:25 pm, Skybuck Flying wrote: Great that means you will understand the example below: mov eax, 0 add eax, 10 mul eax, 4 There is an instruction sequence for you. " Skybu

Re: EOFError: marshal data too short -- causes?

2015-12-29 Thread Terry Reedy
On 12/29/2015 3:01 AM, Glenn Linderman wrote: Now the __pycache__ directory is full of .pyc and .pyo files (from the install? The installer optionally runs compileall on /Lib and recursively on its subpackages. The option defaults to 'yes', at least for 'install for everyone', as writing fi

Re: Python.Exe Problem

2015-12-29 Thread Terry Reedy
On 12/29/2015 11:24 AM, Daniel Lee wrote: Hello, When I try to run python.exe on my computer with Windows 8, Which exact version? From what source? How did you download (from where) or compile? How did you install? How do you try to run it? I get the following error: "Python.exe - Ent

Re: Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread Mark Lawrence
On 29/12/2015 17:27, xeon Mailinglist wrote: On Tuesday, December 29, 2015 at 5:15:24 PM UTC, Mark Lawrence wrote: On 29/12/2015 15:20, xeon Mailinglist wrote: On Tuesday, December 29, 2015 at 11:16:10 AM UTC, xeon Mailinglist wrote: 1. How do I create a global variable that can be accessed by

Re: Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread Peter Otten
xeon Mailinglist wrote: > No, I cannot get a simpler example. The simpler example works, and in my > code, it doesn't. Then you have to add/remove complexity until you find the problematic statements. > I thought that it was something related to the variable > `region`, but I declare it as glo

Re: yaxis

2015-12-29 Thread Peter Pearson
On Tue, 29 Dec 2015 06:25:49 -0800 (PST), damien.ishac...@gmail.com wrote: > hello I would only change the scale of the y-axis, how to deal with > matplotlib.pyplot or another library ? Here's a function I use. ax is an "axes" object, which you can get by calling the get-current-axes (gca()) met

Re: Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread xeon Mailinglist
On Tuesday, December 29, 2015 at 5:38:17 PM UTC, xeon Mailinglist wrote: > On Tuesday, December 29, 2015 at 5:33:43 PM UTC, Peter Otten wrote: > > xeon Mailinglist wrote: > > > > > On Tuesday, December 29, 2015 at 4:18:10 PM UTC, Peter Otten wrote: > > >> xeon Mailinglist wrote: > > >> > > >> > O

Python.Exe Problem

2015-12-29 Thread Daniel Lee
Hello, When I try to run python.exe on my computer with Windows 8, I get the following error: "Python.exe - Entry Point Not Found" "The Procedure entry point ?terminate@@YAXXZ could not be located in the dynamic link library C:\Program Files\Python3.5\python.exe." What does this error mean and

Re: Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread xeon Mailinglist
On Tuesday, December 29, 2015 at 5:33:43 PM UTC, Peter Otten wrote: > xeon Mailinglist wrote: > > > On Tuesday, December 29, 2015 at 4:18:10 PM UTC, Peter Otten wrote: > >> xeon Mailinglist wrote: > >> > >> > On Tuesday, December 29, 2015 at 11:16:10 AM UTC, xeon Mailinglist > >> > wrote: > >> >>

Re: Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread Peter Otten
xeon Mailinglist wrote: > On Tuesday, December 29, 2015 at 4:18:10 PM UTC, Peter Otten wrote: >> xeon Mailinglist wrote: >> >> > On Tuesday, December 29, 2015 at 11:16:10 AM UTC, xeon Mailinglist >> > wrote: >> >> 1. How do I create a global variable that can be accessed by all >> >> classes? >>

Re: Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread xeon Mailinglist
On Tuesday, December 29, 2015 at 5:15:24 PM UTC, Mark Lawrence wrote: > On 29/12/2015 15:20, xeon Mailinglist wrote: > > On Tuesday, December 29, 2015 at 11:16:10 AM UTC, xeon Mailinglist wrote: > >> 1. How do I create a global variable that can be accessed by all classes? > >> > >> 2. I am using `

Re: Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread xeon Mailinglist
On Tuesday, December 29, 2015 at 5:15:24 PM UTC, Mark Lawrence wrote: > On 29/12/2015 15:20, xeon Mailinglist wrote: > > On Tuesday, December 29, 2015 at 11:16:10 AM UTC, xeon Mailinglist wrote: > >> 1. How do I create a global variable that can be accessed by all classes? > >> > >> 2. I am using `

Re: Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread xeon Mailinglist
On Tuesday, December 29, 2015 at 4:18:10 PM UTC, Peter Otten wrote: > xeon Mailinglist wrote: > > > On Tuesday, December 29, 2015 at 11:16:10 AM UTC, xeon Mailinglist wrote: > >> 1. How do I create a global variable that can be accessed by all classes? > >> > >> 2. I am using `dogpile.cache` to s

Re: Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread Mark Lawrence
On 29/12/2015 15:20, xeon Mailinglist wrote: On Tuesday, December 29, 2015 at 11:16:10 AM UTC, xeon Mailinglist wrote: 1. How do I create a global variable that can be accessed by all classes? 2. I am using `dogpile.cache` to store data in the cache [1], but if I set and get the same key from

Re: Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread Peter Otten
xeon Mailinglist wrote: > On Tuesday, December 29, 2015 at 11:16:10 AM UTC, xeon Mailinglist wrote: >> 1. How do I create a global variable that can be accessed by all classes? >> >> 2. I am using `dogpile.cache` to store data in the cache [1], but if I >> set and get the same key from different

Re: Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread xeon Mailinglist
On Tuesday, December 29, 2015 at 11:16:10 AM UTC, xeon Mailinglist wrote: > 1. How do I create a global variable that can be accessed by all classes? > > 2. I am using `dogpile.cache` to store data in the cache [1], but if I set > and get the same key from different modules, I don't get the value

Re: yaxis

2015-12-29 Thread Mark Lawrence
On 29/12/2015 14:25, damien.ishac...@gmail.com wrote: hello I would only change the scale of the y-axis, how to deal with matplotlib.pyplot or another library ? Please show us your code. The best way to deal with any library is to read the docs so start here http://matplotlib.org/contents.h

yaxis

2015-12-29 Thread damien . ishacian
hello I would only change the scale of the y-axis, how to deal with matplotlib.pyplot or another library ? -- https://mail.python.org/mailman/listinfo/python-list

Re: EOFError: marshal data too short -- causes?

2015-12-29 Thread D'Arcy J.M. Cain
On Tue, 29 Dec 2015 00:01:00 -0800 Glenn Linderman wrote: > OK, so I actually renamed it instead of zapping it. Them, actually, Really, just zap them. They are object code. Even if you zap a perfectly good .pyc file a perfectly good one will be re-created as soon as you import it. No need to

Re: (Execution) Termination bit, Alternation bit.

2015-12-29 Thread Steven D'Aprano
On Tue, 29 Dec 2015 10:25 pm, Skybuck Flying wrote: > Great that means you will understand the example below: > > mov eax, 0 > add eax, 10 > mul eax, 4 > > There is an instruction sequence for you. Skybuck, this is completely off-topic for a Python forum like this. -- Steven -- https://

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2015-12-29 Thread lee
On Tuesday, December 29, 2015 at 11:48:42 AM UTC+1, Cameron Simpson wrote: > On 29Dec2015 00:49, lee wrote: > >thumbs up Cameron , you and others here are really wonderful > >https://mail.python.org/mailman/listinfo/python-list > > Hi Lee, > > While we're generally happy to help, these questions

Re: (Execution) Termination bit, Alternation bit.

2015-12-29 Thread Skybuck Flying
"Grant Edwards" wrote in message news:n59k40$e27$1...@reader1.panix.com... On 2015-12-21, Dennis Lee Bieber wrote: On Mon, 21 Dec 2015 13:40:21 +0100, "Skybuck Flying" declaimed the following: The original idea I posted is less about sending a signal to another processor. It is more abou

Re: (Execution) Termination bit, Alternation bit.

2015-12-29 Thread Skybuck Flying
"Grant Edwards" wrote in message news:n59k40$e27$1...@reader1.panix.com... On 2015-12-21, Dennis Lee Bieber wrote: On Mon, 21 Dec 2015 13:40:21 +0100, "Skybuck Flying" declaimed the following: The original idea I posted is less about sending a signal to another processor. It is more abou

Re: (Execution) Termination bit, Alternation bit.

2015-12-29 Thread Skybuck Flying
"Chris Angelico" wrote in message news:mailman.62.1450799815.2237.python-l...@python.org... On Wed, Dec 23, 2015 at 2:46 AM, Skybuck Flying wrote: One idea which immediatly comes to mind to fix this problem is to offer a "PushTerminationFlag" onto stack and then a "ClearTerminationFlag" i

Cannot get the value from dogpile.cache from different modules.

2015-12-29 Thread xeon Mailinglist
1. How do I create a global variable that can be accessed by all classes? 2. I am using `dogpile.cache` to store data in the cache [1], but if I set and get the same key from different modules, I don't get the value. Here is an example in [2]. The value than I get is `NO_VALUE.NO_VALUE`. Why thi

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2015-12-29 Thread Cameron Simpson
On 29Dec2015 00:49, lee wrote: thumbs up Cameron , you and others here are really wonderful https://mail.python.org/mailman/listinfo/python-list Hi Lee, While we're generally happy to help, these questions are better taken to the tutor list here: https://mail.python.org/mailman/listinfo/

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2015-12-29 Thread lee
On Monday, December 28, 2015 at 11:30:18 PM UTC+1, Cameron Simpson wrote: > On 28Dec2015 01:34, Prince Udoka wrote: > >bu i have come up with a solution, that will work but encounter a problem in > >the set, giving set not manipulated correctly: > > > >def manipulate_data(kind, data): > >if k

Re: EOFError: marshal data too short -- causes?

2015-12-29 Thread Glenn Linderman
On 12/28/2015 11:19 PM, Terry Reedy wrote: On 12/29/2015 1:50 AM, Glenn Linderman wrote: Here's a sanatized stack trace off my web server: File ".../cgihelpers.py", line 10, in import cgitb File ".../py34/lib/python3.4/cgitb.py", line 24, in import inspect File ".../py34/lib/