Re: Opening Multiple files at one time

2015-04-22 Thread Felix Dietrich
subhabrata.bane...@gmail.com writes: > Dear Group, > > I am trying to open multiple files at one time. > I am trying to do it as, > > for item in [ "one", "two", "three" ]: >f = open (item + "world.txt", "w") >f.close() > > This is fine. But I was looking if I do not know the nu

[no subject]

2015-04-22 Thread Chandra Prashad mishra
sir how can i improve my basic knowledge about programming.can u give me some hint...just give me way -- https://mail.python.org/mailman/listinfo/python-list

Re:

2015-04-22 Thread David Palao
Hello, I can definitely recommend this: http://norvig.com/21-days.html Of course, more precise advice would be possible if you provide more details of what is your background, what you know, and so on. Best 2015-04-20 17:15 GMT+02:00 Chandra Prashad mishra : > sir how can i improve my basic knowl

Re: Python and fortran Interface suggestion

2015-04-22 Thread edmondo . giovannozzi
Il giorno domenica 19 aprile 2015 22:26:58 UTC+2, Dave Angel ha scritto: > On 04/19/2015 11:56 AM, pauld11718 wrote: > > I shall provide with further details > > > > Its about Mathematical modelling of a system. Fortran does one part and > > python does the other part (which I am suppose to pr

Diff between object graphs?

2015-04-22 Thread Cem Karan
Hi all, I need some help. I'm working on a simple event-based simulator for my dissertation research. The simulator has state information that I want to analyze as a post-simulation step, so I currently save (pickle) the entire simulator every time an event occurs; this lets me analyze the simu

Re: New to Python - block grouping (spaces)

2015-04-22 Thread Rustom Mody
On Wednesday, April 22, 2015 at 9:35:34 AM UTC+5:30, llanitedave wrote: > On Tuesday, April 21, 2015 at 8:12:07 PM UTC-7, Rustom Mody wrote: > > On Wednesday, April 22, 2015 at 3:05:57 AM UTC+5:30, llanitedave wrote: > > > On Tuesday, April 21, 2015 at 10:49:34 AM UTC-7, Rustom Mody wrote: > > > >

Re: New to Python - block grouping (spaces)

2015-04-22 Thread Mark Lawrence
On 22/04/2015 12:37, Rustom Mody wrote: On Wednesday, April 22, 2015 at 9:35:34 AM UTC+5:30, llanitedave wrote: On Tuesday, April 21, 2015 at 8:12:07 PM UTC-7, Rustom Mody wrote: On Wednesday, April 22, 2015 at 3:05:57 AM UTC+5:30, llanitedave wrote: On Tuesday, April 21, 2015 at 10:49:34 AM U

Re: Diff between object graphs?

2015-04-22 Thread Rustom Mody
On Wednesday, April 22, 2015 at 4:07:35 PM UTC+5:30, Cem Karan wrote: > Hi all, I need some help. I'm working on a simple event-based simulator for > my dissertation research. The simulator has state information that I want to > analyze as a post-simulation step, so I currently save (pickle) the

Re: [RELEASED] Python 3.5.0a4 is now available

2015-04-22 Thread Rustom Mody
On Wednesday, April 22, 2015 at 1:47:12 PM UTC+5:30, wxjm...@gmail.com wrote: > Le mardi 21 avril 2015 08:29:50 UTC+2, wxjm...@gmail.com a écrit : > > Le lundi 20 avril 2015 10:16:17 UTC+2, Larry Hastings a écrit : > > > On behalf of the Python development community and the Python 3.5 > > >

Re: Diff between object graphs?

2015-04-22 Thread CFK
On Wed, Apr 22, 2015 at 8:11 AM, Rustom Mody wrote: > On Wednesday, April 22, 2015 at 4:07:35 PM UTC+5:30, Cem Karan wrote: > > Hi all, I need some help. I'm working on a simple event-based simulator > for my dissertation research. The simulator has state information that I > want to analyze as

Re: Diff between object graphs?

2015-04-22 Thread Peter Otten
Cem Karan wrote: > Hi all, I need some help. I'm working on a simple event-based simulator > for my dissertation research. The simulator has state information that I > want to analyze as a post-simulation step, so I currently save (pickle) > the entire simulator every time an event occurs; this l

Re: python : timeit - Tool for measuring execution time

2015-04-22 Thread Michael Torrie
On 04/21/2015 09:31 PM, Ganesh Pal wrote: > Iam not able to understand what why only 10 loops were run ? what > does this mean and how does this work ? I have a hunch you're mistakenly thinking that Python is only running through ten iterations of your for i in range(100) loop. This is not

Re: [RELEASED] Python 3.5.0a4 is now available

2015-04-22 Thread Mark Lawrence
On 22/04/2015 13:21, Rustom Mody wrote: Hey Jmf! If you want to complain thats ok... its a free world I guess... If however you want someone to help you with installing, you need to give more info: - What you downloaded - What you tried - Your system/OS details - What went wrong eg backtraces

Re: multiprocessing module and matplotlib.pyplot/PdfPages

2015-04-22 Thread Paulo da Silva
On 21-04-2015 03:14, Paulo da Silva wrote: > I have program that generates about 100 relatively complex graphics and > writes then to a pdf book. > It takes a while! > Is there any possibility of using multiprocessing to build the graphics > and then use several calls to savefig(), i.e. some kind o

Re: python : timeit - Tool for measuring execution time

2015-04-22 Thread Ian Kelly
On Wed, Apr 22, 2015 at 7:07 AM, Michael Torrie wrote: > I have a hunch you're mistakenly thinking that Python is only running > through ten iterations of your for i in range(100) loop. This is > not the case. The entire thing is running (all 100 iterations of > your loop), but is run te

Re: Opening Multiple files at one time

2015-04-22 Thread subhabrata . banerji
On Monday, April 20, 2015 at 5:30:15 PM UTC+5:30, subhabrat...@gmail.com wrote: > Dear Group, > > I am trying to open multiple files at one time. > I am trying to do it as, > > for item in [ "one", "two", "three" ]: >f = open (item + "world.txt", "w") >f.close() > > This is fi

A question on the creation of list of lists

2015-04-22 Thread subhabrata . banerji
Dear Group, I am trying to open a bunch of files from a directory and trying to put the results in list of lists that is to say, that is to say, I have a list of file names of a directory, I want to read each one of them. After reading each one of them, I want to put the results of each file i

Re: How to receive a data file of unknown length using a python socket?

2015-04-22 Thread sandyethadka
On Sunday, 19 July 2009 03:03:48 UTC+5:30, twgray wrote: > I am attempting to send a jpeg image file created on an embedded > device over a wifi socket to a Python client running on a Linux pc > (Ubuntu). All works well, except I don't know, on the pc client side, > what the file size is? The fo

Re: A question on the creation of list of lists

2015-04-22 Thread Chris Kaynor
On Wed, Apr 22, 2015 at 9:18 AM, wrote: > Dear Group, > > I am trying to open a bunch of files from a directory and trying to put > the results in list of lists that is to say, > > that is to say, > I have a list of file names of a directory, I want to read each one of > them. > After reading eac

Re: python : timeit - Tool for measuring execution time

2015-04-22 Thread Ganesh Pal
Thank you , this answers my question : ) On Apr 22, 2015 6:39 PM, "Michael Torrie" wrote: > > On 04/21/2015 09:31 PM, Ganesh Pal wrote: > > Iam not able to understand what why only 10 loops were run ? what > > does this mean and how does this work ? > > I have a hunch you're mistakenly thinkin

Re: A question on the creation of list of lists

2015-04-22 Thread Jean-Michel Pichavant
- Original Message - > From: "subhabrata banerji" > To: python-list@python.org > Sent: Wednesday, 22 April, 2015 6:18:30 PM > Subject: A question on the creation of list of lists > > Dear Group, > > I am trying to open a bunch of files from a directory and trying to > put the results in

Re: A question on the creation of list of lists

2015-04-22 Thread subhabrata . banerji
On Wednesday, April 22, 2015 at 9:48:44 PM UTC+5:30, subhabrat...@gmail.com wrote: > Dear Group, > > I am trying to open a bunch of files from a directory and trying to put the > results in list of lists that is to say, > > that is to say, > I have a list of file names of a directory, I want t

Python as shell

2015-04-22 Thread Cecil Westerhof
I am working again with Python and I am impressed again. ;-) I thought there was a Python shell that could be used instead of Bash (or whichever shell you are using), but I can not find anything about it. Am I wrong, or are my search engine skills so bad? -- Cecil Westerhof Senior Software Engin

Re: Python as shell

2015-04-22 Thread Skip Montanaro
On Wed, Apr 22, 2015 at 12:25 PM, Cecil Westerhof wrote: > I thought there was a Python shell that could be used instead of Bash > (or whichever shell you are using), but I can not find anything about > it. Am I wrong, or are my search engine skills so bad? Maybe Pyshell or IPython? Skip -- htt

Re: Python as shell

2015-04-22 Thread Dave Farrance
Cecil Westerhof wrote: >I am working again with Python and I am impressed again. ;-) > >I thought there was a Python shell that could be used instead of Bash >(or whichever shell you are using), but I can not find anything about >it. Am I wrong, or are my search engine skills so bad? You're prob

Re: [RELEASED] Python 3.5.0a4 is now available

2015-04-22 Thread Ian Kelly
On Wed, Apr 22, 2015 at 7:07 AM, Mark Lawrence wrote: > Please don't feed the RUE, you're wasting everybody's time. If there's a problem with the installer, that's worth knowing about, isn't it? At least one of jmf's past complaints has led to an actual bug fix. -- https://mail.python.org/mailma

Re: [RELEASED] Python 3.5.0a4 is now available

2015-04-22 Thread Mark Lawrence
On 22/04/2015 18:59, Ian Kelly wrote: On Wed, Apr 22, 2015 at 7:07 AM, Mark Lawrence wrote: Please don't feed the RUE, you're wasting everybody's time. If there's a problem with the installer, that's worth knowing about, isn't it? At least one of jmf's past complaints has led to an actual bug

Online offline Python apps

2015-04-22 Thread cmeek . dev
Is there a best practice, tutorials, examples out there that demenstrates the best ways to create an offline mode of a python app that gets and sends its data to a remote database. I have tried creating my own via json API to mysql and using sqlalchemy SQLite and mysql. Everything I seem to come

Re: [RELEASED] Python 3.5.0a4 is now available

2015-04-22 Thread Terry Reedy
On 4/22/2015 1:59 PM, Ian Kelly wrote: On Wed, Apr 22, 2015 at 7:07 AM, Mark Lawrence wrote: Please don't feed the RUE, you're wasting everybody's time. If there's a problem with the installer, that's worth knowing about, isn't it? If there is a problem with the installer that is not specif

Re: Diff between object graphs?

2015-04-22 Thread Cem Karan
On Apr 22, 2015, at 8:53 AM, Peter Otten <__pete...@web.de> wrote: > Cem Karan wrote: > >> Hi all, I need some help. I'm working on a simple event-based simulator >> for my dissertation research. The simulator has state information that I >> want to analyze as a post-simulation step, so I curre

Re: Diff between object graphs?

2015-04-22 Thread Dave Angel
On 04/22/2015 09:30 PM, Cem Karan wrote: On Apr 22, 2015, at 8:53 AM, Peter Otten <__pete...@web.de> wrote: Another slightly more involved idea: Make the events pickleable, and save the simulator only for every 100th (for example) event. To restore the 7531th state load pickle 7500 and apply

Re: Diff between object graphs?

2015-04-22 Thread Chris Angelico
On Thu, Apr 23, 2015 at 11:37 AM, Dave Angel wrote: > On 04/22/2015 09:30 PM, Cem Karan wrote: >> >> >> On Apr 22, 2015, at 8:53 AM, Peter Otten <__pete...@web.de> wrote: >> >>> Another slightly more involved idea: >>> >>> Make the events pickleable, and save the simulator only for every 100th >>>

Re: Diff between object graphs?

2015-04-22 Thread Cem Karan
On Apr 22, 2015, at 9:46 PM, Chris Angelico wrote: > On Thu, Apr 23, 2015 at 11:37 AM, Dave Angel wrote: >> On 04/22/2015 09:30 PM, Cem Karan wrote: >>> >>> >>> On Apr 22, 2015, at 8:53 AM, Peter Otten <__pete...@web.de> wrote: >>> Another slightly more involved idea: Make th

Re: Diff between object graphs?

2015-04-22 Thread Dave Angel
On 04/22/2015 09:46 PM, Chris Angelico wrote: On Thu, Apr 23, 2015 at 11:37 AM, Dave Angel wrote: On 04/22/2015 09:30 PM, Cem Karan wrote: On Apr 22, 2015, at 8:53 AM, Peter Otten <__pete...@web.de> wrote: Another slightly more involved idea: Make the events pickleable, and save the simul

Re: Diff between object graphs?

2015-04-22 Thread Cem Karan
On Apr 22, 2015, at 9:56 PM, Dave Angel wrote: > On 04/22/2015 09:46 PM, Chris Angelico wrote: >> On Thu, Apr 23, 2015 at 11:37 AM, Dave Angel wrote: >>> On 04/22/2015 09:30 PM, Cem Karan wrote: On Apr 22, 2015, at 8:53 AM, Peter Otten <__pete...@web.de> wrote: > Anot

Re: Diff between object graphs?

2015-04-22 Thread Steven D'Aprano
On Thursday 23 April 2015 11:53, Cem Karan wrote: > Precisely. In order to make my simulations more realistic, I use a lot of > random numbers. I can fake things by keeping the seed to the generator, > but if I want to do any sort of hardware in the loop simulations, then > that approach won't w