Re: discussion group for Python in finance?

2016-03-18 Thread jogaserbia
unicode support in Python 3 is better than in python2 https://docs.python.org/3/howto/unicode.html What does this refer to (what are you getting at): > I was also told, a lot of code has been ported to > the Go language. -- https://mail.python.org/mailman/listinfo/python-list

Re: Discussion on some Code Issues

2012-07-16 Thread subhabangalore
On Sunday, July 8, 2012 10:47:00 PM UTC+5:30, Chris Angelico wrote: > On Mon, Jul 9, 2012 at 3:05 AM, wrote: > > On Sunday, July 8, 2012 1:33:25 PM UTC+5:30, Chris Angelico wrote: > >> On Sun, Jul 8, 2012 at 3:42 PM, > wrote: > >> > file_open

Re: Discussion on some Code Issues

2012-07-09 Thread Chris Angelico
On Mon, Jul 9, 2012 at 10:24 PM, Steven D'Aprano wrote: > But it does depend on context. Sometimes you need more detail than just > "Python looks". You need to know precisely *how* Python looks, and how it > decides whether it has found or not. Agreed. So, looking back at the original context: A

Re: Discussion on some Code Issues

2012-07-09 Thread Steven D'Aprano
On Mon, 09 Jul 2012 18:41:28 +1000, Chris Angelico wrote: > Does it really hurt to anthropomorphize Don't anthropomorphise computers. They don't like it when you do. > and say that "Python looks for > modules in the directories in sys.path" instead of "Module lookup > consists of iterating bla

Re: Discussion on some Code Issues

2012-07-09 Thread Chris Angelico
On Mon, Jul 9, 2012 at 10:57 AM, Steven D'Aprano wrote: > On Mon, 09 Jul 2012 07:54:47 +1000, Chris Angelico wrote: > >> It's like >> the difference between reminder text on a Magic: The Gathering card and >> the actual entries in the Comprehensive Rules. Perfect example is the >> "Madness" abilit

Re: Discussion on some Code Issues

2012-07-08 Thread Steven D'Aprano
On Mon, 09 Jul 2012 07:54:47 +1000, Chris Angelico wrote: > It's like > the difference between reminder text on a Magic: The Gathering card and > the actual entries in the Comprehensive Rules. Perfect example is the > "Madness" ability - the reminder text explains the ability, but uses > language

Re: Discussion on some Code Issues

2012-07-08 Thread Chris Angelico
On Mon, Jul 9, 2012 at 4:17 AM, Roy Smith wrote: > In article , > Chris Angelico wrote: > >> open("doc1.txt","r") >> >> Python will look for a file called doc1.txt in the directory you run >> the script from (which is often going to be the same directory as your >> .py program). > > Well, to pic

Re: Discussion on some Code Issues

2012-07-08 Thread MRAB
On 08/07/2012 18:17, Chris Angelico wrote: On Mon, Jul 9, 2012 at 3:05 AM, wrote: On Sunday, July 8, 2012 1:33:25 PM UTC+5:30, Chris Angelico wrote: On Sun, Jul 8, 2012 at 3:42 PM, wrote: > file_open=open("/python32/doc1.txt","r") Also, as has already been mentioned: keeping your data files

Re: Discussion on some Code Issues

2012-07-08 Thread Roy Smith
In article , Chris Angelico wrote: > open("doc1.txt","r") > > Python will look for a file called doc1.txt in the directory you run > the script from (which is often going to be the same directory as your > .py program). Well, to pick a nit, the file will be looked for in the current working d

Re: Discussion on some Code Issues

2012-07-08 Thread Chris Angelico
On Mon, Jul 9, 2012 at 3:05 AM, wrote: > On Sunday, July 8, 2012 1:33:25 PM UTC+5:30, Chris Angelico wrote: >> On Sun, Jul 8, 2012 at 3:42 PM, wrote: >> > file_open=open("/python32/doc1.txt","r") >> Also, as has already been mentioned: keeping your data files in the >> Python binaries directory

Re: Discussion on some Code Issues

2012-07-08 Thread subhabangalore
On Sunday, July 8, 2012 1:33:25 PM UTC+5:30, Chris Angelico wrote: > On Sun, Jul 8, 2012 at 3:42 PM, wrote: > > Thanks for pointing out the mistakes. Your points are right. So I am trying > > to revise it, > > > > file_open=open("/python32/doc1.txt","r") > > for line in file_open: > > l

Re: Discussion on some Code Issues

2012-07-08 Thread Chris Angelico
On Sun, Jul 8, 2012 at 3:42 PM, wrote: > Thanks for pointing out the mistakes. Your points are right. So I am trying > to revise it, > > file_open=open("/python32/doc1.txt","r") > for line in file_open: > line_word=line.split() > print (line_word) Yep. I'd be inclined to renam

Re: Discussion on some Code Issues

2012-07-07 Thread subhabangalore
On Sunday, July 8, 2012 2:21:14 AM UTC+5:30, Dennis Lee Bieber wrote: > On Sat, 7 Jul 2012 12:54:16 -0700 (PDT), subhabangal...@gmail.com > declaimed the following in gmane.comp.python.general: > > > But I am bit intrigued with another question, > > > > suppose I say: > > file_open=open("/pytho

Re: Discussion on some Code Issues

2012-07-07 Thread subhabangalore
On Thursday, July 5, 2012 4:51:46 AM UTC+5:30, (unknown) wrote: > Dear Group, > > I am Sri Subhabrata Banerjee trying to write from Gurgaon, India to discuss > some coding issues. If any one of this learned room can shower some light I > would be helpful enough. > > I got to code a bunch of do

Re: Discussion on some Code Issues

2012-07-06 Thread Peter Otten
subhabangal...@gmail.com wrote: [Please don't top-post] >> start = 0 >> for match in re.finditer(r"\$", data): >> end = match.start() >> print(start, end) >> print(data[start:end]) >> start = match.end() > That is a nice one. I am thinking if I can write "for lines in f" sort of

Re: Discussion on some Code Issues

2012-07-05 Thread subhabangalore
Dear Peter, That is a nice one. I am thinking if I can write "for lines in f" sort of code that is easy but then how to find out the slices then, btw do you know in any case may I convert the index position of file to the list position provided I am writing the list for the same file we are read

Re: Discussion on some Code Issues

2012-07-05 Thread Peter Otten
subhabangal...@gmail.com wrote: > On Thursday, July 5, 2012 4:51:46 AM UTC+5:30, (unknown) wrote: >> Dear Group, >> >> I am Sri Subhabrata Banerjee trying to write from Gurgaon, India to >> discuss some coding issues. If any one of this learned room can shower >> some light I would be helpful eno

Re: Discussion on some Code Issues

2012-07-04 Thread subhabangalore
On Thursday, July 5, 2012 4:51:46 AM UTC+5:30, (unknown) wrote: > Dear Group, > > I am Sri Subhabrata Banerjee trying to write from Gurgaon, India to discuss > some coding issues. If any one of this learned room can shower some light I > would be helpful enough. > > I got to code a bunch of do

Re: Discussion on some Code Issues

2012-07-04 Thread Rick Johnson
On Jul 4, 6:21 pm, subhabangal...@gmail.com wrote: > [...] > To detect the document boundaries, I am splitting them into a bag > of words and using a simple for loop as, > > for i in range(len(bag_words)): >         if bag_words[i]=="$": >             print (bag_words[i],i) Ignoring that you are a

Re: Discussion on some Code Issues

2012-07-04 Thread Steven D'Aprano
On Wed, 04 Jul 2012 16:21:46 -0700, subhabangalore wrote: [...] > I got to code a bunch of documents which are combined together. [...] > The task is to separate the documents on the fly and to parse each of > the documents with a definite set of rules. > > Now, the way I am processing is: > I a

Re: Discussion board software?

2010-10-28 Thread Andreas Waldenburger
On Fri, 29 Oct 2010 01:28:12 + brad...@hotmail.com wrote: [fixed top posting] > --Original Message-- > From: Gnarlodious > Sender: python-list-bounces+bradenf=hotmail@python.org > To: Python List > Subject: Discussion board software? > Sent: Oct 28, 2010 9:12 PM > > > Is there such

Re: Discussion board software?

2010-10-28 Thread Tim Harig
On 2010-10-29, Gnarlodious wrote: > On Oct 28, 7:20 pm, Tim Harig wrote: >> On 2010-10-29, Gnarlodious wrote: >> >> > Is there such a thing as website discussion board software written in >> > Python? >> >> Yes. > > OK I'll play, what and where? CMS's written in Python generally have some kind

Re: Discussion board software?

2010-10-28 Thread Gnarlodious
On Oct 28, 7:20 pm, Tim Harig wrote: > On 2010-10-29, Gnarlodious wrote: > > > Is there such a thing as website discussion board software written in > > Python? > > Yes. OK I'll play, what and where? -- Gnarlie -- http://mail.python.org/mailman/listinfo/python-list

Re: Discussion board software?

2010-10-28 Thread bradenf
Not that I'm aware of --Original Message-- From: Gnarlodious Sender: python-list-bounces+bradenf=hotmail@python.org To: Python List Subject: Discussion board software? Sent: Oct 28, 2010 9:12 PM Is there such a thing as website discussion board software written in Python? -- http://

Re: Discussion board software?

2010-10-28 Thread Tim Harig
On 2010-10-29, Gnarlodious wrote: > Is there such a thing as website discussion board software written in > Python? Yes. -- http://mail.python.org/mailman/listinfo/python-list

Re: discussion

2010-10-01 Thread Brian Curtin
On Thu, Sep 30, 2010 at 21:12, Geo_subodh wrote: > please send me the simple python code that uses input number greater > than3 digits(>3 digits) and checks whether the number is palindrome > or not. $ cat homework.py raise NotImplementedError -- http://mail.python.org/mailman/listinfo/python

Re: discussion

2010-10-01 Thread BartC
"Geo_subodh" wrote in message news:31a08825-bb72-4e9f-8710-a39fe2bc9...@u31g2000pru.googlegroups.com... please send me the simple python code that uses input number greater than3 digits(>3 digits) and checks whether the number is palindrome or not. The following works without using strings (a

Re: discussion

2010-10-01 Thread Steven D'Aprano
On Thu, 30 Sep 2010 19:12:06 -0700, Geo_subodh wrote: > please send me the simple python code that uses input number greater > than3 digits(>3 digits) and checks whether the number is palindrome or > not. def is_palindrome_or_not(n): """Checks whether the input number n is a palindrome or no

Re: discussion

2010-09-30 Thread Arnaud Delobelle
John Nagle writes: > On 9/30/2010 7:12 PM, Geo_subodh wrote: >> please send me the simple python code that uses input number greater >> than3 digits(>3 digits) and checks whether the number is palindrome >> or not. > > def ispalin(s) : > s = str(s) > n = len(s) / 2 > return(s[:n] ==

Re: discussion

2010-09-30 Thread Paul Rubin
John Nagle writes: > def ispalin(s) : > s = str(s) > n = len(s) / 2 > return(s[:n] == s[::-1][:n]) def ispalin(s): return (s == "You betcha!") ;-) -- http://mail.python.org/mailman/listinfo/python-list

Re: discussion

2010-09-30 Thread John Nagle
On 9/30/2010 7:12 PM, Geo_subodh wrote: please send me the simple python code that uses input number greater than3 digits(>3 digits) and checks whether the number is palindrome or not. def ispalin(s) : s = str(s) n = len(s) / 2 return(s[:n] == s[::-1][:n]) Please use a message sub

Re: discussion

2010-09-30 Thread Chris Rebert
On Thu, Sep 30, 2010 at 7:12 PM, Geo_subodh wrote: > please send me the simple python code that uses input number greater > than3 digits(>3 digits) and  checks whether the number is palindrome > or not. Do your own homework; it's not like you're even paying us (not that we would have the moral tu

Re: discussion

2010-09-30 Thread Roy Smith
In article <31a08825-bb72-4e9f-8710-a39fe2bc9...@u31g2000pru.googlegroups.com>, Geo_subodh wrote: > please send me the simple python code that uses input number greater > than3 digits(>3 digits) and checks whether the number is palindrome > or not. What class is this for? -- http://mail.pyth

Re: Discussion: Python and OpenMP

2006-05-12 Thread Paul McGuire
"Carl J. Van Arsdall" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hey everyone, > > I know I've posted several questions regarding python and python's > parallel capabilities so bear with me as I've never attempted to incite > discussion. However, today I'm interested in sparking