On Sun, May 23, 2010 at 3:35 PM, sturlamolden wrote:
> Yes I know about PyOpenGL, but then there is the speed argument: From
> C I can make epeated calls to functions like glVertex4f with minial
> loss of efficacy. Calling glVertex4f from Python (e.g. PyOpenGL) would
> give me the Python (and pos
On 22 Mai, 13:28, Tim Chase wrote:
> Just as an aside, last I checked, mercurial had some core code in
> C for speed.
I've been writing scrintific software for over 10 years. I always find
myself writing small pieces of C now and then. It is usally because
header files are too complicated to e
On 22 Mai, 20:45, Patrick Maupin wrote:
> I think we're in violent agreement here -- you neglected to quote the
> part where I said "(But the up-front choice of another language simply
> for speed, rather than prototyping with Python and then recoding the
> slow bits, would probably be a decision
On Thu, 20 May 2010 02:45:10 -0700 (PDT), Jimoid
declaimed the following in
gmane.comp.python.general:
I've now had a closer look at both pyODBC and mxODBC and it seems to
me that they both require the database to be running to be able to
query it. Is this correct?
If you mean that an instanc
Deep_Feelings wrote:
i will be interested more in COMMERCIAL programs written in python
I came across a game on Big Fish Games recently (it was
"The Moonstone" IIRC) that appeared to have been built using
Python and py2app.
--
Greg
--
http://mail.python.org/mailman/listinfo/python-list
On May 22, 6:14 pm, Steven D'Aprano wrote:
> On Sat, 22 May 2010 12:13:30 -0700, Patrick Maupin wrote about the lack
> of exceptions in Go:
>
> > Looking at their rationale, it is appears that one or more of the
> > primary go developers had to deal way too often with people who overuse
> > and ab
On 5/22/10, MRAB wrote:
> Lanny wrote:
>> The answer may be right infront of me but I really can't figure this
>> out.
>> I'm trying to build a interactive fiction kind of game, silly I know
>> but I
>> am a fan of the genre. I'm trying to build up an index of all the
>> rooms in
>> the game from
Lanny wrote:
The answer may be right infront of me but I really can't figure this
out.
I'm trying to build a interactive fiction kind of game, silly I know
but I
am a fan of the genre. I'm trying to build up an index of all the
rooms in
the game from an outside file called roomlist.txt. The only
The answer may be right infront of me but I really can't figure this
out.
I'm trying to build a interactive fiction kind of game, silly I know
but I
am a fan of the genre. I'm trying to build up an index of all the
rooms in
the game from an outside file called roomlist.txt. The only problem is
that
On Sat, 22 May 2010 12:13:30 -0700, Patrick Maupin wrote about the lack
of exceptions in Go:
> Looking at their rationale, it is appears that one or more of the
> primary go developers had to deal way too often with people who overuse
> and abuse exceptions, so they are reverting to an almost chi
In article ,
Christian Heimes wrote:
>
>You *MUST NOT* use string formatting for SQL commands unless you
>carefully quote and validate the strings. Otherwise your SQL application
>is vulnerable to SQL injection attacks. SQL injections are one of the
>most common and devastating attacks for web
On Fri, 2010-05-21 at 11:20 -0700, Patrick Maupin wrote:
> On May 21, 5:21 am, Deep_Feelings wrote:
> > 2- python is high productivity language : why there are no commercial
> > programs written in python ?
> There are a lot of commercial programs written in Python. But any
> company which thinks
On Sat, May 22, 2010 at 11:01 AM, ntwrkd wrote:
> I am trying to create a bash-style auto completion in a simple
> command-line and script-based program i created using cmd.
> I saw http://docs.python.org/library/rlcompleter.html, which I'm
> thinking is the way to go for my program to intercept t
On May 21, 10:30 pm, Chris Rebert wrote:
> Erm, in fairness, I recall hearing that some speed-critical bits of hg
> are written in C. It does lend credence to the "Python as glue
> language" argument though; I doubt hg's extensibility and friendly
> interface would have been as easy to implement
On May 22, 1:49 pm, Terry Reedy wrote:
> Because, as I said, and as you explain further, Python favors programmer
> speed, including speed of testing new algorithms, over raw execution
> speed of current algorithms. (Current) speed is (also) easier to test
> than improvability and hence possible
On May 22, 5:00 am, Michele Simionato
wrote:
> On May 21, 4:20 pm, Grant Edwards wrote:
>
> > What about Go, exactly, do people see as Python-like?
>
> The philosophy of keeping things simple. I find the concurrency
> mechanism quite Pythonic.
That's nice.
> Moreover Go interfaces are quite aki
On May 22, 2:43 am, sturlamolden wrote:
> On 21 Mai, 20:20, Patrick Maupin wrote:
> > Also, any company in a competitive
> > market where execution speed is extremely important might choose some
> > other language because, frankly, the fact that a development tool is
> > highly productive is not
On 5/21/2010 11:03 PM, Lie Ryan wrote:
On 05/22/10 04:47, Terry Reedy wrote:
On 5/21/2010 6:21 AM, Deep_Feelings wrote:
python is not a new programming language ,it has been there for the
last 15+ years or so ? right ?
however by having a look at this page
http://wiki.python.org/moin/Appl
I am trying to create a bash-style auto completion in a simple
command-line and script-based program i created using cmd.
I saw http://docs.python.org/library/rlcompleter.html, which I'm
thinking is the way to go for my program to intercept the tab key.
Would anyone have thoughts on this?
I wish c
Oops, het "Good" page is alos handled wrongly. The papers from 2000
are handled wrong too so a real example of a well performing page:
http://ieeexplore.ieee.org/xpl/freeabs_all.jsp?arnumber=5206867
On May 22, 11:43 am, Dragon Lord wrote:
> I am trying to download a few IEEE pages by using urlli
Am 22.05.2010 18:09, schrieb Adam Tauno Williams:
On Sat, 2010-05-22 at 18:06 +0200, Christian Heimes wrote:
A lister recently responded to my post concerning mysl commands of the
following type:
cursor.execute('insert into foo values (%s, %s)' % (bar, something))
stating that I need to elimin
On Sat, 2010-05-22 at 18:06 +0200, Christian Heimes wrote:
> > A lister recently responded to my post concerning mysl commands of the
> > following type:
> >
> > cursor.execute('insert into foo values (%s, %s)' % (bar, something))
> >
> > stating that I need to eliminate the "%" to prevent injectio
A lister recently responded to my post concerning mysl commands of the
following type:
cursor.execute('insert into foo values (%s, %s)' % (bar, something))
stating that I need to eliminate the "%" to prevent injection attacks, thus:
cursor.execute('insert into foo values (%s, %s)', (bar, someth
On 22 Mai, 17:09, a...@pythoncraft.com (Aahz) wrote:
> Rewriting an algorithm also helps I/O-bound code
Yes it does, if it involves how we do I/O. Algorithms are just as
important for I/O bound as they are for compute bound code.
But implementing an algorithm in C as opposed to Python would not
In article ,
Tim Chase wrote:
>
>I'd also include that a change in algorithm can be a big help for
>speeding up CPU-bound code. It doesn't matter much if you're using
>Python or hand-coding that inner loop in C/ASM, if you're using a
>O(2^N) algorithm.
Hi;
A lister recently responded to my post concerning mysl commands of the
following type:
cursor.execute('insert into foo values (%s, %s)' % (bar, something))
stating that I need to eliminate the "%" to prevent injection attacks, thus:
cursor.execute('insert into foo values (%s, %s)', (bar, som
I wrote:
> I came up with a recursive memo-izing algorithm that
> handles 100-digit n's.
[...]
I made a couple improvements. Code below.
-Bryan
#-
_nds = {}
def ndsums(m, d):
""" Count d-digit ints with digits suming to m.
"""
assert m >= 0 and d >= 0
m = min
Am 22.05.2010 12:06, schrieb timo verbeek:
Is there not an other way to create a fast addon system?
A module or something like that
How fancy are your requirements? People have written numerous plugin
systems, from simple to use ones like CherryPy's tool system up to a
complex component archi
On Fri, May 21, 2010 at 2:40 PM, Tim Chase wrote:
> On 05/21/2010 12:31 PM, Victor Subervi wrote:
>
>> cursor.execute('insert into Baggage values (Null, %s, %s, %s,
>> %s)', (flight_id, customer_id, weight, ticket_no))
>>
>
> You're trying to insert stuff...
>
>
> OperationalError: (1452, 'Ca
On Wed, May 12, 2010 at 2:42 PM, Joel Koltner
wrote:
> Just curious... in Microsoft's Visual Studio (and I would presume some other
> tools), for many languages (both interpreted and compiled!) there's an "edit
> and conitnue" option that, when you hit a breakpoint, allows you to modify a
> line o
On 05/22/2010 02:43 AM, sturlamolden wrote:
That only applies to CPU bound program code (most program code is I/O
bound), and only to computational bottlenecks (usually less than 5% of
the code) in the CPU bound programs. Today, most programs are I/O
bound: You don't get a faster network connecti
Hi,
after 6 months of laziness while code was complete in my computer but
didn't have enough time, I'm releasing a new version of lfm now.
Description:
=
Last File Manager is a simple but powerful file manager for the UNIX
console. It's written in Python, using curses module.
Licensed un
Is there not an other way to create a fast addon system?
A module or something like that
--
http://mail.python.org/mailman/listinfo/python-list
On May 21, 4:20 pm, Grant Edwards wrote:
>
> What about Go, exactly, do people see as Python-like?
The philosophy of keeping things simple. I find the concurrency
mechanism quite Pythonic.
Moreover Go interfaces are quite akin to Python duck typing, but
better. There also things which are quite d
Hi,
I am using wingide to debug my python code. To debug my c code
when i attach wingide to ddd. It is all done successfully. However when
i try to set a beak point in gdb i get following error :
(gdb) break /home/sa/mygr/gnuradio-core/src/lib/general/gr_gr_deinterleave.cc:13
No source file name
thank you very much ,your reply guys are very nice and informative.
hope you best luck in your life
--
http://mail.python.org/mailman/listinfo/python-list
I am trying to download a few IEEE pages by using urllib2, but with
certain pages I get only the first part of the page. With other pages
from the same server and url (just another pageID) I get the right
results. The difference between these pages seems to be the date the
paper for which the page
I have finally decided to port the decorator module to Python 3.
Changing the module was zero effort (2to3 worked) but changing the
documentation was quite an effort, since I had to wait for docutils/
pygements to support Python 3 and to change all my custom build
process. Also, I am relying on dis
On May 22, 1:12 pm, sturlamolden wrote:
> On 22 Mai, 09:38, moijes12 wrote:
>
> > I need to get the details of Local Area connection information(network
> > interface) like packets sent,packets recieved,duration etc. I have to
> > do this in Windows using python.
> >>> import subprocess as sp
> >
On 22 Mai, 09:38, moijes12 wrote:
> I need to get the details of Local Area connection information(network
> interface) like packets sent,packets recieved,duration etc. I have to
> do this in Windows using python.
>>> import subprocess as sp
>>> p = sp.Popen("netstat -s", shell=False, bufsize=
On 21 Mai, 20:20, Patrick Maupin wrote:
> There are a lot of commercial programs written in Python. But any
> company which thinks it has a lock on some kind of super secret sauce
> isn't going to use Python, because it's very easy to reverse engineer
> even compiled Python programs.
Decompilin
Hi
I need to get the details of Local Area connection information(network
interface) like packets sent,packets recieved,duration etc. I have to
do this in Windows using python.
I tried looking under the socket module and also googling,but did not
find anything that I could use for windows,though
42 matches
Mail list logo