Ivan Voras wrote:
> I have a string fetched from database, in iso8859-2, with 8bit
> characters, and I'm trying to send it over the network, via a socket:
>
>File "E:\Python24\lib\socket.py", line 249, in write
> data = str(data) # XXX Should really reject non-string non-buffers
> Unicode
Leif Biberg Kristensen wrote:
> So. I've been writing SQL queries in Python like this, using PostgreSQL
> and psycopg:
>
> cursor.execute("select * from foo where bar=%s" % baz)
>
> Is that wrong, and how should I have been supposed to know that this is
> bad syntax?
do you get paid to write secu
Richard Blackwood wrote:
> Could I honestly argue this to him? From what basis do I argue that
it
> is not an equation? In any event, he would likely (passionately)
> disagree considering his notion that programming is an off-shoot of
math
> and thus at the fundamental level has identical concepts
On Sun, 24 Apr 2005 00:59:45 -0400, Richard Blackwood <[EMAIL PROTECTED]> wrote:
>Bengt Richter wrote:
>
>>On Sat, 23 Apr 2005 22:45:14 -0400, Richard Blackwood <[EMAIL PROTECTED]>
>>wrote:
>>
>>
>>
>>>Robert Kern wrote:
>>>
>>>
>>>
Richard Blackwood wrote:
>To
Richard Blackwood <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>>First, new disciplines often redefine words to mean something
>>different than the disciplines they were derived from. Variable is a
>>good example of that. In math, a variable is a placeholder in an (a
>>system of) equation(s), a
Richard Blackwood <[EMAIL PROTECTED]> writes:
> In any event, he would likely (passionately)
> disagree considering his notion that programming is an off-shoot of
> math and thus at the fundamental level has identical concepts and
> rules.
My formal training is as a mathematician, but my professio
Robert Kern <[EMAIL PROTECTED]> writes:
>> Could I honestly argue this to him? From what basis do I argue that
>> it is not an equation?
>
> It's his responsibility to show that it *is* an equation.
>
> x = x + 1
>
> Equation? I think not.
I think it is. One equation in one unknown. The solution s
[reorganized a bit]
Ville Vainio <[EMAIL PROTECTED]> writes:
> Why don't you use external validation on the created xml? Validating
> it every time sounds like way too much like Javaic B&D to be fun
> anymore. Pickle should serve you well, and would probably remove about
> half of your code. "Do
And y'all obviously don't care what kind of acoustic guitar your
god/gods/invisible cloud dwellers/space alien higher intelligence
plays. Which is a slightly OT but otherwise generally on-topic post
for this NG.
Sad that you don't care about the important stuff.
--
http://mail.python.org/ma
C'mon. Everyone knows God plays a Martin.
--
http://mail.python.org/mailman/listinfo/python-list
John Bokma <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>> Depends on the problem. If it's one of the things for which Python has
>> an obvious solution (sort a list; split a string on whitespace; pull
>> select list elements based on a criteria of some kind; search a file
>> for lines with a g
Hello,
How can I get the size of an object in python..?
analog with c sizeof?
Pujo
--
http://mail.python.org/mailman/listinfo/python-list
Mage <[EMAIL PROTECTED]> wrote or quoted:
> Tim Tyler wrote:
> >Mage <[EMAIL PROTECTED]> wrote or quoted:
> >>check this: http://wiki.w4py.org/pythonvsphp.html
> >
> >Good - but it hardly mentions the issue of security - which seems
> >like a bit of a problem for PHP at the moment.
>
> I don't thi
Does anyone know of any decent documenation on Mark Hammond's win32all
modules? I have tried looking at the documentation .chm file that comes
with it, Python Programming On Win32 (OReilly book) and ActiveState's
documentation and have found them all lacking -- yes I need it broken
down to me.
Wha
Jp Calderone wrote:
You don't have a string fetched from a database, in iso-8859-2, alas.
That is the root of the problem you're having. What you have is a
unicode string.
Yes, you're right :) I actually did have iso-8859-2 data, but, as I
found out late last night, the data got converted to
John Machin wrote:
(Does anyone else feel that python's unicode handling is, well...
suboptimal at least?)
Your posting gives no evidence for such a conclusion.
Sorry, that was just steam venting from my ears - I often get bitten by
the "ordinal not in range(128)" error. :)
--
http://mail.python
Hi,
I've been using Python for about 2 years now, for my honours project and
now my postgrad project. I must say that I am loving it more and more
now. From my knowledge, Python bytecodes are not back-compatible. I must
say that my technical background isn't strong enough but is there any
good
Mike Meyer wrote:
Robert Kern <[EMAIL PROTECTED]> writes:
Could I honestly argue this to him? From what basis do I argue that
it is not an equation?
It's his responsibility to show that it *is* an equation.
x = x + 1
Equation? I think not.
I think it is. One equation in one unknown. The solution s
[EMAIL PROTECTED] wrote:
I started to read the postings on this list and was dismayed
> at the depth of rudeness on here.
I saw no evidence of rudeness whatsoever. Well, with the possible
exception of some posters calling others names like "rude."
--
Michael Hoffman
--
http://mail.python.org/mailm
"[EMAIL PROTECTED]"
> How can I get the size of an object in python..?
you can't, and the size in bytes is mostly meaningless.
if you're looking for the size of a serialized/marshalled python
object, use len().
> analog with c sizeof?
Python's not C. for more discussion, see:
http://www.
Hi
I use optparse with callback action, my callback function return some
value, but optparse does not store this value, options.callback_dest
always is None.
How can I store callback function return value or callback option value
like store action do?
I modify optparse.py Option::take_action def
Maurice LING wrote:
Hi,
I've been using Python for about 2 years now, for my honours project and
now my postgrad project. I must say that I am loving it more and more
now. From my knowledge, Python bytecodes are not back-compatible. I must
say that my technical background isn't strong enough but
Ilpo Nyyssönen wrote:
> What is the point in doing validation if it isn't done every time? Why
> wouldn't I do it every time? It isn't that slow thing to do.
DTD validation is useful in two cases: making sure that data from
a foreign source has the right structure, and making sure that data
you c
Ivan Voras wrote:
> One thing that I always wanted to do (but probably can't be done?) is to
> set the default/implicit encoding to the one I'm using...
You can hack this into site.py, or mess with sitecustomize.py, but I don't
recommend it.
> I often have to deal with 8-bit encodings and rarely
Hello,
I've been experimenting with metaclasses a bit (even though I am quite
a newbie to python) and stumpled over the following problem in my code:
class Meta(type):
def __init__(cls, name, bases, dct):
for attr, value in dct.items():
if callable(value):
dct[attr] = wrapper(
On Sun, 24 Apr 2005 11:26:20 +0200, Ivan Voras <[EMAIL PROTECTED]>
wrote:
>Jp Calderone wrote:
>
>> You don't have a string fetched from a database, in iso-8859-2, alas.
>> That is the root of the problem you're having. What you have is a
>> unicode string.
>
>Yes, you're right :) I actually
> > At least the interface looks quite simple and usable. With some
> > validation wrapping over it, it might be ok...
>
> I was going to point you to a validating parser for ET, but the "it might
> be ok" statement is a bit too arrogant for my taste.
I'll point you all to *two* validating parser
[EMAIL PROTECTED] (John J. Lee) writes:
> Shane Hathaway <[EMAIL PROTECTED]> writes:
[...]
> > However, I haven't heard whether PyQt for Qt 4 will also be available
> > under the GPL.
>
> Yes, PyQt will be available under the same license as Qt.
Oops, s/license/licenses/
John
--
http://mail.py
no wait, *three* validating parsers/validators for ET
http://online.effbot.org/2005_02_01_archive.htm#elementrxp
http://codespeak.net/lxml/
http://www.leuthe.homepage.t-online.de/minixsv/minixsv_overview.html
parse(os.popen("xmllint --valid %s" % filename))...
I'll come in again.
Will McGugan <[EMAIL PROTECTED]> writes:
> Peter Hansen wrote:
> > John J. Lee wrote:
> >
> >> I will never pronounce thorough 'thurrow', though. One must draw a
> >> line.
> > How *do* you pronounce it? "Thurrow" seems to match
> > how I say the word, along with everyone else I've
> > ever met
Hello,
I started to write my PostgreSQL layer. I tried pyPgSQL and PyGreSQL. I
made a *very minimal* performance test and comparsion with the same
thing in php. Table "movie" has 129 record and many fields.
I found PyGreSQL / DB-API / fetchall horrible slow (32 sec in my test).
PHP did
Jaime Wyant <[EMAIL PROTECTED]> writes:
> On 22 Apr 2005 13:28:57 -0700, codecraig <[EMAIL PROTECTED]> wrote:
> > i want to the number of bytes in a string...
> >
> > is, len(x) accurate?
> >
> > so, x = "hi"
> > len(x) == 2 so that means two bytes?
> >
> > thanks
>
> No, that means that t
Robert Kern wrote:
Richard Blackwood wrote:
Bengt Richter wrote:
Maybe he doesn't know that foo = 5 in Python is not an equation as in
math,
but a Python source language statement to be translated to a step in
some
processing sequence.
Tell him in Python foo is a member of one set and 5 is a mem
Hello,
I have multi thread program running together and each will increment
int i.
How can we make only one thread at a time be able to access and
increment i ?
Thanks in advance,
Sincerely Yours,
pujo
--
http://mail.python.org/mailman/listinfo/python-list
John Machin wrote:
Just a thought: I noticed from the traceback that you are running this
on a Windows box. Profound apologies in advance if this question is an
insult to your intelligence, but you do know that Windows code page
1250 (Latin 2) -- which I guess is the code page that you would be
usi
[Michael Hoffman]
> [EMAIL PROTECTED] wrote:
> >I started to read the postings on this list and was dismayed at the
> >depth of rudeness on here.
> I saw no evidence of rudeness whatsoever. [...]
It may be related to cultural differences, who knows. Some people are
sensible to rude behaviour or
The Great Harlin Seritt uttered these words on 4/24/2005 5:20 AM:
Does anyone know of any decent documenation on Mark Hammond's win32all
modules? I have tried looking at the documentation .chm file that comes
with it, Python Programming On Win32 (OReilly book) and ActiveState's
documentation and ha
[EMAIL PROTECTED] wrote:
Hello,
I have multi thread program running together and each will increment
int i.
How can we make only one thread at a time be able to access and
increment i ?
Thanks in advance,
Sincerely Yours,
pujo
Use a synchronization primitive such as a lock
(threading.Lock, threadin
Steffen Glückselig wrote:
> Hello,
>
> I've been experimenting with metaclasses a bit (even though I am quite
> a newbie to python) and stumpled over the following problem in my code:
>
> class Meta(type):
> def __init__(cls, name, bases, dct):
> for attr, value in dct.items():
> if
> class Foo(type):
> def __new__(cls, name, bases, dict):
>
> for k,v in [(k, v) for k,v in dict.items() if callable(v)]:
> cls.wrap(k,v,cls.get_directives(v), dict)
>
> return super(Foo, self).__new__(self, name, bases, dict)
There is a confusion of self and cls
Diez B. Roggisch wrote:
>> class Foo(type):
>> def __new__(cls, name, bases, dict):
>>
>> for k,v in [(k, v) for k,v in dict.items() if callable(v)]:
>> cls.wrap(k,v,cls.get_directives(v), dict)
>>
>> return super(Foo, self).__new__(self, name, bases, dict)
>
> Th
Are wrap and get_directives somehow built-in? I couldn't find
references to them.
I've noticed, too, that using __new__ I can manipulate the dictionary
resulting in the behavior I intented.
I'd rather like to know: Why does it work in __new__ but not in
__init__?
And, stimulated by your response
Mage wrote:
> Hello,
>
> I started to write my PostgreSQL layer. I tried pyPgSQL and PyGreSQL. I
> made a *very minimal* performance test and comparsion with the same
> thing in php. Table "movie" has 129 record and many fields.
>
> I found PyGreSQL / DB-API / fetchall horrible slow (32
On Sunday 24 April 2005 03:11 am, Roger Binns wrote:
> "jeff elkins" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
> > under debian sid, I installed (via apt-get) the various wxpython stuff
> > available.:
> >
> > libwxgtk2.4-python
> > libwxgtk2.5.3-python
> > python-opengl
> > p
On Sunday 24 April 2005 03:20, Richard Blackwood wrote:
> To All:
>
> Folks, I need your help. I have a friend who claims that if I write:
>
> foo = 5
>
> then foo is NOT a variable, necessarily.
This is a really amusingly recursive discussion. Your friend has a piece of
knowledge, "what a
On Sunday 24 April 2005 02:07 am, Kartic wrote:
>
> Jeff - Could you please post your code?
>
> From what you have posted it looks like your MyFrame class does not
> inherit from wx.Frame.
>
Thanks Kartic. That test.py was from the wxpython download site.
--
http://mail.python.org/mailman/listin
Steffen Glückselig wrote:
> Are wrap and get_directives somehow built-in? I couldn't find
> references to them.
>
> I've noticed, too, that using __new__ I can manipulate the dictionary
> resulting in the behavior I intented.
>
> I'd rather like to know: Why does it work in __new__ but not in
> _
Hi,
I've hit a corner case that I can explain to myself *why* it happens, both
under python 2.3 and python 2.4, but the following inconsistency makes me
wonder if I should log it as a bug:
First the behaviour that isn't unexpected:
>>> a=["hello"]
>>> a = a + "world"
Traceback (most recent call
thanks.
Pujo
--
http://mail.python.org/mailman/listinfo/python-list
Reinhold Birkenfeld wrote:
> Diez B. Roggisch wrote:
>>> class Foo(type):
>>> def __new__(cls, name, bases, dict):
>>>
>>> for k,v in [(k, v) for k,v in dict.items() if callable(v)]:
>>> cls.wrap(k,v,cls.get_directives(v), dict)
>>>
>>> return super(Foo, self).__n
Michael Sparks wrote:
Hi,
I've hit a corner case that I can explain to myself *why* it happens, both
under python 2.3 and python 2.4, but the following inconsistency makes me
wonder if I should log it as a bug:
First the behaviour that isn't unexpected:
a=["hello"]
a = a + "world"
Traceback (most
On Sunday 24 April 2005 10:41 am, jeff elkins wrote:
> On Sunday 24 April 2005 03:11 am, Roger Binns wrote:
> > You have a mixture of different versions of wxPython in there.
> Thanks. I'll see if I can delete/reinstall and fix things.
Fixed and thanks for the clue :)
Jeff
--
http://mail.pytho
So dct is something like a template rather than the __dict__ of the
actual class?
I'd assume that changing the content of a dict would be possible even
after it has been assigned to some object (here, a class).
thanks and best regards
Steffen
--
http://mail.python.org/mailman/listinfo/python-l
when you use a = a + 'world' python sees it as an error because of
different type.
But when you use a += 'world'
python will change the right into list (because a is a list). So when
you're code become:
a += 'world' # a += list('world')
It really helpfull if you stick to use append instead of +=
On 2005-04-24, Michael Sparks <[EMAIL PROTECTED]> wrote:
a=["hello"]
a = a + "world"
> Traceback (most recent call last):
> File "", line 1, in ?
> TypeError: can only concatenate list (not "str") to list
> However if we do this just slightly differently:
>
a = ["hello"]
a +
Richard Blackwood wrote:
To All:
Folks, I need your help. I have a friend who claims that if I write:
foo = 5
then foo is NOT a variable, necessarily. If you guys can define for me
what a variable is and what qualifications you have to back you, I can
pass this along to, hopefully, convince hi
check this site:
http://mail.python.org/pipermail/python-bugs-list/2003-November/021201.html
pujo
--
http://mail.python.org/mailman/listinfo/python-list
"[EMAIL PROTECTED]" wrote:
> when you use a = a + 'world' python sees it as an error because of
> different type.
>
> But when you use a += 'world'
> python will change the right into list (because a is a list).
"changing into a list" is a bit misleadning; to bit a bit more precise,
you may want
Robert Kern wrote:
> It's consistent with using a.extend("world") which is what the += is
> sugar for.
>
> In [1]:a = ['hello']
>
> In [2]:a.extend("world")
>
> In [3]:a
> Out[3]:['hello', 'w', 'o', 'r', 'l', 'd']
>
> It's a *good* thing that .extend() takes any iterable without explicit
> convers
That helps.Thanks much.
--
http://mail.python.org/mailman/listinfo/python-list
Irmen de Jong wrote:
[EMAIL PROTECTED] wrote:
How can we make only one thread at a time be able to access and
increment i ?
Use a synchronization primitive such as a lock
(threading.Lock, threading.RLock)
But for simply incrementing a number (i+=1) this is not needed
because that operation cannot b
Ivan Voras wrote:
> Sorry, that was just steam venting from my ears - I often get bitten by
> the "ordinal not in range(128)" error. :)
I think I'm glad to hear that. Errors should never pass silently, unless
explicitly silenced. When you get that error, it means there is a bug in
your code (just
Reinhold Birkenfeld wrote:
>
>Have you tried psycopg?
>
>
Thank you. It did the fetchall() in 11 secs and 13 secs with dictionary
creating. It's the fastest so far.
Mage
--
http://mail.python.org/mailman/listinfo/python-list
Diez B. Roggisch wrote:
> Reinhold Birkenfeld wrote:
>
>> Diez B. Roggisch wrote:
class Foo(type):
def __new__(cls, name, bases, dict):
for k,v in [(k, v) for k,v in dict.items() if callable(v)]:
cls.wrap(k,v,cls.get_directives(v), dict)
I have built a wxPython prototype of an app, that lets me place rectangles
o a wxPanel, move them and change their size. How the rects are added
and placed has to follow certain rules.
The final goal is to merge this "graphical editor" into a MFC app.
Converting a standalone wxPython app into a wx
Richter,yes what I am looking for is for cluster with rectangular
bounding boxes as you explained in the first figure.
--
http://mail.python.org/mailman/listinfo/python-list
Callbacks are functions called when an optparse.OptionParser() object
has a callback option defined (don't know how to say this less obvious
sounding...) (they are documented in
http://docs.python.org/lib/optparse-option-callbacks.html)
Example (based on an example in the documentation):
this scr
Does that mean you are using C++/C# and not Python ?
I also guess you do not wish MFC and wxWindows to coexist in the same .exe
as the reasons for conflict are many (GDI port, main event loop .)
Then do you simply wish to "map" your wxindows calls to equivalent MFC calls
with some kind of stu
This issue was discussed in another recent python-list thread, called
"Writing to stdout and a log file".
My second post includes a patch to Python's "fileobject.c" that made the
code that started that thread work, but for reasons I mentioned in that
post I didn't want to push for inclusion of my
I never managed to link my python extensions (mingw .a) with python and
broke down and bought Visual/C++ as it is the compiler used by Python.
Yet some people seem to have managed:
http://uucode.com/texts/python-mingw/python-mingw.html
Regards,
Philippe
Jack Diederich wrote:
> On Sat, Apr 23
hi Bearphile! That really gives me an idea.Thanks much for that. Yes as
you said the algorithm reaches a maximium recursion depth for larger
sets i tried.I still have a question. if
m = [[0,0,0,0],[0,1,1,0,0],[0,0,1,0,0],[0,0,0,0]]
all it does is count the number of 1's and return us the number in
Uzytkownik "Steven Bethard" <[EMAIL PROTECTED]> napisal w
wiadomosci news:[EMAIL PROTECTED]
> Any reason you can't define it like:
>
> class actor(object):
> def __init__(self):
> self.roles = []
> def act(self):
> for role_func in self.roles:
> role_func(self)
Hello there,
Try visiting this well listed Directory on Computers and Internet! ...
Here is the link http://hi-fiweb.com/comp
Hoping to learn a lot from other group members.
Take care,
Kathy
--
http://mail.python.org/mailman/listinfo/python-list
Ilias Lazaridis wrote:
[EVALUATION] - E02 - Support for MinGW Open Source Compiler
http://groups-beta.google.com/group/comp.lang.python/msg/f5cd74aa26617f17
-
In comparison to the E02 thread, now a more practical one.
-
Here is a simple evaluation template (first part) which can be applied
to the
On Sunday 24 April 2005 06:59 am, so sayeth François Pinard:
> As seen from here, the Python mailing list quality has been degrading
> significantly for the last half-year or so.
That's funny. That's exactly as long as I've been on this list. I wonder if
the correlation is causal?
--
James Stro
Richard Blackwood <[EMAIL PROTECTED]> writes:
> Kent Johnson wrote:
> That is exactly how I feel about it. Foo is what it is. Variable, name
> bound to immutable value, etc., what we call it doesn't really change
> how I program, only how I communicate with other programmers (and
> mathematicians)
Quoth Mike Meyer <[EMAIL PROTECTED]>:
...
| He's right - programming is an offshoot of mathematics. It adds
| *dynamics* to the structures of mathematics. In mathematics, a
| construct (graph, function, mapping, set, whatever) is immutable. You
| can talk about things that change with time, but you
On Saturday 23 April 2005 10:25 pm, so sayeth Richard Blackwood:
> Unfortunately that's not much of an option for me. We are working on a
> project together so I am forced to either prove his notion incorrect or
> I give in to his conception. *throws hands in air*
This is a communcication issue. Y
Richard Blackwood <[EMAIL PROTECTED]> writes:
> Fantastic, wikipedia deals precisely with the difference between
> variables in mathematics versus programming. However, he would never
> trust a definition from such an "unreputable" source. If you have any
> other sources I might direct him to...he
Hi All--
James Stroud wrote:
>
> On Sunday 24 April 2005 06:59 am, so sayeth François Pinard:
> > As seen from here, the Python mailing list quality has been degrading
> > significantly for the last half-year or so.
>
> That's funny. That's exactly as long as I've been on this list. I wonder if
Hi, list.
I'm into a psicological doubt that I would like to share with you
(you'll know why later on this mail).
I'm a programmer with 5 year of experience into Perl. I'm on that point
where you resolve problems without thinking on HOW you'll do it with
that language but only on the problem it
Richard Blackwood <[EMAIL PROTECTED]> writes:
> Unfortunately that's not much of an option for me. We are working on a
> project together so I am forced to either prove his notion incorrect
> or I give in to his conception. *throws hands in air*
Well, one option is to give in to his conception an
On 4/24/05, Miguel Manso <[EMAIL PROTECTED]> wrote:
> I'm a programmer with 5 year of experience into Perl. I'm on that point
> where you resolve problems without thinking on HOW you'll do it with
> that language but only on the problem itself.
I code in perl and C all day. Python is a very nice e
Hi,...
I meant to write an application where there is a button in a window and
when you click on the button, it will open a new window, but I want the
first window to close, replaced by the second window.
I open a login window and start the mainloop, when the user click on
the login button, the __c
Richard Blackwood <[EMAIL PROTECTED]> writes:
> Bengt Richter wrote:
>
> >Tell him in Python foo is a member of one set and 5 is a member of another,
> >and foo = 5 expresses the step of putting them into correspondence
> >to define a mapping, not declaring them equal.
> >
> Could I honestly argu
In the python docs about shelve module I read:
-
open( filename[,flag='c'[,protocol=None[,writeback=False[,binary=None)
Open a persistent dictionary. The filename specified is the base filename
for the underl
Miguel Manso wrote:
>
>
> I've tryed to use python some times but I get frustrated very quick. I
> get myself many times needing to figure out how to loop through a
> list, declare an associative array, checking how to pass named
> parameters to functions, and simple things like that.
list = [3,5
Hello,
The question is above: when will these file be closed?
for s in file('/etc/passwd'):
print s
file('/home/mage/test.txt','w').write('foo')
Mage
--
http://mail.python.org/mailman/listinfo/python-list
Miguel Manso wrote:
> I've tryed to use python some times but I get frustrated very quick. I
> get myself many times needing to figure out how to loop through a list,
http://docs.python.org/tut/node6.html#SECTION00620
> declare an associative array,
http://docs.python.org/tut/n
"Clara" wrote:
> I meant to write an application where there is a button in a window and
> when you click on the button, it will open a new window, but I want the
> first window to close, replaced by the second window.
> I open a login window and start the mainloop, when the user click on
> the lo
"Mage" <[EMAIL PROTECTED]> wrote:
> The question is above: when will these file be closed?
>
> for s in file('/etc/passwd'):
> print s
>
> file('/home/mage/test.txt','w').write('foo')
when the interpreter gets around to it.
if you want to make sure that a file is closed at a given point in
y
"Nemesis" <[EMAIL PROTECTED]> wrote:
> So the real filename may be different from the argument passed to
> "open". I have this problem, I want to delete (in some circustances) the
> file created by shelve.open, how can I know which is the name of this
> file (or files) ?
if you put the shelve in
Well, but where do I call withdraw?
--
http://mail.python.org/mailman/listinfo/python-list
Forgive my ignorance, but where do I call withdraw?
--
http://mail.python.org/mailman/listinfo/python-list
"Clara" wrote:
> Well, but where do I call withdraw?
when you want the new window to appear, and the old one to
go away, of course. something like this, perhaps?
from mainmenu import FileManager
app2 = FileManager(self.username.get())
app2.master.title("File Manager")
app2.master.maxsiz
since the file where i call the first window and the second window is
different,.If I put app.master.withdraw() there,...won't I get error
message that says; app is not defined as global or something like that?
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> when you use a = a + 'world' python sees it as an error because of
> different type.
>
> But when you use a += 'world'
> python will change the right into list (because a is a list). So when
> you're code become:
> a += 'world' # a += list('world')
>
> It really helpf
Mage a écrit :
I can tell:
- python is more *pythonic* than php
Keyboard !-)
--
http://mail.python.org/mailman/listinfo/python-list
Lad a trollé :
Is anyone capable of providing Python advantages over PHP if there are
any?
Why don't you check by yourself ?
--
http://mail.python.org/mailman/listinfo/python-list
Miguel Manso <[EMAIL PROTECTED]> writes:
> I've tryed to use python some times but I get frustrated very quick. I
> get myself many times needing to figure out how to loop through a
> list, declare an associative array, checking how to pass named
> parameters to functions, and simple things like t
1 - 100 of 153 matches
Mail list logo