On 2 Nov, 22:03, Carsten Haese [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
Anyway what I want to do is experiment with code similar to this (i.e.
same algorithm and keep the recursion) in other languages,
particularly vbscript and wondered what it would look like if it was
rewritten
Joe Strout a écrit :
On Nov 3, 2008, at 4:38 PM, Paulo J. Matos wrote:
However, I wouldn't dare to say Python needs structures to be a good
language, or anything similar. My question was more directed to : if
there aren't structures in Python, what do Pythonists use instead?
Classes.
or
[EMAIL PROTECTED] writes:
[...]
Thats interesting code but seems to give a different output,
suggesting thet the underlying algorithm is different.
Yes.
Yours takes the first element out of the list and inserts it in every
position of all the permutations of the list without the first element:
In message
[EMAIL PROTECTED],
[EMAIL PROTECTED] wrote:
I want as much built from source as I can manage so that I know what
is and what is not on the system.
Sounds like a job for Gentoo. :)
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 4, 3:53 am, Tim Arnold [EMAIL PROTECTED] wrote:
alex23 [EMAIL PROTECTED] wrote:
t = string representing a datum
access.Fields(Time).value = t
maybe OP means t = string representing a date, but I'm just guessing.
Oops, that totally didn't occur to me. You'd think the field's key
Marc 'BlackJack' Rintsch [EMAIL PROTECTED] writes:
On Mon, 03 Nov 2008 23:32:25 +, Paulo J. Matos wrote:
What's then the reason for adding named tuples if they are not
mutable...???
Names are more descriptive than magic numbers as indices. See for
example the named tuple returned by
Hi I'm trying to build a simple soap client using the ZSI library.
My python script operates from behind a proxy-based firewall.
Do you know how I can specify the proxy name and port to use, when using the
ZSI client.
( using the urllib2, this can be done through ProxyHandler, for instance.
But I
On Nov 3, 7:11 pm, Andy O'Meara [EMAIL PROTECTED] wrote:
My hope was that the increasing interest and value associated with
flexible, multi-core/free-thread support is at a point where there's
a critical mass of CPython developer interest (as indicated by various
serious projects specifically
If the assert statement fails (and it does), then no copy was made and
Python is not call-by-value.
So Python is not call-by-value, and it's not call-by-reference, so ...
either Python doesn't exist, or it uses a different calling convention.
coming from C/C++ Python seemed to me call by
That is a very creative solution! Thank you Scott.
Or, for faster per-repetition (blending in to your use-case):
import string
SEP = string.maketrans('abc \t', ' ')
...
parts = 'whatever, abalone dudes'.translate(SEP).split()
print parts
['wh', 'tever,',
If you are serious about multicore programming, take a look at:
http://www.cilk.com/
Now if we could make Python do something like that, people would
perhaps start to think about writing Python programs for more than one
processor.
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 4, 9:38 am, sturlamolden [EMAIL PROTECTED] wrote:
First let me say that there are several solutions to the multicore
problem. Multiple independendent interpreters embedded in a process is
one possibility, but not the only.''
No one is disagrees there. However, motivation of this
Hi,
If you search the newsgroup you'll find loads of similar posts.
There is not really an agreement on which GUI library is the one.
Tkinter is a bit limited. Personally, I only have experience with
wxpython and like it a lot. But there are others like GTK, FLTK,
QT.
Cheers,
Almar
On Nov 3, 2008, at 10:53 PM, 3000 billg wrote:
I am a leaner. for your experience. Which GUI Lib will be the best
for Python? wxpython, Tkinter or...
I'm sure you'll get as many opinions on this as there are libraries.
However, I recently faced the same choice, and settled on wxPython.
On Nov 4, 4:27 pm, Andy O'Meara [EMAIL PROTECTED] wrote:
People
in the scientific and academic communities have to understand that the
dynamics in commercial software are can be *very* different needs and
have to show some open-mindedness there.
You are beware that BDFL's employer is a
Craig Allen wrote:
That is, python lets you change object references pointing to
immutibles, which looks like changing the value referenced, by
rebinding.
So is that objectionable?
OK once in a while, but it wouldn't do for everyday.
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC
On Nov 4, 2008, at 7:42 AM, Craig Allen wrote:
coming from C/C++ Python seemed to me call by reference, for the
pragmatic reason you said, modificaitons to function arguments do
affect the variable in the caller. The confusing part of this then
comes when immutable objects are passed in.
On Nov 4, 9:39 am, Joe Strout [EMAIL PROTECTED] wrote:
On Nov 3, 2008, at 10:53 PM, 3000 billg wrote:
I am a leaner. for your experience. Which GUI Lib will be the best
for Python? wxpython, Tkinter or...
I'm sure you'll get as many opinions on this as there are libraries.
However, I
Joe Strout a écrit :
On Nov 3, 2008, at 5:27 PM, Marc 'BlackJack' Rintsch wrote:
Maybe this is a surprise for you, because we haven't discussed this in
much detail in this group lately, but it applies to Python which does
call-by-object or call-by-sharing. ;-)
There's no such thing. Those
On Nov 3, 10:26 pm, Steven D'Aprano [EMAIL PROTECTED]
cybersource.com.au wrote:
On Tue, 04 Nov 2008 00:19:16 +, Marc 'BlackJack' Rintsch wrote:
On Mon, 03 Nov 2008 23:32:25 +, Paulo J. Matos wrote:
What's then the reason for adding named tuples if they are not
mutable...???
On Nov 4, 12:43 am, Diez B. Roggisch [EMAIL PROTECTED] wrote:
def main(argv=None):
if argv is None: argv = sys.argv[1:]
...
Wouldn't that make optparse miss the first parameter sys.argv[1]
mistaking it to be the name of the current program?
- Sandip
--
Hello All:
I hope this is the right place to ask, but I am trying to come up with
a way to parse each line of a file. Unfortunately, the file is neither
comma, nor tab, nor space delimited. Rather, the character locations
imply what field it is.
For example:
The first ten characters would be
On Tue, 04 Nov 2008 17:13:43 +0100
Thomas Guettler [EMAIL PROTECTED] wrote:
Hussein B schrieb:
Hey,
Which Adapter to use with PostgreSQL:
PyPgSQL, psycopg or PyGreSQL?
Thanks.
I think psycopg2 is a good choice. Never tried anything else.
PyGreSQL 4.0 is currently in beta and should be
Just don't even think of passing --enable-shared to Python's configure,
and it will all work fine, and you won't need to use ldconfig.
Well I've done --enable-shared so that I can compile mod_python as a
shared object within apache.
Created /etc/ld.so.conf.d/python2.5.conf on a redhat system,
Tyler ha scritto:
Hello All:
I hope this is the right place to ask, but I am trying to come up with
a way to parse each line of a file. Unfortunately, the file is neither
comma, nor tab, nor space delimited. Rather, the character locations
imply what field it is.
For example:
The first ten
On Nov 4, 11:06 am, Joe Strout [EMAIL PROTECTED] wrote:
On Nov 4, 2008, at 7:42 AM, Craig Allen wrote:
coming from C/C++ Python seemed to me call by reference, for the
pragmatic reason you said, modificaitons to function arguments do
affect the variable in the caller. The confusing part
I hope this is the right place to ask, but I am trying to come up with
a way to parse each line of a file. Unfortunately, the file is neither
comma, nor tab, nor space delimited. Rather, the character locations
imply what field it is.
For example:
The first ten characters would be the record
Hussein B schrieb:
Hey,
Which Adapter to use with PostgreSQL:
PyPgSQL, psycopg or PyGreSQL?
Thanks.
I think psycopg2 is a good choice. Never tried anything else.
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--
Python Nutter wrote:
I'll be giving iPhone Python 2.5.1 a workout on on of Mark Lutz's
books and report any more gotchas that I come across.
Are there any good books on python and objc? I doubt you'll be able to
make any decent iPhone apps without having a good working knowledge of
Objective C
On Nov 4, 2008, at 10:33 AM, Michael Torrie wrote:
Are there any good books on python and objc? I doubt you'll be able
to
make any decent iPhone apps without having a good working knowledge of
Objective C and the python-objc bridge. In my mind that's one of the
cool parts of doing cocoa
On Nov 4, 11:45 am, Tyler [EMAIL PROTECTED] wrote:
Hello All:
I hope this is the right place to ask, but I am trying to come up with
a way to parse each line of a file. Unfortunately, the file is neither
comma, nor tab, nor space delimited. Rather, the character locations
imply what field
Sandip Bhattacharya wrote:
On Nov 4, 12:43 am, Diez B. Roggisch [EMAIL PROTECTED] wrote:
def main(argv=None):
if argv is None: argv = sys.argv[1:]
...
Wouldn't that make optparse miss the first parameter sys.argv[1]
mistaking it to be the name of the current program?
On 4 Nov, 16:00, sturlamolden [EMAIL PROTECTED] wrote:
If you are serious about multicore programming, take a look at:
http://www.cilk.com/
Now if we could make Python do something like that, people would
perhaps start to think about writing Python programs for more than one
processor.
The
Hi all,
As development goes on for a server project, it turns out that I am
using the MySQLDB and DB interactions excessively. One questions is
just bothering me, why don't we have a timeout for queries in PEP 249
(DB API)?
Is it really safe to wait for a query to finish, means, is it always
On Tue, 04 Nov 2008 09:16:05 -0800, Craig Allen wrote:
I'm open to pass-by-sharing, or pass-by-object, but neither is
perticularly intuitive, not as obvious in meaning as pass-by-val or
pass-by-reference (or call-by-xxx). I suppose I'd like pass-by-name as
more a description, as name to me
Spring Python provides an AOP solution (http://
springpython.webfactional.com/reference/html/aop.html). You can define
regexp patterns of what you want to intercept.
Imagine having this service:
class SampleService:
def method(self, data):
return You sent me '%s' % data
def
Wow! Thanks for the suggestions everyone.
Cheers,
t.
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Nov 5, 2008 at 3:52 AM, k3xji [EMAIL PROTECTED] wrote:
As development goes on for a server project, it turns out that I am
using the MySQLDB and DB interactions excessively. One questions is
just bothering me, why don't we have a timeout for queries in PEP 249
(DB API)?
Because not
Dejan Pangercic wrote:
question is, does anyone know about any up2date equivalent for
connecting to WSDL from python?
It seems like you missed soaplib. Compared to other Python SOAP libraries,
it's pretty easy to use.
Stefan
--
http://mail.python.org/mailman/listinfo/python-list
Would you mind?;
View (and Rate if you really like) 30 sec vids on proposal for change
and help:
Ride by G-Force Infinitely Free:
http://www.youtube.com/watch?v=SOTlogoPYZsfeature=related
Future Energy : The Gravity, free !:
http://www.youtube.com/watch?v=Tf7urAWuiu8feature=related
Thank you
On 2008-11-04 18:52, k3xji wrote:
Hi all,
As development goes on for a server project, it turns out that I am
using the MySQLDB and DB interactions excessively. One questions is
just bothering me, why don't we have a timeout for queries in PEP 249
(DB API)?
Is it really safe to wait for
hi
We are the most professional with the biggest wholesale electronics
merchandise supply merchandise
..We have a lot of very nice quality merchandises with the
very special price
They are all brand new with full accessories and 1 year
international warranty, unlocked, work effectively
Hi all,
I am trying to establish a communication between a client and a server
where the client shall talk python and the server provides an
interface over the WSDL (Web Services Description Language). Test case
I am working on is available here:
On Mon, 3 Nov 2008 18:02:19 -0800 (PST), Mensanator [EMAIL PROTECTED] wrote:
...
[EMAIL PROTECTED] wrote:
...
I'm trying to write out a calendar for a year, in this form (imaginary
...
Personally, I find the tradtional format
worthless. I want to see the year represented as a single block
of
Paulo J. Matos a écrit :
(snip)
However, I wouldn't dare to say Python needs structures to be a good
language, or anything similar. My question was more directed to : if
there aren't structures in Python, what do Pythonists use instead?
(I have seen dicts might be an alternative,
Yes, and the
In article [EMAIL PROTECTED],
Tim Chase [EMAIL PROTECTED] wrote:
I hope this is the right place to ask, but I am trying to come up with
a way to parse each line of a file. Unfortunately, the file is neither
comma, nor tab, nor space delimited. Rather, the character locations
imply what field
Shark schrieb:
On Nov 3, 4:22 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote:
Shark schrieb:
I have a windows dll1.dll with a export function:
int f1(char filename,char **buf,int *bufLen)
{
int len;
//got the length of file anyway,such as 100
len = 100;//len = getLen(filename);
*buf =
On Tue, 04 Nov 2008 03:26:21 -0800, MRAB wrote:
On Nov 3, 10:47 pm, Evan [EMAIL PROTECTED] wrote:
i'm trying to call subprocess.popen on the 'command-based' function in
linux. When I run the command from the shell, like so:
goset -f ' %s %s name addr ' file_name
it works fine
It looks
On Tue, Nov 4, 2008 at 11:45 AM, Tyler [EMAIL PROTECTED] wrote:
Hello All:
I hope this is the right place to ask, but I am trying to come up with
a way to parse each line of a file. Unfortunately, the file is neither
comma, nor tab, nor space delimited. Rather, the character locations
imply
[EMAIL PROTECTED] (Cameron Laird) writes:
In article [EMAIL PROTECTED],
Tim Chase [EMAIL PROTECTED] wrote:
I hope this is the right place to ask, but I am trying to come up with
a way to parse each line of a file. Unfortunately, the file is neither
comma, nor tab, nor space delimited.
Dear all,
I appologize for the misleading email below - Banibrata is completely
right. However on the http://pywebsvcs.sourceforge.net/ page there is
also a link to the very old mailing list and that confused me.
greets, D.
On Tue, Nov 4, 2008 at 1:09 PM, Banibrata Dutta
[EMAIL PROTECTED]
Hello
I need to call a URL through a loop that starts at 01 and ends at 99,
but some of the steps must be ignored:
=
url = http://www.acme.com/list?code=;
p = re.compile(^(\d+)\t(.+)$)
for i=01 to 99 except 04, 34, 40, 44, 48, 54, 57, 67, 76, 83, 89:
f = urllib.urlopen(url + i)
On Nov 4, 1:20 pm, Gilles Ganault [EMAIL PROTECTED] wrote:
Hello
I need to call a URL through a loop that starts at 01 and ends at 99,
but some of the steps must be ignored:
=
url = http://www.acme.com/list?code=;
p = re.compile(^(\d+)\t(.+)$)
for i=01 to 99 except 04, 34, 40, 44,
On Tue, 4 Nov 2008 11:22:27 -0800 (PST), Aaron Brady
[EMAIL PROTECTED] wrote:
for i=01 to 99 except 04, 34, 40, 44, 48, 54, 57, 67, 76, 83, 89:
sorted( list( set( domain ) - set( exceptions ) ) )
Set subtraction.
Thanks a lot but... I don't know what the above means :-/
--
On 3 Nov 2008 22:13:42 GMT, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote:
On Mon, 03 Nov 2008 21:09:58 +, Jorgen Grahn wrote:
Why multi-threading? I see no concurrency in the original algorithm.
There is, in my mind, nothing concurrent about 'yield'.
No real concurrency but a
Is there any package that parses regular expressions and returns an
AST ? Something like:
parse_rx(r'i (love|hate) h(is|er) (cat|dog)s?\s*!+')
Regex('i ', Or('love', 'hate'), ' h', Or('is', 'er'), ' ', Or('cat',
'dog'), Optional('s'), ZeroOrMore(r'\s'), OneOrMore('!'))
Given such a structure, I
recno_idx = slice(0,10)
client_idx = slice(10, 11)
volume_idx = slice(11,11+10)
order_type_idx = slice(11+10, 11+10+3)
.
!? That seems to me confusingly far from a working solution,
at least in comparison to
recno_idex = the_line[0:10]
client_idx =
i searched on google on the above subject (
http://delphi.about.com/od/fileio/a/fileof_delphi.htm). what does it take to
create a custom database or file type? something like mini-Sqlite or some
other way that the file will look secure and can be read on my application
runing platform.
I already
On Tue, Nov 4, 2008 at 2:26 PM, Gilles Ganault [EMAIL PROTECTED] wrote:
On Tue, 4 Nov 2008 11:22:27 -0800 (PST), Aaron Brady
[EMAIL PROTECTED] wrote:
for i=01 to 99 except 04, 34, 40, 44, 48, 54, 57, 67, 76, 83, 89:
sorted( list( set( domain ) - set( exceptions ) ) )
Set subtraction.
George Is there any package that parses regular expressions and returns
George an AST ?
Maybe not directly, but this might provide a starting point for building
such a beast:
import re
re.compile([ab], 128)
in
literal 97
literal 98
_sre.SRE_Pattern object
Michele Simionato [EMAIL PROTECTED] wrote:
I did not expect such a large difference in instantiation time.
However I was thinking about
access time, and then the difference is not impressive (~20-25%):
The difference in time is because when you create a normal instance Python
has to create
MRAB:
It's interesting, if you think about it, that here we have someone who
wants to split on a set of characters but 'split' splits on a string,
and others sometimes want to strip off a string but 'strip' strips on
a set of characters (passed as a string).
That can be seen as a little
On Nov 4, 11:20 am, Gilles Ganault [EMAIL PROTECTED] wrote:
Hello
I need to call a URL through a loop that starts at 01 and ends at 99,
but some of the steps must be ignored:
=
url = http://www.acme.com/list?code=;
p = re.compile(^(\d+)\t(.+)$)
for i=01 to 99 except 04, 34, 40, 44,
Try spawning a new process to run your query
in. Use the multiprocessing library. Your main
application can then just poll the db/query processes
to see if they're a) finished and b) have a result
Your application server can also c0 kill long running
queries that are deemed to be taking
How do I get zlib available to python?
Edit Modules/Setup, and uncomment the zlib line. At your choice, also
uncomment the *shared* line (otherwise, zlib would become a builtin
module).
When you install shared libraries somewhere that also live in /usr/lib,
do use ldd to verify that it always
George Sakkis wrote:
Is there any package that parses regular expressions and returns an
AST ? Something like:
parse_rx(r'i (love|hate) h(is|er) (cat|dog)s?\s*!+')
Regex('i ', Or('love', 'hate'), ' h', Or('is', 'er'), ' ', Or('cat',
'dog'), Optional('s'), ZeroOrMore(r'\s'), OneOrMore('!'))
George Sakkis:
Here's a general solution for fixed size records:
def slicer(*sizes):
... slices = len(sizes) * [None]
... start = 0
... for i,size in enumerate(sizes):
... stop = start+size
... slices[i] = slice(start,stop)
... start = stop
...
On Sun, 02 Nov 2008 02:08:37 +, Steven D'Aprano wrote:
On Sat, 01 Nov 2008 18:58:59 +, Tim Rowe wrote:
2008/10/27 [EMAIL PROTECTED]:
Lie Ryan:
Oh no, the two dict implementation would work _exactly_ the same from
the outside, they are transparently interchangeable. Only the
Gilles Ganault:
Thanks a lot but... I don't know what the above means :-/
set(iterable) just builds a set, then you use the really usual set
semantics.
Anyway, maybe you may find this more easy to understand:
refused_indexes = set([4, 34, 40, 44, 48, 54, 57, 67, 76, 83, 89])
for i in xrange(1,
I've been using Python for a while (4 years) so I feel like a moron
writing this post because I think I should know the answer to this
question:
How do I make a dictionary which has distinct key-value pairs for 0,
False, 1 and True.
As I have learnt, 0 and False both hash to the same value (same
Prateek [EMAIL PROTECTED] wrote:
I've been using Python for a while (4 years) so I feel like a moron
writing this post because I think I should know the answer to this
question:
How do I make a dictionary which has distinct key-value pairs for 0,
False, 1 and True.
How about using (x,
In message [EMAIL PROTECTED], Mr.SpOOn
wrote:
On Sat, Nov 1, 2008 at 1:57 AM, Lawrence D'Oliveiro
[EMAIL PROTECTED] wrote:
Funny how you never get a thank-you when you tell people to RTFM.
My fault :\
I said thank you to Rob, but I just sent a private message. It's
just that I did a
Hello
i try to use cxfreeze under linux with a easy project made with qt i
run this :
cxfreeze --install-dir=dist main.py
and i get the error
ImportError: No module named PyQt4._qt
so i try : cxfreeze --install-dir=dist --include-modules='PyQt4._qt'
main.py
but i get the same error
i try also
Update: 2008/11/03
Architecture coding improvements. Renamed generators.
I am 90% finished writing up a mathematical analysis of my method.
In the process I found an architectural optimization to the sieve
process which is incorporated in the new code. Complexity analysis
showing other
On Nov 5, 1:52 am, Duncan Booth [EMAIL PROTECTED] wrote:
Prateek [EMAIL PROTECTED] wrote:
I've been using Python for a while (4 years) so I feel like a moron
writing this post because I think I should know the answer to this
question:
How do I make a dictionary which has distinct
(docs AT python.org doesn't like non-subscribers. Probably that is why
my mail didn't get through. Sending to this list instead.)
I just downloaded the PDF (tar.gz) version of the docs at
http://docs.python.org/download.html.
All the howtos seem to be titled HOWTO. I am certain this is an
Sadly, there is no way to increase the log verbosity.
On Oct 17, 2:42 am, Lawrence D'Oliveiro [EMAIL PROTECTED]
central.gen.new_zealand wrote:
In message
[EMAIL PROTECTED],
[EMAIL PROTECTED] wrote:
On Oct 15, 2:42 am, Lawrence D'Oliveiro [EMAIL PROTECTED]
central.gen.new_zealand wrote:
On Nov 3, 11:45 pm, [EMAIL PROTECTED] wrote:
Thats interesting code but seems to give a different output,
suggesting thet the underlying algorithm is different.
Ignoring linebreaks and case, the original code gives:
abcd bacd bcad bcda acbd cabd cbad cbda acdb cadb cdab cdba abdc badc
bdac
I'm parsing some text files, and I want to strip blank lines in the
process. Is there a simpler way to do this than what I have here?
lines = filter(lambda line: len(line.strip()) 0, lines)
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
Without pretending to be an expert on the subject of music-theory or
audio-processing, my n00b'ish doubt is -- MIDI, unlike MP3 would be devoid
of voice... and in my overtly simplistic thinking -- presence / absence of
which (i.e. voice) could be a brute-force way of detecting refrain/chorus
...
Aaron Brady [EMAIL PROTECTED] wrote:
I think we can conclude that Python passes by reference, since a
function can modify objects that were passed in to it.
Sort of - if the modification is by side effect - so you
can append to a list, for instance.
However, if you use the passed param name on
apalah kau ni tak belajar ke bahasa menunjukkan bangsa
news.tm.net.my [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
relic wrote:
fizzi wrote:
For the Iphone lovers out there,
Wrong group. No weirdos here.
testtt
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 30, 6:39 pm, Terry Reedy [EMAIL PROTECTED] wrote:
Their professor is Lars Bak, the lead architect of the Google
V8Javascriptengine. They spent some time working on V8 in the last couple
months.
then they will be at home with pyv8 - which is a combination of the
pyjamas
tmallen:
I'm parsing some text files, and I want to strip blank lines in the
process. Is there a simpler way to do this than what I have here?
lines = filter(lambda line: len(line.strip()) 0, lines)
xlines = (line for line in open(filename) if line.strip())
Bye,
bearophile
--
On Nov 4, 2:20 pm, Joe Strout [EMAIL PROTECTED] wrote:
We've got a need to generate short samples of songs that are in MIDI
format, to provide a preview function in a web app. We'd like to do
something more clever than just taking the middle 20 seconds (or
whatever) of the song --
On Nov 3, 10:47 pm, Evan [EMAIL PROTECTED] wrote:
Hello -
i'm trying to call subprocess.popen on the 'command-based' function in
linux. When I run the command from the shell, like so:
goset -f ' %s %s name addr ' file_name
it works fine
however when I try to do it in python like so:
p
On Mon, 03 Nov 2008 19:33:52 -0700, Joe Strout wrote:
On Nov 3, 2008, at 5:27 PM, Marc 'BlackJack' Rintsch wrote:
Maybe this is a surprise for you, because we haven't discussed this in
much detail in this group lately, but it applies to Python which does
call-by-object or call-by-sharing.
[EMAIL PROTECTED] wrote:
tmallen:
I'm parsing some text files, and I want to strip blank lines in the
process. Is there a simpler way to do this than what I have here?
lines = filter(lambda line: len(line.strip()) 0, lines)
xlines = (line for line in open(filename) if line.strip())
Bye,
On Nov 4, 4:21 pm, Prateek [EMAIL PROTECTED] wrote:
On Nov 5, 1:52 am, Duncan Booth [EMAIL PROTECTED] wrote:
Prateek [EMAIL PROTECTED] wrote:
I've been using Python for a while (4 years) so I feel like a moron
writing this post because I think I should know the answer to this
Prateek [EMAIL PROTECTED] writes:
On Nov 5, 1:52 am, Duncan Booth [EMAIL PROTECTED] wrote:
Prateek [EMAIL PROTECTED] wrote:
I've been using Python for a while (4 years) so I feel like a moron
writing this post because I think I should know the answer to this
question:
How do I make a
Mini install guide for python on the iPhone:
Cydia = Install SSH helps make initial configuration easier until you
get used to MobileTerminal
Cydia = Install MobileTerminal (closest to a bash shell you get on
your iPhone currently)
Cydia = Install Finder (graphical alternative to using
Has anyone been able to use both Pydev and CDT to debug extension
modules?
The question was asked about a year ago on this list, and I am hoping
that
someone has figured it out in meantime.
Joachim
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 4, 1:26 pm, Gilles Ganault [EMAIL PROTECTED] wrote:
On Tue, 4 Nov 2008 11:22:27 -0800 (PST), Aaron Brady
[EMAIL PROTECTED] wrote:
for i=01 to 99 except 04, 34, 40, 44, 48, 54, 57, 67, 76, 83, 89:
sorted( list( set( domain ) - set( exceptions ) ) )
Set subtraction.
Thanks a lot
Hey,
Which Adapter to use with PostgreSQL:
PyPgSQL, psycopg or PyGreSQL?
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 4 Nov 2008 12:10:28 -0800 (PST), Matimus [EMAIL PROTECTED]
wrote:
I would just do something like this (not tested):
Thanks a lot guys :-) Worked first time.
I just have the usual issue with ASCII/Unicode:
===
cursor.execute(sql)
UnicodeDecodeError: 'ascii' codec can't decode
Hi,
Which PostgreSQL adapter to use:
PyGreSQL, PyPgSQL or psycopg?
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
I am very new to python. I am installing it as part of a bazzar
version control installation.
I have installed the Crypto, paramiko and cElementTree modules. I am
running Solaris10x86.
When testing the modules I get the following results.
python -c import Crypto
Traceback (most recent call
On Nov 4, 11:20 am, [EMAIL PROTECTED] wrote:
Michele Simionato:
No, slots have nothing to do with speed, they are a memory optimization.
In many languages, often in Python too, the less memory you use/
allocate the faster you go.
In fact slots allow a speed increase too (in new style
From a quick look at the pywebsvcs mailing-list archive here (
http://sourceforge.net/mailarchive/forum.php?forum_name=pywebsvcs-talk)http://sourceforge.net/mailarchive/forum.php?forum_name=pywebsvcs-talklooks
like pywebsvcs (http://pywebsvcs.sourceforge.net/)is not dead !
On Tue, Nov 4, 2008 at
Hi,
I have a system where I would like to run unittests over our condor
distributed cluster. My thoughts have been to write tests which take a
list of files, and distribute each file and that test out as a condor
job. I have briefly looked at nose and its plugins to see if I could
set something
1 - 100 of 199 matches
Mail list logo