From: "Emile van Sebille"
On 1/25/2011 3:33 PM rantingrick said...
Tkinter is old and in many ways insufficient for 21st century GUIs. We
need to decide what should come next. I believe wxPython is our best
hope. Wx may not be the best it can be, but it is the best we have at
this time.
Then
From: "Emile van Sebille"
Are third party installations nonsense? Or should python come with all
libraries for all potential applications? And then always keep up with
best of breed?
Python should not include all the libraries for all the potential
applications, but it should promote the to
From: "geremy condra"
There's a difference between what you say and how you say it. If a
friend came up to you and said "give me $100 right now!", you probably
wouldn't do it. If the same friend came up to you and said "I know
this is a big thing to ask, but I really need $100 and I can't
guaran
From: "Nicholas Devenish"
Octavian, we get it - you are on the warpath about accessibility. And this
is, in a way, a good thing, because, yes, programmers should in general
think more about accessibility when designing their programs. But nobody
was ever persuaded to consider a complicated and
From: "Steven D'Aprano"
Quality code is a good thing, but there are people who write good code
but are so obnoxious that you wouldn't listen to a word they have to say,
and people who are only mediocre or average coders, but are otherwise
helpful and friendly.
I'm amazed that Rick actually aske
On 1/25/11 8:21 PM, Steven D'Aprano wrote:
> TL;DR. The shorter version: stop being a dick, and people will treat you
> seriously.
I actually read the original list, and agreed with every point.
But this concise summary spells it out perfectly.
Stop being a dick, rick.
--
Stephen Hansen
On 1/26/2011 2:11 AM, rantingrick wrote:
On Jan 26, 12:53 am, Terry Reedy wrote:
I only see "self.wait_window(self)" in the Dialog base class and not in
SimpleDialog, which is what I though you were talking about. It is the
last line of Dialog.__init__.
Yes. In the module "tkSimpleDialog"
Terry Reedy writes:
> On 1/23/2011 4:05 PM, CM wrote:
>> In Python, is there a recommended way to write conditionals of the
>> form:
>>
>> "if A and B but not C or D in my list, do something." ?
>>
>> I may also have variations on this, like "if A but not B, C, or D".
>>
>> Do I have to just wri
How to read syntax like this given in the documentation of python?
(Newbie)
defparameter ::= parameter ["=" expression]
http://docs.python.org/reference/compound_stmts.html#function-definitions
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Jan 25, 2011 at 3:24 PM, Brian Curtin wrote:
> On Tue, Jan 25, 2011 at 04:25, Geoff Bache wrote:
>>
>> Hi all,
>>
>> I have a Python process on Windows and would like to start a Python
>> subprocess using the same interpreter. I wonder how to go about this?
>>
>> First, I tried the obviou
On 1/25/2011 3:51 PM, Matthew Roth wrote:
On Jan 25, 6:20 pm, David Robinow wrote:
On Tue, Jan 25, 2011 at 5:59 PM, Matthew Roth wrote:
On Jan 25, 9:34 pm, John Nagle wrote:
...
You can install a MySQL server under Windows, and talk to the server
from the Cygwin environment. That's a
On Jan 26, 11:18 am, "Octavian Rasnita" wrote:
> From: "rantingrick"
> On Jan 25, 3:41 pm, Corey Richardson wrote:
>
> > Do you honestly think he was talking about the accessibility problem?
> > IMO that should move to another thread, because this one is simply
> > about, as the subject suggests
On Wed, 26 Jan 2011 00:08:41 -0800, sl33k_ wrote:
> How to read syntax like this given in the documentation of python?
> (Newbie)
>
> defparameter ::= parameter ["=" expression]
>
> http://docs.python.org/reference/compound_stmts.html#function-
definitions
See here for an explanation:
http:
On 26.01.2011 09:08, sl33k_ wrote:
How to read syntax like this given in the documentation of python?
(Newbie)
defparameter ::= parameter ["=" expression]
http://en.wikipedia.org/wiki/Backus-Naur_Form
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Jan 25, 2011 at 6:48 PM, Terry Reedy wrote:
> This is correct!
>
> print(len(mo))
> TypeError: object of type 'MyObj' has no len()
That's interesting. I must admit I was not thinking about special
methods in my original post, I used that example just because of Chris
response.
by the way
I an not a Python newbie but working with xml is new to me.
I get data through a soap connection, using suds, and want to convert that
to objects which I can use to populate a rather complex database.
I have been able to parse the xml using
tree = etree.iterparse(infile,events=("start","end")) b
From: "rusi"
On Jan 26, 11:18 am, "Octavian Rasnita" wrote:
From: "rantingrick"
On Jan 25, 3:41 pm, Corey Richardson wrote:
> Do you honestly think he was talking about the accessibility problem?
> IMO that should move to another thread, because this one is simply
> about, as the subject sug
Johann Spies, 26.01.2011 10:07:
I an not a Python newbie but working with xml is new to me.
I get data through a soap connection, using suds, and want to convert that
to objects which I can use to populate a rather complex database.
Your problem description is pretty comprehensive in general.
James Ravenscroft wrote:
>> > I can't run your code because you didn't make it standalone,
> Thanks for the heads up, I've made a simple version of the clusterer
> which you can view on pastebin: http://pastebin.com/7HmAkmfj If you have
> time to look through my code I would be very grateful!
>
sl33k_ wrote:
How to read syntax like this given in the documentation of python?
(Newbie)
defparameter ::= parameter ["=" expression]
http://docs.python.org/reference/compound_stmts.html#function-definitions
Just in case you're about to learn python using these defintions:
Nobody's lea
Stefan Behnel, 26.01.2011 10:29:
Johann Spies, 26.01.2011 10:07:
I an not a Python newbie but working with xml is new to me.
I get data through a soap connection, using suds, and want to convert that
to objects which I can use to populate a rather complex database.
Your problem description is
On 01/-10/-28163 02:59 PM, nair rajiv wrote:
Hi,
I was exploring python. I wanted to know more about the python
interpreter i.e the technical details of how it has been written. If I am
directed
to the code that also will be fine. The implementation of python data
structures lists, tuples and d
On 26 January 2011 12:51, Stefan Behnel wrote:
>
> The example you sent me is almost perfect for lxml.objectify. Basically,
> you'd do something like this:
>
>
Thank you very much. You have helped me a lot.
Regards
Johann
--
May grace and peace be yours in abundance through the full knowledge
Johann Spies, 26.01.2011 13:22:
On 26 January 2011 12:51, Stefan Behnel wrote:
The example you sent me is almost perfect for lxml.objectify. Basically,
you'd do something like this:
Thank you very much. You have helped me a lot.
You're welcome. If you have any suggestions how to improve the
On 01/26/2011 04:05 AM, Jean-Michel Pichavant wrote:
How to read syntax like this given in the documentation of python?
(Newbie)
defparameter ::= parameter ["=" expression]
Just in case you're about to learn python using these defintions:
Nobody's learning a syntax that way.
They are not m
>I don't know why you didn't say this before.
Comprehention, Octavian. I've made that point multiple times, but your
to stuck on talking about how selfish people are.
>The other part of the discussion is related to the accessibility and
care for >accessibility and that discussion is not nice at
From: "Littlefield, Tyler"
> >I don't know why you didn't say this before.
> Comprehention, Octavian. I've made that point multiple times, but your
> to stuck on talking about how selfish people are.
You didn't say that WxPython can't be used with Python 3. Have you said that?
> >The other part
From: "Littlefield, Tyler"
> >I don't know why you didn't say this before.
> Comprehention, Octavian. I've made that point multiple times, but your
> to stuck on talking about how selfish people are.
You didn't say that WxPython doesn't work on Python 3, so I don't know what you
are talking abo
On 1/25/2011 5:07 PM rantingrick said...
On Jan 25, 6:55 pm, Emile van Sebille wrote:
Oh, that everyone should blindly accept you as is and without regard for
established protocols
What protocols? Where is this standard posted? Can you give me a link?
I would like to know what is expected of
I have following two python scripts
-namelookupWrapper.py
-namelookup.py
The namelookupWrapper.py takes input of "memberId", "memberName" from
CLI and has following code snippet
idf = sys.argv[1]
namef = sys.argv[2]
real_script = "C:\\Splunk\\etc\\apps\\search\\bin\\namelookup.py"
r = csv.reader
>with JAWS because it is the most used screen reader.
Get off your me soapbox. Jaws is not the most used. NVDA is taking over,
quite fast, and lots of people have totally switched to mac or Vinux
because of the problems with Jaws. It's most used in corporate sektors
still maybe, but lots of end
On 1/25/2011 10:08 PM Octavian Rasnita said...
From: "Emile van Sebille"
Why is WxPython ineligible?
I think Terry's point was compatibility with python3 -- which wx
apparently isn't yet.
Emile
Well, I didn't know this, and it is a valid reason.
This means that it is true that there is no
On Jan 26, 9:47 am, "Octavian Rasnita" wrote:
> I couldn't find the word soapbox in the dictionary so I don't know what it
> means. I guess that not the soap + box.
> Please be more clear and not talk like the high school kids.
http://en.wikipedia.org/wiki/Soapbox
--
http://mail.python.org/m
I just installed Python 3,0 on my machine. I cannot use 3.0
exclusively yet however i was interested in just poking around and
acquiring a taste if you will. I was happy to find that the new
Tkinter module names now follow convention and are placed correctly...
example: "tkinter.simpledialog"
How
On Jan 26, 12:54 am, rantingrick wrote:
> On Jan 26, 12:19 am, rantingrick wrote:
>
> Actually i found more cruft. Here is something that would be
> acceptable although i had to wrap lines shorter than i normally would
> for the sake of Usenet. Who ever wrote that code should be lashed 50
> times
I have following two python scripts
-namelookupWrapper.py
-namelookup.py
The namelookupWrapper.py takes input of "memberId", "memberName" from
CLI and has following code snippet
idf = sys.argv[1]
namef = sys.argv[2]
real_script = "C:\\Splunk\\etc\\apps\\search\\bin\\namelookup.py"
r = csv.reader(
On 1/26/2011 7:51 AM bansi said...
I have following two python scripts
-namelookupWrapper.py
-namelookup.py
The namelookupWrapper.py takes input of "memberId", "memberName" from
CLI and has following code snippet
idf = sys.argv[1]
namef = sys.argv[2]
real_script = "C:\\Splunk\\etc\\apps\\searc
What is the correct file mode to pass to open() when I want to both read
and write on the open file?
--
http://mail.python.org/mailman/listinfo/python-list
On 1/26/11 10:00 AM, Emile van Sebille wrote:
On 1/25/2011 10:08 PM Octavian Rasnita said...
From: "Emile van Sebille"
Why is WxPython ineligible?
I think Terry's point was compatibility with python3 -- which wx
apparently isn't yet.
Emile
Well, I didn't know this, and it is a valid reas
On 1/26/2011 8:00 AM rantingrick said...
I just installed Python 3,0 on my machine.
Try it again on the current release candidate --
http://www.python.org/download/releases/3.2/ -- testing old first
release code and reporting on its problems won't get any traction.
Verify the problem contin
On Jan 22, 6:07 pm, rantingrick wrote:
> ---
> Challenge 1: (Simple Directory Viewer)
> ---
>
> Create a simple Directory Viewer GUI. You CANNOT use a treectrl! The
> point of this challenge is to show that Tkinter has no s
On Wed, 26 Jan 2011 11:32:03 -0500, mpnordland wrote:
> What is the correct file mode to pass to open() when I want to both read
> and write on the open file?
open("filename", "r+") for text mode, "r+b" for binary mode. If your
operating system does not distinguish between the two, you can use e
On Jan 26, 10:43 am, Emile van Sebille wrote:
> On 1/26/2011 8:00 AM rantingrick said...
> > I just installed Python 3,0 on my machine.
>
> Try it again on the current release candidate
> --http://www.python.org/download/releases/3.2/-- testing old first
>
> Seehttp://docs.python.org/bugs.htmlht
Am struggling to understand Python method-to-instance binding
Anyone know why this example throws a TypeError?
> #!/usr/bin/env python
>
> import functools
>
> # Take a generator function (i.e. a callable which returns a generator) and
> # return a callable which calls .send()
> class coroutine
On Jan 26, 2011, at 10:26 AM, Octavian Rasnita wrote:
> You didn't say that WxPython can't be used with Python 3. Have you said that?
Some besides Peter pointed this out a few days ago.
>>> The other part of the discussion is related to the accessibility and
>> care for >accessibility and that
On Jan 26, 11:30 am, Emile van Sebille wrote:
> On 1/26/2011 7:51 AM bansi said...
>
>
>
>
>
> > I have following two python scripts
> > -namelookupWrapper.py
> > -namelookup.py
>
> > The namelookupWrapper.py takes input of "memberId", "memberName" from
> > CLI and has following code snippet
>
> >
I'm looking at extended slicing and wondering when and how to use slice lists:
slicing ::= simple_slicing | extended_slicing
simple_slicing ::= primary "[" short_slice "]"
extended_slicing ::= primary "[" slice_list "]"
slice_list ::= slice_item ("," slice_item)* [","]
slice_i
thanks
--
http://mail.python.org/mailman/listinfo/python-list
On 1/26/2011 9:04 AM Jack Bates said...
Am struggling to understand Python method-to-instance binding
Anyone know why this example throws a TypeError?
> #!/usr/bin/env python
>
> import functools
>
> # Take a generator function (i.e. a callable which returns a generator) and
> # return a c
On Jan 26, 10:07 am, Akand Islam wrote:
> I really appreciate your cooperation. The codes you have written print
> in command window, but I want to print (i.e. a popup window will
> appear to select printer in order to print). Please assist me
> regarding this.
Ok, read on...
> I am optimist th
From: "Robert Kern"
> That's not Terry's point. The reasons he's referring to (and stated
> previously)
> are as follows:
>
> 1. The license of wxWidgets and wxPython is not as permissive as Python's.
> The
> Python developers, as a matter of policy, do not want to include code into
> the
>
On Wed, Jan 26, 2011 at 12:20 PM, Gerald Britton
wrote:
> I'm looking at extended slicing and wondering when and how to use slice lists:
>
> slicing ::= simple_slicing | extended_slicing
> simple_slicing ::= primary "[" short_slice "]"
> extended_slicing ::= primary "[" slice_list "]
From: "Emile van Sebille"
...
>> Well, I didn't know this, and it is a valid reason.
>> This means that it is true that there is no enough maintainance force to
>> keep WxPython updated.
>> Did I understand correctly?
>
> Not at all -- wxPython is an active funded ongoing project. Review the
> r
On Wed, Jan 26, 2011 at 11:53 AM, rantingrick wrote:
> On Jan 26, 10:43 am, Emile van Sebille wrote:
>> On 1/26/2011 8:00 AM rantingrick said...
>
>> > I just installed Python 3,0 on my machine.
>>
>> Try it again on the current release candidate
>> --http://www.python.org/download/releases/3.2/
Jack Bates wrote:
Am struggling to understand Python method-to-instance binding
Anyone know why this example throws a TypeError?
#!/usr/bin/env python
import functools
# Take a generator function (i.e. a callable which returns a generator) and
# return a callable which calls .send()
class
From: "Tommy Grav"
>> You didn't say that WxPython can't be used with Python 3. Have you said that?
>
> Some besides Peter pointed this out a few days ago.
I don't remember to have read that. But who knows, maybe I have missed it. Does
anyone have that message?
> Python 2 is in bug-fix mode a
From: "Littlefield, Tyler"
> >with JAWS because it is the most used screen reader.
> Get off your me soapbox. Jaws is not the most used. NVDA is taking over,
> quite fast, and lots of people have totally switched to mac or Vinux
Lots of people means an insignifiant percent of users compared wit
On 1/26/11 11:20 AM, Gerald Britton wrote:
I'm looking at extended slicing and wondering when and how to use slice lists:
slicing ::= simple_slicing | extended_slicing
simple_slicing ::= primary "[" short_slice "]"
extended_slicing ::= primary "[" slice_list "]"
slice_list ::
On Wed, Jan 26, 2011 at 9:20 AM, Gerald Britton
wrote:
> I'm looking at extended slicing and wondering when and how to use slice lists:
>
> slicing ::= simple_slicing | extended_slicing
> simple_slicing ::= primary "[" short_slice "]"
> extended_slicing ::= primary "[" slice_list "]"
On Jan 26, 10:35 am, Robert Kern wrote:
> On 1/26/11 10:00 AM, Emile van Sebille wrote:
> That's not Terry's point. The reasons he's referring to (and stated
> previously)
> are as follows:
>
> 1. The license of wxWidgets and wxPython is not as permissive as Python's. The
> Python developers, as
On Wed, Jan 26, 2011 at 11:53 AM, rantingrick wrote:
> Why would i want to waste bandwidth downloading an RC? Can i not just
> browse the source online?
If I understand what you're asking for, the answer is
http://svn.python.org/view . If you're specifically looking for 3.2rc1,
then I believe
On 1/26/2011 9:20 AM Gerald Britton said...
I'm looking at extended slicing and wondering when and how to use slice lists:
I think the use of the term slice_list below is simply as the content
between the encompassing brackets, eg in mylist[1:2:3] slice_list refers
to 1:2:3. So, you don't ac
> That's just what I'd like and I suppose can't be currently done with
> current ABC, PyProtocols or zope.interface implementations, right?
It can. With __instancecheck__ you can override isinstance. It is
possible (for example) to write a subclass of abc.ABCMeta, which
extends __instancecheck__ t
On Tue, Jan 25, 2011 at 11:10 PM, Octavian Rasnita wrote:
> From: "geremy condra"
>>
>> There's a difference between what you say and how you say it. If a
>> friend came up to you and said "give me $100 right now!", you probably
>> wouldn't do it. If the same friend came up to you and said "I kno
On Wed, Jan 26, 2011 at 7:51 AM, bansi wrote:
> I have following two python scripts
> -namelookupWrapper.py
> -namelookup.py
>
>
> The namelookupWrapper.py takes input of "memberId", "memberName" from
> CLI and has following code snippet
>
> idf = sys.argv[1]
> namef = sys.argv[2]
> real_script =
> However some things never change it seems and some improvements are
> actually a step backwards. The same problems with the unit test in 2.x
> got ported to 3.x. And the new SimpleDialog is just more lackluster
> code like we've seen before. I was hoping to be amazed, i am
> disappointed and disg
Dear Room,
I am a python programmer, from India(New Delhi area), and was in
Bangalore for long days. My specialization is Natural Language
Processing, -Machine Learning(worked on Naive Bayes, SVM, HMM, CRF). I
am looking for some open projects in Python-in Machine Learning/NLP
area, preferably fro
On 1/26/11 11:46 AM, Octavian Rasnita wrote:
From: "Robert Kern"
That's not Terry's point. The reasons he's referring to (and stated previously)
are as follows:
1. The license of wxWidgets and wxPython is not as permissive as Python's. The
Python developers, as a matter of policy, do not want t
On 26/01/2011 18:19, rantingrick wrote:
SUMMARY: We create an abstraction API atop "Robin's WxPython". We
include only the API in the stdlib at this time and we keep Tkinter in
maintenance. Then over the next few years we start a fresh wxPython
project that will be acceptable for the stdlib. Some
On 1/26/11 11:19 AM, Octavian Rasnita wrote:
From: "Emile van Sebille"
...
Well, I didn't know this, and it is a valid reason.
This means that it is true that there is no enough maintainance force to
keep WxPython updated.
Did I understand correctly?
Not at all -- wxPython is an active funded
On 26.01.2011 18:04, Octavian Rasnita wrote:
From: "Littlefield, Tyler"
with JAWS because it is the most used screen reader.
Get off your me soapbox. Jaws is not the most used. NVDA is taking over,
quite fast, and lots of people have totally switched to mac or Vinux
Lots of people means an in
It doesn't support a good voice synthesizer like Eloquence or IBM Via
voice, but only eSpeak which sounds horrible, it doesn't have a
scripting language
ready to use as JAWS and Window Eyes do, it doesn't offer the
possibility of reading with the mouse cursor as JAWS does with its so
called JAW
On Jan 27, 12:02 am, Nicholas Devenish wrote:
>
> Heck, I am probably wasting my time with this post; but you come across
> as genuine in your held central beliefs, and so either serious or the
> most dedicated and adept troll I have ever encountered. In the case of
> the former, I hold an optimis
On Jan 26, 1:02 pm, Nicholas Devenish wrote:
> I look forward to reading your PEP and initial design documents, though
> I suspect you would need the latter and to get some a decent portion of
> work done before it would even be considered as an inclusion into the
> standard library.
Yes i want
I have do some log processing which is usually huge. The length of each line
is variable. How can I get the last line?? Don't tell me to use readlines or
something like linecache...
--
http://mail.python.org/mailman/listinfo/python-list
On 1/26/11 9:19 AM, Octavian Rasnita wrote:
> From: "Emile van Sebille"
> ...
>>> Well, I didn't know this, and it is a valid reason.
>>> This means that it is true that there is no enough maintainance force to
>>> keep WxPython updated.
>>> Did I understand correctly?
>>
>> Not at all -- wxPython
On Jan 26, 1:31 pm, Chris Rebert wrote:
> On Wed, Jan 26, 2011 at 7:51 AM, bansi wrote:
> > I have following two python scripts
> > -namelookupWrapper.py
> > -namelookup.py
>
> > The namelookupWrapper.py takes input of "memberId", "memberName" from
> > CLI and has following code snippet
>
> > idf
How does "return True" and "return False" affect the execution of the
calling function?
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 26, 2:07 pm, Stephen Hansen wrote:
> And some people have absolutely no need-- no need at all-- for any sort
> of GUI programming at all. This group is actually really, really big.
Stephen "Strawman" Hansen: If he only had a brain! :-)
That is the most obvious straw-man to date in this t
On Jan 26, 2:26 pm, sl33k_ wrote:
> How does "return True" and "return False" affect the execution of the
> calling function?
>>> def f1():
pass
>>> print f1()
None
>>> def f2():
return
>>> print f2()
None
>>> def f3():
return True
>>> print f3()
True
>>> def f4()
On Jan 26, 11:55 am, Benjamin Kaplan wrote:
> The code is hosted onhttp://svn.python.org
Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 26, 11:55 am, Benjamin Kaplan wrote:
[...snip...]
Well i should have looked before i leaped :)
This looks like an old 2.x version. I am looking for the newest
version with is renamed to "simpledialog" and contains a new class
called "SimpleDialog". Do you know were i can view this module
From: "geremy condra"
> At least 40% of my coworkers do not speak English as their native
> language. Your problem is not the language. Your problem is your
> attitude.
The atitude considered nice is just duplicity for convincing others, and I
don't like duplicity. I like to know exactly what th
On Jan 26, 2:37 pm, rantingrick wrote:
> On Jan 26, 2:07 pm, Stephen Hansen wrote:
>
> > And some people have absolutely no need-- no need at all-- for any sort
> > of GUI programming at all. This group is actually really, really big.
>
> Stephen "Strawman" Hansen: If he only had a brain! :-)
>
>
On Jan 26, 2:11 am, Terry Reedy wrote:
> In 3.x, the module is now tk.simpledialog -- all lower case. The purpose
> of all lowercase module names is to avoid confusion with upper case
> class names.
Yes Terry, i found the new module and documented the bugs in a new
thread. I am not sure if the b
On 1/26/2011 2:59 AM Xavier Heruacles said...
I have do some log processing which is usually huge. The length of each line
is variable. How can I get the last line?? Don't tell me to use readlines or
something like linecache...
seek
-rw-rw1 autofax mail 1061716366 Jan 26 12:45 au
On 26/01/2011 10:59, Xavier Heruacles wrote:
I have do some log processing which is usually huge. The length of each
line is variable. How can I get the last line?? Don't tell me to use
readlines or something like linecache...
Seek to somewhere near the end and then read use readlines(). If you
Sent from my LG phone
python-list-requ...@python.org wrote:
>Send Python-list mailing list submissions to
> python-list@python.org
>
>To subscribe or unsubscribe via the World Wide Web, visit
> http://mail.python.org/mailman/listinfo/python-list
>or, via email, send a message with su
Sent from my LG phone
python-list-requ...@python.org wrote:
>Send Python-list mailing list submissions to
> python-list@python.org
>
>To subscribe or unsubscribe via the World Wide Web, visit
> http://mail.python.org/mailman/listinfo/python-list
>or, via email, send a message with su
Sent from my LG phone
python-list-requ...@python.org wrote:
>Send Python-list mailing list submissions to
> python-list@python.org
>
>To subscribe or unsubscribe via the World Wide Web, visit
> http://mail.python.org/mailman/listinfo/python-list
>or, via email, send a message with su
On 1/26/11 12:26 PM, sl33k_ wrote:
> How does "return True" and "return False" affect the execution of the
> calling function?
It doesn't -- the value 'True' or 'False' is simply returned, and
assigned to a name if the calling function does so explicitly. But
there's no built in affects. If you wa
On 01/26/2011 01:18 AM, Octavian Rasnita wrote:
> From: "rantingrick"
> On Jan 25, 3:41 pm, Corey Richardson wrote:
>
>> Do you honestly think he was talking about the accessibility problem?
>> IMO that should move to another thread, because this one is simply
>> about, as the subject suggests,
Since it seems the python motto is "Batteries included", then it would
seem to me that wxPython is the natural fit as it also has "Batteries
included" (e.g. accessibility, native look-n-feel, mature and evolving,
can produce simple or complex gui programs, etc, etc).
--
Brendan Simon
www.etrix
bansi writes:
> Thanks Chris. Sorry for mis-communicating, the two python scripts are
> dependant in a way that namelookupWrapper.py needs to pass csv record
> object to another python script
Why have you structured them that way, though? What constraint is
keeping you from doing the work in a s
I have a class ``A`` that is intentionally incomplete:
it has methods that refer to class variables that do not exist.
The class ``A`` has several complicated methods, a number
of which reference the "missing" class variables.
Obviously, I do not directly use ``A``.
I have a class factory ``f``` t
On 1/26/2011 12:26 PM sl33k_ said...
How does "return True" and "return False" affect the execution of the
calling function?
That depends on the calling function. It will control what it does next
generally based on the returned value, but it could also simply store
the result.
def isACu
On 26.01.2011 21:26, sl33k_ wrote:
How does "return True" and "return False" affect the execution of the
calling function?
If only affects the calling function if you use the return value:
def foo():
return True
def bar1():
foo() # nothing difference, whether foo() returns True or Fal
On Jan 26, 4:37 pm, Alan wrote:
> I have a class factory ``f``` that subclasses ``A`` *only* in
> order to define the class variables.
I suppose it would be clearer to say that `f` *returns*
subclasses of `A`. Hopefully that was clear ...
Alan Isaac
--
http://mail.python.org/mailman/listinfo/p
On 2011-01-26, Octavian Rasnita wrote:
> From: "geremy condra"
>> At least 40% of my coworkers do not speak English as their native
>> language. Your problem is not the language. Your problem is your
>> attitude.
>
> The atitude considered nice is just duplicity for convincing others,
> and I don
Attached are a config file parser that i'm working on, and a example
config file. Basically, what my problem is is in write_config, it should
search through the file, and replace the lines with whatever the
modified version is, it is also designed to ignore comments. To see my
problem (which is
1 - 100 of 138 matches
Mail list logo