Op 2005-11-15, Bengt Richter schreef <[EMAIL PROTECTED]>:
> On 15 Nov 2005 08:51:59 GMT, Antoon Pardon <[EMAIL PROTECTED]> wrote:
>
>>Op 2005-11-14, Bengt Richter schreef <[EMAIL PROTECTED]>:
> [...]
>>> You may be interested in reviewing
>>>
>>>
>>> http://groups.google.com/group/comp.lang.py
Thomas Moore wrote:
> But what I really want to know is how to use __iter()__ and next() in a
> class with an example.
here's a simple iterator class that iterators over itself once:
class Iterator1:
def __init__(self, size=10):
self.count = 0
self.size = size
def __iter_
Rocco Moretti a écrit :
[...]
>
>
> I did, but I still don't see why it is an argument against using
> strings. The point you may not appreciate is that (C)Python already uses
> strings to represent names, as an important part of its introspective
> abilities.
>
Well, I'm well aware of that, bu
Martin wrote:
> Using Python / ASP on a IIS server with Mark Hammond's win32 extensions,
> i have the following problem.
>
> All occurences of local characters (fx. danish æøå) in comments or in
> strings result in a HTTP/1.1 500 Server Error.
>
> Is there a solution to this problem?
the first th
"Roger Erens" <[EMAIL PROTECTED]> wrote:
>
>I remember that the first time I read about Python as a programming
>language was when reading the W3C's HTML 4.01 specification a few years
>ago. In the section on objects, images and applets
>(http://www.w3.org/TR/html401/struct/objects.html) an example
Thank you Steve.
I have already went over that book, I didn't find there an example of
sending events from a python server to a VB client (just direct function
calls from the VB client to the Python server, which is trivial). And in any
case, since I am a newbie both in VB and in Python, I am re
Parth wrote:
> Hello everyone,
> I need some help regrading byassing firewalls.My college has internet
> aces but it prevents us from dowloading music(*.mp3,*.mid,etc.)from the
> net.I use a win xp sp2 and browse using ie 6. Is there any way how i
> can dowload music on my computer using this conn
Lawrence Oluyede wrote:
> Il 2005-11-15, Ben Finney <[EMAIL PROTECTED]> ha
> scritto:
>> Steve <[EMAIL PROTECTED]> wrote:
>>> Does any one know if python has the ability to run a shutdown hook.
>>
>> When the Python runtime system wants to exit, it raises a SystemExit
>> exception.
>>
>> Catch th
Hi:
Is there any example about how to use the Iterator type?
--Thomas
--
http://mail.python.org/mailman/listinfo/python-list
Gregory Bond wrote:
> I need help getting my college degree. I downloaded a hack to bypass
> the college internet firewall and the college system admins found out
> and I got expelled.
http://www.google.com/search?q=buy+a+degree
(if not else, that link will show you how many sponsored links goo
Hello all,
I'm trying to write a script to log into Yahoo! (mail, groups, etc),
but when I pass the full URL with all form elements via Python, I get
a resutling 400 - Bad Request page. When I just plop the full URL
into a browser, it works perfectly. Is there something I need to
specify in pytho
What you want is essentially :
if parm_x is not supplied, use self.val_x
So why not just express it clearly at the very beginning of the
function :
def f(self, parm_x=NotSupplied, parm_y=NotSupplied ,,,)
if parm_x is NotSupplied: parm_x = self.val_x
if parm_y is NotSupplied: parm_y = self.va
Mike Meyer wrote:
> "Ben Sizer" <[EMAIL PROTECTED]> writes:
> > In my
> > case, providing a free download of any lost executables or data upon
> > presentation of a legitimate license key should be adequate.
>
> My special handling for such
> things - and *especially* for entertainment software, wh
"Parth" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello everyone,
> I need some help regrading byassing firewalls.My college has internet
> aces but it prevents us from dowloading music(*.mp3,*.mid,etc.)from the
> net.
Then Don't - The firewall, being lame as those things are,
Hello
I would like to create an API for a piece of Python code. The API is for use
by non Python code.
It should support interaction in both directions, both accessing functions
on the API and the ability for the API to raise events on its client.
What is the best way to do that?
I though of doin
Steven D'Aprano wrote:
> I would like to see _marker put inside the class' scope. That prevents
> somebody from the outside scope easily passing _marker as an argument
> to instance.f. It also neatly encapsulates everything A needs within
> A.
Surely that makes it easier for someone outside the s
Hi Gary,
> I am trying to send an event from a Python COM server to a VB (or VB.NET)
> COM client.
> I am a newbie both in VB and in python.
> Can anyone give me a simple (but complete) code example both of the Python
> server side and the VB client side for raising a single event.
Do you mean i
Fredrik Lundh wrote:
>
> http://www.python.org/peps/pep-0263.html
>
Using the info from pep-0263, adding a line in the start for the file:
# -*- coding: -*-
works for .py files, but the error i get is from an .asp file.
The logfile contains this info:
ASP_0147|500_Server_Error 500
A so
Neal Norwitz wrote:
> Valgrind actually runs on PPC (32 only?) and amd64, but I don't think
> that's the way to go for this problem.
+1 for understatement of the week.
> Here's a really screwy thought that I think should be portable to all
> Unixes which have dynamic linking. LD_PRELOAD.
Simila
I've seen various posts over the years asking if python can be used to
communicate with JMS queues (whether MQ series, Jboss queues etc etc).
I've seen solutions such as pymqi (good for MQ, but not for jboss I
believe), and JPype.
This must seem an obvious question, but has anyone actually tried
Just edit the first lines of %SystemDrive%\Python24\Lib\idlelib\PyShell.py
yourself (not tested, but I have customized Idle intitial message using it
and
it worked ok - after new Python installation I overwrite this file with my
own
version to keep this customization.)
Hope this helps.
Claudio
<
On Tue, 15 Nov 2005 21:54:07 -0500, Dan Sommers wrote:
> On Wed, 16 Nov 2005 13:12:38 +1100,
> Steven D'Aprano <[EMAIL PROTECTED]> wrote:
>
>> try:
>> for item in obj:
>> do_stuff(item)
>> except TypeError, msg:
>> if msg == "iteration over non-sequence":
>> handle_non
On Wed, 16 Nov 2005 02:59:15 +, Bengt Richter wrote:
> On Tue, 15 Nov 2005 23:51:18 +0100, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote:
>>> I would like to see _marker put inside the class' scope. That prevents
>>> somebody from the outside scope easily passing _marker as an argument
>>> to ins
Op 2005-11-15, Mike Meyer schreef <[EMAIL PROTECTED]>:
> Antoon Pardon <[EMAIL PROTECTED]> writes:
Like having an assignment operator (let use @= for it) next to a
(re)bind operator.
We could then have something like the following.
a = 5
b = a
a @= 7
b ==> would r
(I asked about this several times in the twisted list but never got an
answer, maybe here I'll more happy...)
Hi,
I'm new to conch and I wonder if somebody could point me to an example
of how to create an ssh tunnel with conch to forward a connection (e.g.
database or vnc) through that tunnel (i
On Wed, 16 Nov 2005 09:48:47 +, Duncan Booth wrote:
> Steven D'Aprano wrote:
>> I would like to see _marker put inside the class' scope. That prevents
>> somebody from the outside scope easily passing _marker as an argument
>> to instance.f. It also neatly encapsulates everything A needs withi
Hi:
Thanks, it does help. Besides, I search the web and find several other
examples, too.
--Thomas
- Original Message -
From: "Fredrik Lundh" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, November 16, 2005 4:02 PM
Subject: Re: Is there any Iterator type example?
> Thomas Moore wrote:
>
> >
Grant Edwards wrote:
> On 2005-11-15, Ben Sizer <[EMAIL PROTECTED]> wrote:
> >
> > myObject.value = 'value1'
> >
> > #... 100 lines of code elided...
> >
> > if myObject.value == 'Value1':
> > do_right_thing()
> > else:
> > do_wrong_thing()
> >
> > I don't actually think string use is 'unte
On Tue, 15 Nov 2005 21:59:44 -0500, Roy Smith wrote:
> In article <[EMAIL PROTECTED]>,
> Steven D'Aprano <[EMAIL PROTECTED]> wrote:
>
>> try:
>> for item in obj:
>> do_stuff(item)
>> except TypeError, msg:
>> if msg == "iteration over non-sequence":
>> handle_non_iter
Duncan Booth wrote:
> What you really want is for the marker to exist only in its own little
> universe, but the code for that is even messier:
>
> class A(object):
>def __init__(self, n):
>self.data =n
>def make_f():
>marker = object()
>def f(self, x = _marker):
N
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> exchange. I am looking for a quick-n-dirty approach, upon which I can
> certainly expand by further reading Python documentation. Also, if
> anyone can recommend an online resource for learning more about TCP/IP
> and the like (a prog
On 16/11/05, Nathan Pinno <[EMAIL PROTECTED]> wrote:
> It worked, but unfornately I can't use this line as it brings up errors:
>
> from Tkinter (or pygame) import *
>
> Anyway around this little bug?
What's the error?
--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blo
On Tue, 15 Nov 2005 16:08:06 -,
"joe_public34" <[EMAIL PROTECTED]> wrote:
> Hello all,
> I'm trying to write a script to log into Yahoo! (mail, groups, etc),
> but when I pass the full URL with all form elements via Python, I get
> a resutling 400 - Bad Request page. When I just plop the full
Steven D'Aprano wrote:
> My philosophy is, any time you have an object that has a magic meaning
> (e.g. as a sentinel), don't tempt your users to try to use it as if it
> were an ordinary object.
In that case the simplest thing is to give _marker a more appropriate name
such as '_use_late_bound_
Thank you both for the suggestions. I will look into both of them, as I
am eager to learn new things about Python.
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
can have modules special methods?
althouht i think that no, i tried following example and i don't, why it
don't works:
file m2.py (imported module)
class Module:
def __getitem__(self,index):
return index
module=Module()
__getitem__=module.__getitem
Ben Finney wrote:
> Howdy all,
>
Hello,
> On dirtSimple.org[0], PJE wrote:
>
> "Why is Python "blessed" with so much reinvention? Because it's
> often cheaper to rewrite than to reuse. Python code is easy to
> write, but hard to depend on. You pretty much have to:
>
> 1. limit
Jan Procházka wrote:
> can have modules special methods?
no, but you can replace the module object with something that can have
special methods:
$ more module.py
import sys
class Module:
def __getitem__(self, value):
return value
sys.modules[__name__] = Module()
$ python
>>> impor
While not sure of the behavior you are trying to achieve, XML-RPC comes
to mind. But it's based on HTTP protocol in which the client puts
request to the server which has to respond. The server cannot initiate
interactions.
XML-RPC is both widely avalaible, and very easy to implement.
NOTE: in ord
Fuzzyman <[EMAIL PROTECTED]> wrote:
> Ben Finney wrote:
> > On dirtSimple.org[0], PJE wrote:
> >
> > [...] Python code is easy to write, but hard to depend on. You
> > pretty much have to:
> >
> > 1. limit yourself to platforms with a suitable packaging
> > system,
> >
Thanks
Its an interesting solution but I need a more closely coupled solution,
with real time events, so the communication really has to be 2 ways, and not
by polling.
Thanks for putting the time and though.
Gary
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> While not sure of th
Thanks, probably you are right, hacking python in my situation is not
neccessary...
>Jan Procházka wrote:
>
>
>
>>can have modules special methods?
>>
>>
>
>no, but you can replace the module object with something that can have
>special methods:
>
>$ more module.py
>import sys
>
>class Modu
This does not what I want it to do:
>>> a = [[]] * 6
>>> a[3].append('X')
>>> a
[['X'], ['X'], ['X'], ['X'], ['X'], ['X']]
This does what I want:
>>> b = [[] for _ in range(6)]
>>> b[3].append('X')
>>> b
[[], [], [], ['X'], [], []]
The first is clear and wrong.
Peter Kleiweg wrote:
> This does not what I want it to do:
>
>>>> a = [[]] * 6
>>>> a[3].append('X')
>>>> a
>[['X'], ['X'], ['X'], ['X'], ['X'], ['X']]
>
> This does what I want:
>
>>>> b = [[] for _ in range(6)]
>>>> b[3].append('X')
>>>> b
>[[], [], [], ['X'], [],
Fredrik Lundh schreef op de 16e dag van de slachtmaand van het jaar 2005:
> Peter Kleiweg wrote:
>
> > This does not what I want it to do:
> >
> >>>> a = [[]] * 6
> >>>> a[3].append('X')
> >>>> a
> >[['X'], ['X'], ['X'], ['X'], ['X'], ['X']]
> >
> > This does what I want:
> >
> >
Hello,
I've got a question about Python Events. I want to generate a
PyCommandEvent (included in the wx Package). This PyCommandEvent ought
to be called when a method/function is called. I've seen some examples
in the www how I can call the Event when an other Event is called. But
this is not
great.
It's a good idea.
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
>>> b = [[] for _ in xrange(6)] # <- note the xrange!
>>> b[3].append('X')
>>> b
[[], [], [], ['X'], [], []]
This syntax might be less hairy but could be better when you use large table.
You can hide this syntax by making a function:
def buildMatrix(nbRows):
return [[] for _ in xrange
Steven D'Aprano <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]:
> def foo(inputVal):
> try:
> for val in inputVal:
> # do stuff
> except TypeError, msg:
> if msg == "iteration over non-sequence":
> # handle non-iterable case
> else:
>
Peter Kleiweg wrote:
> This does not what I want it to do:
>
> >>> a = [[]] * 6
> >>> a[3].append('X')
> >>> a
> [['X'], ['X'], ['X'], ['X'], ['X'], ['X']]
>
> This does what I want:
>
> >>> b = [[] for _ in range(6)]
> >>> b[3].append('X')
> >>> b
> [[], [], [],
[Frithiof Andreas Jensen]
> [EMAIL PROTECTED]
>> I want to make a 3d plot. x is a vector(discrete), y is also
>> a vector(discrete), for each pairwise x,y I have a value z(x,y)(it is
>> not a function, just discrete values for each pair of x,y). I want
>> to show them on a two dimensional plo
Gary Kshepitzki wrote:
> I would like to create an API for a piece of Python code. The API is for use
> by non Python code.
> It should support interaction in both directions, both accessing functions
> on the API and the ability for the API to raise events on its client.
> What is the best way to
Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> I'm not sure if that is meant to be a rhetorical
> question or not, but something of the order of 95% of
> all software written is never distributed to others,
> and so copyright or the lack of copyright is not an issue.
Can you cite your source(s) f
I have the following test script in the file customize.py
# C:\Python24\Lib\site-packages\sitecustomize.py
print "test text from sitecustomize"
If start Python from command prompt I get
C:\Python24>python
test in sitecustomize
Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)]
> On the subject of memory statistics, I'm surprised no-one has mentioned
> "top" in this thread (as far as I'm aware): I would have thought such
> statistics would have been available to "top" and presented by that
> program.
Talking about "top", this article may be useful:
On measuring memory u
In article <[EMAIL PROTECTED]>,
Rick Wotnaz <[EMAIL PROTECTED]> wrote:
> Steven D'Aprano <[EMAIL PROTECTED]> wrote in
> news:[EMAIL PROTECTED]:
>
> > def foo(inputVal):
> > try:
> > for val in inputVal:
> > # do stuff
> > except TypeError, msg:
> > if msg ==
Now GTK can use the local theme.You can choose the local theme to make
your application windows style on Winodws and Mac likely on mac os.
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
My idea is to create a system working as follows: each module knows
path to plugin directory, and that directory contains modules which
may add hooks to some points in the code.
Inspired by http://www.python.org/pycon/2005/papers/7/pyconHooking.html
I would create a class like this:
class P
Ben Sizer wrote:
> Mike Meyer wrote:
> > "Ben Sizer" <[EMAIL PROTECTED]> writes:
> > > Decompyle (http://www.crazy-compilers.com/decompyle/ ) claims to be
> > > pretty advanced. I don't know if you can download it any more to test
> > > this claim though.
> >
> > No, it doesn't claim to be advance
On Tue, Nov 15, 2005 at 10:10:42PM -0800, Neal Norwitz wrote:
> Alex Martelli wrote:
> > matt <[EMAIL PROTECTED]> wrote:
> >
> > > Perhaps you could extend Valgrind (http://www.valgrind.org) so it works
> > > with python C extensions? (x86 only)
> >
> > Alas, if it's x86 only I won't even look in
I tried to put the line
from btools import *
in several places in PyShell.py
but to now avail. It does not work, IDLE does not execute it???
Bob
--
http://mail.python.org/mailman/listinfo/python-list
QOTW: "You can tell everything is well in the world of dynamic languages
when someone posts a question with nuclear flame war potential like 'python
vs. ruby' and after a while people go off singing hymns about the beauty
of Scheme..." - vdrab
"ctypes completely rocks." - Grant Edwards
Mich
After a months-long "pre-release" period, we're pleased to announce the
first release of Django, the Web framework for perfectionists (with
deadlines).
Django is a high-level Python Web framework that encourages rapid
development and clean, pragmatic design. It lets you write high-quality
Web apps
After a months-long "pre-release" period, we're pleased to announce the
first release of Django, the Web framework for perfectionists (with
deadlines).
Django is a high-level Python Web framework that encourages rapid
development and clean, pragmatic design. It lets you write high-quality
Web apps
Paul Boddie <[EMAIL PROTECTED]> wrote:
> Neal Norwitz wrote:
> > Valgrind actually runs on PPC (32 only?) and amd64, but I don't think
> > that's the way to go for this problem.
>
> +1 for understatement of the week.
>
> > Here's a really screwy thought that I think should be portable to all
> >
Hello everybody,
I am in the process of writing my very first web application in Python,
and I need a way to
generate dynamic HTML pages with data from a database. I have to say I
am overwhelmed
by the plethora of different frameworks, templating engines, HTML
generation tools etc that
exist. Aft
Peter Kleiweg wrote:
>> http://www.python.org/doc/faq/programming.html#how-do-i-create-a-multidimensional-list
>
> In other words: no there isn't.
For people who actually knows Python, a list comprehension is clear and
obviously correct.
For people who actually knows Python, your first solution
Thnaks to everybody for their input. I have found a quick fix for now.
MySQL dump allows me to export the data to XML which can easily be
compared. This will help me for now and the project will have to wait
until I have some more time.
Regards
Jandre
--
http://mail.python.org/mailman/listinfo/
//So my solution (need help on this) is that I have been thinking on
letting the monitor listen for socket connection. Through this, the
main app can tell him to close when the main app closes correctly. Do
you think this is well thought? Any suggestions?
This is the only solution you have to cons
Rick Wotnaz wrote.
> ... which leads me to belive that 'msg' is not type(str). It can be
> coerced (str(msg).find works as expected). But what exactly is msg?
> It appears to be of , and does not test equal to a
> string.
it's an instance of the exception type, of course.
:::
if you do
rai
On 16 Nov 2005 06:18:05 -0800, Paul Boddie <[EMAIL PROTECTED]> wrote:
> Gary Kshepitzki wrote:
>> I would like to create an API for a piece of Python code. The API is for use
>> by non Python code.
>> It should support interaction in both directions, both accessing functions
>> on the API and the
A hint :) Is ADO supported?
--
http://mail.python.org/mailman/listinfo/python-list
So, I've written my first GUI app in python. I've turned it into a
binary .exe and .app that runs on Windows and Mac respectively, but on
my Linux box, where I wrote the thing, I still have to drop to the
command line and ./myscript.py. What can I do to make it a "click and
run" sort of applicati
Tim Roberts <[EMAIL PROTECTED]> wrote:
...
> Internet Explorer will allow any registered ActiveScript language to be
> used in a web page. Python qualifies. In the latest Win32 extensions,
> there is a script in win32comext/axscript/client/pyscript.py that will
> register Python as an ActiveSc
Alex,
Good point. Can python be used to write firefox extensions that could
be called from javascript?
1) javascript would come in on the HTML page
2) javascript would communication with the Extension API
3) the extension would be written in python
That way, you would only need to make your e
I am new to python and to wxWindows. I have tried searching google,
reading the documentation and trying to figure out some of the examples,
but I am stumped as to how to get information out of a listctrl at a
certain row and column. I tried to write a simple example to learn to
work with the
Hi all,
I am a new convert to Mac OSX. I want to start using python under
darwin and I need to install numarray. I've downloaded and extracted
"numarray-1.4.1" in the python folder, installed gcc 4.0 from the OSX
disc. When I run "python setup.py install" i still get an error message
saying that g
Diez B. Roggisch wrote:
> [EMAIL PROTECTED] wrote:
> > I have a config file with the following contents:
> > service A = {
> > params {
> > dir = "c:\test",
> > username = "test",
> > password = "test"
> > }
> > }
> >
> > I want to find username and replace the value with another v
Gary Kshepitzki wrote:
> Hello
> I would like to create an API for a piece of Python code. The API is for use
> by non Python code.
> It should support interaction in both directions, both accessing functions
> on the API and the ability for the API to raise events on its client.
> What is the be
[EMAIL PROTECTED] wrote:
> so the following would not result in any conflicts
>
> class A:
>def __init__(self):
> self.__i= 0
>
> class B(A):
>def __init__(self):
> A.__init__(self)
> self.__i= 1
>
Be careful here. The above won't result in any conflicts, but related
Ben Finney wrote:
> I hold up all existing public source code repositories as evidence
> against your prediction. Reinventing the wheel is distressingly
> common, and a dependency tool isn't going to stop that.
Is there ever a point at which one decides that "unusable dependency
tools" are distres
Hi there,
I haven't seen this topic pop up in a while, so I thought I'd raise it
again...
What is the status of the path module/class PEP? Did somebody start
writing one, or did it die? I would really like to see something like
Jason Orendorff's path class make its way into the python standard
Pierre Barbier de Reuille wrote:
> Rocco Moretti a écrit :
> [...]
>
>>
>>I did, but I still don't see why it is an argument against using
>>strings. The point you may not appreciate is that (C)Python already uses
>>strings to represent names, as an important part of its introspective
>>abilities.
This script should be a good start:
from ctypes import *
import time
PUL = POINTER(c_ulong)
class KeyBdInput(Structure):
_fields_ = [("wVk", c_ushort),
("wScan", c_ushort),
("dwFlags", c_ulong),
("time", c_ulong),
("dwExtraInfo", PUL)]
class
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]:
> Rick Wotnaz wrote.
>
>> ... which leads me to belive that 'msg' is not type(str). It
>> can be coerced (str(msg).find works as expected). But what
>> exactly is msg? It appears to be of , and does
>> not test equal to a strin
Neal Norwitz wrote:
> Here's a really screwy thought that I think should be portable to all
> Unixes which have dynamic linking. LD_PRELOAD.
>
> You can create your own version of malloc (and friends) and free. You
> intercept each call to malloc and free (by making use of LD_PRELOAD),
> keep tr
<[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:<[EMAIL PROTECTED]>...
> I tried to put the line
> from btools import *
> in several places in PyShell.py
> but to now avail. It does not work, IDLE does not execute it???
> Bob
I have to give up here :-( .
The best solution I am able to come up wit
[EMAIL PROTECTED] wrote:
> Hello everybody,
>
> I am in the process of writing my very first web application in Python,
> and I need a way to
> generate dynamic HTML pages with data from a database.
(snip)
> After some thought I decided to leave the various frameworks
> aside for the
> time bein
[EMAIL PROTECTED] wrote:
> So, I've written my first GUI app in python. I've turned it into a
> binary .exe and .app that runs on Windows and Mac respectively, but on
> my Linux box, where I wrote the thing, I still have to drop to the
> command line and ./myscript.py. What can I do to make it a
Where do I put
def runsource(self, source):
if(source == ''):
source = 'from btools import *'
"Extend base class method: Stuff the source in the line cache
first"
filename = self.stuffsource(source)
Do I put it in Pyshell.py or somewhere else?
Bob
--
http://
Antoon Pardon <[EMAIL PROTECTED]> writes:
> Op 2005-11-15, Mike Meyer schreef <[EMAIL PROTECTED]>:
>> Antoon Pardon <[EMAIL PROTECTED]> writes:
> Like having an assignment operator (let use @= for it) next to a
> (re)bind operator.
> We could then have something like the following.
> [EMAIL PROTECTED] wrote:
>
>> So, I've written my first GUI app in python. I've turned it into a
>> binary .exe and .app that runs on Windows and Mac respectively, but on
>> my Linux box, where I wrote the thing, I still have to drop to the
>> command line and ./myscript.py. What can I do t
I have a package directory structure as follows
root-
|
Common (contains __init__.py file)
WindowsComponents (contains __init__.py file)
...
I would like modules in the WindowsComponents directory to be able to
import some modules from the Common directory. In my first pass, I wa
I have an application written in Tkinter. There is a menu item
'quit' that calls the function 'quit'. If 'quit' is called, it
first checks if there is unsaved data. If there is, it won't let
the application exit unless you confirm to disregard the
changes.
So far, so good.
I want the program
On Wed, 16 Nov 2005 19:56:51 +0100, bruno at modulix <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
>> So, I've written my first GUI app in python. I've turned it into a
>> binary .exe and .app that runs on Windows and Mac respectively, but on
>> my Linux box, where I wrote the thing, I sti
It's a warning that says:
Can only use * in top level or something like that.
It's kind of annoying, but the program still ran after I made the import *
lines top level, and removed the def's.
Nathan Pinno.
--
For great sites go to: http://www.the-web-surfers-store.com
MSN Messenger: [EMAIL P
Edvard Majakari wrote:
> Hi,
>
> My idea is to create a system working as follows: each module knows
> path to plugin directory, and that directory contains modules which
> may add hooks to some points in the code.
>
> Inspired by http://www.python.org/pycon/2005/papers/7/pyconHooking.html
>
> I
I think I have an answer to my own question. In the
WindowsComponents/__init__.py file, I have the following, that feels
like a better answer for the problem. Is there a better answer than
this?
import os, sys
sys.path.append(os.path.join(os.getcwd(), 'Common'))
--ERick
--
http://mail.python
Probably you have inbetween already found the 'def runsource(' line in the
PyShell.py , but maybe you still wait for a reply, so here it is:
yes, you put the two lines at the beginning of in PyShell.py existing
runsource() method of the class ModifiedInterpreter(InteractiveInterpreter)
If in my
On Nov 16, [EMAIL PROTECTED] wrote:
> I have a package directory structure as follows
>
> root-
> |
> Common (contains __init__.py file)
> WindowsComponents (contains __init__.py file)
> ...
>
> I would like modules in the WindowsComponents directory to be able
> to import some mo
1 - 100 of 189 matches
Mail list logo