Regular Expression Skipping Match

2010-10-01 Thread AON LAZIO
Hi python pals, I need this help, say I have h = Hello \n World How would I create a regular expression that match only Hello World? (ignore \n in the middle) Thanks in advance -- Aonlazio 'Peace is always the way.' NW -- http://mail.python.org/mailman/listinfo/python-list

Regular Expression match

2010-09-24 Thread AON LAZIO
Hi, Say I have p = re.compile('a|b') text = 'a' d = p.findall(text) #d - ['a'] What is the way to find out which pattern p match (the former or latter)? I mean without knowing the outcome of p.findall Thanks -- Aonlazio 'Peace is always the way.' NW --

Global variables for python applications

2010-05-16 Thread AON LAZIO
Hi, How can I set up global variables for the entire python applications? Like I can call and set this variables in any .py files. Think of it as a global variable in a single .py file but this is for the entire application. Thanks -- Aonlazio 'Peace is always the way.' NW --

Setup global variables settings for the entire applications

2010-05-14 Thread AON LAZIO
Hi, Say I have an application which requires a global settings for the user. When the user finishes setting those global variables for the app. Any class can use that variables (which are the same for all), something like that. What is the suitable mechanism for this solution? Thanks in

Difference between 'is not' and '!=' ?

2010-05-10 Thread AON LAZIO
As subject says, what is the differences of 'is not' and '!='. Confusing.. -- Passion is my style -- http://mail.python.org/mailman/listinfo/python-list

Re: EURO GIRLS MISS EUROPE MISS FRENCH FRENCH PRETTY GIRLS SEXY FRENCH GIRLS on www.sexyandpretty-girls.blogspot.com SEXY RUSSIAN GIRLS SEXY GREEK GIRLS SEXY DUTCH GIRLS SEXY UK G

2010-03-21 Thread AON LAZIO
Relax guys, let have fun once in a while On Sat, Mar 20, 2010 at 12:18 AM, Naeem kse.listed@gmail.com wrote: EURO GIRLS MISS EUROPE MISS FRENCH FRENCH PRETTY GIRLS SEXY FRENCH GIRLS on www.sexyandpretty-girls.blogspot.com SEXY RUSSIAN GIRLS SEXY GREEK GIRLS SEXY DUTCH GIRLS SEXY UK

When will Python go mainstream like Java?

2010-02-22 Thread AON LAZIO
That will be superb -- Passion is my style -- http://mail.python.org/mailman/listinfo/python-list

Programing family

2010-02-09 Thread AON LAZIO
I have thought funny things If we think all languages are like a family I could draft them like this (Python base) C is Python's Mom C++ : Dad Pascal/Assembly : Grandparents C# : Uncle Java : Ant Ruby: Cousin Perl : Girlfriend What u guys think? XD -- Passion is my style --

Create attribute from string

2009-12-30 Thread AON LAZIO
Hi, I would like to know how we could create attribute from string say I want to assign value 0.05 to an object attribute I like to input SIGNIFICANT and 0.05 and get object.SIGFICANT equals to 0.05 Thanks -- Passion is my style -- http://mail.python.org/mailman/listinfo/python-list

Simple object reference

2009-11-14 Thread AON LAZIO
Hi, I have some problem with object reference Say I have this code a = b = c = None slist = [a,b,c] for i in range(len(slist)): slist[i] = 5 print slist print a,b,c I got this [5, 5, 5] None None None Question is how can I got all a,b,c variable to have value 5 also? Thanks in advance

Nonblocking keyboard input in python Idle windows

2009-01-21 Thread AON LAZIO
Hi, I want to solve the problem like this running on Idle python windows The problem: the program continue printing 1,2,3,4,5 until it receives the input 'enter' from keyboard then it stops printing this could be done using msvcrt.kbhit() and msvcrt.getch() on command prompt

Problem when Installing PyML module modules with mingw32

2008-11-04 Thread AON LAZIO
Hi, I have a problem when I try to install PyML module with mingw32 in windows XP. c promptpython setup.py build --compiler=mingw32 running build running build_py running build_ext building 'PyML/containers/ext/_csparsedataset' extention ###Bla bla bla bunch of errors### collect2: ld returned

python 2.6 is out people!!

2008-10-06 Thread AON LAZIO
When we change from 2.5.2 to 2.6? should we update any module in 2.5.2? Thanks -- http://mail.python.org/mailman/listinfo/python-list

Property Function

2008-09-23 Thread AON LAZIO
Hi, In python code, class A: get(self): do something set(self): do something g=property(get,set) what is the good use of property function?, I do not understand clearly.. Thanks in advance --

The difference between __XX__ and XX method

2008-09-08 Thread AON LAZIO
Hi, Pythoners. I would like to know that in some class, it uses __XX__ but in some it uses only XX for example, class Test: def __som__(self): ... def som(self): ... What does __XX__ make the method different from XX? Thanks in advance Aonlazio --

class(object) and (type)??

2008-09-08 Thread AON LAZIO
Hi again pythoners, I notice in the class of a code having (object) and (type) attached to the name of the class. I know that in other cases, that means the class inherits methods and properties from other but In this case, what does it mean? For example, class PY(object): def

Read PDF content

2008-08-21 Thread AON LAZIO
Hi, Guys. I am trying to extract the PDF file content(to get the specific information) using python. I already tried pyPdf with no success. Anyone has suggestions? Thanks in advance. Aonlazio -- http://mail.python.org/mailman/listinfo/python-list

Hi, Pythoners.

2008-08-13 Thread AON LAZIO
I have come across this code and I tried to figure out what does it do First, I do not understand the sign @... above the class method, what does it do? Second, about the object in AnyWrapper(object), why do they declare object as the superclass? sometimes I saw (type) what the differences between