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
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
--
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
--
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
As subject says, what is the differences of 'is not' and '!='. Confusing..
--
Passion is my style
--
http://mail.python.org/mailman/listinfo/python-list
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
That will be superb
--
Passion is my style
--
http://mail.python.org/mailman/listinfo/python-list
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
--
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
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
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
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
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
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
--
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
--
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
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
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
18 matches
Mail list logo