Re: whitespace in a word doc

2010-07-15 Thread Bruce
On Jul 15, 9:59 am, Tim Golden wrote: > On 15/07/2010 08:45, Bruce wrote: > > > > > > > I'm trying to create a word doc using win32com. I don't get the same > > whitespace as when printing the same stuff in the dos window. At the > > termi

mysqldb - parameter issue

2010-08-11 Thread bruce
hi... using python v2.6, using the mysqldb lib the test tbl looks like: DROP TABLE IF EXISTS `functionError_TBL`; CREATE TABLE `functionError_TBL` ( `parentFunction` varchar(100) NOT NULL default '', `currentFunction` varchar(100) NOT NULL default '', `parentFunctionID` int(10) NOT NULL def

Re: mysqldb - parameter issue

2010-08-11 Thread bruce
c.. i didn't see anything that discussed this... thanks >ins = """insert into functionError_TBL >(errorStatus, CollegeID, processTime) >values (%s, %s, from_unixtime(%s) )""" > On We

Re: looking for a new router

2013-07-09 Thread Kumita Bruce
rvice, tell them what you're needing, and support local > business with your custom. That'll be more helpful to you than asking > on a mailing list that's about Python. :) > > ChrisA > -- > http://mail.python.org/mailman/listinfo/python-list > -- Cheers, Bruce -- http://mail.python.org/mailman/listinfo/python-list

A thread import problem

2012-07-18 Thread Bruce Sherwood
blem. I've tried with no success various versions of the exec statement, with respect to its global and local environment. Can anyone explain why the math import statement causes a problem? Thanks for any advice you can give. Bruce Sherwood --- The main program: fr

Re: A thread import problem

2012-07-20 Thread Bruce Sherwood
the challenge is to have the visual module set up the Cocoa environment, with the user's program running in a secondary thread. Any ideas? Bruce Sherwood On Wed, Jul 18, 2012 at 5:03 PM, Bruce Sherwood wrote: > I'm trying to do something rather tricky, in which a program imports a >

Re: A thread import problem

2012-07-21 Thread Bruce Sherwood
e to have A import B and B import A, though now that you describe this (if that's indeed what you mean) it makes sense. The original instance of A won't get past its initial import statement because the main loop won't return to it. Bruce Sherwood On Sat, Jul 21, 2012 at 2:32

Re: A thread import problem

2012-07-21 Thread Bruce Sherwood
l be able to tell me that I'm doing something wrong! Incidentally, a simple test is to execute the file ABA.py, in which case everything works. Bruce Sherwood --- testABA.py -- execute this file from ABA import * print('exec testABA') from

Re: A thread import problem

2012-07-21 Thread Bruce Sherwood
Thanks much for this clear statement. I hadn't managed to find any documentation on this specific issue. Bruce Sherwood On Sat, Jul 21, 2012 at 10:26 AM, Dave Angel wrote: > Two of the things you mustn't do during an import: > > 1) start or end any threads > 2) import so

Re: A thread import problem

2012-07-21 Thread Bruce Sherwood
On Sat, Jul 21, 2012 at 2:53 PM, Dave Angel wrote: > On 07/21/2012 04:36 PM, Bruce Sherwood wrote: >> Thanks much for this clear statement. I hadn't managed to find any >> documentation on this specific issue. >> >> Bruce Sherwood >> >> On Sat, Jul 21,

Re: A thread import problem

2012-07-21 Thread Bruce Sherwood
On Sat, Jul 21, 2012 at 4:16 PM, Dennis Lee Bieber wrote: > On Sat, 21 Jul 2012 10:11:30 -0600, Bruce Sherwood > declaimed the following in > gmane.comp.python.general: > > >> >> --- >> testABA.py -- execute this file >> >

Re: A thread import problem

2012-07-22 Thread Bruce Sherwood
On Sat, Jul 21, 2012 at 5:47 PM, Dennis Lee Bieber wrote: > On Sat, 21 Jul 2012 17:10:05 -0600, Bruce Sherwood > declaimed the following in > gmane.comp.python.general: > > >> Thanks, but the problem I need to solve does not permit putting a >> function like runn

Re: A thread import problem

2012-07-22 Thread Bruce Sherwood
On Sun, Jul 22, 2012 at 3:48 PM, Dennis Lee Bieber wrote: > On Sun, 22 Jul 2012 13:04:25 -0600, Bruce Sherwood > declaimed the following in > gmane.comp.python.general: > > >> Another way of saying this is that I'm not building an app, in which >> case I would

Re: A thread import problem

2012-07-23 Thread Bruce Sherwood
Thanks much for the useful suggestion, and also thanks for your sympathy and understanding of my plight! Bruce Sherwood On Sun, Jul 22, 2012 at 11:50 PM, Devin Jeanpierre wrote: > On Sun, Jul 22, 2012 at 7:14 PM, Bruce Sherwood > wrote: >> (2) My hand is forced by Apple no longe

Re: A thread import problem

2012-07-23 Thread Bruce Sherwood
hose of you who have made suggestions in this forum that fed into finding a solution. I'll put in a big plug for wxPython (wxpython.org), which is a great way to do cross-platform GUI development with Python. Bruce Sherwood userpoll.py Description: Binary data wxpoll.py Description:

RE: help with simple print statement!

2012-08-24 Thread Bruce Krayenhoff
Thank-you all, it works now! Best Wishes, Bruce C: 604-441-5791 <https://www.google.com/calendar/embed?src=ecuiatvm07anmj3ch314if3gns%40grou p.calendar.google.com&ctz=America/Vancouver> My Availability From: python-list-bounces+wbrucek=gmail@python.org [mailto:p

Automatic Type Conversion to String

2012-02-13 Thread Bruce Eckel
oes this path exist? So you can say "if path:" """ return bool(os.path.exists(self.path)) """ Nose tests. To run, you must first install nose: pip install nose Then: nosetests path.py """ def test_platform(): "

Re: Automatic Type Conversion to String

2012-02-13 Thread Bruce Eckel
I'm willing to subclass str, but when I tried it before it became a little confusing -- I think mostly because anytime I assigned to self it seemed like it converted the whole object to a str rather than a Path. I suspect I don't know the proper idiom for doing this -- any hints? Thanks ... --

Re: Automatic Type Conversion to String

2012-02-15 Thread Bruce Eckel
> Could it be that you missed the fact that strings are immutable? That > means that you can't change the content of the object once it is > initialized. In particular, it means that you e.g. have to override > __new__ instead of __init__, because the content is already fixed when > the latter is c

Python code file prototype

2012-02-17 Thread Bruce Eckel
I finally figured out how to set up the Windows explorer's right-click "new" so that it will create Python files. Here's how: http://superuser.com/questions/34704/windows-7-add-an-item-to-new-context-menu There's an option when you do this to insert default file contents, so I began searching the

Re: Python code file prototype

2012-02-17 Thread Bruce Eckel
>         Of course, since the OP was talking Windows... the #! line is > ignored no matter where it was Yes, but I use Windows, Mac and Linux so I'm searching for something universal. -- http://mail.python.org/mailman/listinfo/python-list

Inheriting from OrderedDict causes problem

2012-02-22 Thread Bruce Eckel
Notice that both classes are identical, except that one inherits from dict (and works) and the other inherits from OrderedDict and fails. Has anyone seen this before? Thanks. import collections class Y(dict): def __init__(self, stuff): for k, v in stuff: self[k] = v # Thi

Re: Inheriting from OrderedDict causes problem

2012-02-22 Thread Bruce Eckel
On Feb 22, 10:10 am, Peter Otten <__pete...@web.de> wrote: > Looks like invoking OrderedDict.__init__() is necessary: > > >>> from collections import OrderedDict > >>> class X(OrderedDict): > > ...     def __init__(self, stuff): > ...             super(X, self).__init__() > ...             for k, v

Newbie help - Programming the Semantic Web with Python

2011-07-09 Thread Bruce Whealton
IDLE, I can just use >>>from simplegraph import SimpleGraph That means it is going to look for a file named simplegraph.py but where will it be looking? I guess I would have to have it in the same folder as the python interpreter or one of the PATH directories, right? Than

Re: Newbie help - Programming the Semantic Web with Python

2011-07-10 Thread Bruce Whealton
n the web, this might be a good way to learn. I don't know if I should look for Python applications, or if I'll have more luck looking for Python Libraries. Thanks, Bruce -Original Message- From: Andrew Berg Sent: Saturday, July 09, 2011 10:44 PM To: comp.lang.python Subje

Re: Newbie help - Programming the Semantic Web with Python

2011-07-11 Thread Bruce Whealton
I'll paste a link to where the code exists. Could someone help me figure it out please. The code is here on the site: http://semprog.com/content/the-book/ I wonder if I can also try it out from the IDLE interactive session. Thanks, Bruce On Sun, Jul 10, 2011 at 11:32 AM, Bruce Whealton

Re: Newbie help - Programming the Semantic Web with Python

2011-07-16 Thread Bruce Whealton
those included modules would have to get compiled with the rest of the code for it to work, right? Bruce -Original Message- From: Chris Angelico Sent: Saturday, July 09, 2011 10:10 PM To: python-list@python.org Subject: Re: Newbie help - Programming the Semantic Web with Python On Sun, Jul

Re: [Python-ideas] allow line break at operators

2011-08-11 Thread Bruce Leban
is not valid today without parens or \ regardless of indentation. I'm +0 on this. I'd use it but does it really add enough convenience? --- Bruce Follow me: http://www.twitter.com/Vroo http://www.vroospeak.com -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-ideas] allow line break at operators

2011-08-11 Thread Bruce Leban
ments that have a different meaning when spliced together. --- Bruce Follow me: http://www.twitter.com/Vroo http://www.vroospeak.com -- http://mail.python.org/mailman/listinfo/python-list

embedded python 2.7.1 slow startup

2011-03-08 Thread bruce bushby
hey're responsible for 40% of my scripts execution time. I was wondering if there is a way to prevent python from attempting to open files I know are not there? Thanks Bruce # strace -ce trace=open ./fib.py 1 1 2 3 5 8 13 21 34 55 89 144 % time se

Re: organizing many python scripts, in a large corporate environment.

2011-03-14 Thread bruce bushby
I'm probably going off on a tangent here..but has anybody seen any efforts to allow python to "import modules via a socket" ...rather then just a "dir path" ? On Mon, Mar 14, 2011 at 7:56 PM, eryksun () wrote: > On Monday, March 14, 2011 9:45:51 AM UTC-4, eryksun () wrote: > > > > If you

Re: file print extra spaces

2011-03-22 Thread bruce bushby
on I forget the exact syntax, something like "print(line)," to prevent the carriage return from "print", but ideally you should clean up the line if it's contaminated without unexpected characters. Bruce On Wed, Mar 23, 2011 at 1:33 AM, monkeys paw wrote: > Whe

Re: Validating Command Line Options

2011-03-23 Thread bruce bushby
optparse? http://docs.python.org/library/optparse.html if options.a and options.b: parser.error("options -a and -b are mutually exclusive") On Wed, Mar 23, 2011 at 2:10 PM, T wrote: > For a Python script with multiple command line options, what is the > best way to go about validating th

readline module (python: symbol 'tgetnum': can't resolve symbol)

2011-03-23 Thread bruce bushby
Hi I'm hoping the list could give me some insight into how python behaves when it has been compiled with "readline". I sent the following email to the uClibc list which describes my problem, any tips or pointers would be much appreciated! Thanks Bruce Using buildroo

python 2.7.1 "serial" vs "pyserial"

2011-03-25 Thread bruce bushby
lots of scripts "import serial" and then "ser.readline(size=None, eol=chr(13))" . whereas I can only "ser.readline()" without any keywords or arguments. Thanks Bruce -- http://mail.python.org/mailman/listinfo/python-list

Re: How to program in Python to run system commands in 1000s of servers

2011-04-06 Thread bruce bushby
Hi Roy Two things you can look at: func https://fedorahosted.org/func/ mcollective http://docs.puppetlabs.com/mcollective/ On Wed, Apr 6, 2011 at 2:24 AM, Roy Smith wrote: > In article , > geremy condra wrote: > > > On Tue, Apr 5, 2011 at 7:51 AM, Babu wrote: > > > > > > Here is my pr

Observations on the List - "Be More Kind"

2018-10-05 Thread Bruce Coram
to recognise that you are being played.  The intemperate tone of some of the exchanges damages the reputation of the List. Life is hard enough without us adding to it.  Try silence as a response. Listen to Frank Turner's latest album: "Be More Kind".   That is not a plug to buy t

Re: Lots of pdf files

2005-07-20 Thread Bruce Stephens
Paul Rubin writes: > Greg Lindstrom <[EMAIL PROTECTED]> writes: >> There does not appear to be a simple way to merge many pdf's into one. > > There's probably some way to do it with pstops or some related program > or set of programs. The pdftk manpage gives this as one

COM programming with Excel

2005-03-02 Thread Bruce Jewell
I have been accessing Excel data with win32com.  It seems to work well until I get to cells that are formatted for Currency or Accounting.  With these, I get a text string that looks like “(0, 2500)” where the 2500 is actually $25.00, but it cannot be parsed or separated.  Can anyone help m

How does one distribute Tkinter or Qt GUI apps Developed in Python

2015-12-16 Thread Bruce Whealton
so hard for the non-technical, average users. I would want to package in some way so that when launched, it installs whatever is needed on the end user's computer. How is this done? Are there common practices for this? Thanks, Bruce -- https://mail.python.org/mailman/listinfo/python-list

Python to do CDC on XML files

2016-03-23 Thread Bruce Kirk
Does anyone know of any existing projects on how to generate a change data capture on 2 very large xml files. The xml structures are the same, it is the data within the files that may differ. I need to take a XML file from yesterday and compare it to the XML file produced today and not which X

Re: Python to do CDC on XML files

2016-03-23 Thread Bruce Kirk
I agree, the challenge is the volume of the data to compare is 13. Million records. So it needs to be very fast Sent from my iPad > On Mar 23, 2016, at 4:47 PM, Bob Gailer wrote: > > > On Mar 23, 2016 4:20 PM, "Bruce Kirk" wrote: > > > > Does anyone know

[no subject]

2014-03-18 Thread Nathan Bruce
Hi I was wondering how much your oxycontins are for what mg and quantity. Also do you guys sell dilaudid? Thank you -- https://mail.python.org/mailman/listinfo/python-list

Strange Error with pip install.

2014-07-25 Thread Bruce Whealton
ngo stack. Does anyone have any suggestions about this problem I am having using pip install inside Windows (Windows 8, if that matters)? Thanks in advance, Bruce -- https://mail.python.org/mailman/listinfo/python-list

Prob. Code Downloaded for Programming the Semantic Web (python code)

2014-07-25 Thread Bruce Whealton
e, thus it is strange that I am getting stuck here. Thanks, Bruce -- https://mail.python.org/mailman/listinfo/python-list

Re: Prob. Code Downloaded for Programming the Semantic Web (python code)

2014-07-28 Thread Bruce Whealton
On Friday, July 25, 2014 9:28:32 PM UTC-4, Steven D'Aprano wrote: > On Fri, 25 Jul 2014 17:06:17 -0700, Bruce Whealton wrote: Steven, See below please. The explanation did help. > > > OK, Eclipse with PyDev doesn't like this first line, with the function: > > >

Re: Prob. Code Downloaded for Programming the Semantic Web (python code)

2014-07-28 Thread Bruce Whealton
On Friday, July 25, 2014 11:25:15 PM UTC-4, Chris Angelico wrote: > On Sat, Jul 26, 2014 at 10:06 AM, Bruce Whealton > Chris, In response to your comments below, I'm comfortable changing this to use python 3. > As others have said, this is something that changed in Python 3.

Re: Prob. Code Downloaded for Programming the Semantic Web (python code)

2014-07-28 Thread Bruce Whealton
On Monday, July 28, 2014 11:28:40 AM UTC-4, Steven D'Aprano wrote: > On Mon, 28 Jul 2014 03:39:48 -0700, Bruce Whealton wrote: Stephen, I went to my Ubuntu box inside vmware and added a #!/usr/bin/env python2.7 to the top. Then I made the file executable and it ran the code p

pythoncom on Windows Server 2008

2011-11-29 Thread Nairn, Bruce
ions would be appreciated! Bruce Nairn King County Wastewater Treatment Division 201 S Jackson St., KSC-NR-0503 Seattle, WA, 98104-3855 206-263-3693 email: bruce.na...@kingcounty.gov<mailto:bruce.na...@kingcounty.gov> -- http://mail.python.org/mailman/listinfo/python-list

Understanding Boolean Expressions

2013-04-16 Thread Bruce McGoveran
Hello. I am new to this group. I've done a search for the topic about which I'm posting, and while I have found some threads that are relevant, I haven't found anything exactly on point that I can understand. So, I'm taking the liberty of asking about something that may be obvious to many rea

Re: Understanding Boolean Expressions

2013-04-16 Thread Bruce McGoveran
Thank you all for thoughts. I'm just about to post another question about atoms and primaries. If you have a moment to look it over, I would appreciate your thoughts. Many thanks in advance. On Tuesday, April 16, 2013 6:19:25 PM UTC-4, Bruce McGoveran wrote: > Hello. I am new to th

Atoms, Identifiers, and Primaries

2013-04-16 Thread Bruce McGoveran
questions. I appreciate in advance any thoughts the group can offer. The relevant documentation link is: http://docs.python.org/2/reference/expressions.html#expressions Thanks, Bruce -- http://mail.python.org/mailman/listinfo/python-list

Re: Atoms, Identifiers, and Primaries

2013-04-17 Thread Bruce McGoveran
trying to ask. In general terms, I am trying to understand how Python evalutes the expression x and y in this context. For my sanity's sake (and, perhaps, for yours) I will stop there. I send thanks in advance for any thoughts you have on my questions. On Tuesday, April 16, 2013 10:57:25

Re: Best IDE for Python

2006-08-15 Thread Bruce Who
Hi, sjdevnull I'm a vimmer too, and I wonder what plugins you are using. What you said sounds interesting. Could you tell us more about the plugins? "Object browser" is what I need most, but so far I've no idea what plugin can do this for me, :-( On 14 Aug 2006 15:02:13 -0700, [EMAIL PROTECTED] <

hard to explain for a french ;-)

2006-06-23 Thread AZAIS Bruce
pintranet/nom_agents/'+result.fullname+'/photo)">Popup> don't work   i try that :   it's good but, it's open the photo in a large window, not in a popup.   do you understand my problem ? (it's not easy to explain that in

Re: ASN.1 encoder & decoder

2006-08-25 Thread Bruce Stephens
Doug Stell <[EMAIL PROTECTED]> writes: > Can anyone provide guidance on building an ASN.1 decoder and encoder > in Python? ? -- http://mail.python.org/mailman/listinfo/python-list

Re: ASN.1 encoder & decoder

2006-08-26 Thread Bruce Stephens
Doug Stell <[EMAIL PROTECTED]> writes: > I looked at pyasn1. Unfortunately, it is not useful and provides a C > interface. Thanks, anyhow. What makes you say that? It appears to me (looking at the code in CVS) to be written entirely in Python, and the home page,

Re: [ANN] NumPy 1.0b4 now available

2006-08-28 Thread Bruce Who
ago.If > NumPy doesn't work with py2exe then we need help figuring out why. The > beta-release period is the perfect time to fix that. I've never used > py2exe myself, but I seem to recall that some have been able to make it > work. > > The problem may just be listing the right set of modules to carry along > because you may not be able to get that with just the Python-side > imports. Post any errors you receive to > numpy-discussion@lists.sourceforge.net > > Thanks, > > > -Travis > > Bruce Who -- http://mail.python.org/mailman/listinfo/python-list

decorators to add test* TestCase methods

2006-01-27 Thread Bruce Cropley
e) t = Derived() # Hack Derived.genTests(Derived.blah, ["B", "S"], ["Harry", "Sally"]) t.test_S_Sally_blah() # This is failing (generates test_S_Sally_blah), # and appears to be a python bug: t.test_B_Harry_blah() -8<-- Does anyone have any suggestions? Thanks, Bruce -- http://mail.python.org/mailman/listinfo/python-list

Re: decorators to add test* TestCase methods

2006-01-27 Thread Bruce Cropley
Many thanks for that! It looks like it's time to learn about metaclasses. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: beta.python.org content

2006-01-28 Thread Bruce Cropley
ey use for the Python website? Hope that helps, Bruce -- http://mail.python.org/mailman/listinfo/python-list

Re: [Numpy-discussion] algorithm, optimization, or other problem?

2006-02-21 Thread Bruce Southey
be able to find the matrix version on the net. Regards Bruce On 2/21/06, Brian Blais <[EMAIL PROTECTED]> wrote: > Hello, > > I am trying to translate some Matlab/mex code to Python, for doing neural > simulations. This application is definitely computing-time limited

Re: BitKeeper for Python?

2005-05-02 Thread Bruce Stephens
Nick Craig-Wood <[EMAIL PROTECTED]> writes: [...] > You could try Mercurial > > http://www.selenic.com/mercurial/ Or Codeville, also written in Python. > which aims at being a true bk replacement. Its also written in > python. Its being developed at the moment... Codeville's said to be pre

Re: BitKeeper for Python?

2005-05-02 Thread Bruce Stephens
Ville Vainio <[EMAIL PROTECTED]> writes: [...] > Bruce> Or Codeville, also written in Python. > > Or bazaar-ng, also written in python. > > Bruce> Codeville's said to be pretty usable. > > Ditto, through the repo format has not been stabilized yet.

Re: BitKeeper for Python?

2005-05-02 Thread Bruce Stephens
"John P. Speno" <[EMAIL PROTECTED]> writes: [...] > Too many choices here. Is anyone planning a PySCMOff blog yet ? > > Python, the language that makes reinventing the wheel a little too > easy sometimes. Why stick to Python? There seem to be about a dozen newish SCM's around at the moment, in

Re: GUI builders considered harmful

2005-06-05 Thread Bruce Stephens
Mike Meyer <[EMAIL PROTECTED]> writes: [...] > The first, and most obvious, thing that GUI builders do is force the > developer to specify an exact position - if not size - for the > graphical elements of the UI. They do? I don't remember them doing that. I just downloaded SpecTcl (a oldish ex

Re: c[:]()

2007-06-02 Thread Bruce Coram
pretentious person who is so self absorbed that he is mentally incapable of seeing the hollowness of his ideas. Either way it's probably not worth spending any more time on him. All that needs to be said has been. This thread is bare. Exit Bruce Coram > 2007/6/1, Warren Stringer <[EMAI

Re: File not read to end

2007-04-26 Thread bruce peng
"rb",,please <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I'm trying to write a simple log parsing program. I noticed that it > isn't reading my log file to the end. > > My log is around 200,000 lines but it is stopping at line 26,428.

Re: How to parse the os.system() output in python

2007-03-17 Thread bruce peng
how to redirect the putput of the program to a file? thanks. "Sebastian Bassi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 17 Mar 2007 17:28:56 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: >> I use os.system() to execute a system command in python. >> Can you please

Re: Newbie help with array handling

2007-04-12 Thread bruce peng
use dir with list nested for example: {key1 : [value1, value2, value3], key2 : [value1, value2, vlaue4]} "loial" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I am new to python and am converting an awk script to python > > I need to store some data in an array/table of some form

Re: Jobs: Lisp and Python programmers wanted in the LA area

2007-02-26 Thread Bruce Lewis
Tech HR <[EMAIL PROTECTED]> writes: > (Actually, > it's turning out to be hard to find Python programmers too, but it's > easier to train a Java programmer or a Perler on Python than Lisp. Is this speculation or experience? If it was experience, what Lisp were you trying to train Java programm

Re: new style class

2007-12-08 Thread Bruce Coram
in not only providing an excuse for poor behaviour but almost actively encouraging it. This is a pity since the essence of the document is very good advice. Bruce Coram -- http://mail.python.org/mailman/listinfo/python-list

Re: new style class

2007-12-12 Thread Bruce Coram
c Raymond's advice is good or very good. I have no desire to to indulge in online verbal brawling but please take more care in drafting a reply, particularly in a situation where your interpretation of my post might lead others who post to believe that I thought them rude, hostile or arrogan

Unexpected Behaviour using unittest

2008-02-22 Thread Bruce Coram
The code fragment below shows what appears to be inconsistent behaviour. The code is testing that messages are created correctly and that an instances of a class is created correctly. It checks that all of the expected addresses are used (contained in addresslist) and that all of the message

Pycon disappointment

2008-03-16 Thread Bruce Eckel
If the following seems unnecessarily harsh, it was even more harsh for me to discover that the time and money I had spent to get to my favorite conference had been sold to vendors, presenting me as a captive audience they could pitch to. I believe that this year's Pycon organizers suffered from in

Re: Pycon disappointment

2008-03-16 Thread Bruce Eckel
ple, the popular Haml template engine is > white-space sensitive, and that's a direct nod towards Python syntax. I think Ruby has done a lot to push the idea of dynamic languages for medium and large scale projects and to help recover from the bad experience many had when they tried to pus

Use of Unicode in Python 2.5 source code literals

2009-05-03 Thread Uncle Bruce
ers in source code literals in Python 2.5.4? Also, in the Windows version of Python, how can I tell if it was compiled to support 16 bits of Unicode or 32 bits of Unicode? Bruce in Toronto -- http://mail.python.org/mailman/listinfo/python-list

Re: Use of Unicode in Python 2.5 source code literals

2009-05-03 Thread Uncle Bruce
On May 3, 7:37 am, Matt Nordhoff wrote: > Uncle Bruce wrote: > -- I think I've figured it out! What I was trying to do was to enter the literal strings directly into the IDLE interpreter. The IDLE interpreter will not accept high codepoints directly. However, when I put a defined

Is this correct behavior for default parameters?

2008-07-15 Thread Bruce Pearson
The first call to test has the file_list empty but on the second call to test the file_list is no longer empty but contains the values appended in the first call. Is this correct behavior? I'm using python 2.5 def test(param_1, file_list = []): if len(file_list) == 0: print "Em

Re: static variables in Python?

2008-07-29 Thread Bruce Frederiksen
On Tue, 29 Jul 2008 21:31:01 +, kj wrote: > In <[EMAIL PROTECTED]> Larry Bates <[EMAIL PROTECTED]> writes: > > [snip] > > Maybe it's easier to see what I mean with JavaScript: > > function foo() { > if (foo.x === undefined) foo.x = expensive_call(); > return do_stuff_with(foo.x); > } de

Re: Defunct when using subprocess.Popen

2008-07-30 Thread Bruce Frederiksen
On Wed, 30 Jul 2008 01:56:28 -0300, Gabriel Genellina wrote: > You should call os.waitpid() after killing the child process, to let the > OS free the resources allocated to it. > The subprocess.Popen object supports a 'wait' method directly. -- http://mail.python.org/mailman/listinfo/python-lis

Re: Non Continuous Subsequences

2008-07-31 Thread Bruce Frederiksen
On Wed, 30 Jul 2008 09:32:25 -0700, bearophileHUGS wrote: > This post is not about practical stuff, so if you have little time, > you may ignore it. > > This is a task of the rosettacode.org site: > http://www.rosettacode.org/wiki/Non_Continuous_Subsequences > > A subsequence contains some subse

Re: problem when reading file

2008-07-31 Thread Bruce Frederiksen
On Thu, 31 Jul 2008 23:44:33 +1000, shrimpy wrote: > hi every one, i am new to python, > and coz i want to write a handy command for my linux machine, to find > a word in all the files which are under the current folder. > > the code is half done, but when i run it, it complain, and i don`t know

Re: Agnostic fetching

2008-08-01 Thread Bruce Frederiksen
On Fri, 01 Aug 2008 17:05:00 -0700, jorpheus wrote: > OK, that sounds stupid. Anyway, I've been learning Python for some > time now, and am currently having fun with the urllib and urllib2 > modules, but have run into a problem(?) - is there any way to fetch > (urllib.retrieve) files from a server

Micro-threading PEP proposal announcement

2008-08-25 Thread Bruce Frederiksen
at it's not solving a real problem and will let it quietly die on the vine... Thank you for your attention! -bruce -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there such an idiom?

2006-03-20 Thread Bruce Cropley
ertEquals(merge([1,2,3],[3,4,5]), [3]) self.assertEquals(merge([1,2,3,5,6,7],[3,4,5,7,8]), [3,5,7]) if __name__ == "__main__": unittest.main() HTH, Bruce -- http://mail.python.org/mailman/listinfo/python-list

Re: python doc available in emacs info format?

2009-08-17 Thread Bruce Stephens
"Colin S. Miller" writes: [...] > Ubuntu maintains a package search site, it is on > http://packages.ubuntu.com/ > > However, there seems to be no files named > python.*info (regexp) And yet there are info files in python2.5-doc: .

Clarification of notation

2010-09-29 Thread Bruce Whealton
nesting of two lists inside a a third list? I know that it would suggest that some of the arguments are optional, so perhaps if there are 2 items the first is the sub, and the second is start? Or did I read that backwards? Thanks, Bruce -- http://mail.python.org/mailman/listinfo/python-list

Re: Clarification of notation

2010-09-30 Thread Bruce W.
So, this kind of notation would be different: args[0][2] verses args[[0][2]] the latter is multidimensional. Can you think of example of using this type of list? I don't know why this had me a bit confused. I've got to get into programming more... I had done more in the pa

Re: Having problem with subclass

2010-09-30 Thread Bruce Pearson
Try: import A class Bclass(A.Aclass) ...rest of code On 1/10/2010 9:54 AM, tekion wrote: All, I have file name A.py with a class name Aclass. I have a file name B.py with sub class of Aclass, like import A class Bclass(Aclass) ...rest of code When I test it, calling B.py, I am getting: class

File date attribute

2006-01-28 Thread Bruce R Graham
Hi: am a Newbie and this is my first script: We were recently burgled and had our computers stolen. Easy to replace, but the data that was lost is years and years of work. I've investigated offsite data backup but it seems expensive. In any case, the data we have is not volumous. Rather, would like

Re: is laziness a programer's virtue?

2007-04-17 Thread Bruce C. Baker
"Lew" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Markus E Leypold >>> Trying to correct Xah's behaviour is probably impossible. > > Ingo Menger wrote: >> Perhaps somebody could ask the chinese government to put him in jail >> for "hurting international society" :) > > Y'know, e

Re: Ban Xah Lee

2009-03-20 Thread Bruce C. Miller
On Mar 7, 6:52 pm, Xah Lee wrote: > Of interest: > > • Why Can't You Be Normal? Though I doubt this will do any good, I'll offer some advice that hasn't been mentioned here and solved a lot of the problems I've had early in life with resistance to overly-emotional negative reactions to my opinion

Re: The Importance of Terminology's Quality

2008-05-07 Thread Bruce C. Baker
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [...] (for example, Perl's naming heavily relies on unix culture (grep, pipe, hash...), ... "hash" + "pipe"? Ah, /no wonder/ Perl is the syntactic mishmash it is! ;-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Your beloved python features

2010-02-05 Thread Bruce C. Baker
"George Sakkis" wrote in message news:de06116c-e77c-47c4-982d-62b48bca5...@j31g2000yqa.googlegroups.com... I'll give the benefit of doubt and assume you're joking rather than trolling. George * Not trolling, my friend! GvR got it

Re: Your beloved python features

2010-02-06 Thread Bruce C. Baker
"Terry Reedy" wrote in message news:mailman.1929.1265328905.28905.python-l...@python.org... > Iterators, and in particular, generators. > A killer feature. > > Terry Jan Reedy > Neither unique to Python. And then're the other killer "features" superfluous ":"s and rigid formatting! -- http

Re: language analysis to enforce code standards

2009-07-09 Thread Bruce C. Baker
"Jason S. Friedman" wrote in message news:mailman.2927.1247192026.8015.python-l...@python.org... > Hello, I administer the Informatica ETL tool at my company. Part of that > role involves creating and enforcing standards. I want the Informatica > developers to add comments to certain key obj

Re: AP -- MeAmI.org Paces Google

2009-07-09 Thread Bruce C. Baker
wrote in message news:defacf35-6149-485a-8f03-15472d63d...@a39g2000pre.googlegroups.com... Oh, puh-LEEZ, Martin! A two-year-old wouldn't be fooled by this! -- http://mail.python.org/mailman/listinfo/python-list

Re: AP -- MeAmI.org Paces Google

2009-07-09 Thread Bruce C. Baker
"Floetry" wrote in message news:803a7f06-8e43-4ff5-86a6-9fd9d2eee...@2g2000prl.googlegroups.com... On Jul 9, 8:33 pm, "Bruce C. Baker" wrote: > wrote in message > > news:defacf35-6149-485a-8f03-15472d63d...@a39g2000pre.googlegroups.com... > > > > Oh,

Re: AP -- MeAmI.org Paces Google

2009-07-10 Thread Bruce C. Baker
"Musatov" wrote in message news:fe9969b0-3c6a-49f7-8f38-0ed89dc9a...@x6g2000prc.googlegroups.com... [snip-a-rooney] > violator." Google could not be reached for comment. Possibly because they were laughing so hard they couldn't hear their cell phones ringing ...? -- http://mail.python.org

<    1   2   3   4   >