Re: hi

2023-03-04 Thread MRAB
On 2023-03-04 17:13, Tom wrote: Bonjour je suis français et je ne comprend pas comment je peux acceder a python merci de me repondre CORDIALEMENT Lilian Go to https://www.python.org/downloads/ and download the installer for your operating system (Windows or MacOS). For Windows I'd

Re: hi

2023-03-04 Thread Thomas Passin
On 3/4/2023 12:13 PM, Tom wrote: Bonjour je suis français et je ne comprend pas comment je peux acceder a python merci de me repondre CORDIALEMENT Lilian Envoyé à partir de [1]Courrier pour Windows Veuillez expliquer ce que vous entendez par "peux accéder à un python".

Re: Hi!! im searching for a ready app of python for pdf combiner

2020-01-06 Thread Rob Gaddi
On 1/6/20 8:13 AM, alon.naj...@gmail.com wrote: Hi!! im searching for a ready app of python for pdf combiner what I need exactly is a pdf combiner for 20 + pdfs to combine them as one, do a merge Why does this need to be in Python? Just download a copy of pdftk (which I think is written in

Re: Hi there! We are here to answer any questions you have about Udacit...

2019-11-12 Thread DL Neil via Python-list
On 12/11/19 9:48 PM, joseph pareti wrote: great, thank you so much for the advice. In fact, I sent this mail to the python mailing list by mistake, but now I am glad I did ... There's plenty of over-lap between lists - PyTutor is another. Meantime I've received email from IBM about their ML/AI

Re: Hi there! We are here to answer any questions you have about Udacit...

2019-11-11 Thread DL Neil via Python-list
On 12/11/19 7:14 AM, joseph pareti wrote: i have done the first 6 lessons of python --- https://classroom.udacity.com/courses/ud1110/lessons/bbacebc6-406a-4dc5-83f6-ef7ba3371da6/concepts/50247542-7933-4afe-9130-ff1dff429b03 what do you recommend next? My goal is ML/AI As with any professional

Re: Hi there! We are here to answer any questions you have about Udacit...

2019-11-11 Thread joseph pareti
pareti < joeparet...@gmail.com>: > > > -- Forwarded message - > Von: joseph pareti > Date: Do., 7. Nov. 2019 um 09:26 Uhr > Subject: Re: Hi there! We are here to answer any questions you have about > Udacit... > To: Sherry from Udacity > > > ap

Re: Hi how do I import files inside a txt file?

2019-09-30 Thread Tobiah
On 9/2/19 3:32 AM, Spencer Du wrote: Hi How do i import files inside a txt file if they exist in the current directory? Once you've read the module names you can use: new_module = __import__(modulename) So you'd read the name from your file into modulename and import the name contained in

Re: Hi how do I import files inside a txt file?

2019-09-02 Thread DL Neil via Python-list
On 3/09/19 1:48 AM, Spencer Du wrote: On Monday, 2 September 2019 15:29:07 UTC+2, Joel Goldstick wrote: On Mon, Sep 2, 2019 at 9:21 AM Spencer Du wrote: On Monday, 2 September 2019 15:03:52 UTC+2, Joel Goldstick wrote: On Mon, Sep 2, 2019 at 8:46 AM Spencer Du wrote: On Monday, 2 Septem

Re: Hi how do I import files inside a txt file?

2019-09-02 Thread Spencer Du
On Monday, 2 September 2019 15:29:07 UTC+2, Joel Goldstick wrote: > On Mon, Sep 2, 2019 at 9:21 AM Spencer Du wrote: > > > > On Monday, 2 September 2019 15:03:52 UTC+2, Joel Goldstick wrote: > > > On Mon, Sep 2, 2019 at 8:46 AM Spencer Du wrote: > > > > > > > > On Monday, 2 September 2019 13:36

Re: Hi how do I import files inside a txt file?

2019-09-02 Thread Joel Goldstick
On Mon, Sep 2, 2019 at 9:21 AM Spencer Du wrote: > > On Monday, 2 September 2019 15:03:52 UTC+2, Joel Goldstick wrote: > > On Mon, Sep 2, 2019 at 8:46 AM Spencer Du wrote: > > > > > > On Monday, 2 September 2019 13:36:06 UTC+2, Pankaj Jangid wrote: > > > > Spencer Du writes: > > > > > > > > >

Re: Hi how do I import files inside a txt file?

2019-09-02 Thread Spencer Du
On Monday, 2 September 2019 15:03:52 UTC+2, Joel Goldstick wrote: > On Mon, Sep 2, 2019 at 8:46 AM Spencer Du wrote: > > > > On Monday, 2 September 2019 13:36:06 UTC+2, Pankaj Jangid wrote: > > > Spencer Du writes: > > > > > > > How do i import files inside a txt file if they exist in the curre

Re: Hi how do I import files inside a txt file?

2019-09-02 Thread Joel Goldstick
On Mon, Sep 2, 2019 at 8:46 AM Spencer Du wrote: > > On Monday, 2 September 2019 13:36:06 UTC+2, Pankaj Jangid wrote: > > Spencer Du writes: > > > > > How do i import files inside a txt file if they exist in the current > > > directory? > > > > > > Here is the current code but I dont know how t

Re: Hi how do I import files inside a txt file?

2019-09-02 Thread Spencer Du
On Monday, 2 September 2019 13:36:06 UTC+2, Pankaj Jangid wrote: > Spencer Du writes: > > > How do i import files inside a txt file if they exist in the current > > directory? > > > > Here is the current code but I dont know how to do it correctly. > > > > import paho.mqtt.client as mqtt > > fr

Re: Hi how do I import files inside a txt file?

2019-09-02 Thread Spencer Du
On Monday, 2 September 2019 13:36:06 UTC+2, Pankaj Jangid wrote: > Spencer Du writes: > > > How do i import files inside a txt file if they exist in the current > > directory? > > > > Here is the current code but I dont know how to do it correctly. > > > > import paho.mqtt.client as mqtt > > fr

Re: Hi how do I import files inside a txt file?

2019-09-02 Thread Pankaj Jangid
Spencer Du writes: > How do i import files inside a txt file if they exist in the current > directory? > > Here is the current code but I dont know how to do it correctly. > > import paho.mqtt.client as mqtt > from mqtt import * > import importlib > import os > import os.path > # from stateMachi

Re: Hi I'm trying to get live data from stock using python , is it poss

2018-09-05 Thread Chris Angelico
On Thu, Sep 6, 2018 at 6:06 AM, Calvin Spealman wrote: > Please don't keep spamming this list with the same question, while you have > not responded to any of the advice you've already been given. > > If you have specific trouble with any of that advice and need further help, > please give details

Re: Hi I'm trying to get live data from stock using python , is it poss

2018-09-05 Thread Calvin Spealman
Please don't keep spamming this list with the same question, while you have not responded to any of the advice you've already been given. If you have specific trouble with any of that advice and need further help, please give details and ask new questions! Good luck. On Wed, Sep 5, 2018 at 4:02

Re: Hi I'm trying to get live data from stock using python , is it

2018-09-05 Thread Michael Torrie
On 09/04/2018 10:21 AM, alon.naj...@gmail.com wrote: > Hi , > for example: > I want to know if AAPL is more than value 300 and if it does I want it to send to me mail with gmail :) . thanks for the help.. > Yes it's definitely possible! Hop on Google and do some searches; you're bound to find so

Re: Hi I'm trying to get live data from stock using python ,

2018-09-05 Thread Skip Montanaro
> I want to know if AAPL is more than value 300 and if it does I want it to send to me mail with gmail :) . thanks for the help.. Try searching pypi.org for "finance", then scroll through the many returned packages. A few show how to get stock data from Yahoo! or Google. Skip -- https://mail.py

Re: Hi I'm trying to get live data from stock using python , is it

2018-09-05 Thread Thomas Jollans
On 2018-09-04 18:22, alon.naj...@gmail.com wrote: > On Tuesday, September 4, 2018 at 7:21:31 PM UTC+3, alon@gmail.com wrote: >> Hi , >> for example: >> I want to know if AAPL is more than value 300 and if it does I want it to send to me mail with gmail :) . thanks for the help.. Of course it's

Re: Hi I'm trying to get live data from stock using python , is it poss

2018-09-05 Thread alon najman
On Tuesday, September 4, 2018 at 7:21:31 PM UTC+3, alon@gmail.com wrote: > Hi , > for example: > I want to know if AAPL is more than value 300 and if it does I want it to send to me mail with gmail :) . thanks for the help.. im using python 2.7 -- https://mail.python.org/mailman/listinfo/pyt

Re: Hi I'm trying to get live data from stock using python , is it possible?

2018-09-04 Thread Akkana Peck
Skip Montanaro writes: > > I want to know if AAPL is more than value 300 and if it does I want it to > > send to me mail with gmail :) . thanks for the help.. > > Try searching pypi.org for "finance", then scroll through the many > returned packages. A few show how to get stock data from Yahoo! o

Re: Hi I'm trying to get live data from stock using python , is it possible?

2018-09-04 Thread Michael Torrie
On 09/04/2018 10:21 AM, alon.naj...@gmail.com wrote: > Hi , > for example: > I want to know if AAPL is more than value 300 and if it does I want it to > send to me mail with gmail :) . thanks for the help.. > Yes it's definitely possible! Hop on Google and do some searches; you're bound to find

Re: Hi I'm trying to get live data from stock using python , is it possible?

2018-09-04 Thread Skip Montanaro
> I want to know if AAPL is more than value 300 and if it does I want it to > send to me mail with gmail :) . thanks for the help.. Try searching pypi.org for "finance", then scroll through the many returned packages. A few show how to get stock data from Yahoo! or Google. Skip -- https://mail.

Re: Hi I'm trying to get live data from stock using python , is it possible?

2018-09-04 Thread Thomas Jollans
On 2018-09-04 18:22, alon.naj...@gmail.com wrote: > On Tuesday, September 4, 2018 at 7:21:31 PM UTC+3, alon@gmail.com wrote: >> Hi , >> for example: >> I want to know if AAPL is more than value 300 and if it does I want it to >> send to me mail with gmail :) . thanks for the help.. Of course

Re: Hi I'm trying to get live data from stock using python , is it possible?

2018-09-04 Thread alon . najman
On Tuesday, September 4, 2018 at 7:21:31 PM UTC+3, alon@gmail.com wrote: > Hi , > for example: > I want to know if AAPL is more than value 300 and if it does I want it to > send to me mail with gmail :) . thanks for the help.. im using python 2.7 -- https://mail.python.org/mailman/listinfo/p

Re: Hi everyone

2017-05-24 Thread tommy yama
Hi Ian, yeah. feel free to ask for any relating python. thanks! On Thursday, May 25, 2017, Ian Kelly wrote: > On Wed, May 24, 2017 at 11:20 AM, Spaarwiel > wrote: > > > > Hi there, i was always interested in coding but never took the time to > learn it. > > > > So at age 34 i'm going to try a

Re: Hi everyone

2017-05-24 Thread Ian Kelly
On Wed, May 24, 2017 at 11:20 AM, Spaarwiel wrote: > > Hi there, i was always interested in coding but never took the time to learn it. > > So at age 34 i'm going to try and see if i can win this. > > Saw on a website this is good group page to come for help so i will def. be asking alot of questi

Re: Hi! i need some help with a program in python on Raspberry pi3.

2017-04-17 Thread breamoreboy
On Friday, April 14, 2017 at 3:27:29 PM UTC+1, Kasper wrote: > every time i run the program i get this messeage: > > Traceback (most recent call last): > File "smartmirror.py", line 159, in get_weather > temprature2 = "%S%S" % (str(int(weather_obj['currently']['temperature'])), > degree_sign

Re: Hi! i need some help with a program in python on Raspberry pi3.

2017-04-14 Thread Terry Reedy
On 4/14/2017 10:27 AM, Kasper wrote: every time i run the program i get this messeage: Traceback (most recent call last): File "smartmirror.py", line 159, in get_weather temprature2 = "%S%S" % (str(int(weather_obj['currently']['temperature'])), degree_sign) KeyError: 'currently' Error: 'cu

Re: Hi! i need some help with a program in python on Raspberry pi3.

2017-04-14 Thread Peter Otten
Kasper wrote: > every time i run the program i get this messeage: > > Traceback (most recent call last): > File "smartmirror.py", line 159, in get_weather > temprature2 = "%S%S" % (str(int(weather_obj['currently'] ['temperature'])), > degree_sign) > KeyError: 'currently' > Error: 'currently

Re: Hi! i need some help with a program in python on Raspberry pi3.

2017-04-14 Thread Steve D'Aprano
On Sat, 15 Apr 2017 12:27 am, Kasper wrote: > every time i run the program i get this messeage: > > Traceback (most recent call last): > File "smartmirror.py", line 159, in get_weather > temprature2 = "%S%S" % > (str(int(weather_obj['currently']['temperature'])), > degree_sign) > KeyErr

Re: Hi Im having a problem with python it keeps telling me I need a python interpreter installed Im using windows 10. Can you help?

2016-03-14 Thread Sibylle Koczian
Am 13.03.2016 um 20:19 schrieb mrihustle12: Sent from my Sprint Samsung Galaxy S® 6. Not with this information, we'd need much more. The OS is necessary information, but not sufficient. Have you got Python installed? If yes, which version? Where did you get it and how did you install it?

Re: Hi

2015-11-12 Thread Michael Torrie
On 11/12/2015 02:32 AM, Mark Lawrence wrote: > On 11/11/2015 17:35, Cameron Houliston wrote: >> Can I have a link to use python >> >> Sent from Mail for Windows 10 >> > > I usually start with www.google.co.uk. I think Windows 10 blocks Google. :) And of course the official home of Python is http

Re: Hi

2015-11-12 Thread Mark Lawrence
On 11/11/2015 17:35, Cameron Houliston wrote: Can I have a link to use python Sent from Mail for Windows 10 I usually start with www.google.co.uk. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.

Re: Hi am new to python

2015-09-09 Thread Emile van Sebille
On 9/9/2015 3:35 PM, Denis McMahon wrote: On Tue, 08 Sep 2015 17:44:26 -0500, Nassim Gannoun wrote: My question is in a while loop; how do l sum all the numbers in the given list (list_a)? You don't normally use a while loop or a counter to iterate over a list. Such a question should only be

Re: Hi am new to python

2015-09-09 Thread Denis McMahon
On Tue, 08 Sep 2015 17:44:26 -0500, Nassim Gannoun wrote: > My question is in a while loop; how do l sum all the numbers in the > given list (list_a)? You don't normally use a while loop or a counter to iterate over a list. Such a question should only be used as a precursor to discussing better

Re: Hi am new to python

2015-09-09 Thread alister
On Tue, 08 Sep 2015 17:44:26 -0500, Nassim Gannoun wrote: > Hi I'm also new to Python but would like to reply. > Like others have stated there is a built in function (sum) that can give > the sum of the elements of a list, but if what you are trying to do is > learn how to use the while command he

Re: Hi am new to python

2015-08-31 Thread Ben Finney
Chubasco Diranga writes: > Can anyone please help me with the following please? Welcome! Is this a homework assignment? It's okay to ask for help with those, but we're not going to do the work for you. > My question is in a while loop; how do l sum all the numbers in the > given list (list_a)?

Re: Hi am new to python

2015-08-31 Thread Chris Angelico
On Tue, Sep 1, 2015 at 9:27 AM, Chubasco Diranga wrote: > Can anyone please help me with the following please? > > My question is in a while loop; how do l sum all the numbers in the given > list (list_a)? > > list_a = [8, 5, 2, 4] > sum_a = 0 # for storing the sum of list_a > i = 0 # for looping

Re: Hi am new to python

2015-08-31 Thread Emile van Sebille
On 8/31/2015 4:27 PM, Chubasco Diranga wrote: Can anyone please help me with the following please? My question is in a while loop; how do l sum all the numbers in the given list (list_a)? list_a = [8, 5, 2, 4] sum_a = 0 # for storing the sum of list_a i = 0 # for looping through the list_a# Us

Re: Hi am new to python

2015-08-31 Thread Ian Kelly
On Mon, Aug 31, 2015 at 5:27 PM, Chubasco Diranga wrote: > Can anyone please help me with the following please? > > My question is in a while loop; how do l sum all the numbers in the given > list (list_a)? > > list_a = [8, 5, 2, 4] > sum_a = 0 # for storing the sum of list_a > i = 0 # for loopin

Re: Hi

2015-07-27 Thread Christopher Mullins
> > I downloaded files(Python 2.7.10 - 2015-05-23 > ) to setup on your > website. > (also got the version of x64 because of my cpu) > But when I try to install it, there is an error. > The error is "There is a problem with this Windows Installe

Re: Hi

2015-07-26 Thread Joseph Wayodi
On Sat, Jul 25, 2015 at 8:30 AM, 김지훈 wrote: > Hi. > I recently changed my path to be a programmer so I decided to learn python. > I downloaded files(Python 2.7.10 - 2015-05-23) to setup on your website. > (also got the version of x64 because of my cpu) > But when I try to install it, there is an e

Re: Hi

2015-07-25 Thread John Ladasky
On Saturday, July 25, 2015 at 10:39:48 AM UTC-7, 김지훈 wrote: > Hi. > I recently changed my path to be a programmer so I decided to learn python. > I downloaded files(Python 2.7.10 - 2015-05-23) to setup on your website. Unless you need to maintain someone's older software, I would personally recom

Re: Hi

2015-07-25 Thread blue
... also you can have all python modules from : http://www.lfd.uci.edu/~gohlke/pythonlibs/ read this mini tutorial ( working also with python 2.7) : http://python-catalin.blogspot.ro/2014/10/windows-all-modules-for-python-34.html -- https://mail.python.org/mailman/listinfo/python-list

Re: Hi

2015-07-25 Thread Emile van Sebille
On 7/24/2015 10:30 PM, 김지훈 wrote: Hi. I recently changed my path to be a programmer so I decided to learn python. I downloaded files(Python 2.7.10 - 2015-05-23 ) to setup on your website. (also got the version of x64 because of my cpu) But wh

Re: Hi. I have questions about Python

2015-05-28 Thread Sturla Molden
이현상 wrote: > Hi.Please note that do not speak english well. > Do you know Python 2 vs Python3 MultiProcessing the difference > ?Multiprocessing is better performance? The main difference is that multiprocessing on Python 3.4 (and later) will allow you to use APIs that are not "forksafe" on Linux

Re: Hi Guys... Reading XML using Jython code

2014-10-09 Thread Denis McMahon
On Thu, 09 Oct 2014 05:30:21 -0700, Venugopal Reddy wrote: > XML parsing using Jython.. > In my XML file , One main node is there and Multiple child tags are > there. But In Child tags , same name repeated twice (like tag > repeated twice) > Please help me on this Normally, when pulling da

Re: Hi. I want to create a script to read a file placed in a remote linux server using python..need help..?

2014-05-02 Thread Roy Smith
In article , Denis McMahon wrote: > Method b: > > Use telnet to login to your account on the other server, run the script. Ugh. I hope nobody is using telnet anymore. Passwords send in plain text over the network. Bad. All uses of telnet should have long since been replaced with ssh. On

Re: Hi. I want to create a script to read a file placed in a remote linux server using python..need help..?

2014-05-02 Thread Denis McMahon
On Fri, 02 May 2014 12:55:18 -0700, Bhawani Singh wrote: > I have created the script till here .. > > import os > > os.chdir("/var/log") > fd = open("t1.txt", "r") > for line in fd: > if re.match("(.*)(file1)(.*)", line): > print line, > > Output : > > file1 > > --

Re: hi

2012-09-14 Thread Dwight Hutto
On Fri, Sep 14, 2012 at 4:16 AM, alex23 wrote: > On Sep 14, 5:22 pm, Dwight Hutto wrote: >> Completely OT for this discussion. > > My apologies, I'll leave you to your thrashing around like a giant > child then. Please explain that one. I usually keep the thrashing for inside the house, unlike y

Re: hi

2012-09-14 Thread alex23
On Sep 14, 5:22 pm, Dwight Hutto wrote: > Completely OT for this discussion. My apologies, I'll leave you to your thrashing around like a giant child then. -- http://mail.python.org/mailman/listinfo/python-list

Re: hi

2012-09-14 Thread genban tade
Great to meet you, thank you for your advise 2012/9/14 Dwight Hutto > > You'll love it here. It's always amusing. > > But remember to hit reply all > > Unless you might want to contact someone personally. Some don't mind, > and some may complain. Me I don't care either way. > > Great to meet yo

Re: hi

2012-09-14 Thread Dwight Hutto
On Fri, Sep 14, 2012 at 3:08 AM, Ian Kelly wrote: > On Fri, Sep 14, 2012 at 12:09 AM, alex23 wrote: >> On Sep 14, 3:44 pm, Dwight Hutto wrote: >>> CEO:http://www.hitwebdevelopment.com >> >> I don't know what gives more of a negative impression of your >> business, your acting like a tedious douc

Re: hi

2012-09-14 Thread Dwight Hutto
On Fri, Sep 14, 2012 at 2:09 AM, alex23 wrote: > On Sep 14, 3:44 pm, Dwight Hutto wrote: >> CEO:http://www.hitwebdevelopment.com > > I don't know what gives more of a negative impression of your > business, your acting like a tedious douchebag or the website itself. > -- > http://mail.python.org/

Re: hi

2012-09-14 Thread Ian Kelly
On Fri, Sep 14, 2012 at 12:09 AM, alex23 wrote: > On Sep 14, 3:44 pm, Dwight Hutto wrote: >> CEO:http://www.hitwebdevelopment.com > > I don't know what gives more of a negative impression of your > business, your acting like a tedious douchebag or the website itself. Holy cow, that's the website

Re: hi

2012-09-13 Thread alex23
On Sep 14, 3:44 pm, Dwight Hutto wrote: > CEO:http://www.hitwebdevelopment.com I don't know what gives more of a negative impression of your business, your acting like a tedious douchebag or the website itself. -- http://mail.python.org/mailman/listinfo/python-list

Re: hi

2012-09-13 Thread Dwight Hutto
> You'll love it here. It's always amusing. > But remember to hit reply all Unless you might want to contact someone personally. Some don't mind, and some may complain. Me I don't care either way. Great to meet you though. Hope you find the it educationally stimulating. -- Best Regards, David

Re: hi

2012-09-13 Thread Dwight Hutto
On Fri, Sep 14, 2012 at 1:09 AM, genban tade -- > http://mail.python.org/mailman/listinfo/python-list ail.com> wrote: > > > -- > http://mail.python.org/mailman/listinfo/python-list > thank you for your reply,I'm new here You'll love it here. It's always amusing. But remember to hit reply all when

Re: hi

2012-09-13 Thread Dwight Hutto
Wait, that was out of context. Subject: Hi On Fri, Sep 14, 2012 at 1:09 AM, genban tade wrote: > > > -- > http://mail.python.org/mailman/listinfo/python-list > Hey, how are you? -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/pytho

Re: hi

2012-09-13 Thread Dwight Hutto
Hey, how are you? -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: hi can someone help please key bind

2011-10-15 Thread Alexander Kapps
On 15.10.2011 19:30, Gary wrote: Hi im trying to use key bind on Tkinter to call this function def Start(): for i in range(60,-1,-1): ent['text'] = i time.sleep(1) root.update() ent['text'] = 'Time Out!' root.update() i know the function is ok as i have assigned a button and i calls the functio

Re: hi can someone help please key bind

2011-10-15 Thread MRAB
On 15/10/2011 18:30, Gary wrote: Hi im trying to use key bind on Tkinter to call this function def Start(): for i in range(60,-1,-1): ent['text'] = i time.sleep(1) root.update() ent['text'] = 'Time Out!' root.update() i know the function is ok as i have assigned

Re: HI

2011-05-02 Thread anvar
Dear Ulrich Eckhardt and Jean-Michel Pichavant! First of all thank you for your attention. I'have never expected to receive response. Actually, I am doing my internship in Marketing Division in small company., I got this assignment yesterday morning. My boss wants perfect technology diffusion bas

Re: HI

2011-05-02 Thread Jean-Michel Pichavant
anvar wrote: Hello, Could you please help me with the modeling in Python the following problem: (e.g., g_t means g with index t) Min∑_(i=1)^n▒∑_(t=1)^l▒[s_i (t)-min[s ̂_i (t)×α_t×exp(g_t ),C_i (t) ] ]^2 subject to s_i (t)=f_i (t)[S_i+f_(i-1) (t)[S_(i-1)+f_(i-2) (t)[S_(i-2)+⋯f_2 (t) [S_2+f_1 (t)

Re: HI

2011-05-02 Thread Ulrich Eckhardt
anvar wrote: > Could you please help me with the modeling in Python the following > problem: (e.g., g_t means g with index t) Typically, you would use either a list or a dict to simulate something like that: # list g = [1, 2, 4, 8, 16] print g[3] # dictionary h = {} h[0] = 1 h[1]

Re: HI

2011-05-02 Thread anvar
Here we need to estimate p_i, q_i, and β. Thank you, > Min∑_(i=1)^n▒∑_(t=1)^l▒[s_i (t)-min[s ̂_i (t)×α_t×exp(g_t ),C_i > (t) ] ]^2 > subject to > s_i (t)=f_i (t)[S_i+f_(i-1) (t)[S_(i-1)+f_(i-2) (t)[S_(i-2)+⋯f_2 (t) > [S_2+f_1 (t) S_1 ]…] ] ][1-f_(i+1) (t)] > f_i (t)=F_i (t)-F_i (t-1) > F_i (t)=((

Re: Hi, friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums?

2010-04-23 Thread Raymond Hettinger
On Apr 23, 1:24 am, Bryan wrote: > That is interesting. The above algorithm for nlargest is better, but > to use it for nsmallest requires a largest-on-top heap, which the > module does not bother to implement. FWIW, the pure python versions differ because they are both implemented in terms of th

Re: Hi, friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums?

2010-04-23 Thread Raymond Hettinger
On Apr 22, 10:49 am, John Nagle wrote: > Chris Rebert wrote: > > 2010/4/22 Jo Chan : > >> Hi,friends. > >>  I wanna ask if there is a function which is able to take a list as > >> argument > >> and then return its top-k maximums? > >> I only know about max which is poorly a top-1 maximum function

Re: Hi, friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums?

2010-04-23 Thread Steven Howe
Really! Learn to use google better. I just used "python sort list" Look at: http://wiki.python.org/moin/HowTo/Sorting Read about list.sort. Try, at a command prompt (assuming you have a unix shell), "pydoc list" search for sort; read it. It mentions 'reverse'. then slice the list to your desi

Re: Hi, friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums?

2010-04-23 Thread Grant Edwards
On 2010-04-22, D'Arcy J.M. Cain wrote: > On Thu, 22 Apr 2010 15:04:01 +0100 > Tim Golden wrote: >> > So please tell me if there is one or not. I really need this soon. >> > Appreciate a lot. >> >> Assuming top-k doesn't mean something obscurely statistical: > > You really shouldn't do people's h

Re: Hi, friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums?

2010-04-23 Thread Bryan
Steven D'Aprano wrote: > John Nagle wrote: > >    Is "nlargest" smart enough to decide when it's cheaper to track the > > N largest entries on a linear pass through the list than to sort? It *always* does a linear pass through the list (linear, that is in the length of the entire list). It tracks

Re: Hi, friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums?

2010-04-22 Thread Steven D'Aprano
On Thu, 22 Apr 2010 10:49:29 -0700, John Nagle wrote: >Is "nlargest" smart enough to decide when it's cheaper to track the > N largest entries on a linear pass through the list than to sort? Doesn't appear to do so. From Python 3.1: def nlargest(n, iterable): """Find the n largest elemen

Re: Hi, friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums?

2010-04-22 Thread Rhodri James
On Thu, 22 Apr 2010 15:23:29 +0100, D'Arcy J.M. Cain wrote: On Fri, 23 Apr 2010 00:07:18 +1000 Xavier Ho wrote: > print (sorted (l, reverse=True)[:k]) You don't really need to reverse sort there: True but... >>> numbers = [1, 4, 5, 3, 7, 8] >>> sorted(numbers)[3:] [5, 7, 8] Now try r

Re: Hi, friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums?

2010-04-22 Thread John Nagle
Chris Rebert wrote: 2010/4/22 Jo Chan : Hi,friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums? I only know about max which is poorly a top-1 maximum function, now I want more yet I am lazy enough that don't want to write one b

Re: Hi, friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums?

2010-04-22 Thread D'Arcy J.M. Cain
On Thu, 22 Apr 2010 15:04:01 +0100 Tim Golden wrote: > > So please tell me if there is one or not. I really need this soon. > > Appreciate a lot. > > Assuming top-k doesn't mean something obscurely statistical: You really shouldn't do people's homework for them. It doesn't do them any favours.

Re: Hi, friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums?

2010-04-22 Thread Xavier Ho
On Fri, Apr 23, 2010 at 12:23 AM, D'Arcy J.M. Cain wrote: > Now try returning the top two or four numbers. > >>> numbers = [1, 4, 5, 3, 7, 8] >>> sorted(numbers)[-2:] [7, 8] >>> sorted(numbers)[-4:] [4, 5, 7, 8] I see what you mean. This is not as intuitive, is it? Cheers, Xav -- http://mail

Re: Hi, friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums?

2010-04-22 Thread D'Arcy J.M. Cain
On Fri, 23 Apr 2010 00:07:18 +1000 Xavier Ho wrote: > > print (sorted (l, reverse=True)[:k]) > > You don't really need to reverse sort there: True but... > >>> numbers = [1, 4, 5, 3, 7, 8] > >>> sorted(numbers)[3:] > [5, 7, 8] Now try returning the top two or four numbers. -- D'Arcy J.M. Cai

Re: Hi, friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums?

2010-04-22 Thread Jo Chan
Yeah... but actually I need something more efficient, like heap. Thank you for your help though. Best regards, Songjian On Thu, Apr 22, 2010 at 10:04 PM, Tim Golden wrote: > On 22/04/2010 14:57, Jo Chan wrote: > > Hi,friends. > > > > I wanna ask if there is a function which is able to take a

Re: Hi, friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums?

2010-04-22 Thread Jo Chan
Cool! Thanks a lot! That's exactly what I want. Best regards, Songjian On Thu, Apr 22, 2010 at 10:04 PM, Chris Rebert wrote: > 2010/4/22 Jo Chan : > > Hi,friends. > > I wanna ask if there is a function which is able to take a list as > argument > > and then return its top-k maximums? > > I on

Re: Hi, friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums?

2010-04-22 Thread Xavier Ho
On Fri, Apr 23, 2010 at 12:04 AM, Tim Golden wrote: > Assuming top-k doesn't mean something obscurely statistical: > > l = [1,2, 3, 4, 5] > k = 3 > print (sorted (l, reverse=True)[:k]) > You don't really need to reverse sort there: >>> numbers = [1, 4, 5, 3, 7, 8] >>> sorted(numbers)[3:] [5, 7,

Re: Hi, friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums?

2010-04-22 Thread Chris Rebert
2010/4/22 Jo Chan : > Hi,friends. >  I wanna ask if there is a function which is able to take a list as argument > and then return its top-k maximums? > I only know about max which is poorly a top-1 maximum function, now I want > more yet I am lazy enough that don't want to write one by myself. ht

Re: Hi, friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums?

2010-04-22 Thread Tim Golden
On 22/04/2010 14:57, Jo Chan wrote: > Hi,friends. > > I wanna ask if there is a function which is able to take a list as argument > and then return its top-k maximums? > I only know about max which is poorly a top-1 maximum function, now I want > more yet I am lazy enough that don't want to writ

Re: Hi, Everyone: what's the most popular xml parser module on python?

2010-04-15 Thread Jo Chan
I want to say I just have to deal with some regular text input (the input file is as XML format) so I need to read all the nodes out and get what they are. Thanks for your great help though. I should have made my point clearer. :) On Thu, Apr 15, 2010 at 6:52 PM, Stefan Behnel wrote: > Jo Chan,

Re: Hi, Everyone: what's the most popular xml parser module on python?

2010-04-15 Thread Jo Chan
On Thu, Apr 15, 2010 at 6:52 PM, Stefan Behnel wrote: > Jo Chan, 15.04.2010 10:52: > > I just want to get the content from a XML. > > That's not a very specific description of what you want to do. What's "the > content"? The plain text content? Or do you care about the structure? And > what parts

Re: Hi, Everyone: what's the most popular xml parser module on python?

2010-04-15 Thread Stefan Behnel
Jo Chan, 15.04.2010 10:52: > I just want to get the content from a XML. That's not a very specific description of what you want to do. What's "the content"? The plain text content? Or do you care about the structure? And what parts of the structure? > I learn that there are two > modules in pyth

Re: Hi, Everyone: what's the most popular xml parser module on python?

2010-04-15 Thread Stefan Behnel
Shashwat Anand, 15.04.2010 12:29: On Thu, Apr 15, 2010 at 3:50 PM, Stefan Behnel wrote: Shashwat Anand, 15.04.2010 11:55: BeautifulSoup The OP asked for an XML parser. BeatifulSoup can be used as one IMO But it is not an XML parser according to the XML spec. So giving the impression that

Re: Hi, Everyone: what's the most popular xml parser module on python?

2010-04-15 Thread Shashwat Anand
BeatifulSoup can be used as one IMO On Thu, Apr 15, 2010 at 3:50 PM, Stefan Behnel wrote: > Shashwat Anand, 15.04.2010 11:55: > > BeautifulSoup > > The OP asked for an XML parser. > > Stefan > > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinf

Re: Hi, Everyone: what's the most popular xml parser module on python?

2010-04-15 Thread Stefan Behnel
Shashwat Anand, 15.04.2010 11:55: > BeautifulSoup The OP asked for an XML parser. Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: Hi, Everyone: what's the most popular xml parser module on python?

2010-04-15 Thread Shashwat Anand
BeautifulSoup On Thu, Apr 15, 2010 at 1:39 PM, Stefan Behnel wrote: > Jo Chan, 14.04.2010 15:28: > > Hi, everyone~~~ I am new. >> What is the most popular xml parser module used on python? Thanks for >> answering... >> > > Why do you want to know? Just out of curiosity, or are you looking for

Re: Hi, Everyone: what's the most popular xml parser module on python?

2010-04-15 Thread Stefan Behnel
Jo Chan, 14.04.2010 15:28: Hi, everyone~~~ I am new. What is the most popular xml parser module used on python? Thanks for answering... Why do you want to know? Just out of curiosity, or are you looking for a tool that you can use to get a specific job done? If it's the latter, you may want

Re: hi can any one please help me..

2010-02-15 Thread steve
Hello, On 02/15/2010 02:20 PM, chiranjeevi muttoju wrote: Hi, when i'm installing the pytc(python wrapper for tokyo cabinet.) i'm getting the fallowing error.. i'm getting this error for python2.6 only.. for python 2.4 its working fine.. - running inst

Re: hi can any one please help me..

2010-02-15 Thread Alf P. Steinbach
* chiranjeevi muttoju: Hi, when i'm installing the pytc(python wrapper for tokyo cabinet.) i'm getting the fallowing error.. i'm getting this error for python2.6 only.. for python 2.4 its working fine.. - running install running build running build_ext

Re: Hi help me in installing pcapy extension module

2009-11-02 Thread Diez B. Roggisch
pranesh schrieb: dear friends, I have python 2.6.4 i my Windows XP machine. I am trying to install pcapy - python extension module ( I am using http://oss.coresecurity.com/projects/pcapy.html for reference ) I decided to implement the libpcap library... Since I have only windows xp machine.

Re: Hi everyone, I get a problem when using binhex module

2009-08-20 Thread Dave Angel
Yan Jian wrote: Below is what I copy from the Internet: import binhex import sys infile = "in.txt" binhex.binhex(infile, sys.stdout) Every time I try to run this script, I get a message saying Traceback (most recent call last): File "D:\eclipse_workspace\encode\src\binhex.sample.py", line

Re: Hi everyone, I get a problem when using binhex module

2009-08-20 Thread Xavier Ho
On Thu, Aug 20, 2009 at 10:07 PM, Yan Jian wrote: > > Does anyone encounter similar situation. Thank you for your help? > Yeah, in Python 3.1 I get this: Traceback (most recent call last): File "test.py", line 6, in binhex.binhex(file, sys.stdout) File "c:\Python31\lib\binhex.py", lin

Re: Hi, I am getting the following errorTypeError: sort() takes no keyword arguments

2008-10-17 Thread Duncan Booth
Aidan <[EMAIL PROTECTED]> wrote: > gaurav kashyap wrote: >> Hi all, >> I am using python version 2.3.in a program , >> I have called the sort function.Wherein, >> a.sort(reverse=True) >> is giving the following error: >> >> TypeError: sort() takes no keyword arguments. >> >> It works in python 2

Re: Hi, I am getting the following errorTypeError: sort() takes no keyword arguments

2008-10-17 Thread Peter Otten
gaurav kashyap wrote: > Hi all, > I am using python version 2.3.in a program , > I have called the sort function.Wherein, > a.sort(reverse=True) > is giving the following error: > > TypeError: sort() takes no keyword arguments. > > It works in python 2.4,What can be the alternative in python 2.3

Re: Hi, I am getting the following errorTypeError: sort() takes no keyword arguments

2008-10-16 Thread Aidan
gaurav kashyap wrote: Hi all, I am using python version 2.3.in a program , I have called the sort function.Wherein, a.sort(reverse=True) is giving the following error: TypeError: sort() takes no keyword arguments. It works in python 2.4,What can be the alternative in python 2.3 Thanks , Gaurav

  1   2   >