SteveD <[EMAIL PROTECTED]> writes:
> The point being that with a newish GDB (the current mingw GDB
I think I was using an older gdb, but under linux, so it's possible
that under mingw there are or were different issues.
--
http://mail.python.org/mailman/listinfo/python-list
They are not insurmontable problems. But you will still see things
like this:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66510
The point being that with a newish GDB (the current mingw GDB
is still 5.x) there's no need for such tedious tricks, since
it handles pending breakpoints fin
En Tue, 15 Apr 2008 02:54:43 -0300, Penny Y. <[EMAIL PROTECTED]> escribió:
> import urllib2,sys
> try:
> r=urllib2.urlopen("http://un-know-n.com/";)
> except URLError,e:
> print str(e)
> sys.exit(1)
>
> print r.info()
>
>
> But got the errors:
>
> Traceback (most recent call last):
>
On Tue, 2008-04-15 at 13:54 +0800, Penny Y. wrote:
> import urllib2,sys
> try:
> r=urllib2.urlopen("http://un-know-n.com/";)
> except URLError,e:
> print str(e)
> sys.exit(1)
>
> print r.info()
>
>
> But got the errors:
>
> Traceback (most recent call last):
> File "t1.py", line
Hello,
I run this small script:
import urllib2,sys
try:
r=urllib2.urlopen("http://un-know-n.com/";)
except URLError,e:
print str(e)
sys.exit(1)
print r.info()
But got the errors:
Traceback (most recent call last):
File "t1.py", line 4, in ?
except URLError,e:
NameError: name
v4vijayakumar wrote:
> On Apr 14, 1:00 pm, v4vijayakumar <[EMAIL PROTECTED]>
> wrote:
>
>> I can post initial version of the game (implemented using html/
>> javascript) in couple of hours here.
>
> The game is here,
>
> http://v4vijayakumar.googlepages.com/goats-and-tigers.html
The list
that's great, a custom shell is what I need.
Thanks all
Evan
--
http://mail.python.org/mailman/listinfo/python-list
> My idea, if you really love Python and never think about erasing it
> from your mind, go for C (not C++). A script language plus C can solve
> every problem you need to solve. Also Python works pretty fine with C.
I agree mostly with this one. Scripting is very nice when writing an
applicatio
En Tue, 15 Apr 2008 01:30:05 -0300, Sverker Nilsson <[EMAIL PROTECTED]>
escribió:
> No one forces me, but sooner or later they will want a Python 3.0 and
> then a 3.1 whatever.
Welcome to the software industry!
If it isn't Python changing, it's the operating system, the processor
architecture,
No one forces me, but sooner or later they will want a Python 3.0 and
then a 3.1 whatever.
I don't want that fuzz. As about the C versions, I am not that
worried. What's your point?
I just like want to write a program that will stay working. And maybe
I can go on with something else hopefully tha
On Apr 14, 10:55 pm, Yves Dorfsman <[EMAIL PROTECTED]> wrote:
> Gabriel Genellina wrote:
> > En Mon, 14 Apr 2008 01:41:55 -0300, reetesh nigam
> >> l=['5\n', '2\n', '7\n', '3\n', '6\n']
>
> >> how to remove \n from the given list
>
> > l is is very poor name... I'll use lines instead:
>
> > lines[:
Gabriel Genellina wrote:
> En Mon, 14 Apr 2008 01:41:55 -0300, reetesh nigam
>> l=['5\n', '2\n', '7\n', '3\n', '6\n']
>>
>> how to remove \n from the given list
>
> l is is very poor name... I'll use lines instead:
>
> lines[:] = [line.rstrip('\n') for line in lines]
When I saw the original me
Hello J,
> Does anyone know how to get the version of an application on OS X (i.e.
> the version string that appears in the "Version" field in the "Get Info"
> window for an application)?
>
> I'm running OS 10.4.11, python 2.5.
#!/usr/bin/env python
from xml.etree.cElementTree import iterparse
f
En Mon, 14 Apr 2008 23:38:56 -0300, Sverker Nilsson <[EMAIL PROTECTED]>
escribió:
> On Apr 15, 3:50 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
> wrote:
>> En Mon, 14 Apr 2008 22:02:38 -0300, Sverker Nilsson <[EMAIL PROTECTED]>
>> escribió:
>>
>> > I tried out py3k on my project,http://guppy-pe.
On Apr 14, 4:27 pm, Aaron Watters <[EMAIL PROTECTED]> wrote:
> > A question often asked--and I am not a big a fan of these sorts of
> > questions, but it is worth thinking about--of people who are creating
> > very large data structures in Python is "Why are you doing that?"
> > That is, you should
On Apr 13, 10:33 pm, "Penny Y." <[EMAIL PROTECTED]> wrote:
> I saw many python programmers add a ';' at the end of each line.
> As good style, should or should not we do coding with that?
Where did you see that?
>
> Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 15, 3:50 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Mon, 14 Apr 2008 22:02:38 -0300, Sverker Nilsson <[EMAIL PROTECTED]>
> escribió:
>
> > I tried out py3k on my project,http://guppy-pe.sf.net
>
> And what happened?
> I've seen that your project already supports Python 2.6 so t
On Apr 14, 9:00 pm, agent E 10 <[EMAIL PROTECTED]> wrote:
>Hi, I'm brand new to programming. Have any suggestions? I'm young.
> Was it a good idea to start with python? I was planning on creating a
> very simple program that asked yes/no questions for a school project.
IMHO, Python is an excell
[Gabriel:]
> The "magic" happens when the descriptor is found in the *class*, not in
> the instance. I think it's detailed in Hettinger's document.
> Do you actually want "per-instance" defined properties?
ah! ok. yes, you're right: i want instance values but class
properties, so i'll rethink th
On Apr 15, 2:58 am, ajaksu <[EMAIL PROTECTED]> wrote:
> On Apr 14, 8:10 pm, Sverker Nilsson <[EMAIL PROTECTED]> wrote:> do i dare to
> open a thread about this?
>
> Yeah, you sure do!
>
> > come on you braver men
>
> Yeah!
>
> > we are at least not bought by g***le
>
> Hell no!
>
> > but why? oth
En Mon, 14 Apr 2008 22:43:39 -0300, andrew cooke <[EMAIL PROTECTED]>
escribió:
> This is my first attempt at new classes and dynamic python, so I am
> probably doing something very stupid... After reading the how-to for
> descriptors at http://users.rcn.com/python/download/Descriptor.htm I
> de
Hi, I'm brand new to programming. Have any suggestions? I'm young.
Was it a good idea to start with python? I was planning on creating a
very simple program that asked yes/no questions for a school project.
-Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
En Mon, 14 Apr 2008 22:02:38 -0300, Sverker Nilsson <[EMAIL PROTECTED]>
escribió:
> I tried out py3k on my project, http://guppy-pe.sf.net
And what happened?
I've seen that your project already supports Python 2.6 so the migration
path to 3.0 should be easy.
--
Gabriel Genellina
--
http://
Hi,
This is my first attempt at new classes and dynamic python, so I am
probably doing something very stupid... After reading the how-to for
descriptors at http://users.rcn.com/python/download/Descriptor.htm I
decided I would make an object that returns attributes on read, but on
setting calls an
I am using "mod_python.publisher" to generate my web page that contains
serveral links to local files.
I also replace the path with my domain name like this:
curDir = os.path.dirname(__file__)
link = 'http://' + hostname + '/' + os.path.basename(curDir) + '/'
files = os.listdir(curDir)
for i in fi
En Mon, 14 Apr 2008 16:02:20 -0300, John Henry <[EMAIL PROTECTED]>
escribió:
> On Apr 14, 11:17 am, Steve Holden <[EMAIL PROTECTED]> wrote:
>> I have no idea. Babelfish (from which I obtained my reply as well as
>> whatever understanding I had of the original inquiry) translated my
>> reply as
On Apr 15, 2:58 am, ajaksu <[EMAIL PROTECTED]> wrote:
> On Apr 14, 8:10 pm, Sverker Nilsson <[EMAIL PROTECTED]> wrote:> do i dare to
> open a thread about this?
>
> Yeah, you sure do!
>
> > come on you braver men
>
> Yeah!
>
> > we are at least not bought by g***le
>
> Hell no!
>
> > but why? oth
-邮件原件-
发件人: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 代表 Steve Holden
发送时间: 2008年4月15日 2:17
收件人: python-list@python.org
主题: Re: 有中国人乎?
>Since what I entered in English was something like "Yes, Python has a
>future. But it will take some study". Perhaps you can tell me whether
>your
En Mon, 14 Apr 2008 11:03:54 -0300, Steve Holden <[EMAIL PROTECTED]>
escribió:
> Victor Subervi wrote:
>> Thanks to all, especially Gabriel. [...]
>> Steve, thank you for all your help, but do overcome your temper :))
>
> I'm glad the penny finally dropped. You may have been treated to a
> modest
On Apr 8, 6:01 pm, [EMAIL PROTECTED] wrote:
> okay, I'm having this one problem with a text adventure game. It's
> kind of hard to explain, but I'll do my best.
> [code]
>
> def prompt_kitchen():
> global gold
> gold_taken = False
> while True:
> prompt_kit = raw_input('>')
>
En Mon, 14 Apr 2008 10:48:47 -0300, 一首诗 <[EMAIL PROTECTED]> escribió:
> I read this article on http://kortis.to/radix/python_ext/
Note the date (2002) and the Python version used (2.1)
> And I decided to try if it's true.
>
> I write the program in 4 ways:
>
> 1. Pure C
> 2. Python using C exten
> The project I'm working on is motion detection, involving a bit of image
> processing. No worries: no image processing background needed.
>
> Suffice to say that I initially wrote a script that goes through every pixel
> of a 320x240 picture (turned into an array using PIL) and performs some
> ca
On Apr 15, 1:34 am, Steve Holden <[EMAIL PROTECTED]> wrote:
> Sverker Nilsson wrote:
> > do i dare to open a thread about this?
>
> > come on you braver men
>
> > we are at least not bought by g***le
>
> > but why? others have said it so many times i think
>
> > :-
>
> > but why? a few syntact
On Apr 14, 8:10 pm, Sverker Nilsson <[EMAIL PROTECTED]> wrote:
> do i dare to open a thread about this?
Yeah, you sure do!
> come on you braver men
Yeah!
> we are at least not bought by g***le
Hell no!
> but why? others have said it so many times i think
Huh?!
> :-
?! Whatever!
> but why?
SteveD <[EMAIL PROTECTED]> writes:
> pgdb.zip is an addition to scite-debug, which adds source debugging to
> the popular SciTE programmer's editor. ...
> I know the FAQ says that this is not possible, but the FAQ is somewhat
> outdated. GDB is quite happy with pending breakpoints to unresolved
> l
http://www.liveplayboyworld.cn
--
http://mail.python.org/mailman/listinfo/python-list
The project I'm working on is motion detection, involving a bit of image
processing. No worries: no image processing background needed.
Suffice to say that I initially wrote a script that goes through every pixel
of a 320x240 picture (turned into an array using PIL) and performs some
calculatiosn.
John Machin wrote:
> So I found by googling "has stopped working". I'd never seen such a
> litany of weeping, wailing and u'\u02ad' before.
OT: Best use of Unicode ever.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our o
John Machin wrote:
> On Apr 15, 4:08 am, Steve Holden <[EMAIL PROTECTED]> wrote:
>> John Machin wrote:
>>
>>> By the way, "popup" is what you get in a web browser. What did this
>>> "popup" look like: a panel from your GUI software? A Windows message
>>> box? Did it have a title across the top? Wha
Sverker Nilsson <[EMAIL PROTECTED]> writes:
> do i dare to open a thread about this?
If you do so, please use less inflammatory language. You can't expect
a reasoned debate if you use such hyperbole and emotional attacks.
Discussion is welcome. Flaming isn't.
--
\ "He who lau
Sverker Nilsson wrote:
> do i dare to open a thread about this?
>
> come on you braver men
>
> we are at least not bought by g***le
>
> but why? others have said it so many times i think
>
> :-
>
> but why? a few syntactic 'cleanups' for the cost of a huge rewrite of
> all the code that h
do i dare to open a thread about this?
come on you braver men
we are at least not bought by g***le
but why? others have said it so many times i think
:-
but why? a few syntactic 'cleanups' for the cost of a huge rewrite of
all the code that have been builtup from all the beginning when th
Till Kranz:
> I tried to get started with Boost.Python. unfortunately I never used the
> bjam build system before. As it is explained in the documentation I
> tried to adapt the the files form the examples directory. I copied
> 'Jamroot', 'boost_build.jam' and 'extending.cpp' to '~/test/'. But
"Marc 'BlackJack' Rintsch" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Mon, 14 Apr 2008 00:13:56 -0700, v4vijayakumar wrote:
>
>> In computer based, two player, board games, how to make computer play?
>> Are there any formal ways to _teach_ computer, to choose best possible
>
On Apr 15, 4:08 am, Steve Holden <[EMAIL PROTECTED]> wrote:
> John Machin wrote:
>
> > By the way, "popup" is what you get in a web browser. What did this
> > "popup" look like: a panel from your GUI software? A Windows message
> > box? Did it have a title across the top? What was the exact text in
> I want to rewrite a request url under apache2.0 based on its special
> header, like, the "Accept-Encoding:" one.
>
> With C I think I can do it, but since I get begin with python,so I ask
> that can I do it under mod_python? what's the guide?
The guide is this: http://modpython.org/live/current/
[EMAIL PROTECTED] schrieb:
> I understand that many portions of the string module are redundant with
> the native methods of strings and will removed in Python 3.0. Makes
> sense to me.
>
> But what will happen to the portions of the string module that are not
> covered by native string methods -
I understand that many portions of the string module are redundant with
the native methods of strings and will removed in Python 3.0. Makes
sense to me.
But what will happen to the portions of the string module that are not
covered by native string methods - like the following:
- string constants
> A question often asked--and I am not a big a fan of these sorts of
> questions, but it is worth thinking about--of people who are creating
> very large data structures in Python is "Why are you doing that?"
> That is, you should consider whether some kind of database solution
> would be better.
On 14 Απρ, 16:20, bvidinli <[EMAIL PROTECTED]> wrote:
> I program in python for about 2-3 monthos.
> I just started/tested gui programming with many tools.
> i tested boa last, it is the closest tool to delphi in tui tools that i used.
>
> I managed to play with it a bit.
>
> If you have any other
On 14 Απρ, 16:48, 一首诗 <[EMAIL PROTECTED]> wrote:
> I read this article onhttp://kortis.to/radix/python_ext/
>
> And I decided to try if it's true.
>
> I write the program in 4 ways:
>
> 1. Pure C
> 2. Python using C extension
> 3. Python using psycho
> 4. Pure Python
>
> And then I used timeit to t
2008/4/14 <[EMAIL PROTECTED]>:
> On Apr 14, 8:48 am, 一首诗 <[EMAIL PROTECTED]> wrote:
>
> > But, it is still not as fast as 1.
>
>
> So if speed is the #1 design goal, use pure C. If not, develop in
> pure Python and, if the application is too slow, profile the code and
> look for bottlenecks that
On Apr 14, 11:17 am, Steve Holden <[EMAIL PROTECTED]> wrote:
> Penny Y. wrote:
> > Steve Holden 写道:
>
> >> 但学会从未是立即, 和将需要一点时间。
>
> > What do you mean?
> > If I understand you correctly, maybe it should be,
>
> > 学习python不可一日而成,需要循序渐进.
>
> > Am I right?
>
> I have no idea. Babelfish (from which I ob
On Apr 14, 5:15 pm, "Twayne" <[EMAIL PROTECTED]> wrote:
> > Hi,
>
> > We are to hold a workshop about python (introduction). It will be two
> > one hour and half sessions.
> > I wanted to know which subjects do you suggest to be presented and is
> > there a good presentation file (powerpoint or ...
On Mon, 14 Apr 2008 00:13:56 -0700 (PDT), v4vijayakumar
<[EMAIL PROTECTED]> wrote:
>In computer based, two player, board games, how to make computer play?
>Are there any formal ways to _teach_ computer, to choose best possible
>move?
>
>I know this is kind of off-topic here. Please redirect me, if
Penny Y. wrote:
> Steve Holden 写道:
>
>> 但学会从未是立即, 和将需要一点时间。
>>
>
> What do you mean?
> If I understand you correctly, maybe it should be,
>
> 学习python不可一日而成,需要循序渐进.
>
> Am I right?
I have no idea. Babelfish (from which I obtained my reply as well as
whatever understanding I had of the origina
Marco Mariani wrote:
> Penny Y. wrote:
>
>> Javascript is different from Java at all.
>
> I think even rocks know that. Yet, some use of closure and
> prototype-based inheritance might be interesting to the OP.
>
>> Why not Perl?
>
> Come on, learning Perl after two years of Python? How harsh.
John Machin wrote:
> On Apr 14, 7:24 pm, [EMAIL PROTECTED] wrote:
>>> Is it a console program or a gui program?
>> GUI
>>> What happens when you run it without py2exe?
>> it works perfectly, both from within python and launching from
>> "windows"
>>
>>> Have you searched for "has stopped working" i
"Josh" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| Hmm... That didn't work out so well that time. I feel like an
| idiot. Previously there has been an hour difference between the
| system time and the time that python reports.
That suggests a (temporary?) problem with standa
My idea, if you really love Python and never think about erasing it from
your mind, go for C (not C++). A script language plus C can solve every
problem you need to solve. Also Python works pretty fine with C.
If you want a better job, maybe Java. Not sure though.
If you want to educate yourself a
On 14 avr, 18:05, Duncan Booth <[EMAIL PROTECTED]> wrote:
> Janto Dreijer <[EMAIL PROTECTED]> wrote:
> > It seems eval is modifying the passed in locals/globals. This is
> > behaviour I did not expect and is really messing up my web.py app.
>
> > Python 2.5.1 (r251:54863, Mar 7 2008, 04:10:12)
> >
Janto Dreijer <[EMAIL PROTECTED]> wrote:
> It seems eval is modifying the passed in locals/globals. This is
> behaviour I did not expect and is really messing up my web.py app.
>
> Python 2.5.1 (r251:54863, Mar 7 2008, 04:10:12)
> [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on lin
On Apr 14, 7:01 am, "M.-A. Lemburg" <[EMAIL PROTECTED]> wrote:
> On AIX 5.3, Python 2.5.2 should build out of the box using gcc.
>
> We've successfully build Python 2.3, 2.4 and 2.5 on AIX 5.3
> using the gcc compiler suite and tools installed from the
> AIX Linux Toolbox:
>
> http://www-03.ibm.co
On Apr 14, 4:23 pm, Janto Dreijer <[EMAIL PROTECTED]> wrote:
> It seems eval is modifying the passed in locals/globals. This is
> behaviour I did not expect and is really messing up my web.py app.
Reading the documentation would be a good start:
>From http://docs.python.org/lib/built-in-funcs.htm
On Apr 14, 5:48 pm, [EMAIL PROTECTED] wrote:
> On 14 avr, 17:23, Janto Dreijer <[EMAIL PROTECTED]> wrote:
>
> > It seems eval is modifying the passed in locals/globals. This is
> > behaviour I did not expect and is really messing up my web.py app.
>
> > Python 2.5.1 (r251:54863, Mar 7 2008, 04:10:
On 14 avr, 17:23, Janto Dreijer <[EMAIL PROTECTED]> wrote:
> It seems eval is modifying the passed in locals/globals. This is
> behaviour I did not expect and is really messing up my web.py app.
>
> Python 2.5.1 (r251:54863, Mar 7 2008, 04:10:12)
> [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16
Hi Python developers,
We are happy to announce our first release of PyStructure, a structure
and dependency analyser for Python code (written in Java). It is now in
a state where it can parse and analyse real-world projects (with
limitations, see below) and show the results in Structure101g, a
It seems eval is modifying the passed in locals/globals. This is
behaviour I did not expect and is really messing up my web.py app.
Python 2.5.1 (r251:54863, Mar 7 2008, 04:10:12)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license"
On Apr 14, 2:44 am, [EMAIL PROTECTED] wrote:
> Hello, I was hoping to get some opinions on a subject. I've been
> programming Python for almost two years now. Recently I learned Perl,
> but frankly I'm not very comfortable with it. Now I want to move on
> two either Java or C++, but I'm not sure wh
Matias Surdi <[EMAIL PROTECTED]> wrote:
> Anyone knows how having the IP address of a host on the lan could I get
> the mac address of that hosr?
> p/d: Parsing the output of arp -a is not an option.
What kind of system?
On linux and probably several other unix-like systems you could (if
you
2008/4/14 Jarek Zgoda <[EMAIL PROTECTED]>:
> > I have simple chat application with pygtk UI. I want some event (for
> > example update user list) to have place every n seconds.
> > What's the best way to archive it?
> > I tried threading.Timer but result is following: all events wait till
> >
On Apr 11, 4:14 am, bdsatish <[EMAIL PROTECTED]> wrote:
> I'm interested in rounding numbers of the form "x.5" depending upon
> whether x is odd or even. Any idea about how to implement it ?
Side note: A specialized use for this is in the US Field Artillery,
where it's called "artillery expressio
> Hello, I was hoping to get some opinions on a subject. I've been
> programming Python for almost two years now. Recently I learned Perl,
> but frankly I'm not very comfortable with it. Now I want to move on
> two either Java or C++, but I'm not sure which. Which one do you think
> is a softer tr
On Mon, 14 Apr 2008 12:13:20 + (UTC), Willem <[EMAIL PROTECTED]>
wrote:
>Richard wrote:
>) Here's the board (which bears only a slight resemblance to one I'd seen on
>) the Web):
>)
>) +---+
>) | HORN $ |
>) +---+---+---+---+---+---+
>) |L W| | $ | $ | |R
pyOpenSSL is a wrapper around a subset of the OpenSSL API, including support
for X509 certificates, public and private keys, and and SSL connections.
pyOpenSSL 0.7 fixes a number of memory leaks and memory corruption issues. It
also exposes several new OpenSSL APIs to Python:
* SSL_get_shutdow
> Hi,
>
> We are to hold a workshop about python (introduction). It will be two
> one hour and half sessions.
> I wanted to know which subjects do you suggest to be presented and is
> there a good presentation file (powerpoint or ...) about this on the
> net.
> We thought that it may be good that f
QOTW: "This for me is Python's chief selling point: dir()dir() and
help(). Python's two selling points are dir(), help(), and very readable
code. Python's *three* selling points are dir(), help(), very readable
code, and an almost fanatical devotion to the BFDL. Amongst Python's
selling p
On Apr 14, 8:20 am, bvidinli <[EMAIL PROTECTED]> wrote:
> I program in python for about 2-3 monthos.
> I just started/tested gui programming with many tools.
> i tested boa last, it is the closest tool to delphi in tui tools that i used.
>
> I managed to play with it a bit.
>
> If you have any othe
Victor Subervi wrote:
> Thanks to all, especially Gabriel. The base64 is a good idea, but you
> state a definite problem. I will look at your code at home
> (offline)...thank you very much! It looks like the kicker is this line here:
>
> " % (picid, cgi.escape(title))
>
> Now, why didn´t you
On 2008-04-13 18:57, [EMAIL PROTECTED] wrote:
> I'm investigating the possible use of Mecurial SCM as a replacement
> for CVS. Mecurial is written in Python. I have a background in GNU/
> Linux, Solaris, sparc and Perl. However AIX, powerpc and Python are
> new to me.
On AIX 5.3, Python 2.5.2 s
On Apr 14, 8:48 am, 一首诗 <[EMAIL PROTECTED]> wrote:
> But, it is still not as fast as 1.
So if speed is the #1 design goal, use pure C. If not, develop in
pure Python and, if the application is too slow, profile the code and
look for bottlenecks that can be optimized. There's a good chance
that
I read this article on http://kortis.to/radix/python_ext/
And I decided to try if it's true.
I write the program in 4 ways:
1. Pure C
2. Python using C extension
3. Python using psycho
4. Pure Python
And then I used timeit to test the speed of these 4. Unsurprisingly,
the time they cost were:
Fertler?
--
http://mail.python.org/mailman/listinfo/python-list
Werdle?
--
http://mail.python.org/mailman/listinfo/python-list
Thanks to all, especially Gabriel. The base64 is a good idea, but you state
a definite problem. I will look at your code at home (offline)...thank you
very much! It looks like the kicker is this line here:
" % (picid, cgi.escape(title))
Now, why didn´t you share that before? I can see how cal
I program in python for about 2-3 monthos.
I just started/tested gui programming with many tools.
i tested boa last, it is the closest tool to delphi in GUI tools that i used.
I managed to play with it a bit.
If you have any other tool which you know better than Boa Constructor,
please write
I program in python for about 2-3 monthos.
I just started/tested gui programming with many tools.
i tested boa last, it is the closest tool to delphi in tui tools that i used.
I managed to play with it a bit.
If you have any other tool which you know better than Boa Constructor,
please write in h
"Doran, Harold" <[EMAIL PROTECTED]> wrote:
> If these files followed a naming convention such as 1.txt and 2.txt I
> can easily see how these could be parsed consecutively in a loop.
> However, they are not and so is it possible to modify this code such
> that I can tell python to parse all .txt f
Hi guys,
http://luaforge.net/frs/?group_id=327
pgdb.zip is an addition to scite-debug, which adds source debugging to
the popular SciTE programmer's editor. gdbpy.zip is a standalone
version which can be run from Emacs.
These allow you to single-step from Python to C code in a debugger
session.
> new_file = open('filename.txt', 'w')
> params = open('eggs.txt', 'r')
> do all the python stuff here
> new_file.close()
>
> If these files followed a naming convention such as 1.txt and 2.txt I
> can easily see how these could be parsed consecutively in a loop.
> However, they are not and
Doran, Harold wrote:
> Say I have multiple text files in a single directory, for illustration
> they are called "spam.txt" and "eggs.txt". All of these text files are
> organized in exactly the same way. I have written a program that parses
> each file one at a time. In other words, I need to run m
Funny,
I'm just doing exactly this:
import os
def main():
dataFolder = 'data/'
fileList = os.listdir(dataFolder)
for file in fileList:
inFile = open(dataFolder + file, 'r')
print 'read inFile & do something useful here'
Clear as an... egg?
Say I have multiple text files in a single directory, for illustration
they are called "spam.txt" and "eggs.txt". All of these text files are
organized in exactly the same way. I have written a program that parses
each file one at a time. In other words, I need to run my program each
time I want to
In article <[EMAIL PROTECTED]>,
VictorMiller <[EMAIL PROTECTED]> wrote:
> I've written a python script which, using urllib, and urllib2 will
> fetch a number of files that that I'm interested in from various
> websites (they're updated everyday). When I run the script from my
> command line every
Richard wrote:
) Here's the board (which bears only a slight resemblance to one I'd seen on
) the Web):
)
) +---+
) | HORN $ |
) +---+---+---+---+---+---+
) |L W| | $ | $ | |R W|
) +E-I+--CHEST+---+---+I-I+
) |F N| | | | |G N|
) +T-G+---+---+---+-
On Apr 14, 7:24 pm, [EMAIL PROTECTED] wrote:
> > Is it a console program or a gui program?
> GUI
> > What happens when you run it without py2exe?
>
> it works perfectly, both from within python and launching from
> "windows"
>
> > Have you searched for "has stopped working" in
>
> (a) your source c
On Apr 14, 1:44 am, [EMAIL PROTECTED] wrote:
> Hello, I was hoping to get some opinions on a subject. I've been
> programming Python for almost two years now. Recently I learned Perl,
> but frankly I'm not very comfortable with it. Now I want to move on
> two either Java or C++, but I'm not sure wh
[EMAIL PROTECTED] said:
> On 14 Apr, 09:13, v4vijayakumar <[EMAIL PROTECTED]>
> wrote:
>> In computer based, two player, board games, how to make computer play?
>> Are there any formal ways to _teach_ computer, to choose best possible
>> move?
>>
>> I know this is kind of off-topic here. Please re
On Apr 14, 2:24 am, bdsatish <[EMAIL PROTECTED]> wrote:
> On Apr 14, 12:21 pm, Bob Martin <[EMAIL PROTECTED]> wrote:
>
> > in 342367 20080414 074410 [EMAIL PROTECTED] wrote:
>
> > >Hello, I was hoping to get some opinions on a subject. I've been
> &g
Penny Y. wrote:
> Perl is a functional language
I guess you mean functional in the sense it works.
RB
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 141 matches
Mail list logo