On Thu, 12 Apr 2012 09:06:53 -0700
Michael Lewis wrote:
> Here's the "pattern" portion that I don't understand:
>
> re.findall("[^A-Z]+[A-Z]{3}([a-z])[A-Z]{3}[^A-Z]+"
>
You have 5 different parts here:
1) [^A-Z]+ - this matches one or more non-uppercase characters.
The brackets [] describe a
sorry, gobject comes from the PyGTK package.
On Thu, Apr 12, 2012 at 6:32 PM, Alan Gauld wrote:
> On 12/04/12 16:42, Pierre Barthelemy wrote:
>
>> Thanks for the fast reply. I went a bit deeper into the code and i found
>> where my problem was. The connect function comes from gobject, and the
>
On 12/04/12 16:42, Pierre Barthelemy wrote:
Thanks for the fast reply. I went a bit deeper into the code and i found
where my problem was. The connect function comes from gobject, and the
gobject.connect function accepts extra arguments that are passed to the
connected function. So i can solve my
On 12/04/12 15:47, Steven D'Aprano wrote:
Regular expressions are like super-charged wildcards. In the DOS or
Windows command.com or cmd.exe shell, you can use wildcards * and ? to
match any characters, or a single character. In Linux and Macintosh
shells, you have the same thing only even more
On 12/04/12 12:38, Surya K wrote:
I am learning networking and just wrote a primitive client server program..
...
So, I tried to run another client (same code but from different file)
but found that its now working.
I assume that should be *not working*?
A more detailed description of what yo
>
> mjole...@gmail.com wrote:
> > Hi everyone,
> >
> > I am having trouble understanding re.findall(). I've read through the
> > documentation and looked at at some examples online, but I still don't
> have
> > a clear picture.
> >
> > I am going through pythonchallenge.com and I am on challenge 3.
On 12/04/12 15:32, Mark Lawrence wrote:
That's going to be quite awkward to do. Files like to be written one
complete line at a time. The normal approach would be to build up the
table structure in memory and then write the entire table out in one go.
Built-in zip? Or have I missed something
Thanks for the fast reply. I went a bit deeper into the code and i found
where my problem was. The connect function comes from gobject, and the
gobject.connect function accepts extra arguments that are passed to the
connected function. So i can solve my problem by:
data.connect('new_data_point', a
On 12/04/2012 14:53, mjole...@gmail.com wrote:
Hi everyone,
I am having trouble understanding re.findall(). I've read through the
documentation and looked at at some examples online, but I still don't have a
clear picture.
I am going through pythonchallenge.com and I am on challenge 3. I've s
mjole...@gmail.com wrote:
Hi everyone,
I am having trouble understanding re.findall(). I've read through the
documentation and looked at at some examples online, but I still don't have
a clear picture.
I am going through pythonchallenge.com and I am on challenge 3. I've see.
The answer to the p
On 12/04/2012 05:42, john moore wrote:
Hello Pyhton World,
Hello Hojn Rooem and welcome :)
I'm new at this and was wondering how I create a number of user specified lists?
Why? Tell us what you're trying to achieve and we may well come up with
a better solution.
Example:
"How many li
On 12/04/2012 08:48, Alan Gauld wrote:
On 12/04/12 03:31, questions anon wrote:
I am trying to simply write a list of values to txt file in one column.
I would then like to add another list in a second column.
That's going to be quite awkward to do. Files like to be written one
complete line a
Hi everyone,
I am having trouble understanding re.findall(). I've read through the
documentation and looked at at some examples online, but I still don't have a
clear picture.
I am going through pythonchallenge.com and I am on challenge 3. I've see. The
answer to the problem, but I don't unde
I am learning networking and just wrote a primitive client server program..
server:
from time import ctimefrom socket import *
HOST = ""PORT = 21567BUFSIZ = 1024ADDR = (HOST, PORT)
tcpSerSoc = socket(AF_INET, SOCK_STREAM)tcpSerSoc.bind(ADDR)tcpSerSoc.listen(5)
while True:print "waiting for con
On 12/04/12 06:33, questions anon wrote:
Perfect, thank you.
Is there a way I could easily/quickly add headings to each column?
Headings are no different to any other line of text...
with open('output.txt', 'w') as f:
write your headings here
for record in records:
On 12/04/12 08:25, Christian Witts wrote:
I recommend that you bite the bullet and use a dedicated dictionary or list
to hold your five lists from the very begining:
You could use globals() then instead of var(), although it's a
do-it-at-your-own-risk situation then if you overwrite built-ins
On 12/04/12 03:31, questions anon wrote:
I am trying to simply write a list of values to txt file in one column.
I would then like to add another list in a second column.
That's going to be quite awkward to do. Files like to be written one
complete line at a time. The normal approach would be
On 2012/04/12 08:59 AM, Peter Otten wrote:
Christian Witts wrote:
On 2012/04/12 06:42 AM, john moore wrote:
Hello Pyhton World,
I'm new at this and was wondering how I create a number of user specified
lists?
Example:
"How many list would you like to create?"
User inputs 5
creates five list
Pierre Barthelemy wrote:
> I have a question about event handling and the use of the connect
> function. I have a data object, that contains a series of signals, one
> being "new_data_point" .
>
> When i want to plot the data, i also connect the "new_data_point" event to
> the function "analysis_
Christian Witts wrote:
> On 2012/04/12 06:42 AM, john moore wrote:
>> Hello Pyhton World,
>>
>> I'm new at this and was wondering how I create a number of user specified
>> lists?
>>
>> Example:
>>
>> "How many list would you like to create?"
>> User inputs 5
>> creates five lists,
>> list1 []
>>
20 matches
Mail list logo