On May 21, 9:12 pm, Ben Finney wrote:
> a...@pythoncraft.com (Aahz) writes:
> > In article
> > ,
> > 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
On May 21, 8:45 pm, a...@pythoncraft.com (Aahz) wrote:
> In article
> ,
> 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 r
On 21 Mai, 16:20, Grant Edwards wrote:
> I still don't get it.
>
> What about Go, exactly, do people see as Phython-like?
>
> Go doesn't seem to have any of the salient features (either syntactic
> or semantic) of Python other than garbage collection.
>
> How is Go not just warmed-over Java?
Go
On 21 Mai, 12:21, Deep_Feelings wrote:
> 1- where are the programs that is written in python ?
You could search for them with Google and download your results
Bittorrent.
> is python a valid practical programming language ?
No, it is probably Turing incomplete.
--
http://mail.python.org/mai
keobox wrote:
> On 20 Mag, 12:58, Thomas Lehmann wrote:
>> > The question is:
>> > Is there a limit on the number of entries a dictionary can have i
>> > jython?
>>
>> > I wrote a little app where my data is stored in a huge dictionary
>> > (11746 entries) generated with a python script.
>> > Whe
On May 21, 3:21 am, Deep_Feelings wrote:
> please don't mention programs where python was used as a glue ,those
> programs are not actually written in python.
I hate to answer a troll, but I'll just mention that when people talk
about a "glue language", they're not talking about using some Python
After starting pdb.set_trace(), python doens't show line number. Could
you let me know how to print the number by default so that I know
where the current line is?
--
Regards,
Peng
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, May 21, 2010 at 8: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
>>> h
On May 21, 8:20 am, Grant Edwards wrote:
> In a recent Reg article, there's yet more yammering on about how Go is
> somehow akin to Python -- referring to Go as a "Python-C++" crossbreed.
>
> http://www.theregister.co.uk/2010/05/20/go_in_production_at_google/
>
> I still don't get it.
>
> What abo
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/Applications
>> i could not see
> Except you can't re-raise them.
>
Yes, I should have noted that in the original post:
>>> raise RuntimeError, 'X', wrapped_traceback
Traceback (most recent call last):
File "", line 1, in
TypeError: raise: arg 3 must be a traceback or None
Does someone know where the thread went about it b
a...@pythoncraft.com (Aahz) writes:
> In article
> ,
> 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 enginee
On 01:42 am, tjre...@udel.edu wrote:
On 5/21/2010 7:22 PM, Zac Burns wrote:
Why can't I inherit from traceback to 'spoof' tracebacks?
Because a) they are, at least in part, an internal implementation
detail of CPython,
But you can just say this about anything, since there is no Python
spec
In article ,
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.
That's not alwa
On 5/21/2010 7:22 PM, Zac Burns wrote:
Why can't I inherit from traceback to 'spoof' tracebacks?
Because a) they are, at least in part, an internal implementation detail
of CPython, and b) even if you could, Python would use the builtin
original with exceptions, and c) you can probably do any
In article <290f2f31-0893-469a-a12c-49eff9ffb...@y21g2000vba.googlegroups.com>,
eric_dex...@msn.com wrote:
>
>I noticed that that the link to that section is gone. The page
>seems to be there when I use the url that is stored on my computer.
What are you talking about?
--
Aahz (a...@pythoncraft
On Fri, 21 May 2010 18:01:58 -0400, python wrote:
> It seems to me that there must be some public domain collection of
> translated strings that could be searched for 1:1 or fuzzy translations
> for strings commonly used in software applications?
There must be? Is that a law of nature or somethin
Peter Pearson wrote:
> If it's important for the function to execute quickly for large n,
> you might get a useful speedup by testing only every ninth integer,
Our standards for "quickly" and "large" seem kind of thin.
> I suspect that further applications of number theory would
> provide additio
Why can't I inherit from traceback to 'spoof' tracebacks? I would like to
create a traceback that is save-able to re-raise exceptions later without
leaking all the locals. (I'm sure this idea has been discussed before but I
can't find it anymore.)
class Traceback(types.TracebackType): pass
TypeErr
On 5/21/10, Chris Rebert wrote:
> On Fri, May 21, 2010 at 1:09 PM, Alex Hall wrote:
>> On 5/21/10, Ethan Furman wrote:
>>> Alex Hall wrote:
On 5/20/10, alex23 wrote:
I have since updated each ship's
__init__ to accept all the arguments that Craft accepts so that I can
suppor
It seems to me that there must be some public domain collection
of translated strings that could be searched for 1:1 or fuzzy
translations for strings commonly used in software applications?
Is there a technical and copyright friendly (LGPL licensed?) way
to query services like Google's Translator
I wrote a first script using Tkinter. As I am new to its
use, I am only just feeling my way around. I would very
much like comments on the design of the script (and in fact
any other comments on my code would also be very welcome).
I have it posted (with syntax coloring) at:
http://kasterma.wo
On Fri, May 21, 2010 at 1:09 PM, Alex Hall wrote:
> On 5/21/10, Ethan Furman wrote:
>> Alex Hall wrote:
>>> On 5/20/10, alex23 wrote:
>>> I have since updated each ship's
>>> __init__ to accept all the arguments that Craft accepts so that I can
>>> support all optional arguments,
>>
>> Ick. Now
On 5/21/10, Ethan Furman wrote:
> Alex Hall wrote:
>> On 5/20/10, alex23 wrote:
>> I have since updated each ship's
>> __init__ to accept all the arguments that Craft accepts so that I can
>> support all optional arguments,
>
> Ick. Now you'll have to change several things if you make one change
On Fri, 2010-05-21 at 08:50 -0700, timo verbeek wrote:
> What is the easiest way in python to create a addon system?
> I found to easy ways:
> * using a import system like this:
>for striper in stripers:
> if striper["enabled"]:
> exec("from strip import %s as _x"%stripe
Alex Hall wrote:
On 5/20/10, alex23 wrote:
I have since updated each ship's
__init__ to accept all the arguments that Craft accepts so that I can
support all optional arguments,
Ick. Now you'll have to change several things if you make one change to
the Craft class. Better to do it this wa
On Fri, May 21, 2010 at 11:49 AM, Chris Rebert wrote:
> On Fri, May 21, 2010 at 11:38 AM, Alex Hall wrote:
>> On 5/21/10, Christian Heimes wrote:
>>> Am 21.05.2010 04:56, schrieb Alex Hall:
Hi all,
I am now trying to allow my classes, all of which subclass a single
class (if that
On 05/21/2010 01:40 PM, geremy condra wrote:
See http://www.python.org/about/success/
thankx for reply.
from that list i have a feeling that python is acting only as "quick
and dirty work" nothing more !
Yeah, there's not really a lot of industry support. If only we could
get a huge search e
Alex Hall wrote:
> On 5/21/10, Christian Heimes wrote:
>> Am 21.05.2010 04:56, schrieb Alex Hall:
>>> Hi all,
>>> I am now trying to allow my classes, all of which subclass a single
>>> class (if that is the term), to provide optional arguments. Here is
>>> some of my code:
>>>
>>> class Craft():
On Fri, May 21, 2010 at 11:38 AM, Alex Hall wrote:
> On 5/21/10, Christian Heimes wrote:
>> Am 21.05.2010 04:56, schrieb Alex Hall:
>>> Hi all,
>>> I am now trying to allow my classes, all of which subclass a single
>>> class (if that is the term), to provide optional arguments. Here is
>>> some
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/Applications
i could not see many programs written in python (i will be interested
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, 'Cannot add or update a child row: a foreign
key constraint fails (`sea
On Fri, May 21, 2010 at 4:12 AM, Deep_Feelings wrote:
> On May 21, 1:35 pm, Simon Brunning wrote:
>> On 21 May 2010 11:21:11 UTC+1, Deep_Feelings wrote:
>>
>> Seehttp://www.python.org/about/success/
>
> thankx for reply.
>
> from that list i have a feeling that python is acting only as "quick
>
On 5/21/10, Christian Heimes wrote:
> Am 21.05.2010 04:56, schrieb Alex Hall:
>> Hi all,
>> I am now trying to allow my classes, all of which subclass a single
>> class (if that is the term), to provide optional arguments. Here is
>> some of my code:
>>
>> class Craft():
>> def __init__(self,
>>
On Fri, May 21, 2010 at 5:50 PM, timo verbeek wrote:
> What is the easiest way in python to create a addon system?
> I found to easy ways:
> * using a import system like this:
> for striper in stripers:
> if striper["enabled"]:
> exec("from strip import %s as _x"%striper["s
On May 21, 5:21 am, Deep_Feelings wrote:
> i could not see many programs written in python
Well you could try PyPi, or even a search on googlecode.
> (i will be interested
> more in COMMERCIAL programs written in python ).
What do you mean by commercial, and why?
> and to be honest ,i
> tried
On 5/21/2010 7:12 AM, Deep_Feelings wrote:
On May 21, 1:35 pm, Simon Brunning wrote:
On 21 May 2010 11:21:11 UTC+1, Deep_Feelings wrote:
Seehttp://www.python.org/about/success/
thankx for reply.
from that list i have a feeling that python is acting only as "quick
and dirty work" nothing mo
You did provide a very constructive answer and I do apologize for
generalizing the group or all the posts. And while the original poster
did not seem to have made much of an effort, the tone of the initial
response of that thread turns off anyone else who may be willing to
make that effort.
I also
Am 21.05.2010 04:56, schrieb Alex Hall:
Hi all,
I am now trying to allow my classes, all of which subclass a single
class (if that is the term), to provide optional arguments. Here is
some of my code:
class Craft():
def __init__(self,
name,
isAircraft=False,
id=helpers.id(),
hits=0,
On 5/21/10, Terry Reedy wrote:
> On 5/20/2010 10:56 PM, Alex Hall wrote:
>
> A couple of style comments for you to consider.
>
>> class Craft():
>> def __init__(self,
>> name,
>> isAircraft=False,
>> id=helpers.id(),
>> hits=0,
>> weapons=[]):
>
> Not indenting lines after def makes th
On 5/20/2010 10:56 PM, Alex Hall wrote:
A couple of style comments for you to consider.
class Craft():
def __init__(self,
name,
isAircraft=False,
id=helpers.id(),
hits=0,
weapons=[]):
Not indenting lines after def makes the code harder to read for me, and,
I expect, many others h
Hi;
When I try to execute this code from my Python script, I get this error:
Traceback (most recent call last):
File
"/var/www/html/creative.vi/clients/sea-flight/reservations/create_edit_bags3.py",
line 38, in ?
create_edit_bags3()
File
"/var/www/html/creative.vi/clients/sea-flight/res
Christian Heimes wrote:
MRAB wrote:
I think you need to 'commit' any changes to do to the database.
Yeah, you are right.
Also some RDBMS don't support DDL and DML statements inside one
transaction. You may need to commit and begin after the create table DDL.
Christian
Er, yes. General
On May 21, 3: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 pagehttp://wiki.python.org/moin/Applications
> i could not see many programs written in python (i will be intere
In article ,
Terry Reedy wrote:
>On 5/19/2010 3:17 AM, CM wrote:
>> I love how he just copied and pasted the assignment without any other
>> remarks.
>
>Yeah, that way he did not mess it up ;-).
OTOH it may be a copyright infringement. Or is posting an assignment to a
newsgroup "fair use"?
Groe
Python 2.6: Is there a programming technique or 3rd party
formatting module that supports string.Template.safe_substitute()
type string substituion with % type formatting rules for width,
decimals, justification, etc?
Or do I need to use a 3rd party template engine to get the best
of both worlds?
On 20 Mag, 12:58, Thomas Lehmann wrote:
> > The question is:
> > Is there a limit on the number of entries a dictionary can have i
> > jython?
>
> > I wrote a little app where my data is stored in a huge dictionary
> > (11746 entries) generated with a python script.
> > When I try to import the di
What is the easiest way in python to create a addon system?
I found to easy ways:
* using a import system like this:
for striper in stripers:
if striper["enabled"]:
exec("from strip import %s as _x"%striper["striper"])
string = _x.start(string)
* using exec
In article ,
Grant Edwards wrote:
>
>Lest my allusions to Fortran IV be lost upon the less grizzled, only
>the first 6 characters were significant in Fortran IV identifiers, and
>removing all of the vowels from a longer word was an idiomatic way to
>create an identifier with a length <= 6.
>
>IIR
On Fri, May 21, 2010 at 11:20 PM, Grant Edwards wrote:
> In a recent Reg article, there's yet more yammering on about how Go is
> somehow akin to Python -- referring to Go as a "Python-C++" crossbreed.
>
> http://www.theregister.co.uk/2010/05/20/go_in_production_at_google/
>
> I still don't get it
In a recent Reg article, there's yet more yammering on about how Go is
somehow akin to Python -- referring to Go as a "Python-C++" crossbreed.
http://www.theregister.co.uk/2010/05/20/go_in_production_at_google/
I still don't get it.
What about Go, exactly, do people see as Phython-like?
Go does
Chad Kellerman wrote:
> On Fri, May 21, 2010 at 8:07 AM, Chad Kellerman
> wrote:
>
>>
>>
>> On Fri, May 21, 2010 at 7:50 AM, Peter Otten <__pete...@web.de> wrote:
>>
>>> Chad Kellerman wrote:
>>>
>>> > Python users,
>>> > I am parsing an AIX trace file and creating a dictionary
>>> contain
On Fri, May 21, 2010 at 8:07 AM, Chad Kellerman wrote:
>
>
> On Fri, May 21, 2010 at 7:50 AM, Peter Otten <__pete...@web.de> wrote:
>
>> Chad Kellerman wrote:
>>
>> > Python users,
>> > I am parsing an AIX trace file and creating a dictionary
>> containing
>> > keys (PIDS) and values (a lis
On Thu, 2010-05-20 at 22:58 -0700, Dennis Lee Bieber wrote:
> 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
On Fri, 2010-05-21 at 11:37 +0100, Martin P. Hellwig wrote:
> On 05/21/10 11:21, Deep_Feelings wrote:
> > however by having a look at this page
> > http://wiki.python.org/moin/Applications
> > i could not see many programs written in python (i will be interested
> > more in COMMERCIAL programs wri
On Fri, 2010-05-21 at 02:10 -0700, rav wrote:
> I had similar problem with SimpleXMLRPCServer
> Create the request handler class
> class ExtendedXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
> # originally this one was slowing down my server A LOT due to DNS
> settings!!!
> def log_requ
On 5/21/10, Peter Otten <__pete...@web.de> wrote:
> Alex Hall wrote:
>
>> Hi all,
>> I am now trying to allow my classes, all of which subclass a single
>> class (if that is the term), to provide optional arguments. Here is
>> some of my code:
>>
>> class Craft():
>> def __init__(self,
>> name,
>
On Fri, May 21, 2010 at 7:50 AM, Peter Otten <__pete...@web.de> wrote:
> Chad Kellerman wrote:
>
> > Python users,
> > I am parsing an AIX trace file and creating a dictionary containing
> > keys (PIDS) and values (a list of TIDS). With PIDS being unique process
> > ids
> > and TIDS, being
Chad Kellerman wrote:
> Python users,
> I am parsing an AIX trace file and creating a dictionary containing
> keys (PIDS) and values (a list of TIDS). With PIDS being unique process
> ids
> and TIDS, being a list of thread ids. My function populates the keys so
> that they are unique, but
On Freitag 21 Mai 2010, Jake b wrote:
> > I don't know of any big game written in python. ( meaning
> > python code, using c++ libs
would you call 8702 python statements big? If so,
Kajongg would be a candidate.
--
Wolfgang
--
http://mail.python.org/mailman/listinfo/python-list
On 21 May 2010 12:12:18 UTC+1, Deep_Feelings wrote:
> from that list i have a feeling that python is acting only as "quick
> and dirty work" nothing more !
Really?
Well, in any case, I can tell you that I know of a number of large
commercial web sites built with Django. I just can't tell you wha
On Fri, May 21, 2010 at 9:12 PM, Deep_Feelings wrote:
> thankx for reply.
>
> from that list i have a feeling that python is acting only as "quick
> and dirty work" nothing more !
>
You might have just offended a lot of people on the list here
Cheers,
Xav
--
http://mail.python.org/mailman
Python users,
I am parsing an AIX trace file and creating a dictionary containing
keys (PIDS) and values (a list of TIDS). With PIDS being unique process ids
and TIDS, being a list of thread ids. My function populates the keys so
that they are unique, but my list contains duplicates.
Deep_Feelings wrote:
> On May 21, 1:35 pm, Simon Brunning wrote:
>> On 21 May 2010 11:21:11 UTC+1, Deep_Feelings wrote:
>>
>> Seehttp://www.python.org/about/success/
>
> thankx for reply.
>
> from that list i have a feeling that python is acting only as "quick
> and dirty work" nothing more !
T
On May 21, 1:35 pm, Simon Brunning wrote:
> On 21 May 2010 11:21:11 UTC+1, Deep_Feelings wrote:
>
> Seehttp://www.python.org/about/success/
thankx for reply.
from that list i have a feeling that python is acting only as "quick
and dirty work" nothing more !
--
http://mail.python.org/mailman/li
Mike 'Fuzzy' Partin, 21.05.2010 08:37:
Optimized String-like Object is kind of a misnomer in that, the object
provided is a subclass of the base str type, adding optimized (Cython
bindings to the standard (POSIX) libc regex and string functions)
match() and sub() methods.
Hi,
could you give an
Networking can be hard. I'd suggest checking out these libs.
pygame mastermind:
http://www.pygame.org/project-Mastermind+Networking+Lib-859-1773.html
podSixNet : http://mccormick.cx/projects/PodSixNet/
twisted: http://wiki.python.org/moin/Twisted-Examples
lots of references in the answers to this
did this not go to the list? Arg, reply does in other mailing list.
On Fri, May 21, 2010 at 5:48 AM, Jake b wrote:
> I took it as game-domain only question:
> I don't know of any big game written in python. ( meaning python code,
> using c++ libs. ) Verses games that at their is in c++ , calling
On 05/21/10 11:21, Deep_Feelings wrote:
python is not a new programming language ,it has been there for the
last 15+ years or so ? right ?
Yeah about the same as Java
however by having a look at this page http://wiki.python.org/moin/Applications
i could not see many programs written in py
On 21 May 2010 11:21:11 UTC+1, Deep_Feelings wrote:
> 1- where are the programs that is written in python ?
> 2- python is high productivity language : why there are no commercial
> programs written in python ?
See http://www.python.org/about/success/
--
Cheers,
Simon B.
--
http://mail.python.
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/Applications
i could not see many programs written in python (i will be interested
more in COMMERCIAL programs written in python
On May 20, 1:54 am, "kak...@gmail.com" wrote:
> Hi to all,
> i need some hints about a console application i' m trying.
> I want to make it act as a client and as a server at a same time.
> And since it is a console application i' m using cmd library.
> I want something that works like asterisk. w
On May 7, 7:33 am, Dodo wrote:
> Le 01/05/2010 12:52, Dodo a écrit :
>
>
>
>
>
> > Le 30/04/2010 17:52, Antoine Pitrou a écrit :
> >> Le Thu, 29 Apr 2010 23:37:32 +0200, Dodo a écrit :
> >>> I don't get a thing.
> >>> Now with the fix :
> >>> All browsers shows a different thing, but not the i
I had similar problem with SimpleXMLRPCServer
Create the request handler class
class ExtendedXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
# originally this one was slowing down my server A LOT due to DNS
settings!!!
def log_request(self, *args):
pass
and put it in your Simple
Neal wrote:
> I'm doing the MIT OpenCourseWare class that this assignment hails from
> and I don't doubt that its a relatively common assignment. Upon
> searching for it for some ideas of why my program wouldn't work one of
> the top results is this a thread from this group full of derision and
>
Hi guys,
I found a solution myself in O'Reilly's Security Power Tools. It works
seamlessly as follows:
from socket import *
SO_ORIGINAL_DST = 80
s = socket(AF_INET, SOCK_STREAM)
s.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1)
s.bind(('192.168.255.254', 80))
s.listen(1)
conn, addr = s.accept()
dst = c
Alex Hall wrote:
> Hi all,
> I am now trying to allow my classes, all of which subclass a single
> class (if that is the term), to provide optional arguments. Here is
> some of my code:
>
> class Craft():
> def __init__(self,
> name,
> isAircraft=False,
> id=helpers.id(),
> hits=0,
> weapon
On Thu, 20 May 2010 23:35:01 -0400, Alex Hall wrote:
>> You overrode the __init__method from the superclass.
>
> I know, I thought I had to in order to make all of Craft's attribs
> available to the Battleship. Is that not the case?
No, the opposite in fact.
One of the basic features of objects
I'm doing the MIT OpenCourseWare class that this assignment hails from
and I don't doubt that its a relatively common assignment. Upon
searching for it for some ideas of why my program wouldn't work one of
the top results is this a thread from this group full of derision and
sarcasm. Believe me I u
79 matches
Mail list logo