Re: Python books?

2007-03-14 Thread Jim Hill
n exhaustive >guide to the standard library. Sadly, the centerfolds were 'shopped and had bottle-bleached hair. Wait, that was a different read. CPP has been invaluable for me and I'd recommend it for the OP even though it's not dedicated solely to the PSL. OK? Jim

Re: On Java's Interface (the meaning of interface in computer programing)

2007-03-22 Thread Jim Burton
On 21 Mar, 19:11, Lew <[EMAIL PROTECTED]> wrote: > Dr. Who wrote: > > Don't Feed The Trolls :-) > > But, but - you fed me!? > [blah] > > We could put up a contest - whoever finds and corrects the most errors in the > post wins. Ties broken by the quality of the correct explanations. Incorrect > exp

Re: On Java's Interface (the meaning of interface in computer programing)

2007-03-22 Thread jim burton
On 22 Mar, 12:45, Lew <[EMAIL PROTECTED]> wrote: > Jim Burton wrote: > > Or you could stop feeding the trolls. > > People need to stop saying that. The original post was a detailed if incorrect > exposition of Java information. How in the world do you rate that trollish?

pyc file [Newbie Question]

2007-04-02 Thread Jim Aikin
ically compiled while being imported. If this is a bad assumption, then maybe it's the root of my misunderstanding. Maybe I have to _do_ something to fibo.py in order to create a new version of fibo.pyc. Sorry to be so long-winded, but I want to be precise about this. Can anyone clarify for

Re: pyc file [Newbie Question]

2007-04-03 Thread Jim Aikin
Thanks, Steven. I'm sure that answers the question. The Tutorial is very good, but there are numerous topics that it slides past (as it would have to do, in order to avoid being ten times as long). I haven't yet gotten deep enough into Python to even know where to look for a full explanation of

Re: is laziness a programer's virtue?

2007-04-15 Thread Jim Ford
one who used to say 'I'm a lazy person - I like to do things the easy way!'. I guess this is what Larry Wall means. Jim Ford -- http://mail.python.org/mailman/listinfo/python-list

Re: python newbie

2007-11-02 Thread Jim Hendricks
BartlebyScrivener wrote: > On Nov 2, 8:51 am, Jim Hendricks <[EMAIL PROTECTED]> wrote: >> New to python, programming in 15 or so langs for 24 years. >> >> Couple of questions the tuts I've looked at don't explain: > > Did you look at THE tut? You w

python newbie

2007-11-02 Thread Jim Hendricks
crap based on other language bias. TIA, Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: python newbie

2007-11-02 Thread Jim Hendricks
Bjoern Schliessmann wrote: > Please use a more informative subject next time. > > Jim Hendricks wrote: >> 1) global vars - python sets scope to the block a var is declared >> (1st set), > > http://docs.python.org/ref/global.html > > I'm afraid not. Python

Re: python newbie

2007-11-02 Thread Jim Hendricks
J. Clifford Dyer wrote: >> before calling my_function, x does not exist in my program. So, my >> question is in my_function, the combination of using the global >> statement, then implicitly creating x via assignment to the result of >> the open function, is x created in the global namespace? >

difference between IDLE and command line

2007-11-02 Thread Jim Hendricks
New to Python, and just had something strange happen. I've been running my new code in IDLE running in windows. My IDLE version shows as 1.2.1, Python version displaying in IDLE is 2.5.1. I have been editing my code in UltraEdit then testing in IDLE by choosing open, then F5. I didn't see an

Embedding, "import site", PYTHONHOME, and an old, old issue

2007-02-09 Thread Jim Hill
to throw in the towel and embed That Other Language. Oh, one more thing: if I launch python from the shell and type in the strings from the C snippet it works fine. Thanks, Jim -- It's not "pretexting", it's "lying." -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedding, "import site", PYTHONHOME, and an old, old issue

2007-02-09 Thread Jim Hill
Jim Hill (that'd be me) wrote: I forgot one more key thing: the compiled code is being run via mpirun (LAM/MPI). Might that have something to do with my pain and heartache? Jim (original post reproduced below in shocking breach of etiquette on the off chance someone's interested in

Re: Embedding, "import site", PYTHONHOME, and an old, old issue

2007-02-12 Thread Jim Hill
Gabriel Genellina wrote: >En Sat, 10 Feb 2007 03:57:05 -0300, Jim Hill <[EMAIL PROTECTED]> escribió: > >> int routine() { >> Py_Initialize(); >> ... >> } > >(Why routine() and not main()? Unfortunately you can't repeteadly >initialize/fi

Re: "Python" is not a good name, should rename to "Athon"

2007-12-03 Thread Jim Hill
Michael Terry wrote: > >Folks admire Newton for some of his breathtaking insights, not because >of his methods. The scientific method is a tool. As was Newton, according to many of his contemporaries. > The results are far more important than the tool. Yep. Jim -- "I loat

py.test generative tests behavior unexpected

2007-12-14 Thread Jim Vickroy
Hello all, I'm a first time user of py.tests. My setup is: * py.test v0.9.0 * Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win32 * Microsoft Windows XP Pro (service pack 2) The attached file (py-test-generator-trial.py) demonstrates a behavior I do not underst

Re: py.test generative tests behavior unexpected

2007-12-14 Thread Jim Vickroy
Carl Friedrich Bolz wrote: > Jim Vickroy wrote: >> Hello all, >> >> I'm a first time user of py.tests. >> >> My setup is: >> * py.test v0.9.0 >> * Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit >> (Intel)] on win32

Re: 'error reading datastream' -- loading file only when transfer is complete?

2006-05-20 Thread Jim Segrave
size after a delay period, assume all the data is there. This isn't a good method, but it's simple to implement and will reduce the occurrence of attempts to process a file which is still in transit/ -- Jim Segrave ([EMAIL PROTECTED]) -- http://mail.python.org/mailman/listinfo/python-list

Re: buffers readlines and general popen2 confusion...

2006-05-20 Thread Jim Segrave
est practice. Suggestions >welcomed. I'm puzzled - a daemonised program normally closes stdin/stdout/stderr and disconnects from its controlling terminal, so where is its output going? -- Jim Segrave ([EMAIL PROTECTED]) -- http://mail.python.org/mailman/listinfo/python-list

Re: Pyrex installation on windows XP: step-by-step guide

2006-05-21 Thread Jim Lewis
> and change "-lmsvcrt" to "-lmsvcr71". But then I get this error: Python was built with version 7.1 of Visual Studio, and extensions need to be built with the same version of the compiler, but it isn't installed. I want to use mingw. -- http://mail.python.org/mailman/listinfo/python-list

Re: Pyrex installation on windows XP: step-by-step guide

2006-05-21 Thread Jim Lewis
Thanks. I had done that but it seems I had to remove "install". Now it works. -- http://mail.python.org/mailman/listinfo/python-list

Re: Pyrex installation on windows XP: step-by-step guide

2006-05-22 Thread Jim Lewis
Still problems :-( I have a directory c:\data\code\test\pyrex containing: build_and_install.bat: "C:\program files\Python\python.exe" setup.py build_ext --compiler=mingw32 pause setup.py: from distutils.core import setup from distutils.extension import Extension from Pyrex.Distutils import build

Re: regex in python

2006-05-25 Thread Jim Segrave
ope/geocoord/32.32,42,12 > >By using \1\2\4 as replace. I'm open for other suggestions to achieve >this! But you're looking for a string followed by two floats and your sample input is a string, a float, an integer, a comma and another integer. If you actually mean the input i

Re: Pyrex installation on windows XP: step-by-step guide

2006-05-25 Thread Jim Lewis
Thanks but now another problem :-( Examples in books show importing a global so why does below give: AttributeError: 'module' object has no attribute 'globalvar' primes.pyx: from run import globalvar def prime(int kmax): result = [run.globalvar] ... run.py: from primes import prime globalvar =

Re: hi,everyone. a problem with shelve Module

2006-05-26 Thread Jim Segrave
In article <[EMAIL PROTECTED]>, softwindow <[EMAIL PROTECTED]> wrote: [some context restored] >> Sometimes you add records but the size of the database does not >> change... :-) >really > >in which case? whenever the database is big enough to add them without i

Pyrex speed

2006-05-27 Thread Jim Lewis
Has anyone found a good link on exactly how to speed up code using pyrex? I found various info but the focus is usually not on code speedup. -- http://mail.python.org/mailman/listinfo/python-list

Re: Pyrex speed

2006-05-27 Thread Jim Lewis
I'm not planning to write C functions. My understanding is that by using cdefs in the python code one can gain substantial speed. I'm trying to find a description of how to modify python code in more detail so it runs fast under pyrex. -- http://mail.python.org/mailman/listinfo/python-list

Re: Pyrex speed

2006-05-27 Thread Jim Lewis
> main point of Pyrex is ease of wrapping, not of speeding-up. Supposedly the primes example is 50 times faster. -- http://mail.python.org/mailman/listinfo/python-list

Re: Pyrex speed

2006-05-27 Thread Jim Lewis
> I never had an opportunity to do any more sophisticated math than simple > adding, multiplying, subtracting and dividing. Neither is the primes example doing anything more sophisticated than basic arithmetic but it's 50 times faster. -- http://mail.python.org/mailman/listinfo/python-list

RELEASED zif.sedna 0.9 beta2

2008-02-15 Thread Jim Washington
Academy of Sciences . zif.sedna is just an adapter package. -Jim Washington -- http://mail.python.org/mailman/listinfo/python-list

Time Zone application after strptime?

2008-03-07 Thread Jim Carroll
It's taken me a couple of hours to give up on strptime with %Z for recognizing time zones... but that still leaves me in the wrong zone: def paypal_to_mysql_date(ppDate): # a typical paypal date is 10:29:52 Feb 29, 2008 PST date_parts = ppDate.split() withouttz = " ".join(date_parts[:-

Re: Time Zone application after strptime?

2008-03-11 Thread Jim Carroll
M.-A. Lemburg egenix.com> writes: > > On 2008-03-07 22:24, Jim Carroll wrote: > > It's taken me a couple of hours to give up on strptime > > with %Z for recognizing > > time zones... but that still leaves me in the wrong zone: > > > > How can

Re: Mathematica 7 compares to other languages

2008-12-11 Thread Jim Gibson
ow gather code solutions in ruby, python, C, Java, here: > > € A Example of Mathematica's Expressiveness > http://xahlee.org/UnixResource_dir/writ/Mathematica_expressiveness.html > > now lacking is perl, elisp, which i can do well in a condensed way. > It'd be int

Raw String Question

2009-03-12 Thread Jim Garrison
I'm an experienced Perl developer learning Python, but I seem to be missing something about raw strings. Here's a transcript of a Python shell session: Python 3.0 (r30:67507, Dec 3 2008, 20:14:27) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more infor

Re: Raw String Question

2009-03-12 Thread Jim Garrison
Tim Chase wrote: >>> r"a\" SyntaxError: EOL while scanning string literal (, line 1) It seems the parser is interpreting the backslash as an escape character in a raw string if the backslash is the last character. Is this expected? Yep...as documented[1], "even a raw string cannot end in a

Re: Raw String Question

2009-03-12 Thread Jim Garrison
Tim Chase wrote: >>> r"a\" SyntaxError: EOL while scanning string literal (, line 1) It seems the parser is interpreting the backslash as an escape character in a raw string if the backslash is the last character. Is this expected? Yep...as documented[1], "even a raw string cannot end in a

How to do this in Python?

2009-03-17 Thread Jim Garrison
I'm an experienced C/Java/Perl developer learning Python. What's the canonical Python way of implementing this pseudocode? String buf File f while ((buf=f.read(1)).length() > 0) { do something } In other words, I want to read a potentially large file in 100

Re: How to do this in Python?

2009-03-17 Thread Jim Garrison
Tim Chase wrote: >> Am I missing something basic, or is this the canonical way: >> >> with open(filename,"rb") as f: >> buf = f.read(1) >> while len(buf) > 0 >> # do something >> buf = f.read(1) > > That will certainly do. Since read()

Re: How to do this in Python?

2009-03-17 Thread Jim Garrison
andrew cooke wrote: > Jim Garrison wrote: >> I'm an experienced C/Java/Perl developer learning Python. >> >> What's the canonical Python way of implementing this pseudocode? [snip] > > embarrassed by the other reply i have read, There's always some &q

Re: How to do this in Python?

2009-03-18 Thread Jim Garrison
Luis Zarrabeitia wrote: On Tuesday 17 March 2009 06:04:36 pm Jim Garrison wrote: with open(filename, "rb") as f: for buf in iter(lambda: f.read(1000),''): do_something(buff) This is the most pythonic solution yet. Thanks to all the responders who took time to p

Re: How to do this in Python? - A "gotcha"

2009-03-18 Thread Jim Garrison
Jim Garrison wrote: Luis Zarrabeitia wrote: On Tuesday 17 March 2009 06:04:36 pm Jim Garrison wrote: with open(filename, "rb") as f: for buf in iter(lambda: f.read(1000),''): do_something(buf) This is the most pythonic solution yet. Thanks to all the respond

Re: How to do this in Python? - A "gotcha"

2009-03-18 Thread Jim Garrison
Andrii V. Mishkovskyi wrote: Just before you start writing a PEP, take a look at `takewhile' function in `itertools' module. ;) OK, after reading the itertools docs I'm not sure how to use it in this context. takewhile() requires a sequence, and turning f.read(bufsize) into an iterable require

Re: How to do this in Python? - A "gotcha"

2009-03-18 Thread Jim Garrison
S Arrowsmith wrote: Jim Garrison wrote: It's a shame the iter(o,sentinel) builtin does the comparison itself, instead of being defined as iter(callable,callable) where the second argument implements the termination test and returns a boolean. This would seem to add much more generality.

Missing values in tuple assignment

2009-03-19 Thread Jim Garrison
Use case: parsing a simple config file line where lines start with a keyword and have optional arguments. I want to extract the keyword and then pass the rest of the line to a function to process it. An obvious use of split(None,1) cmd,args= = line.split(None,1); if cmd in self.switch: s

pickle.load() extremely slow performance

2009-03-20 Thread Jim Garrison
I'm converting a Perl system to Python, and have run into a severe performance problem with pickle. One facet of the system involves scanning and loading into memory a couple of parallel directory trees containing OTO 10^4 files. The trees don't change during development/testing and the scan tak

Re: pickle.load() extremely slow performance

2009-03-20 Thread Jim Garrison
John Machin wrote: > On Mar 21, 9:25 am, Jim Garrison wrote: >> I'm converting a Perl system to Python, and have run into a severe >> performance problem with pickle. >> >> One facet of the system involves scanning and loading into memory a >> couple of para

Re: pickle.load() extremely slow performance

2009-03-20 Thread Jim Garrison
Jim Garrison wrote: > John Machin wrote: [snip] >> Have you considered using cPickle instead of pickle? >> Have you considered using *ickle.dump(..., protocol=-1) ? > > I'm using Python 3 on Windows (Server 2003). According to the docs > >"The pickl

Re: pickle.load() extremely slow performance

2009-03-23 Thread Jim Garrison
Benjamin Peterson wrote: Terry Reedy udel.edu> writes: 3.1a1 is out and I believe it has the io improvements. Massive ones, too. It'd be interesting to see your results on the alpha. On 3.1a1 the unpickle step takes 2.4 seconds, an 1875% improvement. Thanks. -- http://mail.python.org/mailm

Re: pickle.load() extremely slow performance

2009-03-23 Thread Jim Garrison
Steve Holden wrote: Jean-Paul Calderone wrote: On Mon, 23 Mar 2009 10:57:54 -0500, Jim Garrison wrote: Benjamin Peterson wrote: Terry Reedy udel.edu> writes: 3.1a1 is out and I believe it has the io improvements. Massive ones, too. It'd be interesting to see your results on the al

Syntax disagreement between IDLE and pydev?

2009-03-30 Thread Jim Garrison
IDLE (3.1a1) accepts a,*b = re.split(str,pattern) and does the right thing ('a' gets the first result and 'b' gets the rest). pydev configured to use the exact same Python 3.1a1 runtime doesn't like this syntax (in my source, column 23 is the asterisk): Encountered "*" at line 32, colu

Re: Syntax disagreement between IDLE and pydev?

2009-03-30 Thread Jim Garrison
Jim Garrison wrote: IDLE (3.1a1) accepts a,*b = re.split(str,pattern) and does the right thing ('a' gets the first result and 'b' gets the rest). pydev configured to use the exact same Python 3.1a1 runtime doesn't like this syntax (in my source, column 23 is th

New online docs broken?

2009-04-06 Thread Jim Garrison
I notice the online docs (at docs.python.org/3.0/index.html) were updated today. It seems some of the top-level pages, like Tutorial, "Using Python", "Language Reference" are truncated after the first few paragraphs. -- http://mail.python.org/mailman/listinfo/python-list

Re: New online docs broken?

2009-04-07 Thread Jim Garrison
Ye Liu wrote: On Apr 6, 6:33 pm, Jim Garrison wrote: I notice the online docs (at docs.python.org/3.0/index.html) were updated today. It seems some of the top-level pages, like Tutorial, "Using Python", "Language Reference" are truncated after the first few paragraphs.

Python 3.0 online docs broken

2009-04-08 Thread Jim Garrison
Jim Garrison wrote: Ye Liu wrote: On Apr 6, 6:33 pm, Jim Garrison wrote: I notice the online docs (at docs.python.org/3.0/index.html) were updated today. It seems some of the top-level pages, like Tutorial, "Using Python", "Language Reference" are truncated after the

PyModerator, serverFiles.py:13: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha

2009-04-22 Thread Jim Carlock
I downloaded Python 2.6.2 today. Anyone here know what that error in the subject really means and possibly what I should look at? I took a look at line 13 in the specified file and it states the line that it has a problem with. import sha I'm running Python in Windows XP. -- Jim Carlock

Inspecting And Changing Strings In Python

2009-04-29 Thread Jim Carlock
Anyone here able to provide a link to the Python functions for comparing strings and updating strings? I'm looking to do some character by character analysis until I find the '@' character and then change the rest of the string after that. Thank you for your help. -- J

Re: Installing Python 2.5.4 from Source under Windows

2009-04-30 Thread Jim Carlock
th setting the PATH EV anywhere. The above registry script registers everything to execute Python as needed. Double-click upon a test.py file and you'll see the test.pyc file get created and then you'll see the file run as needed. If you're curious about to see if those extensions are a

Re: What do you think of ShowMeDo

2009-04-30 Thread Jim Carlock
a short name. Nothing seems to get SET in the Environment to identify where the library gets configured. I have to run off to find help on the differences between "import" and "from". Good luck! Feel free to leave a reply. -- Jim Carlock -- http://mail.python.org/mailman/listinfo/python-list

A newbie question about some code

2009-05-18 Thread Jim Qiu
t'}) ta_list = self.convertfilelist(ta_list) for filename in ta_list: self.out.put({'BOTSID':'root'},{'BOTSID':'{ http://www.w3.org/2001/XInclude}include','parse':"xml",'href':filename}) self.out.envelopewrite(self.out.root Please check the blue highlighted part, I don't understand how the object get the property? Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: A newbie question about some code

2009-05-18 Thread Jim Qiu
On Mon, May 18, 2009 at 5:30 PM, Rhodri James wrote: > On Mon, 18 May 2009 10:18:52 +0100, Jim Qiu > wrote: > > Please check the blue highlighted part, I don't understand how the object >> get the property? >> > > Colours and highlighting don't come acro

Yet another question about class property.

2009-05-20 Thread Jim Qiu
led: if grammarfield[MANDATORY]=='M': raise botslib.MessageError('Record "%s": mandatory composite "%s" not filled.'%(structure_record[MPATH],grammarfield[ID])) continue for grammarsubfield in grammarfield[SUBFIELDS]: #loop subfields value = noderecord.get(grammarsubfield[ID],'') #~ print 'check subfield',grammarsubfield,value if not value: if grammarsubfield[MANDATORY]=='M': #~ print 'Record "%s": mandatory subfield "%s" not filled: "%s".'%(structure_record[MPATH],grammarsubfield[ID],noderecord) raise botslib.MessageError('Record "%s": mandatory subfield "%s" not filled: "%s".'%(structure_record[MPATH],grammarsubfield[ID],noderecord)) else: continue noderecord[grammarsubfield[ID]] = self._formatfield(value,grammarsubfield,structure_record) #~ print 'fill',grammarfield[ID] Thanks in advance. Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: Yet another question about class property.

2009-05-20 Thread Jim Qiu
advance of technique of Python? Jim On Wed, May 20, 2009 at 6:00 PM, Dave Angel wrote: > Jim Qiu wrote: > >> Hi everyone, >> >> Following is the code i am reading, i don't see anywhere the declaration >> of >> Message.root object, >> Where

Re: Can I get a technical explanation on the following error

2009-05-24 Thread Jim Garrison
And as an interesting exercise, try print r'test \' print r'test \\' Because of the way raw string parsing is defined, neither of these will pass the parser. In fact, a raw string cannot have a backslash as its last character. -- http://mail.python.org/mailman/listinfo/python-list

How to modify the data in a binary file?

2008-07-02 Thread Jim Brown
Hi all, I'm a Python newbie, so please pardon me if my question may look a little silly. :) I want to modify a binary file p.data (which has some C-style "short" integers -- 16-bit integers) in such a way: The bit m and bit n of every "short int" si in the file are set to 1, and the left bits in s

Re: xpathEval fails for large files

2008-07-22 Thread Jim Washington
llection size are limited only by disk space. Not so good: Sedna runs as a server. Expect to use in the range of 100M of RAM per database. A database can contain many many documents, so you probably only want one database, anyway. Disclosure: I'm the author of the zif.sedna packa

Re: convert xhtml back to html

2008-04-25 Thread Jim Washington
put up an on-line demo serving and xquerying an extract from Wikipedia (in the range of 20 GB of data) using a Sedna server, at http://wikidb.dyndns.org/ . Along with the on-line demo, they provide instructions for deploying the technology locally. - Jim Washington -- http://mail.python.org/mailman/listinfo/python-list

Re: Am I missing something with Python not having interfaces?

2008-05-06 Thread Jim Washington
packaged to be installable and usable outside of zope. It's available at the Cheese Shop. If you want to do adaptation from one interface to another or, for example, register and look-up utilities by interface, zope.component is also handy. - Jim Washington -- http://mail.python.org/mailman/listinfo/python-list

Re: Milenko Kindl rtegdgd

2008-09-21 Thread Jim Thompson
gt; > Bihac >> >> Well, that's not C isn't it, more like Snobol or RPG/2 > > > Tidybowl I thought you blanked googlegroups, n'est ce pas ?:-) ...Jim Thompson -- | James E.Thompson, P.E. |mens

Re: Hello boys!

2008-09-27 Thread Jim Thompson
park your mouth in front of George Bush - all the >Bshit you can eat - and it keeps on coming! > >I have a buddy in Bosna - he's normal. Now you know why I blanket kill-file googlegroups. ...Jim Thompson -- | James E

Re: Hello boys!

2008-09-27 Thread Jim Thompson
On Sat, 27 Sep 2008 23:12:59 + (UTC), Cydrome Leader <[EMAIL PROTECTED]> wrote: >In rec.crafts.metalworking Jim Thompson <[EMAIL PROTECTED]> wrote: >> >> On Sat, 27 Sep 2008 18:47:16 -0400, default <[EMAIL PROTECTED]> >> wrote: >> >>

Re: time series calculation in list comprehension?

2006-03-12 Thread Jim Segrave
74 49.00 7: 21 50.25 8: 78 51.25 9: 28 50.25 10: 32 39.75 11: 93 57.75 12: 2 38.75 13: 7 33.50 14: 8 27.50 15: 30 11.75 16: 1 11.50 17: 8 11.75 18: 40 19.75 19: 8 14.25 For all but the first 3 rows, the third column is the average of the values in the 2nd column

Re: put multiple condition in if statement

2006-03-12 Thread Jim Segrave
t;".strip() == " ".strip() >True >>>> > > So... Your mixed C/Python simplifies to just... > > if str.strip(): # after removing leading/trailing spaces, > # if not empty, do something str = " " and str = "\t" fail with your substitution - the OP was looking only for strings containing one space or empty strings. Tab characters and multi-spaces would not match. -- Jim Segrave ([EMAIL PROTECTED]) -- http://mail.python.org/mailman/listinfo/python-list

Re: Server.sendmail with no "to_addrs" parameter.

2006-03-22 Thread Jim Segrave
r mail client) Much as it pains me to admit it, Outlook, for all its many faults is correct if it allows sending messages where the To: CC: and or Bcc: headers are empty. -- Jim Segrave ([EMAIL PROTECTED]) -- http://mail.python.org/mailman/listinfo/python-list

Re: Server.sendmail with no "to_addrs" parameter.

2006-03-22 Thread Jim Segrave
Max number Notes ... to 0 1 cc 0 1 bcc 0 1 ... So the answere is, that it's not required to have any destinations listed in the headers of the message. It appears that it's not kosher to have an empty

Re: How to learn python if I'm very familar with C++

2006-03-26 Thread Jim Benson
ous > for me, because more material in that book seems obvious for me. I want > some book describe the difference between C++ and python such that I > could grasp python quickly. Would you please give me some infomation on > this? > > Thanks, > Peng > > The book "L

Re: a hobbyist's dilemma

2006-03-29 Thread Jim Sizelove
or mailing list (http://mail.python.org/mailman/listinfo/tutor) and learn from others and learn by helping others. Enjoy your python adventures, Jim Sizelove -- http://mail.python.org/mailman/listinfo/python-list

String pattern matching

2006-04-01 Thread Jim Lewis
Anyone have experience with string pattern matching? I need a fast way to match variables to strings. Example: string - variables abcaaab - xyz abca - xy eeabcac - vxw x matches abc y matches a z matches aab w maches ac v maches ee -- http://mail.python.org/mailman/listinfo/python-

Tkinter divider

2006-04-01 Thread Jim Lewis
Anyone know how to create a draggable divider between two Tkinter windows? -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter divider

2006-04-01 Thread Jim Lewis
That did the trick - thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: String pattern matching

2006-04-02 Thread Jim Lewis
Thanks for the interesting and detailed analysis. In my case I don't need all possible answers by rather the first "greedy" match. Seems like there might be some recursive approach. -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python and PHP sharing same session

2006-04-03 Thread Jim Gallacher
at. Once that's done you'll need to figure out how to handle session locking between the 2 modules, which may not be trivial. I'd suggest joining the mod_python mailing list if you want to discuss this in detail. Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: How to create a tear off menu in TKinter. Help Needed

2006-04-06 Thread Jim Segrave
t the code itself works to create cascading auto-pop-up menus, or any other widget you want to pop-up as part of a menu. -- Jim Segrave ([EMAIL PROTECTED]) -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python + apache + winxp => nogo

2006-04-07 Thread Jim Gallacher
27;ve searched everywhere, but could not find a solution. Anybody here > that has been successful in getting this combo to work? > Surely not *everywhere*, since a similar question was posed on the mod_python mailing list just 3 days ago. ;) For possible solutions see: http://modpython.org/pipermail/mod_python/2006-April/020770.html Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python + apache + winxp => nogo

2006-04-07 Thread Jim Gallacher
ile is a UNIX type library file. > (Possibly the equivalent of a dll on windows). This sounds awry to me. It's an apache thing. Apache loadable modules have the same suffix on all platforms, so mod_python.so is correct. Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python + apache + winxp => nogo

2006-04-09 Thread Jim Gallacher
cyberco wrote: > Thanks Jim, I indeed did not look in the mailinglist archive (you have > to subscribe for that and Google didn't cache it yet). > > The problem was indeed the missing .DLL's. After adding them to my > 'PATH' variable apache was at least able to

Re: String pattern matching

2006-04-16 Thread Jim Lewis
>You can do this with a regular expression... I tried the plain RE approach and found it no faster than my direct-coded version. Anyone have any ideas on how to code this problem elegantly without RE? My code is long and cumbersome - 200 lines! Speed is my primary concern but low LOC would be nice

Setting Parameters inside of code

2009-12-18 Thread Jim Valenza
UTPUT% MD %LOG% MD %COMPLETED% MD %FAILED% MD %BACKUP% I've been researching Parameters with the Python manuals and have not found the help to be usefull as there is not much documentation for some reason. I am new to the Python world so maybe I'm missing an important piece of vocab. T

Re: Doesn't MS-Windows likes Python ? (or: why more than 20 sec delaywhen running a program from Python)

2009-12-24 Thread Jim Carlock
tarts up the control panel. The easiest thing to try is to use a fully qualified path to start it. "%systemroot%\system32\control.exe" ncpa.cpl The above should help with W95 to Windows XP. For 64-bit versions control.exe might reside in a system64 folder. Did you ever f

install exe in virtualenv --no-site-packages

2010-01-12 Thread Jim Pharis
How do I install an exe in a sandboxed virtualenv that's been setup with no site packages? The package I'm trying to install is pywin32. TIA, - Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: install exe in virtualenv --no-site-packages

2010-01-13 Thread Jim Pharis
Solved this by copying the pywin32.pth file into my virtualenv site-packages and editing the file to point to the path. On Tue, Jan 12, 2010 at 5:35 PM, Jim Pharis wrote: > How do I install an exe in a sandboxed virtualenv that's been setup with no > site packages? The package I&

ctypes for AIX

2010-01-24 Thread Waddle, Jim
I need to use ctypes with python running on AIX. It appears that python is being developed mostly for windows. Is there a policy concerning getting functions like ctypes working on AIX. Jim Waddle KIT-D 425-785-5194 -- http://mail.python.org/mailman/listinfo/python-list

RE: ctypes for AIX

2010-01-25 Thread Waddle, Jim
: 1506-280 (W) Function argument as signment between types "void*" and "void*(*)(void*,int,unsigned long)" is not allowed. I do not have sufficient knowledge to know how to fix this. I would think that this error somehow is related to compiling on aix. If you have any sugges

New to Python need on advice on this script

2009-11-10 Thread Jim Valenza
string, os, arcgisscripting, shutil, time gp = arcgisscripting.create() # Jim V testing # Allow output to overwrite gp.OverwriteOutput = 1 gp.AddToolbox("C://Program Files//ArcGIS//ArcToolbox//Toolboxes//Data Management Tools.tbx") #---create a logging file named "MMDD HH_MM_Quali

Invitation to connect on LinkedIn

2009-11-18 Thread Jim Qiu
LinkedIn Jim Qiu requested to add you as a connection on LinkedIn: -- Jaime, I'd like to add you to my professional network on LinkedIn. - Jim Accept invitation from Jim Qiu http://www.linkedin.com/e/I2LlXdLlWUhFABKmxVOlgGLlWUhFAfhMPP

Re: compiling Python 2.7.1 with readline module fails on Debian (Virtualbox)

2010-12-22 Thread Jim Pharis
are you running make clean for good measure? On Wed, Dec 22, 2010 at 3:33 AM, Benedict Verheyen < benedict.verhe...@gmail.com> wrote: > Hi, > > > i'm trying to compile Python 2.7.1 on Debian (Virtual Box). > Compiling end successfully but readline and curses fail to build. > > I'm working with vi

How to run program in Linux

2010-04-15 Thread Jim Byrnes
rrect it. Thamks, Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: How to run program in Linux

2010-04-17 Thread Jim Byrnes
Dave Angel wrote: Jim Byrnes wrote: Dave Angel wrote: Jim Byrnes wrote: I am just learning Python and am new to Linux so I am probably doing something to trip myself up. I am trying to run an example GUI program that fetches a record from a database. All the files are in the same folder. The

Re: How to run program in Linux

2010-04-17 Thread Jim Byrnes
Dave Angel wrote: Jim Byrnes wrote: Dave Angel wrote: Jim Byrnes wrote: Dave Angel wrote: Jim Byrnes wrote: I am just learning Python and am new to Linux so I am probably doing something to trip myself up. I am trying to run an example GUI program that fetches a record from a database. All

Re: Difficulty w/json keys

2010-04-23 Thread Jim Byrnes
tors_enabled":false,"following":null,"geo_enabled":false,"profile_sidebar_fill_color":"e0ff92","profile_background_tile":false,"screen_name":"sstatik","profile_sidebar_border_color":"87bc44","followers_count": 40,"protected":false,"verified":false,"url":"http:// elliotmurphy.com/","name":"statik","friends_count":18,"id": 85646316,"utc_offset":-18000,"profile_background_color":"9ae4e8"},"id": 12651537502,"favorited":false} {"delete":{"status":{"id":12650137902,"user_id":128090723}}} I can't help you directly with your problem but have you seen this: http://arstechnica.com/open-source/guides/2010/04/tutorial-use-twitters-new-real-time-stream-api-in-python.ars Regards, Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: modifying open office spreadsheet (with OO installed)

2010-04-29 Thread Jim Byrnes
ochange.setFormula(new_val) url = unohelper.systemPathToFileUrl( os.path.abspath(new_fname)) doc.storeToURL(url, ()) doc.close(True) I am teaching myself Python because I like to script spreadsheets. Up until now I was unable to find any entry level info on using Python with OO. Thanks for

<    1   2   3   4   5   6   7   8   >