"2face xzibit" <[EMAIL PROTECTED]> wrote
> ...f you have any comments on the source code please let me know
I'll add a few.
> def ChooSe():
Its kind of conventional to have function names start lowercase
and use uppercase for classes. Not a rule but it helps when
code includes both to kn
>
> Hey i have created a program that turns a string into a binary one. But
> when i began to test the program it turned out that it could not handle
> some special characters (e.g ÆØÅ). Could someone please help me?
These special characters have different values than those you have put into
yo
Hey i have created a program that turns a string into a binary one. But when i
began to test the program it turned out that it could not handle some special
characters (e.g ÆØÅ). Could someone please help me?
p.s i am a newbie so if you have any comments on the source code please let me
kn
* Tiger12506 (Fri, 14 Dec 2007 16:23:00 -0500)
> > Despite what your english teacher might have tried to make you
> > believe, they were wrong about the lack of a neutral in english.
> > Just like ending sentences with prepositions has always been done
> > and always will be done, the use of "they"
> "earlylight publishing" <[EMAIL PROTECTED]> wrote
>
>>I don't know if this'll help or not but I just learned about this:
>>
>> file = raw_input(info).lower
>
> file = raw_input(prompt).lower() # note the parens!
>
>> The .lower is supposed to convert any input to lower case.
>
> It will ind
- Original Message -
From: "Hans Fangohr" <[EMAIL PROTECTED]>
To:
Sent: Saturday, December 15, 2007 1:43 AM
Subject: [Tutor] python logging module: two handlers writing to the
samefile - okay?
> I have an example program (test.py) and the logging configuration file
> (log.conf) attache
* earlylight publishing (Sat, 15 Dec 2007 09:21:45 -0800 (PST))
> No prob about the gender confusion. :-)
That's why people put Firstname Lastname in the From field of their
newsreader or mail reader. And please do a line break after about 70
characters. Your reply was one(!) big line.
Thorste
Found it. tested it. worked it. sgharinig it for otheers.
# os.chmod(filename,stat.S_IREAD )
# print 'This page is now set to read only. Use WindowsExplorer to turn
this
off.'
Let's me edit the terms and conditions page then set it to read only-
thought others would also value a conveni
"earlylight publishing" <[EMAIL PROTECTED]> wrote
>I don't know if this'll help or not but I just learned about this:
>
> file = raw_input(info).lower
file = raw_input(prompt).lower() # note the parens!
> The .lower is supposed to convert any input to lower case.
It will indeed. Th
No prob about the gender confusion. :-) I'd be willing to bet most folks
around here are male so it's not unreasonable to assume. I wasn't offended,
just thought I'd share in the interest of accuracy. Thanks for the kind
appology anyway. Hope I haven't set off a firestorm!
Message: 1
I don't know if this'll help or not but I just learned about this:
file = raw_input(info).lower
The .lower is supposed to convert any input to lower case.
--
Message: 4
Date: Fri, 14 Dec 2007 11:14:13 -0500
From: "Bryan Fodness" <[EMAIL PROTECTED]>
S
Tiger12506 wrote:
>> Mmm, to nit-pick a little, dictionaries are iterables, not iterators. They
>> don't have a next() method.
>
> I'm a little fuzzy on the details of that, I will have to look over some
> reference material again.
An iterable is something that produces an iterator when you cal
> Mmm, to nit-pick a little, dictionaries are iterables, not iterators. They
> don't have a next() method.
I'm a little fuzzy on the details of that, I will have to look over some
reference material again.
>> [a for a in eventData if eventData[a] < time.time()]
>>
>> This is more efficient. The
Ricardo Aráoz wrote:
> Kent Johnson wrote:
>> I don't know the answer, but it has nothing to do with the logging
>> module. The question is, can the same file reliably be opened twice for
>> writing in the same module.
>
> Well, the question would actually be if the logging module is smart
> eno
Kent Johnson wrote:
> Hans Fangohr wrote:
>
>> (i) is this (as in the log.conf file) the right use of the logging
>> module to achieve what I need?
>
> I think you understand the module correctly.
>
>> (ii) in particular, it appears we have two filehandlers that write to
>> the same file (in mod
So, in windows, when my wiki's editor saves a file, i want to have the
option to set it to read only. In windows, how do i get python to set a
file's permissions?
--
Salute!
-Kirk Bailey
Think
+-+
| BOX |
+-+
knihT
Fnord.
__
Hans Fangohr wrote:
> (i) is this (as in the log.conf file) the right use of the logging
> module to achieve what I need?
I think you understand the module correctly.
> (ii) in particular, it appears we have two filehandlers that write to
> the same file (in mode 'a+'). While this seems to work
17 matches
Mail list logo