Took too long time to start before executing my first line of code

2015-04-23 Thread Steven Woody
Hi, I got a problem and hope your gurus can show me some clues. I run python on an embedded ARM system. Everything is fine except that it seems every program need 3s+ time to load -- I mean it took 3s before executing the first line of every program. I run strace but cannot identify the true

Re: can you help guys?

2015-04-23 Thread Steven D'Aprano
On Fri, 24 Apr 2015 01:51 am, brokolists wrote: > my problem is i m working with very long float numbers and i use > numberx =float(( input( 'enter the number\n '))) > after i use this command when i enter something more than 10 or 11 digits > it uses like 1e+10 or something like that but i have t

Re: multiprocessing module and matplotlib.pyplot/PdfPages

2015-04-23 Thread Oscar Benjamin
On 21 April 2015 at 16:53, Paulo da Silva wrote: > On 21-04-2015 11:26, Dave Angel wrote: >> On 04/20/2015 10:14 PM, 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 o

micro python and Jaltek systems pyboard

2015-04-23 Thread Mark H Harris
Greetings, anyone using micro python or Jaltek System's pyboard designed to run it? http://micropython.org/ Cheers, marcus :) -- https://mail.python.org/mailman/listinfo/python-list

Re: can you help guys?

2015-04-23 Thread Ian Kelly
On Thu, Apr 23, 2015 at 9:51 AM, brokolists wrote: > my problem is i m working with very long float numbers and i use > numberx =float(( input( 'enter the number\n '))) > after i use this command when i enter something more than 10 or 11 digits it > uses like 1e+10 or something like that > but i

Re: [OT] Git for nazis

2015-04-23 Thread ElChino
Albert-Jan Roskam wrote: Just had to share this: https://youtu.be/CDeG4S-mJts "Linus had a a weekend coding binge, jacked up on blow in Vegas". Sounds pretty accurate. -- https://mail.python.org/mailman/listinfo/python-list

can you help guys?

2015-04-23 Thread brokolists
my problem is i m working with very long float numbers and i use numberx =float(( input( 'enter the number\n '))) after i use this command when i enter something more than 10 or 11 digits it uses like 1e+10 or something like that but i have to calculate it without scientific 'e' type. what can i d

Re: Boolean Search using Strings

2015-04-23 Thread Jack Diederich
Here is an old one I wrote. Good for small collections of documents and uncomplicated queries. https://github.com/jackdied/boolmatch -Jack On Thu, Apr 23, 2015 at 10:50 AM, wrote: > Dear Group, > > I want to do the Boolean search over various sentences or documents. > I do not want to use spec

Re: Diff between object graphs?

2015-04-23 Thread Steve Smaldone
On Thu, Apr 23, 2015 at 6:34 AM, Cem Karan wrote: > > On Apr 23, 2015, at 1:59 AM, Steven D'Aprano < > steve+comp.lang.pyt...@pearwood.info> wrote: > > > On Thursday 23 April 2015 11:53, Cem Karan wrote: > > > >> Precisely. In order to make my simulations more realistic, I use a lot > of > >> ra

[OT] Git for nazis

2015-04-23 Thread Albert-Jan Roskam
Just had to share this: https://youtu.be/CDeG4S-mJts-- https://mail.python.org/mailman/listinfo/python-list

Boolean Search using Strings

2015-04-23 Thread subhabrata . banerji
Dear Group, I want to do the Boolean search over various sentences or documents. I do not want to use special programs like Whoosh, etc. May I use any other parser? If anybody may kindly let me know. Regards, Subhabrata Banerjee. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to write a non blocking SimpleHTTPRequestHandler ?

2015-04-23 Thread Yassine Chaouche
Here is a simple multi-threaded python web application that uses only the stanard library modules : #!/usr/bin/env python #-*- encoding=utf-8 -*- import SimpleHTTPServer import BaseHTTPServer import SocketServer class MyServer(SocketServer.ThreadingMixIn,BaseHTTPServer.HTTPServer): pass

HELP! about long polling!!!

2015-04-23 Thread Thanatos xiao
Hi all: Now I develop an ios app, which need use long polling. when server have data, the server push data to ios app. I use django to backend, Can give me some advice or example ? ths -- https://mail.python.org/mailman/listinfo/python-list

Re: Urjent Requirements :1.Agile Coach, 2.Technical Analyst :- Remedy 3.Technical Analyst :- Internet Explorer, Location:-Bloomington, IL.

2015-04-23 Thread Chris Angelico
On Fri, Apr 24, 2015 at 12:17 AM, nagaraju thoudoju wrote: > Hi, > > Hope you are doing well, > > Please find the requirement below and let me know you interest on this > position > (chomp chomp) Please don't spam this list with job ads that have nothing whatsoever to do with Python. Go earn you

Re: A question on the creation of list of lists

2015-04-23 Thread Chris Angelico
On Fri, Apr 24, 2015 at 12:12 AM, Dave Angel wrote: > On 04/23/2015 08:36 AM, Gregory Ewing wrote: >> >> Jean-Michel Pichavant wrote: From: "subhabrata banerji" list_of_files = glob.glob('C:\Python27\*.*') >> >> > >>> >>> 1/ Your file pattern search will not get files that do

Urjent Requirements :1.Agile Coach,2.Technical Analyst :- Remedy 3.Technical Analyst :- Internet Explorer, Location:-Bloomington, IL.

2015-04-23 Thread nagaraju thoudoju
Hi, Hope you are doing well, Please find the requirement below and let me know you interest on this position on nagar...@intsystech.com or feel free to call me on D:908-333-3540. 1.Requirement: Role: Agile Coach Work location :- Bloomington, IL, Job description: The person should hav

Re: A question on the creation of list of lists

2015-04-23 Thread Dave Angel
On 04/23/2015 08:36 AM, Gregory Ewing wrote: Jean-Michel Pichavant wrote: From: "subhabrata banerji" list_of_files = glob.glob('C:\Python27\*.*') > 1/ Your file pattern search will not get files that do not have any dot in their name Actually, on Windows, it will. (This is for compatibili

Re: May I drop list bracket from list?

2015-04-23 Thread Dave Angel
On 04/23/2015 06:11 AM, subhabrata.bane...@gmail.com wrote: Dear Group, I am trying to read a list of files as list_of_files = glob.glob('C:\Python27\*.*') Now I am trying to read each one of them, convert into list of words, and append to a list as. list1=[] for file in list_of_files: p

Re: How to write a non blocking SimpleHTTPRequestHandler ?

2015-04-23 Thread Yassine Chaouche
Hello, I wanted to make a little update on this thread. The problem is solved, and while debugging my application I learned that it is actually possible to have multithreaded or multi-process web application in python using only the standard library. A longer explanation, along with minimal wo

Re: A question on the creation of list of lists

2015-04-23 Thread Gregory Ewing
Jean-Michel Pichavant wrote: From: "subhabrata banerji" list_of_files = glob.glob('C:\Python27\*.*') > 1/ Your file pattern search will not get files that do not have any dot in their name Actually, on Windows, it will. (This is for compatibility with MS-DOS 8.3 filenames, where the dot was

Re: May I drop list bracket from list?

2015-04-23 Thread Steven D'Aprano
On Thu, 23 Apr 2015 09:12 pm, Jean-Michel Pichavant wrote: > If both list1 and fword are lists, you can also write > > list1 = list1 + fword > or > list1 += fword You can, but you shouldn't since it risks being very slow, especially the first version. Repeated list addition has quadratic behavi

Re: May I drop list bracket from list?

2015-04-23 Thread Peter Otten
Jean-Michel Pichavant wrote: > - Original Message - >> From: "Peter Otten" <__pete...@web.de> >> To: python-list@python.org >> Sent: Thursday, 23 April, 2015 12:26:41 PM >> Subject: Re: May I drop list bracket from list? >> >> subhabrata.bane...@gmail.com wrote: >> >> > Dear Group, >> >

Re: May I drop list bracket from list?

2015-04-23 Thread Jean-Michel Pichavant
- Original Message - > From: "Peter Otten" <__pete...@web.de> > To: python-list@python.org > Sent: Thursday, 23 April, 2015 12:26:41 PM > Subject: Re: May I drop list bracket from list? > > subhabrata.bane...@gmail.com wrote: > > > Dear Group, > > > > list1=[] > > for file in list_of_fil

Re: May I drop list bracket from list?

2015-04-23 Thread Ben Bacarisse
subhabrata.bane...@gmail.com writes: > I am trying to read a list of files as > list_of_files = glob.glob('C:\Python27\*.*') > Now I am trying to read each one of them, > convert into list of words, and append to a list > as. > > list1=[] > for file in list_of_files: > print file > f

Re: May I drop list bracket from list?

2015-04-23 Thread Peter Otten
subhabrata.bane...@gmail.com wrote: > On Thursday, April 23, 2015 at 3:57:28 PM UTC+5:30, Peter Otten wrote: >> >> >> > Dear Group, >> > >> > I am trying to read a list of files as >> > list_of_files = glob.glob('C:\Python27\*.*') >> > Now I am trying to read each one of them, >> > convert into

Re: May I drop list bracket from list?

2015-04-23 Thread subhabrata . banerji
On Thursday, April 23, 2015 at 3:57:28 PM UTC+5:30, Peter Otten wrote: > > > > Dear Group, > > > > I am trying to read a list of files as > > list_of_files = glob.glob('C:\Python27\*.*') > > Now I am trying to read each one of them, > > convert into list of words, and append to a list > > as. >

Re: Diff between object graphs?

2015-04-23 Thread Cem Karan
On Apr 23, 2015, at 1:59 AM, Steven D'Aprano wrote: > 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

Re: May I drop list bracket from list?

2015-04-23 Thread Peter Otten
subhabrata.bane...@gmail.com wrote: > Dear Group, > > I am trying to read a list of files as > list_of_files = glob.glob('C:\Python27\*.*') > Now I am trying to read each one of them, > convert into list of words, and append to a list > as. > > list1=[] > for file in list_of_files: > print

May I drop list bracket from list?

2015-04-23 Thread subhabrata . banerji
Dear Group, I am trying to read a list of files as list_of_files = glob.glob('C:\Python27\*.*') Now I am trying to read each one of them, convert into list of words, and append to a list as. list1=[] for file in list_of_files: print file fread1=open(file,"r").read() fword=fre

Re: a small note booklet about Python

2015-04-23 Thread Steven D'Aprano
Hello Rehab, and welcome, On Thursday 23 April 2015 17:56, Rehab Habeeb wrote: > Hi there :) > i would like to know your opinion about a small booklet about what we want > to know python before learning it .. because many people may want to be > satisfied in what they are going to learn and want t

a small note booklet about Python

2015-04-23 Thread Rehab Habeeb
Hi there :) i would like to know your opinion about a small booklet about what we want to know python before learning it .. because many people may want to be satisfied in what they are going to learn and want to be more confident thats what i felt so i surfed the net wanting to know where is p

Re: Python as shell

2015-04-23 Thread Manolo Martínez
On 04/22/15 at 07:25pm, Cecil Westerhof wrote: > I thought there was a Python shell that could be used instead of Bash > (or whichever shell you are using) Perhaps you had [xonsh](http://xonsh.org/) in mind? Manolo -- https://mail.python.org/mailman/listinfo/python-list

Online offline Python apps

2015-04-23 Thread Sam Raker
Have you tried a conditional/try-catch block in your __init__? Something like class MyDBConn(object): def __init__(self, **db_kwargs): try: db = some_db.connect(**db_kwargs) except some_db.ConnectionError: db = my_fake_db()

Re: python : timeit - Tool for measuring execution time

2015-04-23 Thread anubhav1691
On Wednesday, April 22, 2015 at 10:20:58 PM UTC+5:30, Ganesh Pal wrote: > Thank you ,  this answers my question  : ) Hi, Thanks for asking this question, it introduced me to the timeit module. Just a friendly, next time refrain yourself from top posting. Cheers! -- https://mail.python.org/mai