can any one explain about pickle i read in the book but they have not
provided any example for that so please explain with a simple example
--
Vanam
___
Tutor maillist - Tutor@python.org
http://mail.python.or
i want to know the difference between 'r' mode and 'r+' mode
1.i = open('c:\python25\integer.txt','w')>for writiing
i.write('hai')->written some content in text file
i = open('c:\python25\integer.txt','r')>for reading
print i.read()>for printing the contents in that text
Thanks,
Unfortunately I am on a device that does not have this in the kernel and I
can't recompile the kernel to include PPPoE nor can I load other utils to do
tasks for me.
So I must do it all in Python.
I found Scapy that seems to support PPPoE connections, but finding out how
that can be used
On Monday 29 January 2007 03:17 pm, Dave Kuhlman wrote:
> On Mon, Jan 29, 2007 at 01:35:22PM -0900, Tim Johnson wrote:
> > Hello:
> >
> > I just installed python 2.5 on Linux/Slackware 10.0
> >
> > I have placed three files in the root of site-packages
> > on my machine that is
> > /usr/local/lib/p
I hope it's not unforgivably off-topic to ask if anyone's planning on
attending PyCon in Feb.
My manager gave a thumbs-up for me to attend today.
-Rob
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
On Mon, Jan 29, 2007 at 01:35:22PM -0900, Tim Johnson wrote:
> Hello:
>
> I just installed python 2.5 on Linux/Slackware 10.0
>
> I have placed three files in the root of site-packages
> on my machine that is
> /usr/local/lib/python2.5/site-packages
>
> python appears to be importing this files
Hello:
I just installed python 2.5 on Linux/Slackware 10.0
I have placed three files in the root of site-packages
on my machine that is
/usr/local/lib/python2.5/site-packages
python appears to be importing this files with no complaint, but
they are not being byte-compiled.
Note: I see that My
> -Original Message-
> Date: Fri, 26 Jan 2007 22:40:24 -0500
> From: Kent Johnson <[EMAIL PROTECTED]>
> Subject: Re: [Tutor] converting tab-delimited text files to csv
> To: Luke Paireepinart <[EMAIL PROTECTED]>
> Cc: tutor@python.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/p
Daniel Klose wrote:
> Thanks Kent,
>
> I now have:
>
> target = sys.argv[1]
>
> seqDictionary = {} # python 2.5 import defaultdict from collections.
> structureArray = [0, 0, 0]
>
> #THIS TAKES THE PLACE OF THE STANDARD PERL $DIR,$file
> #shorter to do the os.path.join once to a variable.
> if
Thanks Kent,
I now have:
target = sys.argv[1]
seqDictionary = {} # python 2.5 import defaultdict from collections.
structureArray = [0, 0, 0]
#THIS TAKES THE PLACE OF THE STANDARD PERL $DIR,$file
#shorter to do the os.path.join once to a variable.
if (os.path.isfile(os.path.join(structDir, tar
On Sat, Jan 27, 2007 at 02:58:38AM -0800, Dick Moores wrote:
>
>
> At 07:12 PM 1/24/2007, Shadab Sayani wrote:
> Hi,
> I am using vim editor to code my project in python.Is there a good
> IDEĀ where in I type the name of the class object and then dot then
> all the attributes of the object are di
Daniel Klose wrote:
> Hi all,
>
> All I would like to do is take a file and count the number of times a
> letter occurs in it. It so happens that there letters are amino acids.
> There are also some other checks in the script but these are not a
> concern just yet.
>
> What I would like to do is
Hi all,
All I would like to do is take a file and count the number of times a
letter occurs in it. It so happens that there letters are amino acids.
There are also some other checks in the script but these are not a
concern just yet.
What I would like to do is create a dictionary of arrays.
In p
shawn bright wrote:
> Thanks Kent,
>i am going with option A, the helper set, because i also need to
> count the occurances and this seems to be the easiest solution.
If you need the number of unique items that is just the length of the
final list. If you need the number of occurrences of ea
Thanks Kent,
i am going with option A, the helper set, because i also need to count
the occurances and this seems to be the easiest solution.
thanks for your help.
shawn
On 1/28/07, Kent Johnson <[EMAIL PROTECTED]> wrote:
shawn bright wrote:
> lo there all.
>
> i have a list of lists that i
Hi there Everybody,
I'm currently writing a program in pygtk, and I'm looking for a more
advanced tutorial in pygtk. I have read the one that is on the
pygtk.orgsite, and that has given a me a good basis from which to
start. Now, I am
looking to expand my range of knowledge. Also with that,
Steve Nelson wrote:
> Hello,
>
> I understand the use of xor to do a variable swap without a temporary
> variable:
>
x=2
y=3
y=x^y
x=x^y
y=x^y
x
> 3
y
> 2
>
>
> However, why do I see this?
>
y=x^y
y
> 1
Because 2 ^ 3 == 1, right? Are you sure you
Hello,
I understand the use of xor to do a variable swap without a temporary variable:
>>> x=2
>>> y=3
>>> y=x^y
>>> x=x^y
>>> y=x^y
>>> x
3
>>> y
2
However, why do I see this?
>>> y=x^y
>>> y
1
S.
___
Tutor maillist - Tutor@python.org
http://mail
18 matches
Mail list logo