On Jun 5, 6:49 am, a...@pythoncraft.com (Aahz) wrote:
> In article
> <05937a34-5490-4b31-9f07-a319b44dd...@r33g2000yqn.googlegroups.com>,
> Michele Simionato wrote:
>
>
>
> >Actually, in Scheme one would have to fight to define
> >a list comprehension (more in general loops) working as
> >in Pyt
On Jun 5, 6:49 am, a...@pythoncraft.com (Aahz) wrote:
> In article
> <05937a34-5490-4b31-9f07-a319b44dd...@r33g2000yqn.googlegroups.com>,
> Michele Simionato wrote:
>
>
>
> >Actually, in Scheme one would have to fight to define
> >a list comprehension (more in general loops) working as
> >in Pyt
In article <8763fbmk5a@benfinney.id.au>,
Ben Finney wrote:
> Ned Deily writes:
> > $ python2.6 -c 'import sys; print sys.stdout.encoding, \
> > sys.stdout.isatty()'
> > UTF-8 True
> > $ python2.6 -c 'import sys; print sys.stdout.encoding, \
> > sys.stdout.isatty()' > foo ; cat foo
> > None
can you or tavis or one of the cheetah masters please show us how to use
cheetah from webpy
the only useful thing webpy cheetah.py does is replace the #include with the
content of the files
Can you share a simple snippet/cookbook example on how to hook up cheetah
from other frameworks such as djan
Jonathan Nelson wrote:
> I'm trying to add a feedreader element to my django project. I'm
> using Mark Pilgrim's great feedparser library. I've used it before
> without any problems. I'm getting a TypeError I can't figure out.
> I've tried searching google, bing, google groups to no avail.
>
>
Lawrence D'Oliveiro wrote:
In message , Dave Angel
wrote:
Rather than editing the source files at install time, consider just
using an environment variable in your testing environment, which would
be missing in production environment.
I'd still need to define that environment variabl
In message
<78180b4c-68b2-4a0c-8594-50fb1ea2f...@c19g2000yqc.googlegroups.com>, Michele
Simionato wrote:
> The crux is in the behavior of the for loop:
> in Python there is a single scope and the loop variable is
> *mutated* at each iteration, whereas in Scheme (or Haskell or any
> other functio
På Fri, 05 Jun 2009 08:07:39 +0200, skrev Xah Lee :
On Jun 3, 11:50 pm, Xah Lee wrote:
The point in these short examples is not about software bugs or
problems. It illustrates, how seemingly trivial problems, such as
networking, transferring files, running a app on Mac or Windwos,
upgrading
On Jun 3, 12:28 pm, Stef Mientki wrote:
> eric_dex...@msn.com wrote:
> > I wrote a small pre-processor for python documentation and I am
> > looking for advice on how to get the most natural sounding reading. I
> > uploaded an example of a reading of lxml documentation as a podcast1
>
> >htt
On Jun 4, 2009, at 7:45 AM, willgun wrote:
By the way ,what does 'best regards' means at the end of a mail?
"regards" is just respectful (and slightly formal) goodbye. Have a
look at the definition:
http://dictionary.reference.com/search?q=regards
It's used much more in written communicat
Joseph Garvin schrieb:
> On Thu, Jun 4, 2009 at 3:23 PM, Brian wrote:
>> What is the goal of this conversation that goes above and beyond what
>> Boost.Python + pygccxml achieve?
>
> I can't speak for others but the reason I was asking is because it's
> nice to be able to define bindings from wit
On Fri, Jun 5, 2009 at 4:12 AM, Vincent Davis wrote:
> This might be a off topic but this also seemed like a good place to ask.
>
> I have an application (several) I would like to develop. Parts of it I
> can do but parts I would like to outsource. I am thinking mostly of
> outsourcing most of my
Ben Finney wrote:
> Emile van Sebille writes:
>
> > On 6/4/2009 3:19 PM Lawrence D'Oliveiro said...
> > > In message , Nick Craig-
> > > Wood wrote:
> > >
> > >> You quit emacs with Ctrl-X Ctrl-C.
> > >
> > > That's "save-buffers-kill-emacs". If you don't want to save buffers,
> > > the exit se
command@alexbbs.twbbs.org (§ä´m¦Ã¤vª�...@¤ù¤Ã) writes:
> if i want to create a list of list which size is 2**25
>
> how should i do it?
>
> i have try [ [] for x in xrange(2**25) ]
>
> but it take too long to initial the list
>
> is there any suggestion?
What is it you want t
En Thu, 04 Jun 2009 23:42:29 -0300, Robert Dailey
escribió:
Hey guys, try using urlretrieve() in Python 3.0.1 on the following
URL:
http://softlayer.dl.sourceforge.net/sourceforge/wxwindows/wxMSW-2.8.10.zip
Have it save the ZIP to any destination directory. For me, this only
downloads about
Hi,
As I don't have admin privileges on my main dev machine, I install a
good deal of python modules somewhere in my $HOME, using PYTHONPATH to
point my python intepreter to the right location. I think PEP370
(per-user site-packages) does exactly what I need, but it works only
for python 2.6 and a
On Thu, 04 Jun 2009 23:10:33 -0700, Mensanator wrote:
>> "Everybody" knows? Be careful with those sweeping generalizations.
>> Combinatorics is a fairly specialized area not just of programming but
>> mathematics as well.
>
> I would expect that. That was supposed to be funny.
I knew that! I was
En Fri, 05 Jun 2009 00:12:25 -0300, John Machin
escribió:
> (2) This will stop processing on the first object in sys.modules that
> doesn't have a __file__ attribute. Since these objects aren't
> *guaranteed* to be modules,
Definitely not guaranteed to be modules. Python itself drops non-mo
Hola:
Hoy en día me encuentro iniciandome dentro del python, en estos
momentos quiero saber de que forma puedo eliminar un archivo de un
compactado, ya sea zip, rar o cualquier otro. Estudie las librerías
zipfile pero no tiene ninguna funcion que me permita hacerlo. Trabajo
con python 2.5
if i want to create a list of list which size is 2**25
how should i do it?
i have try [ [] for x in xrange(2**25) ]
but it take too long to initial the list
is there any suggestion?
Thanks a lot!
--
[1;36mâ»Post by [37mcommand [36mfrom [33m59-124-255-226.HINET-IP.[m
[1;36mèé¼ ç
On Thu, 4 Jun 2009 09:46:44 -0700 (PDT), Xah Lee
wrote, quoted or indirectly quoted someone who said :
> Why Must Software Be Rewritten For Multi-Core Processors?
Threads have been part of Java since Day 1. Using threads complicates
your code, but even with a single core processor, they can im
In Chris Rebert
writes:
>Just add the lists together.
>for x in list_a + list_b:
>foo(x)
Cool! Thanks!
kynn
--
--
http://mail.python.org/mailman/listinfo/python-list
On 5 Jun, 03:18, Ron Garret wrote:
>
> According to what I thought I knew about unix (and I had fancied myself
> a bit of an expert until just now) this is impossible. Python is
> obviously picking up a different default encoding when its output is
> being piped to a file, but I always thought on
En Fri, 05 Jun 2009 01:49:15 -0300, Aahz escribió:
In article
<05937a34-5490-4b31-9f07-a319b44dd...@r33g2000yqn.googlegroups.com>,
Michele Simionato wrote:
Actually, in Scheme one would have to fight to define
a list comprehension (more in general loops) working as
in Python: the natural d
wrote:
> Got some use cases?
plural cases - no.
I did it for the reason already described.
to elucidate, the code looks something like this:
rec = input_q.get() # <=== this has its origen in a socket, as a netstring.
reclist = rec.split(',')
if reclist[0] == 'A':
do something with the ou
"Nigel Rantor" wrote:
> It just smells to me that you've created this elaborate and brittle hack
> to work around the fact that you couldn't think of any other way of
> getting the thread to change it's behaviour whilst waiting on input.
I am beginning to think that you are a troll, as all y
Luis M González wrote:
> I am very excited by this project (as well as by pypy) and I read all
> their plan, which looks quite practical and impressive.
> But I must confess that I can't understand why LLVM is so great for
> python and why it will make a difference.
CPython uses a C compiler
"Jean-Paul Calderone" wrote:
> So, do you mind sharing your current problem? Maybe then it'll make more
> sense why one might want to do this.
Please see my reply to Skip that came in and was answered by email.
- Hendrik
--
http://mail.python.org/mailman/listinfo/python-list
Is there any librery that works ok with unicode at converting to
uppercase or lowercase?
--
>>> foo = u'áèïöúñ'
>>> print(foo.upper())
áèïöúñ
--
--
http://mail.python.org/mailman/listinfo/python-list
Paul Boddie writes:
> The only way to think about this (in Python 2.x, at least) is to
> consider stream and file objects as things which only understand plain
> byte strings. Consequently, use of the codecs module is required if
> receiving/sending Unicode objects from/to streams and files.
Act
Single - thread programming is great! clean, safe!!!
I'm trying schedual task to several work process (not thread).
On Fri, Jun 5, 2009 at 4:49 AM, MRAB wrote:
> Kaz Kylheku wrote:
>
>> ["Followup-To:" header set to comp.lang.lisp.]
>> On 2009-06-04, Roedy Green wrote:
>>
>>> On Thu, 4 Jun 2009
En Fri, 05 Jun 2009 06:39:31 -0300, Kless
escribió:
Is there any librery that works ok with unicode at converting to
uppercase or lowercase?
--
foo = u'áèïöúñ'
print(foo.upper())
áèïöúñ
--
Looks like Python thinks your terminal uses utf-8, but it actually
Kless writes:
> Is there any librery that works ok with unicode at converting to
> uppercase or lowercase?
>
> --
> >>> foo = u'áèïöúñ'
>
> >>> print(foo.upper())
> áèïöúñ
> --
Works fine for me. What do you get when trying to replicate this:
>>> import sys
"Terry Reedy" wrote:
> If I understand correctly, your problem and solution was this:
>
> You have multiple threads within a long running process. One thread
> repeatedly reads a socket.
Yes and it puts what it finds on a queue. - it is a pre defined simple comma
delimited record.
> You wan
maybe a shell script to switch PYTHONPATH, like:
start-python-2.5
start-python-2.4 ...
On Fri, Jun 5, 2009 at 4:56 PM, David Cournapeau wrote:
> Hi,
>
> As I don't have admin privileges on my main dev machine, I install a
> good deal of python modules somewhere in my $HOME, using PYTHONPATH to
>
On 5 jun, 09:59, "Gabriel Genellina" wrote:
> En Fri, 05 Jun 2009 06:39:31 -0300, Kless
> escribió:
>
> > Is there any librery that works ok with unicode at converting to
> > uppercase or lowercase?
>
> > --
> foo = u'áèïöúñ'
>
> print(foo.upper())
> > áèïöúñ
> > ---
At work we have a Web application acting as a front-end to a
database (think of a table-oriented interface, similar to
an Excel sheet). The application is accessed simultaneously by
N people (N < 10).
When a user posts a requests he changes the underlying database
table. The issue is that if more
On Jun 5, 11:26 am, "Gabriel Genellina"
wrote:
> Mmm, the URL ends with: thread, an equals sign, and the number 251156
> If you see =3D -- that's the "=" encoded as quoted-printable...
Actually this is the right URL:
http://www.artima.com/weblogs/viewpost.jsp?thread=251156
--
http://mail.pytho
On 6/4/09, Jonathan Nelson wrote:
> I'm trying to add a feedreader element to my django project. I'm
> using Mark Pilgrim's great feedparser library. I've used it before
> without any problems. I'm getting a TypeError I can't figure out.
> I've tried searching google, bing, google groups to
Hello, I'm a fairly new python programmer (aren't I unique!) and a somewhat
longer C/++ programmer (4 classes at a city college + lots and lots of
tinkering on my own).
I've started a pet project (I'm really a blacksheep!); the barebones of it
is reading data from CSV files. Each CSV file is going
Hello,
I think that virtualenv could also do the job.
Best regards,
Javier
2009/6/5 Red Forks :
> maybe a shell script to switch PYTHONPATH, like:
> start-python-2.5
> start-python-2.4 ...
> On Fri, Jun 5, 2009 at 4:56 PM, David Cournapeau wrote:
>>
>> Hi,
>>
>> As I don't have admin privil
En Fri, 05 Jun 2009 07:00:24 -0300, Hendrik van Rooyen
escribió:
"Terry Reedy" wrote:
You have multiple threads within a long running process. One thread
repeatedly reads a socket.
Yes and it puts what it finds on a queue. - it is a pre defined simple
comma
delimited record.
You w
Gabriel Genellina wrote:
> Ok, you're proposing a "bidimensional" repeat. I prefer to keep things
> simple, and I'd implement it in two steps.
But what is simple? I am currently working on a universal feature
creeper that could replace itertools.cycle, itertools.repeat,
itertools.chain and rever
On 5 Jun, 11:51, Ben Finney wrote:
>
> Actually strings in Python 2.4 or later have the ‘encode’ method, with
> no need for importing extra modules:
>
> =
> $ python -c 'import sys; sys.stdout.write(u"\u03bb\n".encode("utf-8"))'
> λ
>
> $ python -c 'import sys; sys.stdout.write(u"\u03bb\n".enc
In message , Dave Angel
wrote:
> Lawrence D'Oliveiro wrote:
>
>> In message , Dave
>> Angel wrote:
>>
>>> Rather than editing the source files at install time, consider just
>>> using an environment variable in your testing environment, which would
>>> be missing in production environment.
>>>
Hello world,
I had recently a very nasty bug in my python application. The context is
quite complex, but in the end the problem can be resume as follow:
2 files in the same directory :
lib.py:
>import foo
>foo.Foo.BOOM='lib'
foo.py:
>class Foo:
>BOOM = 'F'
>
>if __name__=='__main__':
In message <77as23f1fhj3...@mid.uni-berlin.de>, Diez B. Roggisch wrote:
>> But reduce()? I can't see how you can parallelize reduce(). By its
>> nature, it has to run sequentially: it can't operate on the nth item
>> until it is operated on the (n-1)th item.
>
> That depends on the operation in q
In message , Steven
D'Aprano wrote:
> threads = [PMapThread(datapool) for i in xrange(numthreads)]
Shouldn’t that “PMapThread” be “thread”?
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
Suppose that the (web) site give the file only after several seconds, and after
the user click a confirm (example: RapidFile).
Suppose that the (web) site give the file only after the user input a code,
controled by a javascript script.
@-salutations
--
Michel Claveau
--
http://mail.py
Hi. I need to implement, within a Python script, the same
functionality as that of Unix's
grep -rl some_string some_directory
I.e. find all the files under some_directory that contain the string
"some_string".
I imagine that I can always resort to the shell for this, but is
there an effici
Hi,
as someone who is still learning a lot about Python I am
making use of all the tools that can help me, such as
pyflakes, pychecker and pylint.
I am confused by pylint's naming conventions, I don't think
the are in tune with Python's style recommendations (PEP 8?)
Anyone else think this? Is
>> Requiring that the C++ compiler used to make the dll's/so's to be the
>> same one Python is compiled with wouldn't be too burdensome would it?
Scott> And what gave you then impression that Python is compiled with a
Scott> C++ compiler?
I don't think it's too much to expect tha
On May 25, 10:35 am, LittleGrasshopper wrote:
> With so many choices, I was wondering what editor is the one you
> prefer when coding Python, and why. I normally use vi, and just got
> into Python, so I am looking for suitable syntax files for it, and
> extra utilities. I dabbled with emacs at som
On Fri, Jun 5, 2009 at 2:59 PM, Tim Chase wrote:
> The common way to do this is to not bother with the "somebody else is
> editing this record" because it's nearly impossible with the stateless web
> to determine when somebody has stopped browsing a web page. Instead, each
> record simply has a "
In article ,
Lawrence D'Oliveiro wrote:
>In message
><78180b4c-68b2-4a0c-8594-50fb1ea2f...@c19g2000yqc.googlegroups.com>, Michele
>Simionato wrote:
>>
>> The crux is in the behavior of the for loop: in Python there is a
>> single scope and the loop variable is *mutated* at each iteration,
>> wh
John Thingstad wrote:
På Fri, 05 Jun 2009 08:07:39 +0200, skrev Xah Lee :
On Jun 3, 11:50 pm, Xah Lee wrote:
The point in these short examples is not about software bugs or
problems. It illustrates, how seemingly trivial problems, such as
networking, transferring files, running a app on Mac
Esmail writes:
> I am confused by pylint's naming conventions, I don't think the are in
> tune with Python's style recommendations (PEP 8?)
>
> Anyone else think this?
It's hard to know, without examples. Can you give some output of pylint
that you think doesn't agree with PEP 8?
--
\
On Jun 5, 7:50 am, kj wrote:
> Hi. I need to implement, within a Python script, the same
> functionality as that of Unix's
>
> grep -rl some_string some_directory
>
> I.e. find all the files under some_directory that contain the string
> "some_string".
>
> I imagine that I can always resort to
When a user posts a requests he changes the underlying database
table. The issue is that if more users are editing the
same set of rows the last user will override the editing of the
first one. Since this is an in-house application with very few
users, we did not worry to solve this issue, which h
s...@pobox.com schrieb:
> >> Requiring that the C++ compiler used to make the dll's/so's to be the
> >> same one Python is compiled with wouldn't be too burdensome would it?
>
> Scott> And what gave you then impression that Python is compiled with a
> Scott> C++ compiler?
>
> I do
On Jun 5, 3:47 am, "Gabriel Genellina" wrote:
> En Thu, 04 Jun 2009 23:42:29 -0300, Robert Dailey
> escribió:
>
> > Hey guys, try using urlretrieve() in Python 3.0.1 on the following
> > URL:
>
> >http://softlayer.dl.sourceforge.net/sourceforge/wxwindows/wxMSW-2.8.1...
>
> > Have it save the ZI
Ned Deily wrote:
In article <4a28903b.4020...@sweetapp.com>,
Brian Quinlan wrote:
Scott David Daniels wrote:
[snipped]
When you evaluate a lambda expression, the default args are evaluated,
but the expression inside the lambda body is not. When you apply that
evaluated lambda expression, the
I'm working with Feedparser on months old install of Windows 7, and
now programs that ran before are broken, and I'm getting wierd
messages that are rather opaque to me. Google, Bing, News groups
have all left me empty handed.
I was wondering if I could humbly impose upon the wizards of
comp.lan
On Jun 5, 2009, at 10:13 AM, Thomas Heller wrote:
s...@pobox.com schrieb:
If there is no C++ compiler available then the proposed layout
sniffing just
wouldn't be done and either a configure error would be emitted or a
run-time
exception raised if a program attempted to use that feature.
Philip Semanchuk schrieb:
> On Jun 5, 2009, at 10:13 AM, Thomas Heller wrote:
>
>> s...@pobox.com schrieb:
> If there is no C++ compiler available then the proposed layout
> sniffing just
>>> wouldn't be done and either a configure error would be emitted or a
>>> run-time
>>> exception
Robert Dailey wrote:
> On Jun 5, 3:47 am, "Gabriel Genellina" wrote:
>> En Thu, 04 Jun 2009 23:42:29 -0300, Robert Dailey
>> escribió:
>>
>> > Hey guys, try using urlretrieve() in Python 3.0.1 on the following
>> > URL:
>>
>> >http://softlayer.dl.sourceforge.net/sourceforge/wxwindows/wxMSW-2.8.1
Hendrik van Rooyen wrote:
> "Nigel Rantor" wrote:
>
>> It just smells to me that you've created this elaborate and brittle hack
>> to work around the fact that you couldn't think of any other way of
>> getting the thread to change it's behaviour whilst waiting on input.
>
> I am beginning to
"Gabriel Genellina" wrote:
>Ah... I had the same impression as Mr. Reedy, that you were directly
>reading from a socket and processing right there, so you *had* to use
>strings for everything.
not "had to" - "chose to" - to keep the most used path as short as I could.
>
>But if you already
"kj" wrote:
>
> Hi. I need to implement, within a Python script, the same
> functionality as that of Unix's
>
>grep -rl some_string some_directory
>
> I.e. find all the files under some_directory that contain the string
> "some_string".
>
> I imagine that I can always resort to the shell
> I just to check it in the python shell and it's correct.
> Then the problem is by iPython that I was testing it from there.
yes, iPython has a bug like that
https://bugs.launchpad.net/ipython/+bug/339642
--
дамјан ( http://softver.org.mk/damjan/ )
A: Because it reverses the logical flow of
Hello, all!
I've recently encountered a bug in NumPy's string arrays, where the 00
ASCII character ('\x00') is not stored properly when put at the end of a
string.
For example:
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyri
"Nigel Rantor" wrote:
> Well, why not have a look at Gabriel's response.
I have, and have responded at some length, further
explaining what I am doing, and why.
> That seems like a much more portable way of doing it if nothing else.
There is nothing portable in what I am doing - it is aimed a
In article ,
Nathaniel Rook wrote:
>
>I've recently encountered a bug in NumPy's string arrays, where the 00
>ASCII character ('\x00') is not stored properly when put at the end of a
>string.
You should ask about this on the NumPy mailing lists and/or report it on
the NumPy tracker:
http://sc
Jean-Michel Pichavant wrote:
Hello world,
I had recently a very nasty bug in my python application. The context is
quite complex, but in the end the problem can be resume as follow:
2 files in the same directory :
lib.py:
>import foo
>foo.Foo.BOOM='lib'
foo.py:
>class Foo:
>BOOM = '
Hi. I need to implement, within a Python script, the same
functionality as that of Unix's
grep -rl some_string some_directory
I.e. find all the files under some_directory that contain the string
"some_string".
I'd do something like this untested function:
def find_files_containing(base_
On May 5, 12:51 pm, Kushal Kumaran wrote:
> On Wed, Apr 29, 2009 at 8:21 AM, inVINCable wrote:
> > On Apr 27, 7:40 pm, inVINCable wrote:
> >> Hello,
>
> >> I have been using ClientForm to log in to sites & ClientCookie so I
> >> can automatically log into my site to do some penetration testing,
Hendrik van Rooyen wrote:
"Gabriel Genellina" wrote:
Ah... I had the same impression as Mr. Reedy, that you were directly
reading from a socket and processing right there, so you *had* to use
strings for everything.
not "had to" - "chose to" - to keep the most used path as short as I cou
In article ,
Ned Deily wrote:
> In python 3.x, of course, the encoding happens automatically but you
> still have to tell python, via the "encoding" argument to open, what the
> encoding of the file's content is (or accept python's default which may
> not be very useful):
>
> >>> open('foo1',
On Fri, 5 Jun 2009 04:07:19 + (UTC), kj
wrote:
>
>
>Suppose I have two lists, list_a and list_b, and I want to iterate
>over both as if they were a single list. E.g. I could write:
>
>for x in list_a:
>foo(x)
>for x in list_b:
>foo(x)
>
>But is there a less cumbersome way to achieve
On Jun 4, 8:35 pm, Roedy Green
wrote:
> On Thu, 4 Jun 2009 09:46:44 -0700 (PDT), Xah Lee
> wrote, quoted or indirectly quoted someone who said :
>
> >• Why Must Software Be Rewritten For Multi-Core Processors?
>
> Threads have been part of Java since Day 1. Using threads complicates
> your code,
Hi Guys,
i am new to wxpython an i have trouble with the menubar.
i tried to write a dynamic menubar that can read the itemnames from an
sqlite3 database, so i can change the language very easy.
like this.
def MakeMenuBar(self):
self.dbCursor.execute("SELECT " + self.lang[self.langSelect] +"
Scott David Daniels wrote:
Jean-Michel Pichavant wrote:
Hello world,
I had recently a very nasty bug in my python application. The context
is quite complex, but in the end the problem can be resume as follow:
2 files in the same directory :
lib.py:
>import foo
>foo.Foo.BOOM='lib'
foo.py:
On 2009-06-05, Vend wrote:
> On Jun 4, 8:35 pm, Roedy Green
> wrote:
>> On Thu, 4 Jun 2009 09:46:44 -0700 (PDT), Xah Lee
>> wrote, quoted or indirectly quoted someone who said :
>>
>> >• Why Must Software Be Rewritten For Multi-Core Processors?
>>
>> Threads have been part of Java since Day 1.
On Fri, Jun 5, 2009 at 10:20 AM, Tom wrote:
> On Fri, 5 Jun 2009 04:07:19 + (UTC), kj
> wrote:
>
>>
>>
>>Suppose I have two lists, list_a and list_b, and I want to iterate
>>over both as if they were a single list. E.g. I could write:
>>
>>for x in list_a:
>> foo(x)
>>for x in list_b:
>>
On May 26, 11:10 pm, Ron Garret wrote:
> I'm trying to build PyObjC on an Intel Mac running OS X 10.5.7. The
> build is breaking because distutils seems to want to build extension
> modules as universal binaries, but some of the libraries it depends on
> are built for intel-only, i.e.:
>
> [...@m
Tim Chase wrote:
Hi. I need to implement, within a Python script, [functionality like]:
grep -rl some_string some_directory
I'd do something like this untested function:
def find_files_containing(base_dir, string_to_find):
for path, files, dirs in os.walk(base_dir):
Note order wrong
I thought there was a website which demonstrated how to program a bunch of
small problems in a number of different languages. I know about the
Programming Language Shootout:
http://shootout.alioth.debian.org/
but that's not what I was thinking of. I thought there was a site with a
bunch of
On 1 Cze, 22:05, David Boddie wrote:
> On Monday 01 June 2009 16:16, dudekks...@gmail.com wrote:
>
> > On 31 Maj, 02:32, David Boddie wrote:
> >> So, you only want to handle certain links, and pass on to WebKit those
> >> which you can't handle? Is that correct?
>
> > Yes, I want to handle extern
Hi,
I need to create multiple variables (lets say 10x10x10 positions of atoms).
Is it possible to create them through a loop with some kind of indexing like
atom000, atom001, etc?
Or is this a very bad idea?
Thing is ... i want to create a grid of atoms in vpython and then calculate
the forces for
On Fri, Jun 5, 2009 at 12:35 PM, Philip
Gröger wrote:
> Hi,
> I need to create multiple variables (lets say 10x10x10 positions of atoms).
> Is it possible to create them through a loop with some kind of indexing like
> atom000, atom001, etc?
> Or is this a very bad idea?
Yes, very bad idea. Use a
As every one related to security probably knows, Rivest (and his
friends) have a new hashing algorithm which is supposed to have none
of the weaknesses of MD5 (and as a side benefit - not too many rainbow
tables yet). His code if publicly available under the MIT license.
Is there a reason not to a
On Fri, Jun 5, 2009 at 11:37 AM, Minesh Patel wrote:
> On Fri, Jun 5, 2009 at 10:20 AM, Tom wrote:
>> On Fri, 5 Jun 2009 04:07:19 + (UTC), kj
>> wrote:
>>
>>>
>>>
>>>Suppose I have two lists, list_a and list_b, and I want to iterate
>>>over both as if they were a single list. E.g. I could wri
On Fri, Jun 5, 2009 at 12:20 PM, wrote:
> I thought there was a website which demonstrated how to program a bunch of
> small problems in a number of different languages. I know about the
> Programming Language Shootout:
>
> http://shootout.alioth.debian.org/
>
> but that's not what I was think
someone:
> I thought there was a website which demonstrated how to program a bunch of
> small problems in a number of different languages.
http://www.rosettacode.org/wiki/Main_Page
http://en.literateprograms.org/LiteratePrograms:Welcome
http://www.codecodex.com/wiki/index.php?title=Main_Page
http:
Xah Lee wrote:
On Jun 3, 11:50 pm, Xah Lee wrote:
Of interest:
• The Complexity And Tedium of Software Engineering
http://xahlee.org/UnixResource_dir/writ/programer_frustration.html
Addendum:
The point in these short examples is not about software bugs or
problems. It illustrates, how seemi
Hi all,
I wonder if there are others out there who like me have tried to use
the logging module's configuration file and found it bloated and over-
complex for simple usage (i.e. a collection of loggers writing to
files)
At the moment, if I want to add a new logger "foo" writing to its own
file "
Hello,
I have sent this message to the authors as well as to this list. If
this is the wrong list please let me know where I should be sending
it... dev perhaps?
First the simple questions:
The versions of io.BufferedReader.peek() have different behavior which
one is going to stay long term?
I
mik...@gmail.com schrieb:
> As every one related to security probably knows, Rivest (and his
> friends) have a new hashing algorithm which is supposed to have none
> of the weaknesses of MD5 (and as a side benefit - not too many rainbow
> tables yet). His code if publicly available under the MIT li
On Friday 05 June 2009 21:33, dudekks...@gmail.com wrote:
> On 1 Cze, 22:05, David Boddie wrote:
>> I experimented a little and added an example to the PyQt Wiki:
>>
>> http://www.diotavelli.net/PyQtWiki/Usinga Custom Protocol with QtWebKit
>>
>> I hope it helps to get you started with your own
Jean-Michel Pichavant wrote:
Thanks for the explanation. I'll have to give it a second thought, I'm
still missing something but I'll figure it out.
Perhaps it is this:
1. When you run foo.py as a script, the interpreter creates module
'__main__' by executing the code in foo.py.
2. When that c
1 - 100 of 146 matches
Mail list logo