On Sat, Mar 12, 2011 at 2:07 AM, David Hutto wrote:
> As a matter of fact, looking at them with know
*no*
knowledge of the
> module, it says it's a typeerror, and that it expects string or
> buffer, but gets file. If this is the same error in both instances,
> then it's that output needs to be a
As a matter of fact, looking at them with know knowledge of the
module, it says it's a typeerror, and that it expects string or
buffer, but gets file. If this is the same error in both instances,
then it's that output needs to be a string or buffer, so just string
either the datae variable, or the
On Sat, Mar 12, 2011 at 1:39 AM, Becky Mcquilling
wrote:
> If anyone is familiar with python-gnupg, I am having some difficulty with
> the syntax. I've tried the following:
> f = open('c:/test/filename.txt', 'r')
> datae = gpg.encrypt_file(f.read(), 'ladym...@gmail.com',
> output=open('c:/gpg_tes
Show the entire code, and error for both usages. The usages and a
single error message for them both may be enough for someone not to
try them out, and who can help you, if they knew more about the
problem.
Not everyone here will be an expert, but we do read direct code vs
direct error, if we've b
If anyone is familiar with python-gnupg, I am having some difficulty with
the syntax. I've tried the following:
f = open('c:/test/filename.txt', 'r')
datae = gpg.encrypt_file(f.read(), 'ladym...@gmail.com',
output=open('c:/gpg_test/data.gpg2', 'w'))
or
file_to_encrypt = open('c:/gpg_test/data.gp
On 03/11/2011 09:19 PM, s s wrote:
Hello, I was wondering where I should go to improve my python skills.
I have finished the official tutorial and the tutorials on the
official python website.
___
Tutor maillist - Tutor@python.org
To unsubscribe or ch
Hello, I was wondering where I should go to improve my python skills.
I have finished the official tutorial and the tutorials on the
official python website.
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mai
Dinesh B Vadhia wrote:
I want to sort two sequences with different data types but both with an equal
number of elements eg.
f = [0.21, 0.68, 0.44, ..., 0.23]
i = [6, 18, 3, ..., 45]
The obvious solution is to use zip ie. pairs = zip(f,i) followed by pairs.sort(). This is fine
It doesn't so
On 3/11/2011 3:39 PM Dinesh B Vadhia said...
I want to sort two sequences with different data types but both with an
equal number of elements eg.
f = [0.21, 0.68, 0.44, ..., 0.23]
i = [6, 18, 3, ..., 45]
The obvious solution is to use zip ie. pairs = zip(f,i) followed by
pairs.sort(). This is fin
I want to sort two sequences with different data types but both with an equal
number of elements eg.
f = [0.21, 0.68, 0.44, ..., 0.23]
i = [6, 18, 3, ..., 45]
The obvious solution is to use zip ie. pairs = zip(f,i) followed by
pairs.sort(). This is fine but my sequences contain 10,000+ element
On 3/11/2011 2:44 PM Yaşar Arabacı said...
I see all of you guys suggest that starting with 3.x. I was wondering
what is setback of starting with 2.7 since my linux distro (openSUSE
11.4) comes with it and it would be pretty painfull for me to update to
3.x because lots of my applications in my c
I see all of you guys suggest that starting with 3.x. I was wondering
what is setback of starting with 2.7 since my linux distro (openSUSE
11.4) comes with it and it would be pretty painfull for me to update to
3.x because lots of my applications in my computer depends on it. So is
it worth the
"Knacktus" wrote
The official Python tutorial is a good start. You get familiar with
the Python documentation as well.
http://docs.python.org/py3k/
(Find the link to the tutorial on this page.)
If you can already program thats the best starting point.
For many folks its all they need.
A cl
On Fri, Mar 11, 2011 at 3:59 PM, Susana Iraiis Delgado Rodriguez <
susana.delgad...@utzmg.edu.mx> wrote:
> Hello list!!
>
> I'm trying to write a CSV file to work it with Excel. My python script is
> working, the issue is: when I import the file from excel the data comes with
> quotes at the begin
On 11/03/2011 8:59 PM, Susana Iraiis Delgado Rodriguez wrote:
Hello list!!
I'm trying to write a CSV file to work it with Excel. My python script is
working, the issue is: when I import the file from excel the data comes with
quotes at the beginnig and ending of the row. I don't want to have the
Hello list!!
I'm trying to write a CSV file to work it with Excel. My python script is
working, the issue is: when I import the file from excel the data comes with
quotes at the beginnig and ending of the row. I don't want to have these
quotes. What is wrong with my code?
import os, csv
from osge
"DistortGiygas" wrote
Python users, what's the best option for someone trying to emulate
or
use the curses module on the Windows platform?
Write a GUI?
Unlike Unix you know that you can run a GUI on windows
so why not just write one. Its probably easier than using
curses!
But for the life
"Tiago Cunha" wrote
I would suggest to use the NLTK package.
Try methods like nltk.endswith() or nltk.startswith()
NLTK is probably overkill.
The standard string methods startswith() and endswith()
are probably adequate for this case.
Alan G.
Thanks for your help Francesco. This works.
Sree.
--- On Fri, 3/11/11, Francesco Loffredo wrote:
> From: Francesco Loffredo
> Subject: Re: [Tutor] Need help with dates in Python
> To: tutor@python.org
> Date: Friday, March 11, 2011, 1:05 AM
> On 09/03/2011 9.21, nookasree
> ponamala wrote:
> >
Hello,
I am not a computer major, either. I am a Linguistics doctorate Student. I
worked with the basics of programming (C, prolog...). And now using Python
for Natural Language Processing. My interests are probably very different
from yours, but I got intimate by Wesley Chun's Core Python Program
2011/3/11 Yaşar Arabacı
> Hi,
>
> First of all, I want to greet you all since this is the first time I will
> be using this mail groups.
>
Welcome!
> I consider myself being familiar with programming logic, structures in
> general. I do/did lots of PHP programming. I know python and PHP is pre
I would suggest to use the NLTK package.
Try methods like nltk.endswith() or nltk.startswith()
On Fri, Mar 11, 2011 at 5:36 AM, Alan Gauld wrote:
> "apple owner" wrote
>
>
> I am new to python and I am trying to open a plain
>> text file of names and to see the number of names
>> that start
Am 11.03.2011 17:12, schrieb Yaşar Arabacı:
Hi,
First of all, I want to greet you all since this is the first time I
will be using this mail groups.
I consider myself being familiar with programming logic, structures in
general. I do/did lots of PHP programming. I know python and PHP is
pretty
Hi,
First of all, I want to greet you all since this is the first time I
will be using this mail groups.
I consider myself being familiar with programming logic, structures in
general. I do/did lots of PHP programming. I know python and PHP is
pretty much different things, I am saying this j
(...snip...)
I think your question is appropriate for both lists, it just wasn't sexy
enough for anyone on c.l.py to answer ;)
what is not sexy about modelling plant carbon uptake ;P
Random remarks:
> pg = PlantGrowth(self.control, self.params, self.state,
>
On 01/-10/-28163 02:59 PM, Steven D'Aprano wrote:
Alan Gauld wrote:
Why would you use a loop when the final value is just
the final multiplication. Since you know the final value
in advance (you need it to create the loop!) why not
just do the final multiplication directly:
x = 10*0.1
I think
Martin De Kauwe wrote:
> Note I have cross posted this as I have only just found this mailing list
> and perhaps it is the more appropriate place (I am not sure)?
I think your question is appropriate for both lists, it just wasn't sexy
enough for anyone on c.l.py to answer ;)
> I have been wor
> >> The right way is to do it like this:
> >>
> >> >>> x = 0.0
> >> >>> for i in range(1, 11):
> >> ... x = i*0.1
> > But this I don't understand.
> > Why would you use a loop when the final value is just
>
> What you missed was the original context, where other work was being
> done in
Hello Danny,
Can you perhaps help me on a python Unicode issue?
I have an audio collection of many chinese titles on my music
Database.
I would like to rename all music titles in the directories and
subdirectories to either their ascii values (preceeding with a certain
character/s like “xx-
Hi,
Note I have cross posted this as I have only just found this mailing list
and perhaps it is the more appropriate place (I am not sure)?
I have been working on re-writing a model in python. However I am not sure
how easy on the eye my final structure is and would appreciate any
constructive co
> Some further resources:
>
> http://floating-point-gui.de/
> http://introcs.cs.princeton.edu/91float/
>
> David Goldberg used to have a fantastic (although quite technical)
> discussion of floating point issues, "What Every Computer Scientist Should
> Know About Floating-Point Arithmetic":
>
> htt
On 01/-10/-28163 02:59 PM, Alan Gauld wrote:
"Steven D'Aprano" wrote
The right way is to do it like this:
>>> x = 0.0
>>> for i in range(1, 11):
... x = i*0.1
...
>>> x == 1.0
True
But this I don't understand.
Why would you use a loop when the final value is just
the final multiplicati
Alan Gauld wrote:
Why would you use a loop when the final value is just
the final multiplication. Since you know the final value
in advance (you need it to create the loop!) why not
just do the final multiplication directly:
x = 10*0.1
I think I'm missing something?
The context was generatin
On 11/03/2011 08:12, DistortGiygas wrote:
Python users, what's the best option for someone trying to emulate or
use the curses module on the Windows platform?
I've been fooling around with the console module:
effbot.org/zone/console-handbook.htm
But for the life of me, I can't figure out how to
"apple owner" wrote
I am new to python and I am trying to open a plain
text file of names and to see the number of names
that start with specific letters and display them
in a bar graph.
OK, Lets break that down so that we can understand
what exactly puzzles you:
1) Can you open a text file
"Steven D'Aprano" wrote
Another problem: you calculate your values by repeated addition.
This is the wrong way to do it, because each addition has a tiny
little error, and repeating them just compounds error upon error.
Here's an example:
>>> x = 0.0
>>> for i in range(10):
... x += 0.
"Una Murphy" wrote
Got your info off the web . Was wondering if you tutor people in
FFT ? I am looking for someone in the SF bay area.
We are a tutor group for teaching the Python programming language.
You probably want a math tutor group.
If however you want to implement a FFT solution
Python users, what's the best option for someone trying to emulate or
use the curses module on the Windows platform?
I've been fooling around with the console module:
effbot.org/zone/console-handbook.htm
But for the life of me, I can't figure out how to detect a KeyRelease.
Could anyone share some
Hello there,
I am new to python and I am trying to open a plain text file of names and to
see the number of names that start with specific letters and display them in a
bar graph. I have python version 3.2 and have the graphics.py package as well.
If anybody out there knows how I could do this,
Hi Jeff
Got your info off the web . Was wondering if you tutor people in
FFT ? I am looking for someone in the SF bay area.
Thank you
Una
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/m
40 matches
Mail list logo