Karl Kobata wrote:
I am new to python and am wondering. When I create a class, with ‘def’
functions and if this class is instantiated say 50 times. Does this
mean that all the ‘def’ functions code within the class is duplicated
for each instance?
Can someone give me a short and simple answe
On 18 Set, 08:28, Frank Millman <[EMAIL PROTECTED]> wrote:
> I am thinking of adding a check to see if a document has changed since
> it was last validated, and if not, skip the validation step. However,
> I then do not get the default values filled in.
>
> I can think of two possible solutions. I
Karl Kobata wrote:
I am new to python and am wondering. When I create a class, with ‘def’
functions and if this class is instantiated say 50 times. Does this
mean that all the ‘def’ functions code within the class is duplicated
for each instance?
Can someone give me a short and simple answe
On Sep 17, 10:53 pm, "Giampaolo Rodola'" <[EMAIL PROTECTED]> wrote:
> On 17 Set, 19:33, Seb <[EMAIL PROTECTED]> wrote:
>
>
>
> > I'm making a ssl server, but I'm not sure how I can verify the
> > clients. What do I actually need to place in _verify to actually
> > verify that the client cert is sig
On Sep 18, 1:05 am, Michael Palmer <[EMAIL PROTECTED]> wrote:
> On Sep 17, 1:33 pm, Seb <[EMAIL PROTECTED]> wrote:
>
>
>
> > I'm making a ssl server, but I'm not sure how I can verify the
> > clients. What do I actually need to place in _verify to actually
> > verify that the client cert is signed
On Sep 17, 7:33 pm, Seb <[EMAIL PROTECTED]> wrote:
> I'm making a ssl server, but I'm not sure how I can verify the
> clients. What do I actually need to place in _verify to actually
> verify that the client cert is signed by me?
>
> 50 class SSLTCPServer(TCPServer):
> 51 keyFile = "sslce
I have a program which works great when run from the command line.
But when I run it combined with something else such as:
- piping it through less
- cron
- execl (i.e. calling it from another python program)
it gives me a unicode error
File "../myparser.py", line 261, in set_attributes
pri
Hi all,
how to do easy_install to source code, not egg?
(I don't mean "develop" option, it shouldn't call compiled egg-file).
Thank you in advance,
Dmitrey.
--
http://mail.python.org/mailman/listinfo/python-list
dmitrey wrote:
> Hi all,
> how to do easy_install to source code, not egg?
>
> (I don't mean "develop" option, it shouldn't call compiled egg-file).
$ easy_install --help
--editable (-e)Install specified packages in editable form
You additionally need to give the -b-option
Sam wrote:
> I have a program which works great when run from the command line.
>
> But when I run it combined with something else such as:
> - piping it through less
> - cron
> - execl (i.e. calling it from another python program)
>
> it gives me a unicode error
>
> File "../myparser.py", lin
> Most probably because when to running directly inside a terminal, it gets
That was of course meant to be "not running directly inside a terminal".
> it's stdin/stdout as pipes - and python can't attempt to guess the proper
> encoding on that, as it does on a terminal.
Diez
--
http://mail.pytho
Yes it does involve Jailbreaking.
Python
GCC
Java
and Ruby
are all available to run on the iPhone after you Jailbreak it.
Just run the Cydia appliacation (jailbreak's AppStore) to install
anything you want.
For me I have not installed Python (yet). Jailbreak was only to tether
iPhone to my Macb
Keo Sophon wrote:
I've tried calendar.month_name[0], it displays empty string, while
calendar.month_name[1] is "January"? Why does calendar.month_name's
index not start with index 0 as calendar.day_name?
the lists are set up to match the values used by the time and datetime
modules; see e.g.
Steven D'Aprano wrote:
I agree with you that the simple explicit approach is better.
Now, to answer the question the OP didn't ask:
> def choose_with_weighting(actions, weights=None):
> if weights is None:
> weights = [1]*len(actions) # equal weights
> # Taken virtually unchanged
Hi,
Wanting to use pexpect on windows too, I ran into wexpect.
http://sage.math.washington.edu/home/goreckc/sage/wexpect/
I haven't given it a try yet. Does anyone have experience with that?
Almar
2008/9/13 nntpman68 <[EMAIL PROTECTED]>
> Hi,
>
> [EMAIL PROTECTED] wrote:
>
>> On Sep 10, 7:01 pm,
On 17 Sep, 22:18, "Aaron \"Castironpi\" Brady" <[EMAIL PROTECTED]>
wrote:
> On Sep 17, 4:43 am, Paul Boddie <[EMAIL PROTECTED]> wrote:
>
> >http://wiki.python.org/moin/How_can_I_run_an_untrusted_Python_script_...)
>
> These solutions have at least the same bugs that the bare bones
> solution in the
On Sep 9, 9:09 pm, "J. Cliff Dyer" <[EMAIL PROTECTED]> wrote:
> On Tue, 2008-09-09 at 10:49 +0200, Bruno Desthuilliers wrote:
> > Matimus a écrit :
> > > On Sep 8, 12:32 am, Bruno Desthuilliers
> > > <[EMAIL PROTECTED]> wrote:
> > (snip)
> > >> >>> set(a).issubset(set(b))
> > >> True
>
> > > Just
On Sep 18, 3:24 pm, [EMAIL PROTECTED] wrote:
> On Sep 9, 9:09 pm, "J. Cliff Dyer" <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Tue, 2008-09-09 at 10:49 +0200, Bruno Desthuilliers wrote:
> > > Matimus a écrit :
> > > > On Sep 8, 12:32 am, Bruno Desthuilliers
> > > > <[EMAIL PROTECTED]> wrote:
> > > (snip
Hello,
I would like to use a callable object as a method of a class. So, when I
have such normal class:
class f:
version = 17
def a(self):
return self.version
f1 = f()
print f1.a()
I want to change it to something like that:
class add:
def __call__(self
Lee Harr wrote:
I have a class with certain methods from which I want to select
one at random, with weighting.
The way I have done it is this
import random
def weight(value):
def set_weight(method):
method.weight = value
return method
return set_weight
class A(o
On 17 Sep, 11:54, [EMAIL PROTECTED] wrote:
> Anybody tried this port of Python to the iPhone?
>
> http://www.modmyi.com/nativeapps/python-v251/
> http://iphone.natetrue.com/
>
> Hasn't been updated since July 2007. Maybe just a proof-of-concept? I'm
> guessing it involves jailbreaking the p
Hi,
I would like to know your thoughts on a proposed change to optparse
that I have planned. It is possible to add default values to multiple
options using the set_defaults. However, when adding descriptions to
options the developer has to specify it in each add_option() call.
This results in unre
Hi James,
I can't say I really agree with your
proposal. I tend to keep the help
descriptions of my options short
and concise and to the point.
Also, one must use the language's
features (indentation) to your advantage,
as doing so ensure readability.
For example (from my bhimport tool):
def p
Hi all,
I uploaded bbfreeze 0.96.5 to the python package index.
bbfreeze creates standalone executables from python scripts (similar to
py2exe).
bbfreeze works on windows and unix-like operating systems (no OS X
unfortunately).
bbfreeze is able to freeze multiple scripts, handle egg files and
Perhaps it is better to keep descriptions short and store longer
descriptions elsewhere, but there are many programs that have long
descriptions, for example try: ls --help (at least on my machine a lot
of these descriptions are quite long).
2008/9/18 James Mills <[EMAIL PROTECTED]>:
> Hi James,
>
James Mills wrote:
As you can see (as long as you're
reading this in fixed-width fonts)
it _is_ very readable.
given that it only relies on indentation from the left margin, it's no
less readable in a proportional font (unless you're using an font with
variable-width spaces, that is ;-).
Guys,
I'm running python 2.5 and currently using ElementTree to perform my XML
parsing and creation. ElementTree really is a great package for doing this,
however, I've been tasked by our deployment guys to try and move away from
external libraries where possible as it makes their job easier.
Piotr Sobolewski <[EMAIL PROTECTED]> writes:
> I would like to use a callable object as a method of a class. So, when I
> have such normal class:
>
> I want to change it to something like that:
>
> class add:
> def __call__(self, another_self):
> return another_self.version
Piotr Sobolewski <[EMAIL PROTECTED]> writes:
> However, the second version does not work. I think I understand
> why. That's because "a" inside f1 is not a function (but an object).
An object that defines __call__ is perfectly usable as a function.
Your problem is that it doesn't know how to conv
2008/9/18 Robert Rawlins <[EMAIL PROTECTED]>:
> Guys,
>
>
>
> I'm running python 2.5 and currently using ElementTree to perform my XML
> parsing and creation. ElementTree really is a great package for doing this,
> however, I've been tasked by our deployment guys to try and move away from
> externa
Robert Rawlins wrote:
I’m running python 2.5 and currently using ElementTree to perform my XML
parsing and creation. ElementTree really is a great package for doing
this, however, I’ve been tasked by our deployment guys to try and move
away from external libraries where possible as it makes the
Frank> 1. Don't use default values - create the document with all values
Frank> filled in.
Frank> 2. Use python to check for missing values and fill in the defaults
Frank> when processing the document.
Frank> Or maybe the best practice is to *always* validate a document
Fr
Hello there :) ,
I am a python newbie and need to run following code for a task in an
external simulation programm called "Abaqus" which makes use of python
to access the mesh (ensamble of nodes with xy coordinates) of a
certain geometrical model.
[IN is the starting input containing the nodes to
Alex> Unfortunately my len(IN) is about 100.000 and the running time
Alex> about 15h :(
Alex> Any idea to improve it?
numpy?
http://numpy.scipy.org/
http://www.scipy.org/Numpy_Example_List
More immediately, note that you are building a list of len(IN) ints every
time t
> Some is going to kick themselves when they realise
> that ElementTree *is* built in to Python 2.5
>
> http://docs.python.org/whatsnew/modules.html#SECTION000142
Tim, Andrii,
Thanks for the heads up on that! I hadn't noticed they're made it part of
the platform modules, that's ex
Alexzive wrote:
> Hello there :) ,
>
> I am a python newbie and need to run following code for a task in an
> external simulation programm called "Abaqus" which makes use of python
> to access the mesh (ensamble of nodes with xy coordinates) of a
> certain geometrical model.
>
> [IN is the start
Code: Select all
for i in range(len(IN)): #scan all elements of the list IN
for j in range(len(IN)):
if i <> j:
if IN[i].coordinates[0] == IN[j].coordinates[0]:
if IN[i].coordinates[1] == IN[j].coordinates[1]:
SN.append(IN[i].label)
Unfortunate
On Thu, 18 Sep 2008 03:37:54 -0700, James wrote:
> Hi,
>
> I would like to know your thoughts on a proposed change to optparse that
> I have planned. It is possible to add default values to multiple options
> using the set_defaults. However, when adding descriptions to options the
> developer has
Skip:
> indexes = range(len(IN))
> for i in indexes: #scan all elements of the list IN
> for j in indexes:
Nope, use xrange in both situations, and save a list.
Tim Chase:
>for i in xrange(len(IN)):
> for j in xrange(i+1, len(IN)):
>if IN[i].coordinates == IN[j].co
Nemesis wrote:
> XPN (X Python Newsreader) is a multi-platform newsreader with Unicode
> support. It is written with Python+GTK. It has features like
> scoring/actions, X-Face and Face decoding, muting of quoted text,
> newsrc import/export, find article and search in the body, spoiler
> char/rot1
Hi All,
I am trying to fetch HTML content from a website that has
different version of pages for "logged" users and "guseuests" users. I need
to fetch the "logged" user pages. The problem is, even with the use of basic
authentication, I am getting "guest" user page with urllib2.urlopen
On Thu, 18 Sep 2008 05:25:02 -0700, Alexzive wrote:
> Hello there :) ,
>
> I am a python newbie and need to run following code for a task in an
> external simulation programm called "Abaqus" which makes use of python
> to access the mesh (ensamble of nodes with xy coordinates) of a certain
> geom
On 17 Set, 03:29, Todd Whiteman <[EMAIL PROTECTED]> wrote:
> I've put together a tutorial that shows off how to build a GUI
> application using XULRunner (same architectural components as Firefox
> uses) that can be used in conjunction with the Python programming language.
>
> The tutorial covers h
Tim Chase:
for i in xrange(len(IN)):
for j in xrange(i+1, len(IN)):
if IN[i].coordinates == IN[j].coordinates:
SN.append(IN[i].label)
If my college algorithms memory serves me sufficiently, this
reduces your O(N^2) to O(N log N) which will garner you some
decent time savi
On Sep 18, 3:17 pm, pataphor <[EMAIL PROTECTED]> wrote:
> >XPN(X Python Newsreader) is a multi-platform newsreader with Unicode
> > support. It is written with Python+GTK. It has features like
> > scoring/actions, X-Face and Face decoding, muting of quoted text,
> > newsrc import/export, find arti
Robert Rawlins wrote:
Some is going to kick themselves when they realise
that ElementTree *is* built in to Python 2.5
http://docs.python.org/whatsnew/modules.html#SECTION000142
Tim, Andrii,
Thanks for the heads up on that! I hadn't noticed they're made it part of
the platform
Hi,
In wxpython, I made an interactive shell, which creates a remote python
subprocess
to do the interpreting. Communication is done via a pipe. The idea is that
the python
session is an actual process separate from the GUI, which has some
advantages,
like I can have multiple such shells in my app
On Thu, 2008-09-18 at 07:57 -0500, Tim Chase wrote:
> > Code: Select all
> > for i in range(len(IN)): #scan all elements of the list IN
> > for j in range(len(IN)):
> > if i <> j:
> > if IN[i].coordinates[0] == IN[j].coordinates[0]:
> >if IN[i].coordinates[1]
Gary,
No the answer is not too short, thank you for your reply, I am learning
rapidly.
Terry,
The expanded answer is also useful. Now I am getting a better insight on
how python resolves object attributes.
This also gives me more insight on the difference between import
vs from from
I am trying to learn how to use cython, and while I am following the
cython-dev
mailing list I didn't feel like this question was totally appropriate
for its audience
so I am trying here first.
I am on a max os x 10.5.4 running
drtgrav% python
ActivePython 2.5.2.2 (ActiveState Software Inc.)
On Wed, 17 Sep 2008 23:53:36 -0700 (PDT), sui <[EMAIL PROTECTED]> wrote:
> On Sep 17, 8:04 pm, Peter Pearson <[EMAIL PROTECTED]> wrote:
>> On Wed, 17 Sep 2008 05:28:05 -0700 (PDT), sui <[EMAIL PROTECTED]> wrote:
[snip]
>> > socket.error: (110, 'Connection timed out')
[snip]
>> As a simple connectiv
Hi,
Let's say I have an arbitrary list of minor software versions of an
imaginary software product:
l = [ "1.1.1.1", "1.2.2.2", "1.2.2.3", "1.3.1.2", "1.3.4.5"]
I'd like to create a dict with major_version : count.
(So, in this case:
dict_of_counts = { "1.1" : "1",
"1.2" : "
On 2008-09-16, akineko <[EMAIL PROTECTED]> wrote:
> This may not be a Python specific challenge. I have a GUI
> program written in Python + Tkinter. It works very well.
>
> Now, I would like to start it from a shell script. As my GUI
> program includes a server, it should not have more than one
>
On Sep 18, 6:39 am, [EMAIL PROTECTED] wrote:
> I tested it again and found that the behaviour is a little different
> from what I mentioned previously in the mailchain.
> The item is working perfectly the first time around. Now if I close
> the application and run it again (which was what I did ear
On Sep 18, 8:25 am, Alexzive <[EMAIL PROTECTED]> wrote:
> Hello there :) ,
>
> I am a python newbie and need to run following code for a task in an
> external simulation programm called "Abaqus" which makes use of python
> to access the mesh (ensamble of nodes with xy coordinates) of a
> certain ge
Hello,
I have a problem with international characters in multi-line strings.
Works: '''á'''
Works: '''
a'''
Does not work: '''
á'''
By does not work I mean the infamous
'ascii' codec can't encode character u'\xe1' in position 4: ordinal not
in range(128)
I'm using Ubuntu 8.04 with Pytho
On Sep 17, 5:53 pm, Todd Whiteman <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > On Sep 17, 1:21 pm, Todd Whiteman <[EMAIL PROTECTED]> wrote:
> >> Don Spaulding wrote:
> >>> On Sep 16, 8:29 pm, Todd Whiteman <[EMAIL PROTECTED]> wrote:
> I've put together a tutorial that shows off ho
Simon Mullis napisał(a):
> Something like:
>
> dict_of_counts = dict([(v[0:3], "count") for v in l])
>
> I can't seem to figure out how to get "count", as I cannot do x += 1
> or x++ as x may or may not yet exist, and I haven't found a way to
> create default values.
It seems to me that the "count
Jiri Barton wrote:
> Hello,
>
> I have a problem with international characters in multi-line strings.
>
>
> Works: '''á'''
>
> Works: '''
> a'''
>
> Does not work: '''
> á'''
>
>
> By does not work I mean the infamous
>
> 'ascii' codec can't encode character u'\xe1' in position 4: ordinal
On Sep 18, 10:54 am, "Simon Mullis" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Let's say I have an arbitrary list of minor software versions of an
> imaginary software product:
>
> l = [ "1.1.1.1", "1.2.2.2", "1.2.2.3", "1.3.1.2", "1.3.4.5"]
>
> I'd like to create a dict with major_version : count.
>
> (
On Sep 18, 10:54 am, "Simon Mullis" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Let's say I have an arbitrary list of minor software versions of an
> imaginary software product:
>
> l = [ "1.1.1.1", "1.2.2.2", "1.2.2.3", "1.3.1.2", "1.3.4.5"]
>
> I'd like to create a dict with major_version : count.
>
> (
psyco might help a fair bit (10x-40x) here ;->
perhaps look at dumping the data into sqlite then pulling it back out.
It (or the other databases) are designed for tossing around large lumps
of data.
Alexzive wrote:
Hello there :) ,
I am a python newbie and need to run following code for a t
Simon Mullis wrote:
Hi,
Let's say I have an arbitrary list of minor software versions of an
imaginary software product:
l = [ "1.1.1.1", "1.2.2.2", "1.2.2.3", "1.3.1.2", "1.3.4.5"]
I'd like to create a dict with major_version : count.
(So, in this case:
dict_of_counts = { "1.1" : "1",
Hi,
Alexzive wrote:
Hello there :) ,
I am a python newbie and need to run following code for a task in an
external simulation programm called "Abaqus" which makes use of python
to access the mesh (ensamble of nodes with xy coordinates) of a
certain geometrical model.
[IN is the starting input
On Sep 18, 10:54 am, "Simon Mullis" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Let's say I have an arbitrary list of minor software versions of an
> imaginary software product:
>
> l = [ "1.1.1.1", "1.2.2.2", "1.2.2.3", "1.3.1.2", "1.3.4.5"]
>
> I'd like to create a dict with major_version : count.
>
> (
Hi All,
Background
===
I have installed Python for windows today from the python web site .I also
installed pySerial using the Windows installer from the sourceforge web
site. Both installs use the default directories.
Phyton version: Python 2.5.2 (r252:60911, Feb 21 2
Tino Wildenhain wrote:
Hi,
Alexzive wrote:
Hello there :) ,
I am a python newbie and need to run following code for a task in an
external simulation programm called "Abaqus" which makes use of python
to access the mesh (ensamble of nodes with xy coordinates) of a
certain geometrical model.
[I
On Sep 18, 11:43 am, Gerard flanagan <[EMAIL PROTECTED]> wrote:
> Simon Mullis wrote:
> > Hi,
>
> > Let's say I have an arbitrary list of minor software versions of an
> > imaginary software product:
>
> > l = [ "1.1.1.1", "1.2.2.2", "1.2.2.3", "1.3.1.2", "1.3.4.5"]
>
> > I'd like to create a dict
Haha!
Thanks for all of the suggestions... (I love this list!)
SM
2008/9/18 <[EMAIL PROTECTED]>:
> On Sep 18, 10:54 am, "Simon Mullis" <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> Let's say I have an arbitrary list of minor software versions of an
>> imaginary software product:
>>
>> l = [ "1.1.1.1"
Hi,
Wingware has released version 3.1.4 of Wing IDE. This bug fix release is
available for all three product levels of Wing IDE.
*Release Highlights*
This release includes the following:
* Debugger support for Python 2.6
* Support zope buildout directories not named "instance"
* Added highlig
Joe G (Home) wrote:
Hi All,
Background
===
I have installed Python for windows today from the python web site .I also
installed pySerial using the Windows installer from the sourceforge web
site. Both installs use the default directories.
Phyton version: Python 2.5.
"Joe G (Home)" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have installed Python for windows today from the python web site .I also
> installed
> pySerial using the Windows installer from the sourceforge web site.
You need to read the pySerial smallprint, where it say
Hi,
I'm working on a python Package which includes some extension modules
and unit tests. I want to automate some tasks like "build extsion
module, then copy xxx.pyd to folder yyy and run all unit tests from
folder ".
I used google but found no hints to existing solutions.
Can anybody help me
While we're making suggestions, I've always wished that the
--help output displayed the default values for options in
addition to the help text specified by the user. I end up
having to enter the default values twice -- once as a keyword
argument and again in the help text. Then later when I deci
Is there any way to highlight, bold or change the color of one word
in a variable to be displayed on a Tkinter GUI?
Like:
material = "Plastic"
introVal = "This report describes the construction of the %s." % (material)
this is what I want:
This report describes the construction of the Plastic.
On 2008-09-18, Joe G (Home) <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Background
>===
> I have installed Python for windows today from the python web site .I also
> installed pySerial using the Windows installer from the sourceforge web
> site. Both installs use the default di
yea... sorry... i just have all python stuff in the same folder and
messed up...
[EMAIL PROTECTED] wrote:
kalin> mailman has been locking one list out. the web interface just
kalin> hangs and it generates a bunch of locks. it seems that it can not
kalin> write to a log but not
Grant Edwards wrote:
While we're making suggestions, I've always wished that the
--help output displayed the default values for options in
addition to the help text specified by the user. I end up
having to enter the default values twice -- once as a keyword
argument and again in the help text.
Dear List,
I am looking to write a TCP socket server and was wondering what are the
pros and cons of using twisted over the sockets modules bundled in python?
Thanks
James
--
http://www.goldwatches.com/
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
We have a mutilthreaded process in which one of the threads uses too
much memory causing the process to run out of memory. However when
this happens we see a dialog box pop up with the message "fatal error
in GC : too many heap sections." When you click "ok" only then does
the process die.
Is
Tommy Grav <[EMAIL PROTECTED]> writes:
> I am trying to learn how to use cython, and while I am following the
> cython-dev
> mailing list I didn't feel like this question was totally appropriate
> for its audience
> so I am trying here first.
[...]
> Does anyone know what the ImportError means a
I'm doing an app with the AUI manager capabilities (using some of the
wxPython demo's for help). All is well, except I'm a bit disappointed
with the font management.
The default font for all the widgets (TextCtrl's, StaticText's etc) are
a bit large for my design intent and as I try to adjust
Does anyone have a Python recipe for this?
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 18 Sep 2008 11:07:45 -0500, Grant Edwards wrote:
> While we're making suggestions, I've always wished that the --help
> output displayed the default values for options in addition to the help
> text specified by the user. I end up having to enter the default values
> twice -- once as a ke
Rob Wolfe:
> # setup.py
> from distutils.core import setup
> from distutils.extension import Extension
> from Cython.Distutils import build_ext as build_pyx
>
> setup(name = 'pyx_test',
> ext_modules=[Extension('pyx_test', ['test_cython.pyx'])],
> cmdclass = { 'build_ext': build_pyx })
[EMAIL PROTECTED] wrote:
> On Sep 16, 6:03 am, Peter Anderson <[EMAIL PROTECTED]>
> wrote:
>> "/... I don't think you've thought this one through, really./"
>> snip
>>
>> We ought to try and be a little kinder to others on the list, don't you
>> think? :-)
>>
>> snip
>
> Well said!
>From personal
Is there any way to highlight, bold or change the color of one word
in a variable to be displayed on a Tkinter GUI?
Like:
material = "Plastic"
introVal = "This report describes the construction of the %s." % (material)
this is what I want:
This report describes the construction of the Plastic.
On Thu, Sep 18, 2008 at 1:06 PM, April Lekin <[EMAIL PROTECTED]> wrote:
> Is there any way to highlight, bold or change the color of one word in a
> variable to be displayed on a Tkinter GUI?
Yes.
>
> Like:
>
> material = "Plastic"
> introVal = "This report describes the construction of the %s."
Mailing List SVR <[EMAIL PROTECTED]> writes on Tue, 16 Sep 2008 08:31:13 +0200:
> ...
> however my server require client
> certificate authentication,
>
> does soaplib or zsi work in this environment?
ZSI allows you to provide an alternative transport.
That's the usual way to let ZSI work over "h
"Marco Bizzarri" <[EMAIL PROTECTED]> writes on Mon, 15 Sep 2008 20:26:27 +0200:
> On Mon, Sep 15, 2008 at 8:15 PM, Stefan Behnel <[EMAIL PROTECTED]> wrote:
> > Mailing List SVR wrote:
> >> I have to implement a soap web services from wsdl, the server is
> >> developed using oracle, is zsi or some o
On Sep 18, 2008, at 12:35 PM, Rob Wolfe wrote:
I would try to use `distutils` because this package is much wiser
than me and knows all necessary switches for gcc. ;)
That worked! Thanks
Cheers
Tommy
--
http://mail.python.org/mailman/listinfo/python-list
Armin wrote:
> Duncan Booth wrote:
>> "Chris Rebert" <[EMAIL PROTECTED]> wrote:
>>> On Tue, Sep 16, 2008 at 1:20 AM, Armin <[EMAIL PROTECTED]> wrote:
[1,2,3,4,7].append(c) -> Is this a valid expression?
>>> Literally, no, because you can't call methods on literals.
>>
>> Rubbish. There is no
On Sep 18, 11:18 am, [EMAIL PROTECTED] wrote:
> dup=set()
> SN=[]
> for item in IN:
> c=item.coordinates[0], item.coordinates[1]
> if c in dup:
> SN.append(item.label)
> else:
> dup.add(c)
+1 for O(N)
If item.coordinates is just an (x, y) pair, you can skip building c
and sav
On Sep 18, 12:01 am, Steven D'Aprano
<[EMAIL PROTECTED]> wrote:
> On Wed, 17 Sep 2008 20:34:02 -0700, Mensanator wrote:
> > And technically, weeks begin on Sunday, not Monday, but business likes
> > to think of Monday as day 0 of the week and it doesn't conflict with any
> > prior date format.
>
>
On Thu, Sep 18, 2008 at 7:10 PM, Dieter Maurer <[EMAIL PROTECTED]> wrote:
> "Marco Bizzarri" <[EMAIL PROTECTED]> writes on Mon, 15 Sep 2008 20:26:27
> +0200:
>> On Mon, Sep 15, 2008 at 8:15 PM, Stefan Behnel <[EMAIL PROTECTED]> wrote:
>> > Mailing List SVR wrote:
>> >> I have to implement a soap w
On 2008-09-18, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> On Thu, 18 Sep 2008 11:07:45 -0500, Grant Edwards wrote:
>
>> While we're making suggestions, I've always wished that the --help
>> output displayed the default values for options in addition to the help
>> text specified by the u
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
g] On Behalf Of Steve Holden
> Sent: Thursday, September 18, 2008 5:59 PM
> To: python-list@python.org
> Subject: Extracting hte font name from a TrueType font file
>
> Does anyone have a Python recipe for this?
>
*Pycon 2009 (US) – Call for Tutorials*
The period for submitting tutorial proposals for Pycon 2009 (US) is now open
and will continue through Friday, October 31th. This year features two
"pre-conference" days devoted to tutorials on Wednesday March 25 & Thursday
March 26 in Chicago. This allows fo
On Sep 18, 2008, at 12:35 PM, Rob Wolfe wrote:
I would try to use `distutils` because this package is much wiser
than me and knows all necessary switches for gcc. ;)
That worked! Thanks
Cheers
Tommy
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 18 Sep 2008 Alexzive wrote:
>I am a python newbie and need to run following code for a task in an
>external simulation programm called "Abaqus" which makes use of python
>to access the mesh (ensamble of nodes with xy coordinates) of a
>certain geometrical model.
>
>[IN is the starting inpu
1 - 100 of 150 matches
Mail list logo