We're pleased to announce the release of IronPython 2.0 Beta 2. In addition to
the usual bug fixes (~25 reported on CodePlex and ~50 reported internally),
this release has been partially focused on improving the performance of
IronPython, in particular startup perf. Another focus of this
Dear all who are interested in pypar or parallel programming with Python.
I have released a new pypar version (2.1.0_49). It incorporates
- Race-condition patch from Jim Bosch
- Functionality and demo for Bsend by C Makassikis
- Deprecated obsolete functions
- Migrated Mandelbrot
Thenikeshoes DOT net
If you are interested in any of our products, please contact our
salesman and they will respond in 24 hours after hearing from you. If
you cannot find the shoes you are seeking for in the list, please also
contact with us and send us your photos, we will do our best to find
Ben Finney [EMAIL PROTECTED] writes:
The shebang line (the initial line of the file beginning with #!)
takes advantage of OS kernels that determine how to execute a file
based on the first few bytes of the file. The shebang line tells the
kernel that this file should be executed by passing it
On May 2, 4:49 pm, Mensanator [EMAIL PROTECTED] wrote:
On May 2, 2:57 pm, George Sakkis [EMAIL PROTECTED] wrote:
On May 2, 1:18 pm, Mensanator [EMAIL PROTECTED] wrote:
On May 2, 9:53 am, Michael Torrie [EMAIL PROTECTED] wrote:
Shawn Milochik wrote:
How does one plonk stuff from
On Fri, 02 May 2008 19:23:54 +0100, Arnaud Delobelle wrote:
Marc 'BlackJack' Rintsch [EMAIL PROTECTED] writes:
There are no modern processors with an opcode for incrementing a memory
location!? At least my C64 can do that. ;-)
Indeed! I remember a simple use was to make the border
Hallöchen!
Gabriel Genellina writes:
[...]
I can't believe some angry responses in this thread - it's just a
technical question, not about which is the best team in the
[preferred sports here] National Championship...
Well, Python-list is tunnelled to Usenet. Welcome here. ;-)
Tschö,
Marc 'BlackJack' Rintsch [EMAIL PROTECTED] writes:
On Fri, 02 May 2008 19:23:54 +0100, Arnaud Delobelle wrote:
Marc 'BlackJack' Rintsch [EMAIL PROTECTED] writes:
There are no modern processors with an opcode for incrementing a memory
location!? At least my C64 can do that. ;-)
Thanks a lot. I've been able to listen on ::1:21 after having
installed IPv6 on both Windows and Linux thanks to your suggestions.
I'd like to ask one more question: is it possible to bind my server on
both IPv4 and IPv6 addresses (note: I do not use multiple threads or
processes)?
You can,
On Mar 14, 10:59 am, Daniel Fetchinson [EMAIL PROTECTED]
wrote:
Since you seem to know quite a bit about this topic, what is your
opinion on the apparently 'generic' algorithm described here:
http://grail.cs.washington.edu/projects/query/?
So far it seems to me that it does what I'm
Jean-Paul Calderone [EMAIL PROTECTED] wrote:
For jobs which require interactivity ie send input, receive output,
send input, receive output, ... it doesn't work well. There isn't a
good cross platform solution for this yet. pyexpect works well under
unix and is hopefully being ported to
Rich [EMAIL PROTECTED] wrote:
I am working on a python library for sending and receiving data
from a Subaru's ECU (the fuel injection computer) via the OBD-II
port and an OBD to USB cable, with the Subaru Select Monitor
protocol.
[snip]
So I've been messing with it, and in as few lines
Hi,
I've gone through the list of language differences between 2.3 / 2.4
2.5 of CPython. I've spend around 2 weeks now, learning v2.5 of
CPython, and I consider myself still very very newbie. So, unable to
take a call as to how-important or desirable the newer language
features are -- so whether
I have the following class:
#
class Dummy():
value = 0
def __init__(self, thisValue):
print thisValue
self.value = thisValue
value = thisValue
def testing(self):
print 'In test: %d' % self.value
def returnValue(self):
return self.value
How to deal with multiple databases in an file. I want to get the
content of several databases.
it's the code I wrote:
[EMAIL PROTECTED] ~]$ python
Python 2.5.1 (r251:54863, Oct 30 2007, 13:54:11)
[GCC 4.1.2 20070925 (Red Hat 4.1.2-33)] on linux2
Type help, copyright, credits or license for more
On May 3, 1:05 pm, Decebal [EMAIL PROTECTED] wrote:
I have the following class:
#
class Dummy():
value = 0
def __init__(self, thisValue):
print thisValue
self.value = thisValue
value = thisValue
def testing(self):
print 'In test: %d' %
On Sat, 03 May 2008 03:05:31 -0700, Decebal wrote:
I have the following class:
#
class Dummy():
value = 0
def __init__(self, thisValue):
print thisValue
self.value = thisValue
value = thisValue
def testing(self):
print 'In test: %d' %
Banibrata Dutta [EMAIL PROTECTED] wrote:
I've gone through the list of language differences between 2.3 / 2.4
2.5 of CPython. I've spend around 2 weeks now, learning v2.5 of
CPython, and I consider myself still very very newbie. So, unable to
take a call as to how-important or desirable
Hi all,
Can someone point me in the right direction? I'm looking for a module
to monitor the Windows Event Viewer.
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
In article [EMAIL PROTECTED],
Grant Edwards [EMAIL PROTECTED] wrote:
On 2008-05-02, D'Arcy J.M. Cain [EMAIL PROTECTED] wrote:
On Sat, 03 May 2008 00:44:00 +1000
Ben Finney [EMAIL PROTECTED] wrote:
D'Arcy J.M. Cain [EMAIL PROTECTED] writes:
As someone else pointed out, not all the world
globalrev schrieb:
On 2 Maj, 18:13, Diez B. Roggisch [EMAIL PROTECTED] wrote:
globalrev schrieb:
if pygame.key.get_pressed[K_a]:
print Muppet
K_a is not defined.
but yes it is. why do i get this error?
No it isn't - otherwise you wouldn't get this error, wouldn't you?
What IS
Can someone please redirect me for a state machine example or design pattern
used in Python.
Regards
Alok
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
Bad file names, i.e. filenames the OS considers illegal, will cause
functions in the os.path module to raise an error.
Example:
import os.path
print os.path.getsize( 'c:/pytest/*.py' )
The issue, I think, is there's no function that checks
syntax of a path name
I work on an AIX system where /usr/bin and /usr/local/bin apps can only be
installed by root. Our system doesn't have python or many other tools we
like to use installed so we have to install python in an alternate directory
location. We have a system installation of Perl installed, but it's a
Decebal wrote:
I have the following class:
#
class Dummy():
value = 0
def __init__(self, thisValue):
print thisValue
self.value = thisValue
value = thisValue
def testing(self):
print 'In test: %d' % self.value
def returnValue(self):
New style classes are classes inherited from class object. Therefore:
class A:
pass
is oldstyle, while
class B(object):
pass
is newstyle.
On Tue, Apr 29, 2008 at 8:29 AM, blaine [EMAIL PROTECTED] wrote:
On Apr 29, 5:32 am, Duncan Booth [EMAIL PROTECTED] wrote:
Hello Decebal,
I am new to python myself, which might be the cause why I do not get
that last line at all. To me it looks like you are trying to set a
variable in the class body (if I am reading the indent correctly) and
call a function (that does not exist?) to calculate the value for it.
Does
I did the following calculation: Generated a list of a million random
numbers between 0 and 1, constructed a new list by subtracting the mean
value from each number, and then calculated the mean again.
The result should be 0, but of course it will differ from 0 slightly
because of rounding
http://www.pygame.org/docs/ref/rect.html#Rect.move
well i need to put my rect ina specific place and i donw know from
where i will move it so i need a function rect.moveTo(x,y).
how do i do that?
--
http://mail.python.org/mailman/listinfo/python-list
On May 2, 3:26 pm, TkNeo [EMAIL PROTECTED] wrote:
On May 2, 2:49 pm, Jeff [EMAIL PROTECTED] wrote:
The generally used idiom for that is:
lst = ['a', 'b', 'c']
if 'a' in lst:
foo = lst.index('a')
Jeff - Gracias !!
I am fairly new to python. Thanks for the example code snippet
Can someone point me in the right direction? I'm looking for a module
to monitor the Windows Event Viewer.
http://docs.python.org/lib/module-logging.html
NTEventLogHandler is the one you should use.
happy pythoning
--
http://mail.python.org/mailman/listinfo/python-list
On 3 Mag, 05:38, Roy Smith [EMAIL PROTECTED] wrote:
In the application I work on, we've avoided this. We just listen on two
separate sockets (one for each address family). We wrote a DualSocket
class which manages the two underlying single-protocol sockets and makes
them appear to be a
On Sat, 03 May 2008 09:51:06 -0700, globalrev wrote:
http://www.pygame.org/docs/ref/rect.html#Rect.move
well i need to put my rect ina specific place and i donw know from
where i will move it so i need a function rect.moveTo(x,y).
how do i do that?
No need for a function or method::
Szabolcs Horvát [EMAIL PROTECTED] writes:
[...]
A little research shows that Mathematica uses a compensated
summation algorithm. Indeed, using the algorithm described at
http://en.wikipedia.org/wiki/Kahan_summation_algorithm
gives us a result around ~ 10^-17:
def compSum(arr):
s = 0.0
On Fri, 02 May 2008 17:40:02 +0200, Paul Melis wrote:
I'm not sure you've been helped so far as you seem to already understand
about pyvtk not being the official VTK bindings :)
So, what would you like to know?
Thanks, I think I'm set. For the benefit of the next instance of
me googling
On May 1, 10:04 am, Terry Reedy [EMAIL PROTECTED] wrote:
jmDesktop [EMAIL PROTECTED] wrote in message
|
| s = 'abcde'
| i = -1
| for i in range (-1, -len(s), -1):
|print s[:i], i
| Why doesn't the first one have the e if -1 is the end of the list?
That should be obvious. 'print s[-1]'
On Sat, 03 May 2008 18:50:34 +0200, Szabolcs Horvát wrote:
I did the following calculation: Generated a list of a million random
numbers between 0 and 1, constructed a new list by subtracting the mean
value from each number, and then calculated the mean again.
The result should be 0, but
Sorry for the late response. I've been travelling internationally and
am just getting back to work.
So--thank you to everyone who responded!
To answer everyone's question I am dumping all of the data from a
mysql database, then creating a postgresql database, then inserting
the data into
Szabolcs Horvát [EMAIL PROTECTED] wrote:
I did the following calculation: Generated a list of a million random
numbers between 0 and 1, constructed a new list by subtracting the mean
value from each number, and then calculated the mean again.
The result should be 0, but of course it
Arnaud Delobelle wrote:
sum() works for any sequence of objects with an __add__ method, not
just floats! Your algorithm is specific to floats.
This occurred to me also, but then I tried
sum(['abc', 'efg'], '')
and it did not work. Or is this just a special exception to prevent the
Jeff wrote:
Twisted has SOAP support.
yes but it is based on no longer actively maintained SOAPpy.
--
http://mail.python.org/mailman/listinfo/python-list
Sometimes different languages suggests me ways to cross-pollinate
them.
(Note: probably someone has already suggested (and even implemented)
the following ideas, but I like to know why they aren't fit for
Python).
Python generators now allow me to package some code patterns common in
my code,
Heikki Toivonen wrote:
I have started researching the Python SOAP (and web services in general)
options out there. Python 2.5 should be supported.
I used Python for some web services stuff (demo quality) a few years
back without major problems. However, it seems many of the libraries I
remember
On Sat, May 3, 2008 at 6:26 PM, Alok Kumar [EMAIL PROTECTED] wrote:
Can someone please redirect me for a state machine example or design pattern
used in Python.
Google for it, eg:
http://www.google.com/search?q=python+state+machine
There's plenty of results. Be more specific if you can't get
There's plenty of results. Be more specific if you can't get what you
want from Google.
You'll probably find what you're looking for here:
http://wiki.python.org/moin/FiniteStateMachine
David.
--
http://mail.python.org/mailman/listinfo/python-list
In article [EMAIL PROTECTED],
Jeff [EMAIL PROTECTED] wrote:
Use lisp?
:-)))
--
Aahz ([EMAIL PROTECTED]) * http://www.pythoncraft.com/
Help a hearing-impaired person: http://rule6.info/hearing.html
--
http://mail.python.org/mailman/listinfo/python-list
In article [EMAIL PROTECTED],
Gabriel Genellina [EMAIL PROTECTED] wrote:
I can't believe some angry responses in this thread - it's just a
technical question, not about which is the best team in the [preferred
sports here] National Championship...
In article Giampaolo Rodola' [EMAIL PROTECTED] wrote:
I would be very interested in taking a look at how you implemented
that part of code. Would it be possible?
Sadly, no. It's proprietary code. But, it's really not that complicated
to reconstruct, once you know the basic idea. You have a
On May 3, 3:44 pm, Szabolcs Horvát [EMAIL PROTECTED] wrote:
Arnaud Delobelle wrote:
sum() works for any sequence of objects with an __add__ method, not
just floats! Your algorithm is specific to floats.
This occurred to me also, but then I tried
sum(['abc', 'efg'], '')
and it did not
Hello,
here is a piece of code I wrote to check the frequency of values and
switch them around to keys in a new dictionary. Just to measure how
many times a certain key occurs:
def invert(d):
inv = {}
for key in d:
val = d[key]
if val not in
Szabolcs Horvát [EMAIL PROTECTED] writes:
Arnaud Delobelle wrote:
sum() works for any sequence of objects with an __add__ method, not
just floats! Your algorithm is specific to floats.
This occurred to me also, but then I tried
sum(['abc', 'efg'], '')
and it did not work. Or is this
So I set out to learn handling three-letter-acronym files in Python,
and SAX worked nicely until I encountered badly formed XMLs, like with
bad characters in it (well Unicode supposed to handle it all but
apparently doesn't), using http://dchublist.com/hublist.xml.bz2 as
example data, with goal
On May 2, 11:29 pm, Ben Finney [EMAIL PROTECTED]
wrote:
smitty1e [EMAIL PROTECTED] writes:
Just a fun exercise to unify some of the major input methods for a
script into a single dictionary.
Here is the output, given a gr.conf file in the same directory with
the contents stated below:
dave [EMAIL PROTECTED] wrote:
Hello,
here is a piece of code I wrote to check the frequency of values and
switch them around to keys in a new dictionary. Just to measure how
many times a certain key occurs:
def invert(d):
inv = {}
for key in d:
val = d[key]
dave [EMAIL PROTECTED] writes:
Hello,
here is a piece of code I wrote to check the frequency of values and
switch them around to keys in a new dictionary. Just to measure how
many times a certain key occurs:
def invert(d):
inv = {}
for key in d:
val = d[key]
(this is a repost, for it's been a while since I posted this text via
Google Groups and it plain didn't appear on c.l.py - if it did appear
anyway, apols)
So I set out to learn handling three-letter-acronym files in Python,
and SAX worked nicely until I encountered badly formed XMLs, like with
thanks Duncan and Arnaud.
I'm learning Python from the How to Think Like a Python Programmer
book by Allen Downey. My first try used the inv[val] = [key] and
then the next problem was to incorporate the D.setdefault(...) method.
Thank you for your help. I'm always amazed how kind people
Jeff wrote:
The generally used idiom for that is:
lst = ['a', 'b', 'c']
if 'a' in lst:
foo = lst.index('a')
It's not a very good idiom, since it iterates over the list twice
unnecessarily: first, to see if the object is in the list; then, to
find the index of that object. That's
Szabolcs Horvát wrote:
Arnaud Delobelle wrote:
sum() works for any sequence of objects with an __add__ method, not
just floats! Your algorithm is specific to floats.
This occurred to me also, but then I tried
sum(['abc', 'efg'], '')
and it did not work. Or is this just a special
Hallöchen!
Erik Max Francis writes:
Szabolcs Horvát wrote:
Arnaud Delobelle wrote:
sum() works for any sequence of objects with an __add__ method, not
just floats! Your algorithm is specific to floats.
This occurred to me also, but then I tried
sum(['abc', 'efg'], '')
and it did not
Hi all,
I'd like to ask about some (probably elementary) things about the proper
usage of sqlite3 in python (2.5.2; win).
- Are there any peculiarities with using curs.executemany(...) vs. multiple
curs.execute(...) ? I read a notice, sqlite3 does internally some
caching, hence both should be
Torsten Bronger wrote:
No, the above expression should yield ''+'abc'+'efg', look for the
signature of sum in the docs.
You're absolutely right, I misread it. Sorry about that.
--
Erik Max Francis [EMAIL PROTECTED] http://www.alcyone.com/max/
San Jose, CA, USA 37 18 N 121 57 W AIM, Y!M
On Sat, 03 May 2008 20:44:19 +0200, Szabolcs Horvát wrote:
Arnaud Delobelle wrote:
sum() works for any sequence of objects with an __add__ method, not
just floats! Your algorithm is specific to floats.
This occurred to me also, but then I tried
sum(['abc', 'efg'], '')
Interesting, I
On May 3, 10:13 pm, hdante [EMAIL PROTECTED] wrote:
I believe that moving this to third party could be better. What about
numpy ? Doesn't it already have something similar ?
Yes, Kahan summation makes sence for numpy arrays. But the problem
with this algorithm is optimizing compilers. The
I got the Python Imaging Library from source, built and installed, on
Ubuntu 7.10, not realizing I could run a self-test first. libjpeg is
on the machine, but was not detected.. so no JPG encoder. I got the
dev-libjpg and rebuilt PIL. The self-test now shows JPG support.
but running setup.py
On Sat, 2008-05-03 at 21:37 +, Ivan Illarionov wrote:
On Sat, 03 May 2008 20:44:19 +0200, Szabolcs Horvát wrote:
Arnaud Delobelle wrote:
sum() works for any sequence of objects with an __add__ method, not
just floats! Your algorithm is specific to floats.
This occurred to me
The thing is this query works fine on the console through psql, but not in
my code? can anyone explain me why?
On Thu, May 1, 2008 at 9:31 PM, David Anderson [EMAIL PROTECTED]
wrote:
Hi all
I have this function:
def checkName(self, name):
cur = self.conn.cursor()
sql =
Hi,
I'm learning this and I'm making a program which takes RSS feeds and
processes them and then outputs them to a HTML file.
The problem I have is that some of the RSS feeds contain chachters which I
think are outside of the ascii range as when I attempt to write the file
containing themI get the
On Sat, 03 May 2008 17:01:44 -0700, darkblueB wrote:
On May 3, 4:52 pm, Ivan Illarionov [EMAIL PROTECTED] wrote:
Try run 'python setup.py build_ext -f' to force setup.py to rebuild
everything with JPEG. And 'sudo python setup.py install' should install
PIL with JPEG support.
yes, that
On May 3, 7:12 pm, Ivan Illarionov [EMAIL PROTECTED] wrote:
On Sun, 04 May 2008 00:31:01 +0200, Thomas Dybdahl Ahle wrote:
On Sat, 2008-05-03 at 21:37 +, Ivan Illarionov wrote:
On Sat, 03 May 2008 20:44:19 +0200, Szabolcs Horvát wrote:
Arnaud Delobelle wrote:
sum() works for any
On Sun, 04 May 2008 00:31:01 +0200, Thomas Dybdahl Ahle wrote:
On Sat, 2008-05-03 at 21:37 +, Ivan Illarionov wrote:
On Sat, 03 May 2008 20:44:19 +0200, Szabolcs Horvát wrote:
Arnaud Delobelle wrote:
sum() works for any sequence of objects with an __add__ method, not
just floats!
Assuming all the values are unique:
a={1:'a', 2:'b', 3:'c'}
dict(zip(a.keys(), a.values()))
{1: 'a', 2: 'b', 3: 'c'}
The problem is you obviously can't assume that in most cases.
Still, zip() is very useful function.
--
http://mail.python.org/mailman/listinfo/python-list
On 4 Maj, 01:27, [EMAIL PROTECTED] wrote:
a={1:'a', 2:'b', 3:'c'}
Oops, it should obviously be:
dict(zip(a.values(), a.keys()))
{'a': 1, 'c': 3, 'b': 2}
--
http://mail.python.org/mailman/listinfo/python-list
I'm actually curious if there's a way to write a generator function
(not a generator expression) in C, or what the simplest way to do it
is... besides link the Python run-time.
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 03 May 2008 15:25:35 -0700, darkblueB wrote:
I got the Python Imaging Library from source, built and installed, on
Ubuntu 7.10, not realizing I could run a self-test first. libjpeg is on
the machine, but was not detected.. so no JPG encoder. I got the
dev-libjpg and rebuilt PIL. The
On May 3, 1:59 pm, [EMAIL PROTECTED] wrote:
Sometimes different languages suggests me ways to cross-pollinate
them.
(Note: probably someone has already suggested (and even implemented)
the following ideas, but I like to know why they aren't fit for
Python).
Python generators now allow me
On May 3, 4:52 pm, Ivan Illarionov [EMAIL PROTECTED] wrote:
Try run 'python setup.py build_ext -f' to force setup.py to rebuild
everything with JPEG. And 'sudo python setup.py install' should install
PIL with JPEG support.
yes, that works
(the self test still gives misleading results ?)
but
On May 3, 5:12 pm, dave [EMAIL PROTECTED] wrote:
thanks Duncan and Arnaud.
I'm learning Python from the How to Think Like a Python Programmer
book by Allen Downey. My first try used the inv[val] = [key] and
then the next problem was to incorporate the D.setdefault(...) method.
Thank you
On Sat, 03 May 2008 17:43:57 -0700, George Sakkis wrote:
On May 3, 7:12 pm, Ivan Illarionov [EMAIL PROTECTED] wrote:
On Sun, 04 May 2008 00:31:01 +0200, Thomas Dybdahl Ahle wrote:
On Sat, 2008-05-03 at 21:37 +, Ivan Illarionov wrote:
On Sat, 03 May 2008 20:44:19 +0200, Szabolcs Horvát
To check a complete python expression use:
def check_open_close(expr):
try:
eval(expr)
except SyntaxError:
return False
else:
return True
This also ignores brackets in quotes, and checks = = operators are
syntatically correct etc...
But is may have side effects... ;-)
eg.
I have been learning the IDLE Debugger and was wondering if I was
missing something with the Source checkbox setting in the debugger.
As I single-step through my program, I have to uncheck and then
recheck this box in order to see the current line in the file editing
window highlighted. Is there
AlFire [EMAIL PROTECTED] writes:
The threading module already has a function to return the number of Thread
objects currently alive.
I have threads within threads - so it does not suit me :-(.
How about using a scalar numpy array? They are mutable, so I assume that x +=
1 should be atomic.
[EMAIL PROTECTED] wrote:
I have been learning python for some time using the dive into python
book. I am interested to know if anyone can recommend a book which
covers more advanced topics like threading and potentially GUI style
coding
If you don't at least browse The Python Cookbook, you
Can anyone provide some advice/suggestions to make a script more
precise/efficient/concise, etc.?
The script verifies checksums, renames dirs/files, edits checksum
filenames, and htm page filenames, all from mp3cd format ([0-9][0-9]
[0-9]xxx.yyy) to something more usable: for ripping an mp3cd to
On Sat, 03 May 2008 16:39:43 -0700, castironpi wrote:
I'm actually curious if there's a way to write a generator function
(not a generator expression) in C, or what the simplest way to do it
is... besides link the Python run-time.
The reference implementation of Python is written in C, so
On Sat, May 3, 2008 at 4:29 PM, dave [EMAIL PROTECTED] wrote:
here is a piece of code I wrote to check the frequency of values and switch
them around to keys in a new dictionary. Just to measure how many times a
certain key occurs:
def invert(d):
inv = {}
for key in d:
That xpairs() generator is nice, but it's not the best possible code
(but you may disagree with me, and you may think that code better than
the successive D code that uses two slices). Inside it I can't use a
list slicing because it copies subparts of the list, probably becoming
too much
Alexander Schmolck wrote:
AlFire [EMAIL PROTECTED] writes:
The threading module already has a function to return the number of Thread
objects currently alive.
I have threads within threads - so it does not suit me :-(.
How about using a scalar numpy array? They are mutable, so I assume that
Alexander Schmolck wrote:
AlFire [EMAIL PROTECTED] writes:
The threading module already has a function to return the number of Thread
objects currently alive.
I have threads within threads - so it does not suit me :-(.
How about using a scalar numpy array? They are mutable,
Is there a good place to look to see where I can find some code that
will help me to save webpage's links to the local drive, after I have
used urllib2 to retrieve the page?
Many times I have to view these pages when I do not have access to the
internet.
--
On 5月3日, 下午7时17分, cocobear [EMAIL PROTECTED] wrote:
How to deal with multiple databases in an file. I want to get the
content of several databases.
it's the code I wrote:
[EMAIL PROTECTED] ~]$ python
Python 2.5.1 (r251:54863, Oct 30 2007, 13:54:11)
[GCC 4.1.2 20070925 (Red Hat 4.1.2-33)]
Hello,
I made a function that takes a word list (one word per line, text file)
and searches for all the words in the list that are 'shifts' of
eachother. 'abc' shifted 1 is 'bcd'
Please take a look and tell me if this is a viable solution.
def shift(word, amt):
ans = ''
for
En Sun, 04 May 2008 01:08:34 -0300, Marc 'BlackJack' Rintsch [EMAIL
PROTECTED] escribió:
On Sat, 03 May 2008 16:39:43 -0700, castironpi wrote:
I'm actually curious if there's a way to write a generator function
(not a generator expression) in C, or what the simplest way to do it
is...
En Sun, 04 May 2008 01:33:45 -0300, Jetus [EMAIL PROTECTED] escribió:
Is there a good place to look to see where I can find some code that
will help me to save webpage's links to the local drive, after I have
used urllib2 to retrieve the page?
Many times I have to view these pages when I do
[EMAIL PROTECTED] wrote:
(this is a repost, for it's been a while since I posted this text via
Google Groups and it plain didn't appear on c.l.py - if it did appear
anyway, apols)
It did, although some people have added google groups to their kill file.
So I set out to learn handling
Martin v. Löwis [EMAIL PROTECTED] added the comment:
the way i read the text, i gathered that it might not work
with sockets belonging to a subset of address families.
I still cannot see anything wrong with that text, but then,
English is not my native language. Can you suggest a different
Changes by Georg Brandl [EMAIL PROTECTED]:
--
priority: critical - release blocker
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2507
__
___
Python-bugs-list mailing
Georg Brandl [EMAIL PROTECTED] added the comment:
Sure, if it still compiles. :)
--
assignee: georg.brandl - benjamin.peterson
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2720
__
Gregory P. Smith [EMAIL PROTECTED] added the comment:
backported r61468 to release25-maint in r62659.
--
assignee: - gregory.p.smith
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2158
Martin v. Löwis [EMAIL PROTECTED] added the comment:
I think this can be just as well done with (untested, as I don't have
access to a Windows system right now)
def iswow64():
if platform.getarchitecture()[0] == '64-bit':return False
return os.environ[PROCESSOR_ARCHITECTURE] != x86
1 - 100 of 159 matches
Mail list logo