Hallöchen!
James writes:
# a.py
import b
# refer to b.b
# b.py
import a
# refer to a.a
Thanks Dan, but that still doesn't work for me I'm afraid...
I renamed the modules avoid name overloading -- a.py is now:
import b
class A():
print('b.b_mod:', b.b_mod)
Dan's hint is the
Tim,
I copied your code exactly from my browser and ran it, so I don't
think there was a typo.
I could upgrade to Python 2.5.2 I suppose to compare and contrast, but
I need to support older
Python versions anyway so it's a bit academic...
Your speculation about garbage collection did set me
Hello everybody, I need a mechanism to detect email bounces. I tried
browsing through smtplib implementation and found not helpful in this
case. Actually it is said in the documentation that if a mail is sent
to say: [EMAIL PROTECTED], then _send() in the
SMTPConnection class returns 550(Unknown
This problem is solved with time.gmtime
[EMAIL PROTECTED] wrote:
Dear Members of the group,
I have one function
def sum1(n):
a1=5
a2=6
a3=a1+a2
a4=a3+8
print The First sum is
print a3
print The Second sum is
print a4
Now, I want to do
On Jun 26, 7:52 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
Dear All,
I have try to use the py2exe to compile the DLL file
first i write the simple python script test01.py:
def test001():
return 1
then write the setup.py:
# setup.py
from
On Jun 27, 3:06 am, John Machin [EMAIL PROTECTED] wrote:
On Jun 27, 6:32 am, [EMAIL PROTECTED] wrote:
Hi
I am a beginner on Python and have a problem..
I have text file and reading it line by line and there are backspace
characters in it like '\b' or anything you want like #. I want to
Le Friday 27 June 2008 09:03:15 madhav, vous avez écrit :
Hello everybody, I need a mechanism to detect email bounces. I tried
browsing through smtplib implementation and found not helpful in this
case. Actually it is said in the documentation that if a mail is sent
to say: [EMAIL PROTECTED],
You could overload __getattr__ (might have to play around a bit to make sure
any possible AttributeError's look right, but the basic idea is here)
class A(object):
# ...
def __getattr__(self, name):
try:
return object.__getattribute__(self, name)
except AttributeError:
Earn 25 US$ in just 5 mins . . .
You can earn 25 US$ in just 5mins from now, please follow the simple
steps:
It's absolutely free to join.
Step 01
CLICK HERE
http://www.awsurveys.com/HomeMain.cfm?RefID=242423
A page will open
Step 02
Click on Create a Free Account
Step 03
Fill up the details
Dear All,
I am trying to write the following code:
def try1(n):
a1=God Godess Borother Sister Family
a2=a1.split()
a3=raw_input(PRINT A WORD)
a4=a1.find(a3)
print a4
a5=[]
if a40:
a5=a2.index(a3)
a6=a5+1
antar2 a écrit :
Hello
Suppose I have a textfile (text1.txt) with following four words:
Apple
balcony
cartridge
damned
paper
bold
typewriter
and I want to have a python script that prints the words following the
word starting with the letter b (which would be cartridge) or
differently put, a
On Jun 27, 5:27 pm, cakomo [EMAIL PROTECTED] wrote:
On Jun 27, 3:06 am, John Machin [EMAIL PROTECTED] wrote:
new_line = re.sub(r'.\x08', old_line, '')
new_line = re.sub(r'[^\x08]\x08', '', old_line)
Thanks John
I will try it but, do you think regex replacement gonna erase the
defn noob a écrit :
class Graph(object):
where does anyone write like that?
Almost everywhere nowadays.
I've seen only examples like i have
written.
Most of the doc has still not been updated since the introduction of
newstyle classes years ago. You'll find more here:
Terry Reedy a écrit :
(snip)
I believe
wordlist = open('words.txt','r').read().split('\n')
should give you the list in Python.
Or simply:
wordlist = open('words.txt').readlines()
In any case,
wordlist = ['Apple','balcony', 'cartridge',
'damned', 'paper', 'bold', 'typewriter']
for i, word
On Jun 27, 12:34 pm, Maric Michaud [EMAIL PROTECTED] wrote:
Le Friday 27 June 2008 09:03:15 madhav, vous avez écrit :
Hello everybody, I need a mechanism to detect email bounces. I tried
browsing through smtplib implementation and found not helpful in this
case. Actually it is said in the
Allen a écrit :
[EMAIL PROTECTED] wrote:
On 26 juin, 17:18, Allen [EMAIL PROTECTED] wrote:
I need a way to add a method to an existing instance, but be as close as
possible to normal instance methods.
def set_method(obj, func, name=None):
if not name:
name = func.__name__
HAI..
Guys this web site s very useful to
you...
How This site
helps..
how to earn money form
online..
In this site, you wil earn more than 1/- Rs per month
its true ... just login this site and EARN MONEY
www.freeonlinedollers.blogspot.com
HAI..
Guys this web site s very useful to
you...
How This site
helps..
how to earn money form
online..
In this site, you wil earn more than 1/- Rs per month
its true ... just login this site and EARN MONEY
www.freeonlinedollers.blogspot.com
I have never used the urllib or the urllib2. I really have looked online for
help on this issue, and mailing lists, but I can't figure out my problem
because people haven't been helping me, which is why I am here! :]. Okay, so
basically I want to be able to submit a word to dictionary.com and
Gandalf wrote:
Hi every one I'm looking for a good alternative db to replace sqlite
I'm using pySQlite3, And I tried to translate very big database from
Mysql to sqlite.
I generated through PHP a python script that insert 200,000 records
to my sqlite db and took me more then 5 hours and
On Jun 27, 11:09 am, John Machin [EMAIL PROTECTED] wrote:
On Jun 27, 5:27 pm, cakomo [EMAIL PROTECTED] wrote:
On Jun 27, 3:06 am, John Machin [EMAIL PROTECTED] wrote:
new_line = re.sub(r'.\x08', old_line, '')
new_line = re.sub(r'[^\x08]\x08', '', old_line)
Thanks John
I
Uwe Grauer wrote:
Gandalf wrote:
Hi every one I'm looking for a good alternative db to replace sqlite
I'm using pySQlite3, And I tried to translate very big database from
Mysql to sqlite.
I generated through PHP a python script that insert 200,000 records
to my sqlite db and took me more then
Not sure if this is related. But I found a patch to Python 2.4 to
support adding timeout parameter to Semaphore.acquire() (http://
mail.python.org/pipermail/patches/2003-November/013796.html).
However, when I try the timeout parameter on Python 2.5.1 running on
Ubuntu 7.10 and I got an error of:
Maybe I didn't explain correctly what i wanted to do. I have a
database and I just want to pick data under a certain criteria. So I
wanted to use a function like nonzero or find or where to find the
line for corresponding to the data following this criteria. So to find
the lines, I used nonzero
On Jun 27, 9:51 am, [EMAIL PROTECTED] wrote:
Dear All,
I am trying to write the following code:
def try1(n):
a1=God Godess Borother Sister Family
a2=a1.split()
a3=raw_input(PRINT A WORD)
a4=a1.find(a3)
print a4
a5=[]
if a40:
Le Friday 27 June 2008 10:43:06 Alexnb, vous avez écrit :
I have never used the urllib or the urllib2. I really have looked online
for help on this issue, and mailing lists, but I can't figure out my
problem because people haven't been helping me, which is why I am here! :].
Okay, so basically
John Machin wrote:
On Jun 21, 11:58 pm, [EMAIL PROTECTED] wrote:
Is there any way to retrieve column names from a cursor using the ODBC
module? Or must I, in advance, create a dictionary of column position
and column names for a particular table before I can access column
values by column
duncan smith wrote:
Michael Press wrote:
In article [EMAIL PROTECTED],
Mark Wooding [EMAIL PROTECTED] wrote:
Michael Press [EMAIL PROTECTED] wrote:
I already compiled and installed the GNU multiprecision library
on Mac OS X, and link to it in C programs. How do I link to the
library from
I'm a bit new to both home-made exceptions and unit
tests, so sorry if I'm just being stupid or doing it
totally wrong.
I have an exception class, and I want to check that
a particular instance of it has been raised; or
more accurately that one is raised that is equal to
an instance I specify.
On Jun 27, 12:58 am, James [EMAIL PROTECTED] wrote:
# a.py
import b
# refer to b.b
# b.py
import a
# refer to a.a
Thanks Dan, but that still doesn't work for me I'm afraid...
I renamed the modules avoid name overloading -- a.py is now:
import b
class A():
print('b.b_mod:',
On Jun 27, 7:54 pm, [EMAIL PROTECTED] wrote:
Maybe I didn't explain correctly what i wanted to do. I have a
database and I just want to pick data under a certain criteria. So I
wanted to use a function like nonzero or find or where to find the
line for corresponding to the data following this
Hi Chris,
I solved the problem some other way round but thanx for your
suggestion, I'll review it also.
Best Regards,
Subhabrata.
Chris wrote:
On Jun 27, 9:51�am, [EMAIL PROTECTED] wrote:
Dear All,
I am trying to write the following code:
def try1(n):
� � � � a1=God Godess Borother
Gerhard Häring wrote:
Uwe Grauer wrote:
Use Firebird. It has a small footprint and runs in different
enviroments from embedded to server with single process per connection.
Firebird may be nice, but has nothing to do with this performance problem.
I suggested Firebird because the OP asked:
Ken Starks wrote:
I have an exception class, and I want to check that
a particular instance of it has been raised; or
more accurately that one is raised that is equal to
an instance I specify.
In the example below, I can check that a
'LongRationalError' is raised, but I want
to check
There was an error with the name of the variable I would not ask
this if it was just a question of different variable names !
diff_temp=(logical_and(values[:,5] -2,values[:,5] 2)).nonzero()
new_values=values[diff_temp,:]
Okay, I'm going to try to explain that more specifically that I
Peter Otten wrote:
Ken Starks wrote:
I have an exception class, and I want to check that
a particular instance of it has been raised; or
more accurately that one is raised that is equal to
an instance I specify.
In the example below, I can check that a
'LongRationalError' is raised, but I
Code :
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
if os.name == 'nt':
OS_Selection = 0
elif os.name == 'posix':
OS_Selection = 1
else :
OS_Selection = 1
del_cmd_os = ( del,rm)
filelist = (ddd.txt,eee.txt,fff.txt)
# Creating Files
for elem in filelist:
open( elem,
Allright i figured it out . Very stupid but very forgottable fact. I
should close the file before deleting it with shell command...
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I need to retrieve the content of some files which are placed on a
network drive so in order to open them I need the full path to the
file.
Unfortunately some times the path is longer than 256 characters and in
Windows such a path is too long with the result that the file is not
found (though
Hello,
I'm trying to compile the minimal example from
http://en.wikibooks.org/wiki/Python_Programming/Extending_with_C with
MinGW (latest version) and Python 2.5 (latest ActiveState binary
install). When running the setup file, the following happens:
running build
running build_ext
building
Uwe Grauer wrote:
I suggested Firebird because the OP asked:
Hi every one I'm looking for a good alternative db to replace sqlite
That he did, but people ask for what they think they need, which isn't
always what they really need. In this particular case, sqlite was not
the problem. The
On Jun 27, 10:12 pm, [EMAIL PROTECTED] wrote:
There was an error with the name of the variable I would not ask
this if it was just a question of different variable names !
Calm down. Stop shouting. It is not evident whether the above means
that diff_temp_Stumpf was an error (should
cesco wrote:
Hi,
I need to retrieve the content of some files which are placed on a
network drive so in order to open them I need the full path to the
file.
Unfortunately some times the path is longer than 256 characters and in
Windows such a path is too long with the result that the file is
On Jun 27, 8:01 am, cesco [EMAIL PROTECTED] wrote:
Hi,
I need to retrieve the content of some files which are placed on a
network drive so in order to open them I need the full path to the
file.
Unfortunately some times the path is longer than 256 characters and in
Windows such a path is
On 2008-06-27, cesco [EMAIL PROTECTED] wrote:
Hi,
I need to retrieve the content of some files which are placed on a
network drive so in order to open them I need the full path to the
file.
Unfortunately some times the path is longer than 256 characters and in
Windows such a path is too
I think that you mean that diff_temp will be an array of the numberS
(plural) of the lines (rows?) in values array that met the -2 x 2
criterion. Now you want to be able to use diff_temp to get the
corresponding subset of some other array. Am I getting close?
I think that you're getting
I think that you mean that diff_temp will be an array of the numberS
(plural) of the lines (rows?) in values array that met the -2 x 2
criterion. Now you want to be able to use diff_temp to get the
corresponding subset of some other array. Am I getting close?
I think that you're getting
teh_sAbEr wrote:
Great! It works properly now but I have one more question, would
anyone know how to get the changes to take effect immediately? Like
some sort of Python way to force the desktop to reload? AFAIK the only
way that'll happen is if I use the Display Properties dialog box. The
I think that you mean that diff_temp will be an array of the numberS
(plural) of the lines (rows?) in values array that met the -2 x 2
criterion. Now you want to be able to use diff_temp to get the
corresponding subset of some other array. Am I getting close?
I think that you're getting
I think that you mean that diff_temp will be an array of the numberS
(plural) of the lines (rows?) in values array that met the -2 x 2
criterion. Now you want to be able to use diff_temp to get the
corresponding subset of some other array. Am I getting close?
I think that you're getting
On 2008-06-27, cesco [EMAIL PROTECTED] wrote:
Hi,
I need to retrieve the content of some files which are placed on a
network drive so in order to open them I need the full path to the
file.
Unfortunately some times the path is longer than 256 characters and in
Windows such a path is too long
I think that you mean that diff_temp will be an array of the numberS
(plural) of the lines (rows?) in values array that met the -2 x 2
criterion. Now you want to be able to use diff_temp to get the
corresponding subset of some other array. Am I getting close?
I think that you're getting
I am trying this.. what is wrong in this..
IDLE 1.2.2
import re
a=my name is fname lname
p=re.compile('name')
m=p.match (a)
print p.match(a)
None
findall() seems to work
print p.findall(a)
['name', 'name', 'name']
--
http://mail.python.org/mailman/listinfo/python-list
On Jun 28, 12:00 am, python_enthu [EMAIL PROTECTED] wrote:
I am trying this.. what is wrong in this..
IDLE 1.2.2 import re
a=my name is fname lname
p=re.compile('name')
m=p.match (a)
print p.match(a)
None
findall() seems to work
print p.findall(a)
['name', 'name', 'name']
Read
On Jun 27, 10:15 am, Larry Bates [EMAIL PROTECTED] wrote:
yardennis wrote:
Hi,
I need python moudles that can
auto install python 2.5 (web install or a EXE file)
auto download and install Firefox3 and Thunderbird 2
auto import from IE 6, 7 and OE 5,6 and Outlook
read contacts and
godavemon wrote:
I need to calculate the Hamming Distance of two integers. The hamming
distance is the number of bits in two integers that don't match.
...
What about letting the bits count themselves in a parallel adding scheme:
def hamming(i, j):
i ^= j
i =
Jeff [EMAIL PROTECTED]:
(and possibly intermediate results)
These could be stored purely in C space, without refcounting needed.
--
Freedom is always the freedom of dissenters.
(Rosa Luxemburg)
--
http://mail.python.org/mailman/listinfo/python-list
HI,
When I check example of cmd2 module (a enhancement of cmd module), I
can not understand all, for example: the character @,
+
def options(option_list):
..function content
class cmd(...):
Hello,
I'm trying to clarify what exactly the behaviour of the is statement is (or
should be). Naturally, this has been nearly impossible to google for, even
using quotations... It is my impression that the is statement should be
equivalent to ==, at least on some level. However, this equivalency
Hi Evan,
The @ is a decorator, knowing this should help you search for a better
explanation than I could give...
Have a look here to start:
http://mail.python.org/pipermail/tutor/2006-September/048978.html
Joel
On Fri, Jun 27, 2008 at 10:48 AM, Evan [EMAIL PROTECTED] wrote:
HI,
When I
On Jun 27, 9:48 am, Evan [EMAIL PROTECTED] wrote:
HI,
When I check example of cmd2 module (a enhancement of cmd module), I
can not understand all, for example: the character @,
+
def options(option_list):
..function
python_enthu [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I am trying this.. what is wrong in this..
IDLE 1.2.2
import re
a=my name is fname lname
p=re.compile('name')
m=p.match (a)
print p.match(a)
None
match( string[, pos[, endpos]])
If zero or more characters at
cool, thanks, I will check document.
--
http://mail.python.org/mailman/listinfo/python-list
Ryuke wrote:
I have a code that receives gps information from nodes and gives off
its own coordinates via radios connected by Ethernet. but the code
continues to run after receiving only 1 set of coordinates, how do i
get it to wait for multiple nodes to send before continuing
You might
Mike Driscoll a écrit :
On Jun 27, 9:48 am, Evan [EMAIL PROTECTED] wrote:
HI,
When I check example of cmd2 module (a enhancement of cmd module), I
can not understand all, for example: the character @,
+
def options(option_list):
Hello all,
I've been trying to get an example found here
http://codeidol.com/python/python3/Embedding-Python/Registering-Callback-Handler-Objects/
to work. Every thing works fine except when I try to trigger an event from c
that will call a python function. Here is my test code:
xkenneth wrote:
I'm looking for a bit of advice. There's an oilfield standard
called WITSML (Wellsite Information Transfer Standard Markup Language
- witsml.org), it's basically a collection of XML schemas and a spec
For implementing XML languages, I (biasedly) advocate lxml's element class
Joel Corbin wrote:
Hello,
I'm trying to clarify what exactly the behaviour of the is statement
is (or should be). Naturally, this has been nearly impossible to
google for, even using quotations... It is my impression that the is
statement should be equivalent to ==, at least on some level.
Okay, maybe I just didn't understand the websites that were given as
examples as to 'decoration'. I first came across the unusual '@' when
I was browsing through some extreme beginner's information on os.x
method descriptions. I asked some other people about it and they had
no idea what it
Joel Corbin wrote:
I'm trying to clarify what exactly the behaviour of the is statement is (or
should be). ...
People often think that is is part of the comparison operator set. The
is statement does not compare two objects. Never ever use is to
compare strings or numbers.
Christian
--
Damon Getsman a écrit :
Okay, maybe I just didn't understand the websites that were given as
examples as to 'decoration'. I first came across the unusual '@' when
I was browsing through some extreme beginner's information on os.x
method descriptions. I asked some other people about it and they
Le Friday 27 June 2008 16:51:07 Joel Corbin, vous avez écrit :
Hello,
I'm trying to clarify what exactly the behaviour of the is statement is (or
should be). Naturally, this has been nearly impossible to google for, even
using quotations...
try this one:
Gary Herron wrote:
In short: *never* use is.
Never use is unless you want to check if something is None or
something is not None
Christian
--
http://mail.python.org/mailman/listinfo/python-list
Thank you Gary, Cédric, Christian. When *would *one use is?
Cédric... the problem I was having was purely an issue of comparison if
file.tell() is 0L was returning False. Strangely enough, if file.tell() is
0 returns True in the right cases. I assume this is related to the None
case?
On Fri,
On Jun 27, 8:38 am, Gary Herron [EMAIL PROTECTED] wrote:
Joel Corbin wrote:
Hello,
I'm trying to clarify what exactly the behaviour of the is statement
is (or should be). Naturally, this has been nearly impossible to
google for, even using quotations... It is my impression that the is
On Jun 27, 8:22 am, Tim Spens [EMAIL PROTECTED] wrote:
Hello all,
I've been trying to get an example found
herehttp://codeidol.com/python/python3/Embedding-Python/Registering-Callb...
to work. Every thing works fine except when I try to trigger an event from c
that will call a python
I've been doing some research on web templates, and even though I read that
they help enforce the MVC pattern, I don't really understand how they are
keeping content and logic separated. Layout is easy, it's just not there as
far as I can see, and CSS can be used for that.
But when you have a
On Jun 26, 8:13 pm, defn noob [EMAIL PROTECTED] wrote:
I installed python30 and so command prompt runs all pythonprograms
through that which i didnt want so i uninstalled it.
now i cant start any pythonprograms through the commandprompt.
how do I rebind python25 to luanch when claling
thanks, but didn't fix the problem.
--- On Fri, 6/27/08, Matimus [EMAIL PROTECTED] wrote:
From: Matimus [EMAIL PROTECTED]
Subject: Re: embedding and extending python C API registering callback
handler objects
To: python-list@python.org
Date: Friday, June 27, 2008, 9:03 AM
On Jun 27, 8:22
At 2008-06-24T20:27:33Z, regex_jedi [EMAIL PROTECTED] writes:
Notice that the 4th value has a single quote in it. Well, I need to
make sure that the single quote is escaped before handing it off for
further processing to a class I later call for some other processing.
Out of curiosity, what
Damon Getsman [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Okay, maybe I just didn't understand the websites that were given as
examples as to 'decoration'. I first came across the unusual '@' when
I was browsing through some extreme beginner's information on os.x
method
John Salerno [EMAIL PROTECTED]:
But when you have a templating system that mixes HTML and Python code, how
is this helping to keep things separate?
You don't. Normally you embed only the code, that is absolutely necessary,
e.g. for iterating over a list.
Consider an online shop, that needs
Joel Corbin wrote:
Thank you Gary, Cédric, Christian. When *would *one use is?
As I said:
The is statement should only be used when you want to check of
something is exactly and identical to None like a is None or b is not
None. For everything else you should use == or !=. There are some other
On Jun 27, 11:05 am, John Salerno [EMAIL PROTECTED] wrote:
python_enthu [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I am trying this.. what is wrong in this..
IDLE 1.2.2
import re
a=my name is fname lname
p=re.compile('name')
m=p.match (a)
print p.match(a)
None
Le Friday 27 June 2008 18:26:45 Christian Heimes, vous avez écrit :
Ask yourself if you are interested if f.tell() returns exactly the same
0 object (is) or a number that is equal to 0 (==).
That said, f.tell() == 0 and f.tell() != 0 should be written f.tell()
and not f.tell() in python.
if
I didn't think that it was. I just spent about 10 minutes trying to
google for the page that I found that on, but I wasn't able to turn it
up. My google-fu sucks. I know that I was researching a particular
part of the os module and that the snippets of script on the page had
an example
when does is make sense to use a ASP style Page (.psp) over a Python-
based CGI script with IIS.
?
http://support.microsoft.com/kb/276494
ASP requires registering the python engine.
which has better performance?
The ASP style uses a new part of the python language which is
unfamiliar to me,
Taygun Kekec wrote:
Code :
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
if os.name == 'nt':
OS_Selection = 0
elif os.name == 'posix':
OS_Selection = 1
else :
OS_Selection = 1
del_cmd_os = ( del,rm)
filelist = (ddd.txt,eee.txt,fff.txt)
# Creating Files
for
--- On Fri, 6/27/08, Tim Spens [EMAIL PROTECTED] wrote:
From: Tim Spens [EMAIL PROTECTED]
Subject: Re: embedding and extending python C API registering callback
handler objects
To: python-list@python.org, Matimus [EMAIL PROTECTED]
Date: Friday, June 27, 2008, 9:16 AM
thanks, but didn't
We're looking to migrate a Zope site to Django, but before getting beyond
the dreaming stage, I thought I'd see what others are doing these days.
If you were going to start a fairly complex site today with lots of DB
integration, would you begin with Django or TurboGears, or something else
If you read John's message carefully (which is the output of
help(re.search)) you can see the difference between re.search and
re.match. The former looks for a regex anywhere in the given string, the
latter requires the string to begin with the given regex.
Joel
On Fri, Jun 27, 2008 at 12:26 PM,
On Jun 26, 2008, at 10:55 PM, Gandalf wrote:
I have almost million records so I need a better solution.
SQLite shouldn't have any issue handling such a load. Perhaps this is
an operator, hmmm, issue?
--
PA.
http://alt.textdrive.com/nanoki/
--
In article
[EMAIL PROTECTED],
Jonathan Gardner [EMAIL PROTECTED] wrote:
On Jun 26, 3:22 pm, MRAB [EMAIL PROTECTED] wrote:
Try something like:
re.compile(r'table\b.*?.*?/table', re.DOTALL)
So you would pick up strings like tabletrtdtabletrtdfoo/
td/tr/table? I doubt that is what
Okay, I tried to follow that, and it is kinda hard. But since you obviously
know what you are doing, where did you learn this? Or where can I learn
this?
Maric Michaud wrote:
Le Friday 27 June 2008 10:43:06 Alexnb, vous avez écrit :
I have never used the urllib or the urllib2. I really have
Matimus,
I was surprised that lazy was the algorithm that won your time tests, and
I saw a way to improve it even better (algorithm is O(# ones in number)
rather than O(# bits in number))
def lazy2(a, b, bits=32):
x = (a ^ b) ((1 bits) - 1)
tot = 0
while x:
tot += 1
x
I'm having trouble importing when I run in Python. The hello world program
passes the test during the bjam build but gives an error about loading the
dll
when I import from a python script.
first the test from running bjam.
...patience...
...found 1915 targets...
...using 1 temp target...
On Jun 24, 4:19 pm, schickb [EMAIL PROTECTED] wrote:
On Jun 24, 3:45 pm, Matimus [EMAIL PROTECTED] wrote:
I think it would be useful if iterators on sequences had the __index__
method so that they could be used to slice sequences. I was writing a
class and wanted to return a list
Hi,
I am newbie to PythonQt. I wanted to access the Qt objects created in C++
using Python and update things. I had a look at this URL
http://doc.trolltech.com/qq/qq23-pythonqt.html#decoratorsandcwrappers; which
talks about using PythonQt for the same.
I followed the instructions given in the
In code that runs after the module has been imported (basically
anything defined in a function that isn't called by code that runs at
module time), you can expect the variables defined in the imported
module to be available.
If you have circular imports involved, making sure the modules
On Jun 27, 1:32 pm, David C. Ullrich [EMAIL PROTECTED] wrote:
In article
[EMAIL PROTECTED],
Jonathan Gardner [EMAIL PROTECTED] wrote:
On Jun 26, 3:22 pm, MRAB [EMAIL PROTECTED] wrote:
Try something like:
re.compile(r'table\b.*?.*?/table', re.DOTALL)
So you would pick up strings
1 - 100 of 199 matches
Mail list logo