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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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://
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
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
"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
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
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] ==
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
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
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
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
"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
34 matches
Mail list logo