thanks all for the advice. The reason I was thinking about using java
(or C or something) was that it is a little more secure than
distributing the source code isn't it? And also, from what I know, the
Java virtual machine is more popular (and installed on more computers).
Although it might take me
I have a MixIn class which defines a method foo(), and is then mixed in
with another class by being prepended to that class's __bases__ member,
thus overriding that class's definition of foo(). In my application
though it is necessary for the MixIn's foo() to call the overridden
foo(). How can I
Hi All--
Paul Rubin wrote:
>
> "Xah Lee" <[EMAIL PROTECTED]> writes:
> > but are there other solutions?
> >
> > Xah
>
> Geez man, haven't you been around long enough to read the manual?
>
> def f(*a): return a
>
He's been around long enough to rewrite the manual.
Metta,
-ly y'rs,
Ivan
--
On Fri, 17 Jun 2005 20:00:39 -0400, Roy Smith <[EMAIL PROTECTED]> wrote:
>This sounds like a very C++ view of the world. In Python, for example,
>exceptions are much more light weight and perfectly routine.
The problem with exceptions is coping with partial
updatd state. Suppose you call a comp
cpunerd4 ha scritto:
> thanks all for the advice. The reason I was thinking about using java
> (or C or something) was that it is a little more secure than
> distributing the source code isn't it?
As in "protecting your code from prying eyes"?
Then java is exactly like python: I can distribute a
Hi,
I'm writing a program which requires the use of three serial ports and
one parallel port. My application has a scanning devices on each port,
which I can access fine with pyserial. However, I'm unsure of how
exactly I should be designing the program, I thought I could use
threading to start
"Chinook" wrote:
> I understand what you are saying. The point I'm messing up my head with
> though, is when the entity (tree node in my case or variable record content
> deconstructing in the aspect example I noted) is not an instance of a class
> already - it is obtained from an external source
| I am starting to play with pysqlite,
| and would like to know if there is a function
| to determine if a table exists or not.
rh0dium
One way to get at a list of table names
in an SQLite data base is to query
the sqlite_master table
import sys
import sqlite
this_db = sy
- Original Message -
From: "Paul Rubin" "http://phr.cx"@NOSPAM.invalid
> "Matthias Kluwe" <[EMAIL PROTECTED]> writes:
> > Hmm. I tried
> >
> > server.sock.realsock.shutdown(2)
> > before server.quit() with the result of
>
> I don't think that's exactly what you want. You need to send a
[EMAIL PROTECTED] wrote:
> Hi,
>
> I'm writing a program which requires the use of three serial ports and
> one parallel port. My application has a scanning devices on each port,
> which I can access fine with pyserial. However, I'm unsure of how
> exactly I should be designing the program, I th
On 2005-06-18, cpunerd4 <[EMAIL PROTECTED]> wrote:
> thanks all for the advice. The reason I was thinking about using java
> (or C or something) was that it is a little more secure than
> distributing the source code isn't it?
A little. Not much. You don't have to distribute Python
source code,
On 2005-06-18, Renato Ramonda <[EMAIL PROTECTED]> wrote:
>> And also, from what I know, the Java virtual machine is more
>> popular (and installed on more computers).
>
> And it is also HUGE, so anyone NOT having it will think twice
> before downloading it only for your app. Python on the other
>
On 2005-06-18, Peter Otten <[EMAIL PROTECTED]> wrote:
>> If you look at C code, at least in my experience the
>> "until" loop is quite rarely used. (I don't see it once in the source
>> to Python 2.4, for example.)
>
> Long time no C?
>
> 'until' in C is actually
>
> do
> statement
> while
On 2005-06-18, Xah Lee <[EMAIL PROTECTED]> wrote:
[...]
> Fuck the python doc wasted my time. Fuck python coders. Each
> time i tried to use python doc and got frustrated because it
> being grossly incompetent, i'll post a message like this, no
> more frequent than once a week. This will go on as
Xah Lee wrote:
> Python documentation,
> [...] Python Reference Manual for more information.
> [...] python doc wasted my time. [...] python coders.
> [...] use python doc
> python community [...] coding in python.
[Sexual explicatives deleted]
And this outburst has exactly _what_ to do with Perl
Xah Lee wrote:
> i wanted to find out if Python supports eval. e.g.
>
> somecode='3+4'
> print eval(somecode) # prints 7
>
> in the 14 hundred pages of python doc, where am i supposed to find
> this info?
Why are you asking in a Perl NG for information about Python?
Or are you also asking your bac
what is this py2exe thing? I think its what i've been looking
for...(and inno setup was in my plans (or maby null soft
installer...)). Another reason I was thinging java was because you can
run it in the browser.
Is py2exe included? Where can I find it?
thanks,
cpunerd4
--
http://mail.python.org
rh0dium wrote:
> Hi all,
>
> I am starting to play with pysqlite, and would like to know if there is
> a function to determine if a table exists or not.
You can try to access the table in a try-catch block, something like:
cur.execute("select * from tablename where 1=2")
and check if it fails.
"John Reese" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Why hello there ha ha.
>
> I have got in the habit of testing the types of variables with
> isinstance and the builtin type names instead of using the types
> module, as was the style back around Python 2.1. That is, rathe
- Original Message -
From: "Remi Villatel" <[EMAIL PROTECTED]>
> There is always a "nice" way to do things in Python but this time I can't
> find one.
> So far, all I got is:
>
> while True:
> some(code)
> if final_condition is True:
> break
> #
> #
>
> What I don't find so "nice" is t
On 2005-06-18, cpunerd4 <[EMAIL PROTECTED]> wrote:
> what is this py2exe thing?
> Is py2exe included?
> Where can I find it?
http://www.google.com/search?q=py2exe
--
Grant Edwards grante Yow! I just bought
at FLATB
On Sat, 18 Jun 2005 15:00:02 +0200, Renato Ramonda wrote:
> cpunerd4 ha scritto:
>> thanks all for the advice. The reason I was thinking about using java
>> (or C or something) was that it is a little more secure than
>> distributing the source code isn't it?
>
> As in "protecting your code from
Something like this will do what you want to achieve. I think the above
does as well what you want, but to me my solution is much more clear
class Base(object):
def foo(self):
print 'Base foo'
class Derived(Base):
def foo(self):
super(Derived, self)
what I mean by secure is that no one can steal the code. I want to
create comercial applications eventually. (although I will work on open
source I hope, so don't get mad at me) and calling me cpunerd4 will be
fine.
--
http://mail.python.org/mailman/listinfo/python-list
cpunerd4 ha scritto:
>
> Another reason I was thinging java was because you can
> run it in the browser.
Bad idea in 99% of the cases: applets are evil.
--
Renato
Usi Fedora? Fai un salto da noi:
http://www.fedoraitalia.org
--
http://mail.python.org/mailman/list
Grant Edwards ha scritto:
> Python is required and Java is optional and not installed by
> default in the Linux distros I'm familiar with.
>
> I don't know how many Windows systems have Java installed.
> I don't think any of mine do.
It's pretty much the other way round: java CANNOT be included
cpunerd4 wrote:
> what I mean by secure is that no one can steal the code. I want to
> create comercial applications eventually. (although I will work on open
> source I hope, so don't get mad at me) and calling me cpunerd4 will be
> fine.
Commercial applications don't suffer from code-stealing. T
Hi,
I have a problem with L10N of an app, I'm unable to retrieve default
language in mac while this works for both Linux and Windows:
LOCALE=locale.getdefaultlocale()
Where can I find default system settings with mac?
--
dariosky
http://dariosky.altervista.org/
--
http://mail.python.org/mail
On 2005-06-18, cpunerd4 <[EMAIL PROTECTED]> wrote:
> what I mean by secure is that no one can steal the code.
Distributing bytecode (Java or Python) vs. source only makes
little difference if your code is really worth stealing.
Distributing compiled C code will make it a little more
difficult, bu
even so,
crackers have a harder time getting into compiled programs rather than
intepreted languages. I know hiding the code won't stop all crackers
but it will stop some of the casual theifs won't it? It's not so much
that they could steal code, it's that they could alter it and release
it somewer
Quoth Peter Otten <[EMAIL PROTECTED]>:
...
| 'until' in C is actually
|
| do
| statement
| while (expression);
Oops. Well, QED - I sure don't need it often.
Donn Cave, [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
by the way, you guys have talked me out of java. Im thinking about this
py2exe thing. (anyother suggestions)
I like this list. :)
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 18 Jun 2005 13:35:16 -, Grant Edwards <[EMAIL PROTECTED]>
wrote:
>AFAICT, the main use for do/while in C is when you want to
>define a block of code with local variables as a macro:
When my job was squeezing most out of the CPU (videogame
industry) I remember that the asm code generat
Kalle Anke wrote:
> On Sat, 18 Jun 2005 09:26:23 +0200, [EMAIL PROTECTED] wrote
> (in article <[EMAIL PROTECTED]>):
>
> > I am sitting in front of a nice new PowerBook portable which has OS
> > 10.4 installed. The Python.org web site says that Apple has shipped OS
> > 10.4 with Python 2.3.5 inst
[EMAIL PROTECTED] wrote:
> Hello, fellow programmers!
>
> I am sitting in front of a nice new PowerBook portable which has OS
> 10.4 installed. The Python.org web site says that Apple has shipped OS
> 10.4 with Python 2.3.5 installed. How exactly do I access this? I
> have searched through the
In comp.lang.perl.misc Xah Lee <[EMAIL PROTECTED]> wrote:
> i wanted to find out if Python supports eval. e.g.
> somecode='3+4'
> print eval(somecode) # prints 7
> in the 14 hundred pages of python doc, where am i supposed to find this
> info?
By using the index - it's an alphabetical list of
On Sat, 18 Jun 2005 17:07:04 +0200, [EMAIL PROTECTED] wrote
(in article <[EMAIL PROTECTED]>):
> How are the development tools for the Mac? I'll use IDLE if it's
> available, but I like Scintilla better.
Don't know ... I think that MacPython is perhaps what you're looking for.
Personally, I use
I use datetime C API in extension module generated with SIP. But SIP
break the code into several .cpp files compiled separately and
PyDateTimeAPI used by all macros constituting public interface is
declared static.
The current solution is to define my own functions in main module as
workaround:
[Vibha]
> I know sets have been implemented using dictionary but
> I absolutely need to have a set of dictionaries...any
> ideas how to do that?
Yes. Create a dictionary subclass that is hashable. Be sure not to
mutate it after using it in a set.
>>> class FrozenDict(dict):
def __hash__(s
101 - 139 of 139 matches
Mail list logo