I have windows 8 running on my computer and I think I downloaded python 2 and 3
simultaneously or I think my computer has built in python 2 and I downloaded
python 3. And now when I ran my code in IDLE, the code works fine but when I
save my program and double click the save file, it will run bu
On 29Jul2015 07:52, dieter wrote:
"=?GBK?B?wO68zsX0?=" writes:
Hi, I tried using seek to reverse a text file after reading about the
subject in the documentation:
https://docs.python.org/3/tutorial/inputoutput.html#methods-of-file-objects
https://docs.python.org/3/library/io.html#io.TextIOBase
Hi all,
I want to create a part in 2D composed by:
-A square
-Inside the square there is a lot of circles
I have a input file .dat where we can find the coordinates of the circles'
centers and their radius.
I want to create this part using a python script and import it in Abaqus/CAE.
Does anyo
Goodmorning dear Team,
I'm Davide D'Arenzo and I'm working with Python using the standard
xmlrpclib library communicating between a JavaServer (that host xmlrpc
server) and my python client. I have a problem and I hope that you should
solve my issue.
I want to send a DOM instance through xmlrpc p
Hi Everyone,
I'm writing python code to read a data text file, split the file into a list of
words using the split(function) and to print the results in alphabetical order.
The raw python code is located at http://tinyurl.com/oua9uqx
The sample data is located at
http://tinyurl.com/odt9nhe
Hi Everyone:
What is the source of the syntax error to the String Attribute?
Go to the following URL links and view a copy of the raw data file code and
sample data:
1.) http://tinyurl.com/p2xxxhl
2.) http://tinyurl.com/nclg6pq
Here is the desired output:
stephen.marqu...@uct.ac.za
Hi Everyone,
I'm trying to print a command of list options by using the help command in the
iPython interpreter. Read captured copy of the printout as follows:
'Python 2.7.10 |Anaconda 2.3.0 (64-bit)| (default, May 28 2015, 16:44:52) [MSC
v.
1500 64 bit (AMD64)]
Type "copyright", "credits" o
I am using Spyder Python 2.7. I'm running this sample code.
import numpy as np
import numpy.random as npr
import matplotlib.pyplot as plt
S0 = 100
r = 0.05
sigma = 0.25
T = 30 / 365.
I = 1
ST = S0 * np.exp((r - 0.5 * sigma ** 2) * T + sigma * np.sqrt(T) *
npr.standard_normal(I))
R_gbm = np.so
On Wed, Jul 29, 2015 at 3:19 PM, ryguy7272 wrote:
> I am using Spyder Python 2.7. I'm running this sample code.
> import numpy as np
> import numpy.random as npr
> import matplotlib.pyplot as plt
> S0 = 100
> r = 0.05
> sigma = 0.25
> T = 30 / 365.
> I = 1
> ST = S0 * np.exp((r - 0.5 * sigma
On Wednesday, July 29, 2015 at 9:19:19 AM UTC-4, ryguy7272 wrote:
> I am using Spyder Python 2.7. I'm running this sample code.
> import numpy as np
> import numpy.random as npr
> import matplotlib.pyplot as plt
> S0 = 100
> r = 0.05
> sigma = 0.25
> T = 30 / 365.
> I = 1
> ST = S0 * np.exp((r
I am using Spyder Python 2.7. I'm running this sample code.
import scipy as sp
cashflows=[50,40,20,10,50]
npv=sp.npv(0.1,cashflows)
round(npv,2)
Now, I'm trying to get the NPV, and I don't see any obvious way to get it.
The author of the book that I'm reading gets 144.56. I think that's wron
On Wednesday, July 29, 2015 at 3:59:10 PM UTC+2, ryguy7272 wrote:
> I am using Spyder Python 2.7. I'm running this sample code.
>
> import scipy as sp
> cashflows=[50,40,20,10,50]
> npv=sp.npv(0.1,cashflows)
> round(npv,2)
>
>
> Now, I'm trying to get the NPV, and I don't see any obvious way to
- Original Message -
> From: "ltc hotspot"
> To: "python-list@python.org"
> Sent: Tuesday, 28 July, 2015 10:21:59 PM
> Subject: line error on no. 7
> Hi Everyone,
> I'm writing python code to read a data text file, split the file into
> a list of words using the split(function) and to pr
On Thursday, July 23, 2015 at 1:43:00 PM UTC+2, Jeremy Sanders wrote:
> Heli Nix wrote:
>
> > Is there any way that I can optimize this if statement.
>
> Array processing is much faster in numpy. Maybe this is close to what you
> want
>
> import numpy as N
> # input data
> vals = N.array([42, 1
El miércoles, 29 de julio de 2015, 1:07:22 (UTC+2), Ian escribió:
> On Tue, Jul 28, 2015 at 1:17 PM, Javier wrote:
> > Hello again. I have been investigating a bit your example. I don't
> > understand why I can't write something like this:
> >
> >
> >
> > import asyncio
> >
> > def foo(
- Original Message -
> From: "ltc hotspot"
> To: "python-list@python.org"
> Sent: Tuesday, 28 July, 2015 6:59:13 PM
> Subject: Help Command Question
> Hi Everyone,
> I'm trying to print a command of list options by using the help
> command in the iPython interpreter. Read captured cop
On Wednesday, July 29, 2015 at 10:21:35 AM UTC-4, ryguy7272 wrote:
> On Wednesday, July 29, 2015 at 9:59:10 AM UTC-4, ryguy7272 wrote:
> > I am using Spyder Python 2.7. I'm running this sample code.
> >
> > import scipy as sp
> > cashflows=[50,40,20,10,50]
> > npv=sp.npv(0.1,cashflows)
> > round(
On Wednesday, July 29, 2015 at 9:59:10 AM UTC-4, ryguy7272 wrote:
> I am using Spyder Python 2.7. I'm running this sample code.
>
> import scipy as sp
> cashflows=[50,40,20,10,50]
> npv=sp.npv(0.1,cashflows)
> round(npv,2)
>
>
> Now, I'm trying to get the NPV, and I don't see any obvious way to
On Sun, Jul 26, 2015, at 02:43, Ian Kelly wrote:
> What Internet standard is being violated by reflowing text content in
> the message body?
Well, implicitly, text is only supposed to be reflowed when
format=flowed is in use, and only then when each physical line of the
file ends with a space char
On Sun, Jul 26, 2015, at 07:48, Marko Rauhamaa wrote:
> At first, there was only the machine language. Assembly languages
> introduced "mnemonics" for the weaklings who couldn't remember the
> opcodes by heart.
To be fair, x86 is also a particularly terrible example of a machine
language, from the
On Wed, Jul 29, 2015 at 10:51 AM, wrote:
> On Sun, Jul 26, 2015, at 07:48, Marko Rauhamaa wrote:
>> At first, there was only the machine language. Assembly languages
>> introduced "mnemonics" for the weaklings who couldn't remember the
>> opcodes by heart.
>
> To be fair, x86 is also a particular
In a message of Mon, 27 Jul 2015 23:16:26 +0200, deus ex writes:
>Dear sirs or madam,
>
>I would like to let produce a p(c)ython coffee mug for myself for
>non-commerical use. Am I allowed to use your designed logo like:
>
>https://www.python.org/static/community_logos/python-logo-generic.svg
>http
In a message of Tue, 28 Jul 2015 17:45:00 +0100, BartC writes:
>On 28/07/2015 17:12, Steven D'Aprano wrote:
>> On Tue, 28 Jul 2015 07:46 pm, BartC wrote:
>>
>>> (I'm still reeling from the size of that Anaconda download. Apparently
>>> it contains a whole bunch of stuff, nothing to do with numpy, t
On 29/07/15 15:27, ryguy7272 wrote:
> On Wednesday, July 29, 2015 at 10:21:35 AM UTC-4, ryguy7272 wrote:
>> On Wednesday, July 29, 2015 at 9:59:10 AM UTC-4, ryguy7272 wrote:
>>> I am using Spyder Python 2.7. I'm running this sample code.
>>>
>>> import scipy as sp
>>> cashflows=[50,40,20,10,50]
>>
In a message of Tue, 28 Jul 2015 20:35:15 -0700, Rustom Mody writes:
>- I should not have to customize emacs so that CTRL/A, CTRL/E, CTRL/N, and
>CTRL/P continue to work the way they've done since the mid-1970s.
>
>etc etc
>
>¹ emacs 18 dates from around 1992 (!!)
N
On 29/07/2015 17:13, Laura Creighton wrote:
In a message of Tue, 28 Jul 2015 17:45:00 +0100, BartC writes:
On 28/07/2015 17:12, Steven D'Aprano wrote:
https://en.wikipedia.org/wiki/Libffi
Yes, I know (I was looking at it myself a few days ago for another
project). But while it might be used
On Wed, Jul 29, 2015 at 6:42 AM, wrote:
> On Sun, Jul 26, 2015, at 02:43, Ian Kelly wrote:
>> What Internet standard is being violated by reflowing text content in
>> the message body?
>
> Well, implicitly, text is only supposed to be reflowed when
> format=flowed is in use, and only then when ea
In Cameron Simpson
writes:
> >Since you haven't posted the actual complete code, we can only guess
> >at the problem.
> >
> >My guess is that you have two different definitions of the LineLogic
> >class, one of them lacking the probe attribute.
> Alternatively, if the code he did quote is accu
On 7/28/2015 7:38 PM, ltc.hots...@gmail.com wrote:
What is the source of the syntax error to the String Attribute?
Go to the following URL links and view a copy of the raw data file code
and sample data:
1.) http://tinyurl.com/p2xxxhl
2.) http://tinyurl.com/nclg6pq
If you want help here, red
On 7/29/2015 8:12 AM, saber.chelag...@gmail.com wrote:
Hi all, I want to create a part in 2D composed by:
-A square -Inside the square there is a lot of circles
I have a input file .dat where we can find the coordinates of the
circles' centers and their radius.
You can easily display a square
Hello,
i have been learning python for the past year and i did a few projects. Now i
want to step up my game a bit and i want to build a real estate app . Its not
going to be commercially released, its just for learning. My idea is the
following, the app can have 2 types of users - brokers that
On 7/29/2015 11:55 AM, Laura Creighton wrote:
In a message of Mon, 27 Jul 2015 23:16:26 +0200, deus ex writes:
Dear sirs or madam,
I would like to let produce a p(c)ython coffee mug for myself for
non-commerical use. Am I allowed to use your designed logo like:
https://www.python.org/static/co
On 7/29/2015 10:21 AM, ryguy7272 wrote:
On Wednesday, July 29, 2015 at 9:59:10 AM UTC-4, ryguy7272 wrote:
I am using Spyder Python 2.7. I'm running this sample code.
import scipy as sp
cashflows=[50,40,20,10,50]
npv=sp.npv(0.1,cashflows)
round(npv,2)
Now, I'm trying to get the NPV, and I don
On Wed, 29 Jul 2015 11:27:48 -0700, Martin Spasov wrote:
> Hello,
>
> i have been learning python for the past year and i did a few projects.
> Now i want to step up my game a bit and i want to build a real estate
> app . Its not going to be commercially released, its just for learning.
> My idea
On Wed, Jul 29, 2015 at 2:01 PM, Terry Reedy wrote:
> On 7/29/2015 11:55 AM, Laura Creighton wrote:
>> We have SVG versions here:
>> https://www.python.org/community/logos/
>
> See Guidelines for Use near the bottom, which as an *ask first* link if in
> doubt. Given that your coffee cup would be
On 29/07/2015 08:20, john wrote:
I have windows 8 running on my computer and I think I downloaded python 2 and 3
simultaneously or I think my computer has built in python 2 and I downloaded
python 3. And now when I ran my code in IDLE, the code works fine but when I
save my program and double
On 29-7-2015 14:52, Davide D'Arenzo wrote:
> I want to send a DOM instance through xmlrpc protocol. I know that the
> istance are
> impossible to manage by xmlrpclib library in Python but this is what I need.
> I'm trying
> to understand why is not possible to marshal the class Nodelist and I
>
fname = raw_input("Enter file name: ")
if len(fname) < 1 :
fname = "mbox-short.txt"
for line in fname:
line = line.strip()
if not line.startwith('From '):
continue
line = line.split()
count = count + 1
You need to actually open t
On 29Jul2015 10:51, random...@fastmail.us wrote:
On Sun, Jul 26, 2015, at 07:48, Marko Rauhamaa wrote:
At first, there was only the machine language. Assembly languages
introduced "mnemonics" for the weaklings who couldn't remember the
opcodes by heart.
To be fair, x86 is also a particularly
On 29Jul2015 18:32, Laura Creighton wrote:
In a message of Tue, 28 Jul 2015 20:35:15 -0700, Rustom Mody writes:
- I should not have to customize emacs so that CTRL/A, CTRL/E, CTRL/N, and
CTRL/P continue to work the way they've done since the mid-1970s.
etc etc
On Thursday, July 30, 2015 at 6:15:56 AM UTC+5:30, Cameron Simpson wrote:
> On 29Jul2015 18:32, Laura Creighton wrote:
> >These control characters are the very basic move characters in emacs.
> >People have always been free to remap them if they want them to do
> >something else, but waking up in
On 29Jul2015 00:20, john wrote:
I have windows 8 running on my computer and I think I downloaded python 2 and 3
simultaneously or I think my computer has built in python 2 and I downloaded
python 3. And now when I ran my code in IDLE, the code works fine but when I
save my program and double
On 24-07-2015 19:31, Paulo da Silva wrote:
I'll begin with pyqtgraph. Seems to be simple to start with. Thanks
Chistopher.
Later I'll give a try to bokeh. I'll need to look better at web
applications first. I still don't know if dynamically changing is
possible without the bokeh server. Thanks La
"Davide D'Arenzo" writes:
> I'm Davide D'Arenzo and I'm working with Python using the standard
> xmlrpclib library communicating between a JavaServer (that host xmlrpc
> server) and my python client. I have a problem and I hope that you should
> solve my issue.
>
> I want to send a DOM instance t
Martin Spasov writes:
> ...
> i want to build a real estate app .
> ...
> Now i want there to be global database and when a broker updates a property i
> want to update the database so when a user requests the said property it
> would be updated.
>
> What i think i could do is write a socketserv
45 matches
Mail list logo