George Sakkis wrote:
> Why does slicing a tuple returns a new tuple instead of a view of the
> existing one, given that
> tuples are immutable ?
really?
>>> a = 1, 2, 3
>>> b = a[:]
>>> a is b
True
--
http://mail.python.org/mailman/listinfo/python-list
Philippe C. Martin wrote:
> class Debug_Stderr:
> __m_text = ''
> __m_log_text = None
> __m_dbg = None
> __m_refresh_count = 0
I don't see the benefit in 99.9% of cases for making class variables
like this "private". If you don't want people to use them, simply use
the standard conventi
Fredrik Lundh wrote:
George Sakkis wrote:
Why does slicing a tuple returns a new tuple instead of a view of the existing
one, given that
tuples are immutable ?
really?
a = 1, 2, 3
b = a[:]
a is b
True
My impression was that full tuple copies didn't actually copy, but that
slicing a subset of a t
On Mon, 24 Jan 2005 18:45:46 +0100
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote:
> George Sakkis wrote:
>
> > Why does slicing a tuple returns a new tuple instead of a view of
> > the existing one, given that tuples are immutable ?
>
> really?
Well... seems like this case is optimized to return th
I use "__"for private variables because I must have read on net it was
the way to do so - yet this seems to have changed - thanks:
http://www.network-theory.co.uk/docs/pytut/tut_77.html
As far as the specific stderr reroute example - I just grabbed some of
my code and forgot to get rid of that
On Mon, 24 Jan 2005 18:45:46 +0100
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote:
> George Sakkis wrote:
>
> > Why does slicing a tuple returns a new tuple instead of a view of
> > the existing one, given that tuples are immutable ?
>
> really?
Well... seems like this case (slicing the whole tuple
Steven Bethard wrote:
>a = 1, 2, 3
>b = a[:]
>a is b
>> True
>
> My impression was that full tuple copies didn't actually copy, but that
> slicing a subset of a
> tuple might. Not exactly sure how to test this, but:
>
> py> a = 1, 2, 3
> py> a[:2] is a[:2]
> False
yup. and to figu
Fredrik Lundh wrote:
Sion Arrowsmith wrote:
I'm probably not thinking deviously enough here, but how are you
going to exploit an eval() which has very tightly controlled
globals and locals (eg. eval(x, {"__builtins__": None}, {}) ?
try this:
eval("'*'*100*2*2*2*2*2*2*2*2*2")
I updated the s
Hi all,
How can I call python code from my C# code. One thing is to make an
.exe file of the python program and then try to call it from my C#
code. But I don't like that idea. Is there any other way to do this.
Like making a .dll file from the python code and somehow call it from
C# program.But I
paritosh mahana wrote:
How can I call python code from my C# code. One thing is to make an
.exe file of the python program and then try to call it from my C#
code. But I don't like that idea. Is there any other way to do this.
Like making a .dll file from the python code and somehow call it from
C
[Tim]
>> I'll note that one fairly obvious pattern works very well for weakrefs
>> and __del__ methods (mutatis mutandis): don't put the __del__ method
>> in self, put it in a dead-simple object hanging *off* of self. Like
>> the simple:
>>
>> class BTreeCloser:
>> def __init__(self, btree):
Peter Hansen wrote:
paritosh mahana wrote:
How can I call python code from my C# code.
[snip]
You could use ctypes or the pywin32 package to provide your
Python code with an ActiveX interface. Then you could just
use it via COM, like any other COM object. Lots of references
available via Google
Fredrik Lundh wrote:
Steven Bethard wrote:
My impression was that full tuple copies didn't actually copy, but that slicing a subset of a
tuple might. Not exactly sure how to test this, but:
py> a = 1, 2, 3
py> a[:2] is a[:2]
False
yup. and to figure out why things are done this way, consider th
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Martyn Quick) wrote:
>On my desk here at work I have a Mac G4 running Mac OS X v10.2.8.
>
>When I go into a terminal and type "python" up comes a nice python
>interface and all seems great. However when I type "import Tkinter"
>I'm greeted by th
In article <[EMAIL PROTECTED]>,
"Tonino" <[EMAIL PROTECTED]> wrote:
>yeah - had a look at createfilehandler() - was a bit confusing - but
>your example helps ;)
Be warned that createfilehandler does not work on Windows, though it
works well on unix and MacOS X.
So my suggestion is one to try a
"Fuzzyman" <[EMAIL PROTECTED]> writes:
> I also feel the lack of a standard cryptography module in the core...
> even a *basic* one. At least rotor provided that, before it was deprecated.
Rotor was insecure and really shouldn't have been used. If you need
crypto in pure Python, try this:
http
On Mon, 24 Jan 2005 17:06:52 +0100, Brane <[EMAIL PROTECTED]> wrote:
> please advice
You can use ncurses via cygwin.
There are DOS ports too but I couldn't get any of them to
work on my XP box, YMMV...
Search the Vaults of Parnassus for the DOS Stuff.
Alan G.
Author of the Learn to Program webs
thanks again for all the help! especially the advice on ideas of
tracking down the memory leak :). (sorry for not mentioning it
earlier...i had thought deleting everything might be a quick and dirty
way short-term fix. :P)
best,
-Johnny
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 24 Jan 2005 00:31:17 -0700, Steven Bethard <[EMAIL PROTECTED]> wrote:
>Bengt Richter wrote:
>> So, e.g., for
>>
>> >>> presets = dict(a=1, b=2, deftime=__import__('time').ctime())
>>
>> in the decorator args, the next version will act as if the decorated
>> function had the source code
I'm not sure whether it's worth learning python from a book on 2.1 because
of the changes that were made especially in 2.2 (see
http://www.python.org/doc/2.2.1/whatsnew/,
http://www.python.org/2.2.1/descrintro.html).
I don't know of a specific e-book on Python although there are several good
o
Textura LLC is currently looking to hire experienced Python software
developers. We are a new and quickly growing business process service
provider based in the Lake Forest/Lake Bluff, IL area.
We are a very well funded company, we have launched our services, and
we are experiencing explosive sal
The cpython implementation stores tuples in memory like this:
[common fields for all Python objects]
[common fields for all variable-size python objects, including tuple size]
[fields specific to tuple objects, if any]
[array of PyObject*, one for each item in the tuple]
This way of
Hi,
I am learning and pretty new to Python and I hope your guys can give me
a quick start.
I have an about 1G-byte binary file from a flat panel x-ray detector; I
know at the beggining there is a 128-byte header and the rest of the
file is integers in 2-byte format.
What I want to do is to save
Albert Tu wrote:
> I am learning and pretty new to Python and I hope your guys can give me
> a quick start.
>
> I have an about 1G-byte binary file from a flat panel x-ray detector; I
> know at the beggining there is a 128-byte header and the rest of the
> file is integers in 2-byte format.
>
> Wh
I tried to run the following piece of code:
Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> o = object()
>>> o.a = 5
Traceback (most recent call last):
File "", line 1, in ?
AttributeError:
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Steven Bethard wrote:
>
> >a = 1, 2, 3
> >b = a[:]
> >a is b
> >> True
> >
> > My impression was that full tuple copies didn't actually copy, but that
> > slicing a subset of a
> > tuple might. Not exactly
Gilles Arnaud wrote:
> Hello,
>
> I've got a nasty bug and no idea to deal with :
>
> here is the method :
Big snip. The Python code is unlikely to be your problem.
> and the trace
>
> in None [(-2.0, 2.0), (-2.0, 2.0)] [0.1385039192456847,
> 0.87787941093093491] 2 2
> [0.1385039192456847, 0.8
On Mon, 24 Jan 2005 12:17:13 -0600, Philippe C. Martin wrote:
> I use "__"for private variables because I must have read on net it was the
> way to do so - yet this seems to have changed -
It's still as true as ever, at least in terms of language support, it's
just that the Python community, and
Mark Fanty wrote:
In perl, I might do (made up example just to illustrate the point):
if(/add (\d+) (\d+)/) {
do_add($1, $2);
} elsif (/mult (\d+) (\d+)/) {
do_mult($1,$2);
} elsif(/help (\w+)/) {
show_help($1);
}
or even
do_add($1,$2) if /add (\d+) (\d+)/;
do_mult($1,$2) if /mult (\d+) (\d+)
George Sakkis wrote:
Fair enough. So perhaps the question is whether such cases are more regular
than something like:
a = give_me_a_huge_tuple()
slices = [a[i:j] for i in xrange(len(a)) for j in xrange(i+1, len(a)+1)]
I believe the general usage of tuples tends to mean that
"give_me_a_huge_tuple()
I wanted to make a list index work as the index of the data in the
database. something like
database:
idx
item_description
item_value
being imported to my program as:
x[idx][0]= item_description
x[idx][1]= item_value
the problem is that there will be some hundred items and possible the
idx wil v
[Note: this is a 2nd attempt at posting reply to Martin's message,
since the first one didn't reach the server. It's a rewrite from memory
but says about the same thing as the other attempt. --Paul]
"Martin v. Löwis" <[EMAIL PROTECTED]> writes:
> Paul Rubin wrote:
> > If he understood how Python
Hello-
I have a file generated by an HP-9000 running Unix containing form feeds
signified by ^M^L. I am trying to scan for the linefeed to signal
certain processing to be performed but can not get the regex to "see"
it. Suppose I read my input line into a variable named "input"
The following
The data structure you want to use is a dictionary - known as hashmap or
hash or map in other languages. Lets say you have a few objects of type
town that you want to access using their zip, then things could look like
this:
class Town(object):
def __init__(self, zip, cool_clubs):
The real reason behind my using private variables is so they do not
appear in the epydoc generated documentation and confuse my users.
Regards,
Philippe
--
***
Philippe C. Martin
SnakeCard LLC
www.snakecard.com
***
--
http://mail.python.org/m
<[EMAIL PROTECTED]> wrote:
> Maybe we're not thinking about the same problems. Say I'm an app
> writer and I want to use one of your modules. My development
> environment is GNU/Linux, and I want to ship a self-contained app that
> anyone can run without having to download additional components.
On Mon, 24 Jan 2005 15:35:11 -0600, Philippe C. Martin wrote:
> The real reason behind my using private variables is so they do not appear
> in the epydoc generated documentation and confuse my users.
You mean single or double underscores? I just checked and at least epydoc
2.1 doesn't include si
Greg Lindstrom wrote:
> I have a file generated by an HP-9000 running Unix containing form feeds
> signified by ^M^L. I am
> trying to scan for the linefeed to signal certain processing to be performed
> but can not get the
> regex to "see" it. Suppose I read my input line into a variable na
On Mon, 24 Jan 2005 20:26:28 + (UTC), Alan Gauld <[EMAIL PROTECTED]> wrote:
> On Mon, 24 Jan 2005 17:06:52 +0100, Brane <[EMAIL PROTECTED]> wrote:
>> please advice
>
> You can use ncurses via cygwin.
> There are DOS ports too but I couldn't get any of them to
> work on my XP box, YMMV...
Or,
Greg Lindstrom wrote:
I have a file generated by an HP-9000 running Unix containing form feeds
signified by ^M^L. I am trying to scan for the linefeed to signal
certain processing to be performed but can not get the regex to "see"
it. Suppose I read my input line into a variable named "input"
hello,
thanks to all who replied to my post (2005-01-21) - (i can not post
inside the original thread as i get "Unable to retrieve message
[EMAIL PROTECTED]" from googlenews :(
> Do you mean:
> [1,2], [2,3], [3,4], [1,2,3], [2,3,4], [1,3,4]
> (E.g. all elements in the power set except the empty s
"Fredrik Lundh" <[EMAIL PROTECTED]> writes:
> have you tried this, or are you just making things up to be able to
> continue the argument? (hint: it doesn't work; python portability
> means that it's fairly easy to write programs that run on multiple
> platforms, not that they will run on all avai
"George Sakkis" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Why does slicing a tuple returns a new tuple instead of a
> view of the existing one, given that
> tuples are immutable ? I ended up writing a custom
> ImmutableSequence class that does this, but I
> wonder why it is no
<[EMAIL PROTECTED]> wrote
> As an app writer I want to publish code that runs on multiple
> platforms without needing special attention from the end user, and
> preferably without needing special platform-specific attention from
> me.
please answer the question: have you done this? what kind of
I used double underscore because I thought it was the correct way to name
private variables/methods - I will have to change those to single
underscore since that it the current methodology.
A private variable to me:
1) is internal to the processing of a class and needs not be accessed by
external
"Fredrik Lundh" <[EMAIL PROTECTED]> writes:
> please answer the question: have you done this? what kind of programs
> have you successfully delivered as "self-contained apps" for use on arbi-
> trary platforms?
Here's a simple one:
import sha
name = raw_input('Enter your name: ')
print
Krzysztof Stachlewski wrote:
I tried to run the following piece of code:
Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
o = object()
o.a = 5
Traceback (most recent call last):
File "", line 1, i
"Peter Hansen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> George Sakkis wrote:
> > Fair enough. So perhaps the question is whether such cases are more regular
> > than something like:
> > a = give_me_a_huge_tuple()
> > slices = [a[i:j] for i in xrange(len(a)) for j in xrange(i+1
Just learned of this today, so I don't know enough details to judge
its suitability for you:
Durus
http://www.mems-exchange.org/software/durus/
It does not do locking, but alleges to be compact and easy to
understand, so perhaps you could modify it to meet your needs,
or find some other way to h
Philippe C. Martin wrote:
I used double underscore because I thought it was the correct way to name
private variables/methods - I will have to change those to single
underscore since that it the current methodology.
A private variable to me:
1) is internal to the processing of a class and needs not
On Monday 24 January 2005 03:32 pm, Greg Lindstrom wrote:
> I also tried to create a ^M^L (typed in as Q M L) but that
> gives me a syntax error when I try to run the program (re does not like
> the control characters, I guess). Is it possible for me to pull out the
> formfeeds in a straightfo
"BOOGIEMAN" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
I found some e-book about Python 2.1, I want to print it but just to check
first if sintax of Python 2.1 is same as 2.4 ? Also does anybody know
where
can I download any newer Python related e-book, because there isn't any
p
"Terry Reedy" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Aside from the problem of not being able to delete the underlying object,
> the view object for a tuple would have to be a new type of object with a
> new set of methods.
It *could*, but it doesn't have to. One can repre
I agree with you, there's a crying need for something like that and
there's no single "one obvious way to do it" answer.
Have you looked at bsddb? See also www.sleepycat.com.
--
http://mail.python.org/mailman/listinfo/python-list
Terry Hancock wrote:
>> I also tried to create a ^M^L (typed in as Q M L) but that
>> gives me a syntax error when I try to run the program (re does not like
>> the control characters, I guess). Is it possible for me to pull out the
>> formfeeds in a straightforward manner?
>
> I suspect you sho
[EMAIL PROTECTED] wrote:
Maybe we're not thinking about the same problems. Say I'm an app
writer and I want to use one of your modules. My development
environment is GNU/Linux, and I want to ship a self-contained app that
anyone can run without having to download additional components. That
incl
I am interested in developing an application where the user has an
ample amount of power to customize the application to their needs, and
I feel this would best be accomplished if a scripting language was
available. However, I want to code this application in Python, and I
have not yet heard of an
Hello list...
I'm developing an adventure game in Python (which of course is lots of
fun). One of the features is the ability to save games and restore the
saves later. I'm using the pickle module to implement this. Capturing
current program state and neatly replacing it later is proving to be
tri
[My newsreader crapped out on sending this; apologies if it appears
twice.]
George Sakkis wrote:
"Terry Reedy" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Aside from the problem of not being able to delete the underlying object,
the view object for a tuple would have to be a new t
Martin v. Löwi said
> Hmm. Most applications don't have any crypto needs.
Any program where one stores data would have crypto needs.
Here are some examples: Database, wordprocessor, spreadsheet, address
book, mail program, (should I go on?). What would be the alternative to
encryption to satisfy
Thanks very much for all the responses. They were useful to me and
I'll probably refer back to them again in the future.
TB
--
http://mail.python.org/mailman/listinfo/python-list
Greg Lindstrom wrote:
> Hello-
> I have a file generated by an HP-9000 running Unix containing form
feeds
> signified by ^M^L. I am trying to scan for the linefeed to signal
> certain processing to be performed but can not get the regex to "see"
> it. Suppose I read my input line into a variable
In article <[EMAIL PROTECTED]>,
Quest Master <[EMAIL PROTECTED]> wrote:
> I am interested in developing an application where the user has an
> ample amount of power to customize the application to their needs, and
> I feel this would best be accomplished if a scripting language was
> available. H
whenever i try and run my Python GUI, my computer thinks for a sec, then
drops the process, without ever displaying the window. the command prompt
window seems to work fine, but the IDLE GUI won't start.
i'm running Windows 2K professional and python 2.4, so any advice help would
be appreciated. i
James Stroud wrote:
Martin v. Löwi said
Hmm. Most applications don't have any crypto needs.
Any program where one stores data would have crypto needs.
James, you must have mistyped the above, or your logic
is quite flawed.
I have written dozens of programs which store data, and
only a couple have h
Take a look at Zope. The ZODB is a highly optimized object
database that handles the pickling, loading, saving, etc. of
Python objects for restoring program state. A ZODB beginner's
tutorial is available here:
http://www.h7.dion.ne.jp/~harm/ZODB-Tutorial.py
Other info at:
http://zope.org/Members/
On Monday 24 January 2005 03:40 pm, Fredrik Lundh wrote:
> have you tried this, or are you just making things up to be able to continue
> the argument? (hint: it doesn't work; python portability means that it's
> fairly
> easy to write programs that run on multiple platforms, not that they will r
I'm having problem with a script that used to work under Win2k but is
now broken after an install of WinXP Pro. I can no longer connect to a
local mail server. Has anyone else seen this? If so, were you able to
work around it? Here's the traceback (below). Interestingly, if I
change ports to t
I was purposefully making an illogical statement to illustrate the lapse
in reason of Martin's statement. Users have crypto needs, not
applications. Applications are presumably not anthropomorphic enough to
have needs--hence the lack of logic.
However, I am not an application (as far as you or I k
"Jacob H" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'm developing an adventure game in Python
Since you are not the first, have you looked at what others have done to
save/restore? The Pygame site has code you can look at for adventure (I
believe) and other game types (I
Roy Smith wrote:
In article <[EMAIL PROTECTED]>,
Quest Master <[EMAIL PROTECTED]> wrote:
So, my question is simply this: is there an implementation of another
scripting language into Python?
Python *is* a scripting language. Why not just let your users write
Python modules which you them import
"Roy Smith" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> In article <[EMAIL PROTECTED]>,
> Quest Master <[EMAIL PROTECTED]> wrote:
>
>> So, my question is simply this: is there an implementation of another
>> scripting language into Python?
>
> Python *is* a scripting language.
"Jeff Shannon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> [My newsreader crapped out on sending this; apologies if it appears
> twice.]
>
> George Sakkis wrote:
>
> > "Terry Reedy" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> >
> >>Aside from the problem of
Gabriel B. wrote:
My object model ended up as
DataStorageObj
|-itemsIndex (list, could very well be a set...)
| |-[0] = 0
| |-[1] = 1
| |-[2] = 5
| '-[3] = 6
'-Items (list)
|-[0] = ['cat food', '12,20']
|-[1] = ['dog food', 8,00']
|-[2] = ['dead parrot', '25,00']
'-[3] = ['friendly
"George Sakkis" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Actually my initial motivation was not a huge tuple I had to slice many
> times. It was something much
> less extraordinarily unlikely, a recursive function with a sequence
> parameter:
>
> def foo(sequence):
># b
James Stroud <[EMAIL PROTECTED]> writes:
> Applications that lack features force users to accept a limited feature
> set or they use an alternative program with other limitations. Putting
> the possibility for cryptographic storage increases the utility of any
> application that stores data, and it
I just sent an email asking for hints on how to import data into a
python program
As i said earlier i'm really new to python and besides being
confortable with the syntax, i'm not sure if i'm on the right track
with the logic
I'm asking for hints again here at the list because i think i'm
already
read this thread, it should help you:
http://mail.python.org/pipermail/tutor/2005-January/035124.html
Peace
Bill Mill
bill.mill at gmail.com
On Tue, 25 Jan 2005 02:15:58 +, Frans Englich
<[EMAIL PROTECTED]> wrote:
>
> Hello all,
>
> Due to the size of my source, I want to split it up into
On Mon, Jan 24, 2005 at 09:17:24PM -0500, Roy Smith wrote:
> Rocco Moretti <[EMAIL PROTECTED]> wrote:
> > The OP doesn't mention his application, but there is something to be
> > said about domain specific scripting languages. A well designed
> > domain-specific scripting language(*) with the app
Hello all,
Due to the size of my source, I want to split it up into multiple
files(basically one class in each file), but then I have difficulties with
the directory layout when the modules are installed with distutils.
This is my file layout:
in ./ I have a setup.py which has 'packages="foo"
[Again I'm having news server trouble and made a previous attempt to
post this, so sorry if you see it twice. This version is edited
somewhat from the previous.]
"Martin v. Löwis" <[EMAIL PROTECTED]> writes:
> This is not possible - whether the module is included in Python or not.
> People *will*
On Mon, 24 Jan 2005 15:18:39 +0100, Örjan Gustavsson
<[EMAIL PROTECTED]> wrote:
> Hi All!
>
> Sorry if this is not the correct forum for this kind of question (I did
> not find any pylibpcap related lists).
>
> I am trying to use pylibpcap to capture network traffic from several
> ethernet device
Rocco Moretti <[EMAIL PROTECTED]> wrote:
> The OP doesn't mention his application, but there is something to be
> said about domain specific scripting languages. A well designed
> domain-specific scripting language(*) with the appropriate high level
> constructs can make script writing simpler.
Roy Smith wrote:
In article <[EMAIL PROTECTED]>,
Quest Master <[EMAIL PROTECTED]> wrote:
So, my question is simply this: is there an implementation of another
scripting language into Python?
Python *is* a scripting language. Why not just let your users write
Python modules which you them impor
[EMAIL PROTECTED] wrote:
I'm having problem with a script that used to work under Win2k but is
now broken after an install of WinXP Pro. I can no longer connect to a
local mail server. Has anyone else seen this? If so, were you able to
work around it? Here's the traceback (below).
The usual f
I want update one record ,but I can't ,why?
code like following:
##-
import win32com.client as wc
def main():
conn = wc.Dispatch(r'ADODB.Connection')
rs = wc.Dispatch(r'ADODB.Recordset')
connStr = "Provider=MSDAORA.1;Password=jm
Thank you Dennis!
You mean I should execute many select statement like this " rec =
crsr.fetchall() " ?
But the result is the same, still got the error like "... 'Current
provider does not support returning multiple recordsets from a single
execution.'..."
On Mon, 24 Jan 2005 17:00:39 GMT, Denni
This is the kind of thing I meant. I think I have to get used to writing
small, light-weight classes. You inspired this variation which is a little
more verbose in the class definition, but less so in the use:
class Matcher:
def search(self, r,s):
self.value = re.search(r,s)
return
[Francis Girard]
> For all the algorithms that run after their tail in an FP way, like the
> Hamming problem, or the Fibonacci sequence, (but unlike Sieve of Eratosthene
> -- there's a subtle difference), i.e. all those algorithms that typically
> rely upon recursion to get the beginning of the gen
Rocco Moretti wrote:
Python's also dangerous. Every time you do an "import module", you put
your system at risk of crashing, having the hard-drive wiped
Have you been drinking again?
--
http://mail.python.org/mailman/listinfo/python-list
On Tuesday 25 January 2005 02:17, Bill Mill wrote:
> read this thread, it should help you:
>
> http://mail.python.org/pipermail/tutor/2005-January/035124.html
Thanks, it did. Not optimally, but in the way I suspected it would be solved.
In short, the solution, when translated to my case, is to in
i have an Item which belongs to a Category, so Item has:
- item.categoryId, the database primary key of its Category
- item.category, a reference to its Category. this null unless i need a
reference from item to its Category object, in which case i call
setCategory(category)
sometimes i want a
Roy Smith wrote:
> Rocco Moretti <[EMAIL PROTECTED]> wrote:
> > The OP doesn't mention his application, but there is something to
be
> > said about domain specific scripting languages. A well designed
> > domain-specific scripting language(*) with the appropriate high
level
> > constructs can make
On 24 Jan 2005 12:44:32 -0800, "Albert Tu" <[EMAIL PROTECTED]> wrote:
>Hi,
>
>I am learning and pretty new to Python and I hope your guys can give me
>a quick start.
>
>I have an about 1G-byte binary file from a flat panel x-ray detector; I
>know at the beggining there is a 128-byte header and the
Frans Englich wrote:
> in ./foo/ I have an __init__.py and a handful of files named
> ClassA.py, ClassB.py, ClassC.py and so forth.
>
> import foo.ClassA
>
> var = foo.ClassA.ClassA()
>
> while I want to do var = foo.ClassA()
>
> In other words, the result I want can be achieved by putting all
Gdi32 needs to be added to the libraries for win32print in setup.py.
(just checked it in)
Roger
"mg" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all,
>
> I have reinstalled my Win32 computer last week and I did an update of the
> project PyWin32 to complete m
Assume I am using a class Foo. I want to find out the modification time
of the file that that class was defined in. How would I go about this?
If I could find out the name of the file that Foo was defined in then
it is easy, I could use os.path.getmtime(), but I can't even figure
that out.
I real
> Try manually, but think about these options: a firewall that
> has suddenly been enabled, an SMTP server that now requires
> authentication, some kind of proxy like what virus scanners
> use (though why they would intercept outgoing mail I don't
> know)...
>
> -Peter
I bet it was the firewall
On 24 Jan 2005 19:46:43 -0800, "Carl Banks" <[EMAIL PROTECTED]> wrote:
[...]
>> Imbed
>
>EMBED.
>
>This spelling error wouldn't bother me if I didn't work with people
>whose own job title is embedded control engineer, yet who still
>misspell it "imbedded."
>
wordnet seems to accept it as an alterna
http://www.python.org/2.4/bugs.html
...suggests that firewall running on python host (read Windows software
firewall) may block the localhost TCP connection required between IDLE
parent and child processes. I don't think this problem is specific to python
2.4. IDLE should work if you change fire
101 - 200 of 211 matches
Mail list logo