Re: Python installer hangs in Windows 7

2018-09-01 Thread james
Same problem, Win7, Unchecking "Install launcher for all users" sorted things. Thanks for the advice. -- https://mail.python.org/mailman/listinfo/python-list

asyncio project code review

2021-01-08 Thread James
Good day everyone. I have new asyncio project which use aiohttp connector and asyncio protocols/transports for tunneling packets through Tor Network cleanly. Project called aiotor: https://github.com/torpyorg/aiotor If someone with experience in asyncio field can make code review I will be a

Asyncio project code review

2021-01-08 Thread James
Good day for everyone. I have new asyncio project which use aiohttp connector and asyncio protocols/transports for tunneling packets through Tor Network cleanly. Project called aiotor: https://github.com/torpyorg/aiotor If someone with experience in asyncio field can make code review I will

Re: Python Newbie

2005-10-05 Thread James
1. What toolkit is best for Windows development? "Best" depends on your needs. wxPython seems to be the most popular one. 2. Which toolkits can I exclude from consideration? You haven't given enough exclusion criteria. But here are the possible issues to consider. Fox - Hasn't been updated with

datetime and daylight savings problem

2005-10-11 Thread James
imezone(t) datetime.datetime(2005, 1, 24, 18, 59, tzinfo=) >>> d2.astimezone(utc).astimezone(t) datetime.datetime(2005, 6, 1, 17, 59, tzinfo=) I'm not sure if it's just something I'm doing completely wrong here... James -- http://mail.python.org/mailman/listinfo/python-list

Re: destroy your self????

2005-10-20 Thread James
Doesn't work for classes because self has no global reference. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python for .NET and IronPython

2005-11-02 Thread James
IronPython is good if you want to bring in Python into a .NET world. Python for .NET is good if you want to bring in .NET into a Python world. As for your learning concerns, there need be none. There is really nothing to learn extra for the integration. They just work. Once you learn the .NET fra

Re: which feature of python do you like most?

2005-11-08 Thread James
Most of the responses are of the "Why Python is more pleasant than C++" variety, but the original poster specifically said he had experience with Perl. As such, arguments like "automatic memory management" don't carry any weight. >From my experience as both a Perl and Python user--and I do prefer

Re: Not enough arguments for format string

2005-11-14 Thread James
Missing a comma there :) On 14/11/05, johnnie pittman <[EMAIL PROTECTED]> wrote: > So the line above should be: > > os.system('open -a X11.app; cd ~/; printenv; DISPLAY=:0.0; export > DISPLAY; echo %s | sudo -S %s; sudo -k' % (password binpath)) > > try that. os.system('open -a X11.app; cd

Re: Eclipse best/good or bad IDE for Python?

2005-12-01 Thread James
There is no answer for that question. All Python IDEs have their own strengths and weaknesses and different programmers expect different things from their IDEs. What's best for YOU depends on what features you need. PyDev, without question a "good" IDE. BEST is a subjective affair. I use Eclipse (

Re: Is there an equivalent to Java Webstart in Python?

2005-12-05 Thread James
Use Jython or IronPython. (Almost) One click web deployment is only available for Java and .NET platforms at the moment. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there an equivalent to Java Webstart in Python?

2005-12-05 Thread James
No! Jython does not have any of the problems you describe. Jython makes Java byte code. Java bytecode can be deployed via Web Start. Period. Jython can be used anywhere Java can be used. That's the whole beauty of Jython. I am not hypothesizing. I actually did this a while ago and it worked just fi

Re: Python web publishing framework like Cocoon?

2005-12-07 Thread James
None of those are anything like Cocoon. I can't think of any other Python equivalents. -- http://mail.python.org/mailman/listinfo/python-list

threading and internet explorer com

2005-01-27 Thread James
ispatch, None, clsctx, pythoncom.IID_IDispatch) com_error: (-2147221008, 'CoInitialize has not been called.', None, None) = but if i run: xyz = domain() xyz.run() ##no error! it's weird anyone know how to solve this problem? thank you :) best regards, James -- http://mail.python.org/mailman/listinfo/python-list

Re: threading and internet explorer com

2005-01-28 Thread James
thak you Roger :) thank you so much :) best regards, James Roger Upole wrote: You'll need to call pythoncom.CoInitialize() in each thread. Roger "James" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] hi, i'm using python 2.4 with pywin32...

Re: IPython colors in windows

2005-02-03 Thread James
Ashot wrote: > I am using IPython in windows and the LightBG setting doesn't correctly > because the background of the text is black even if the console background > is white. Anyone know whats going on? Thanks. > > -- > == > Ashot Petrosian > University of Texas at A

Re: Favorite non-python language trick?

2005-06-24 Thread James
Interesting thread ... 1.) Language support for ranges as in Ada/Pascal/Ruby 1..10 rather than range(1, 10) 2.) Contracts 3.) With -- http://mail.python.org/mailman/listinfo/python-list

Re: Boss wants me to program

2005-06-27 Thread James
[EMAIL PROTECTED] wrote: > I'm a manager where I work(one of the cogs in a food service company). > The boss needed one of us to become the "tech guy", and part of that is > writing small windows programs for the office. He wants the development > work done in house, and he knows I am in school for

Re: Favorite non-python language trick?

2005-07-02 Thread James
Steven D'Aprano wrote: > On Fri, 24 Jun 2005 14:29:37 -0700, James wrote: > > > Interesting thread ... > > > > 1.) Language support for ranges as in Ada/Pascal/Ruby > > 1..10 rather than range(1, 10) > > What advantages do Pascal-like for loops give over

Re: How do you program in Python?

2005-07-03 Thread James
Peter Hansen wrote: > anthonyberet wrote: > > What I would really like is something like an old-style BASIC > > interpreter, in which I could list, modify and test-run sections of > > code, to see the effects of tweaks, without having to save it each time, > > or re-typing it over and over (I hav

Re: Python Programming Contest

2005-07-15 Thread James
Brian Quinlan wrote: > I've decided that it would be be fun to host a weekly Python programming > contest. The focus will be on algorithms that require a bit of thought > to design but not much code to implement. > > I'm doing to judge the solutions based on execution speed. It sucks but > that i

Re: I just wanna know about os.path module..

2005-07-17 Thread James
kimes wrote: > I've just started digging into how python works.. > I found that other mudules are clearly declared like one file per a > module.. > > But the only os.path doesn't have their own file.. > ye I know is has actually depending on os like in my case posixpath.. > > What I'd love to kno

Re: Well, another try Re: while c = f.read(1)

2005-08-19 Thread James
> for data in iter(lambda:f.read(1024), ''): > for c in data: What are the meanings of Commands 'iter' and 'lambda', respectively? I do not want you to indicate merely the related help pages. Just your ituitive and short explanations would be enough since

Re: Doubt C and Python

2005-08-23 Thread James
> Some people with C background use Python instead > of programming in C.why? Becuase it is much more efficient. -James -- http://mail.python.org/mailman/listinfo/python-list

Re: loop in python

2005-08-25 Thread James
I am going to be a bit blunt. Don't get offended. >> Also the first thing any newbie to python asks me is abt "raw speed in >> comparison with similar languages like perl" when i advocate python to perl. Judging by your other posts, you are a newbie yourself. You are not really in a position to

Re: loop in python

2005-08-25 Thread James
>> I don't want to offend you or anything, but doesn't the second sentence mean >> that someone DID do a speed comparison? I did provide Language Shootout link in the next paragraph of the post you referred to along with an obligatory caution about interpreting benchmarks. The Language Shootout i

Re: classes and list as parameter, whats wrong?

2005-08-26 Thread James
def __init__(self, LL=None): if LL == None: LL = [] self.list=LL def addFile(self,L): self.list.append(L) James On 8/26/05, Dirk Zimmermann <[EMAIL PROTECTED]> wrote: > Hi! > > I have a problem in a program. And I don't underst

Re: Integrate C source in a Python project

2005-08-26 Thread James
uhlman/python_201/python_201.html#SECTION00650 James -- http://mail.python.org/mailman/listinfo/python-list

Re: Language translation possible in python?

2005-08-26 Thread James
As Terry, mentioned BabelFish should be a good resource. I have used Google Language tools in the past. It worked reasonably well with French and German. Now they included English to Korean BETA. -- http://mail.python.org/mailman/listinfo/python-list

Re: Well, Python is hard to learn...

2005-09-01 Thread James
I don't know about you but I would not learn ANY decent programming language for a week and expect to know the idioms enough to understand the source of a large software written in it. -- http://mail.python.org/mailman/listinfo/python-list

Re: infinite loop

2005-09-06 Thread James
Devan L wrote: > LOPEZ GARCIA DE LOMANA, ADRIAN wrote: > > Hi all, > > > > I have a question with some code I'm writting: > > > > > > def main(): > > > > if option == 1: > > > > function_a() > > > > elif option == 2: > > > > function_b() > > > > else: > > > > rai

Re: Django Vs Rails

2005-09-08 Thread James
I actually like the framework to reflect on my database. I am more of a visual person. I have tools for all my favorite databases that allow me to get a glance of ER diagrams and I would rather develop my data models in these tools rather than in code. Further more I rather like the idea of parsimo

Re: Question about consistency in python language

2005-09-11 Thread James
m originally came from the similarities between 'l' and '1' or from bad looking news-browser? Forgive me if it is out of your interests. -James GOLD -- http://mail.python.org/mailman/listinfo/python-list

Re: A great Alan Kay quote

2005-02-09 Thread James
Surely "Perl is another example of filling a tiny, short-term need, and then being a real problem in the longer term." is better lol ;) On Wed, 09 Feb 2005 11:00:32 -0800 (PST), Grant Edwards <[EMAIL PROTECTED]> wrote: > In an interview at > http://acmqueue.com/modules.php?name=Content&pa=sho

wxgrid multiline cell editor

2005-02-09 Thread James
wxpython 2.5.3 hi, anyone know how to make a multiline cell editor for wxgrid? thank you :) best regards, James -- http://mail.python.org/mailman/listinfo/python-list

Re: goto, cls, wait commands

2005-02-10 Thread James
On Windows, I use WConio http://newcenturycomputers.net/projects/wconio.html It provides other screen functions you might have gotten used to in QBasic as well. On unix/cygwin, use curses. I am not aware of any portable library though. I used to use cls a lot in my QBasic days. Now I just don't.

thanks jean

2005-02-14 Thread James
hi jean :) thanks for your help :) i'll try it :) i missed your message... did a search in google and found your reply :) thanks a lot :) best regards, James -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python like VB?

2005-03-17 Thread James
Mike Cox wrote: > As you may or may not know, Microsoft is discontinuing Visual Basic in favor > of VB.NET and that means I need to find a new easy programming language. I > heard that Python is an interpreted language similar to VB. VB is not interpreted. Sure! You can compile it to P-Code if yo

Re: Is Python like VB?

2005-03-17 Thread James
>> VB has a much better IDE than the IDE's for Python, although Eric3 is one of the best, and is absolutely free. There is no binary distribution for Eric3 on MS Windows. The OP sounds like he is an exclusively windows programmer. While we are on topic, is there no one in the Python open source c

Re: Is Python like VB?

2005-03-17 Thread James
Before we discuss this any further, I suggest that you guys take a look at OP's posts in comp.os.linux.advocacy. I think we all regulars here know where VB and Python stand. Let's not take bait on this one. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python like VB?

2005-03-17 Thread James
> We have almost finished Windows form designer support in SharpDevelop > IDE for boo, a .NET language similar to Python. But still in your case > I'd just use VB.NET since you are familiar with VB and all .NET > languages are pretty comparable. Wow! That's great news. I saw a few days ago an ol

Re: Is Python like VB?

2005-03-18 Thread James
> You are right that VBA isn't being discontinued yet. My own interest in > learning python is to find a replacement for Excel VBA. I'm a > mathematician who likes to throw quick programs together for things > like statistical simulations. I liked the ability to get functioning > code quickly in VB

IronPython 0.7 released!

2005-03-23 Thread James
http://www.gotdotnet.com/workspaces/workspace.aspx?id=ad7acff7-ab1e-4bcb-99c0-57ac5a3a9742 -- http://mail.python.org/mailman/listinfo/python-list

Re: IronPython 0.7 released!

2005-03-23 Thread James
n in any language that targets the CLR (C#, Managed C++, VB.NET, etc.). www.zope.org/Members/Brian/PythonNet James. -- http://mail.python.org/mailman/listinfo/python-list

Document exchange!

2005-04-10 Thread James
and simplicity (is it possible to use the two in the same sentence? :-) ) of the protocol is king. I have the luxury of implementing any protocol I choose on each reposity. Thanks, James -- http://mail.python.org/mailman/listinfo/python-list

permission

2005-04-12 Thread James
Is it possible to check if you have permission to access and or change a directory or file? -- http://mail.python.org/mailman/listinfo/python-list

Re: A little request about spam

2005-04-14 Thread James
Yes - it's been like that for the last month or so now and it's quite annoying, especially seeing as before it was working at near enough 100% accuracy. On 4/14/05, mark hellewell <[EMAIL PROTECTED]> wrote: > On 4/14/05, BJörn Lindqvist <[EMAIL PROTECTED]> wrote: > > Please do not reply to spam. R

Re: Python's use in RAD

2005-04-17 Thread James
[EMAIL PROTECTED] wrote: > Active State's Komodo IDE is very nice for python development. It > includes integration with pdb (python's debugger). The pro edition > also has a GUI designer, however I've never used it. The personal > version for non commercial use can be had for $30 (and there's a

Re: Why does python class have not private methods? Will this neverchanged?

2005-04-19 Thread James
Trolls? On 4/19/05, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > "could ildg" <[EMAIL PROTECTED]> wrote: > > > Private stuff always makes programming much easier. > > says who? > > > > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-l

Re: ANN: PyDev 0.9.3 released

2005-04-25 Thread James
It does for me. I just installed through it. http://pydev.sourceforge.net/updates/ I am having some other problems though. When I run it, I get ... sys:1: DeprecationWarning: Non-ASCII character '\x90' in file C:\Python24\python.exe on line 1, but no encoding declared; see http://www.python.org/

Re: Recursive generator for combinations of a multiset?

2013-11-21 Thread James
'in', 'the'), ('cat', 'in', 'the'), ('cat', 'the', 'the'), > > ('hat', 'in', 'the'), ('hat', 'in', 'the'), ('hat', 'the', 'the'), > > ('in', 'the', 'the')] > > > > which produces results which are redundant for my purposes. > > > > What I'm looking for is a recursive algorithm which does what > > multicombs does (order unimportant) so that I can apply a pruning > > shortcut like the one I used in the recursive cartesian product > > algorithm in my original post. > > > > Multiset combination algorithms seem pretty thin on the ground out > > there - as I said, I could only find a description of the procedure > > above, no actual code. The ones I did find are non-recursive. I'm > > hoping some combinatorics and/or recursion experts can offer advice. > > > > Regards, > > > > -- > > > > John Could convert the following perl script to python? use Data::Dump qw(dump); dump combo([@ARGV], 3); sub combo { my ($t, $k) = @_; my @T = @$t; my @R = (); my %g = (); if ($k == 1) { for (@T) { push @R, $_ unless $g{$_}++; } } else { while (my $x = shift @T) { $p = combo([@T], $k-1); for (@{$p}) { my $q = $x.",".$_; push @R, $q unless $g{$q}++; } } } [@R]; } $ prog.pl cat hat in the the [ "cat,hat,in", "cat,hat,the", "cat,in,the", "cat,the,the", "hat,in,the", "hat,the,the", "in,the,the", ] James -- https://mail.python.org/mailman/listinfo/python-list

pygtk beginner script not working

2015-11-14 Thread james
://ftp.acc.umu.se/pub/gnome/binaries/win32/pygtk/2.24/ Reading http://www.daa.com.au/~james/pygtk/ Reading http://www.daa.com.au/~james/software/pygtk/ Reading http://www.pygtk.org Reading http://www.pygtk.org/ Best match: pygtk 2.24.0 Processing pygtk-2.24.0-py2.7-win32.egg pygtk 2.24.0 is alre

Re: Using XML w/ Python...

2005-12-10 Thread James
XPath is the least painful way of doing it. Here are some samples with various libraries for XPath http://www.oreillynet.com/pub/wlg/6225 Read XPath basics here http://www.w3schools.com/xpath/default.asp It is not practical and perhaps not polite to expect people write tutorials just for you and

Pythonic XML library with XPath support for Jython?

2005-12-11 Thread James
A couple of years ago there wasn't one and the recommendation was to simply use Java libs. Have things changed since? I see ElementTree promises one in the future but are there any out now? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Using XML w/ Python...

2005-12-11 Thread James
ActivePython is same as Standard Python distribution but with a few extras. "As far as it should work since their both transparent, umm, well its not." Why do you think it is not transparent? Did you try installing it on both? I have ActivePython 2.4 here and it loads amara fine. " Traceback (mo

Re: ActivePython and Amara

2005-12-13 Thread James
Jay, Profanity is unwelcome in this newsgroup. Alex's advice is very well placed and you will realize that once you stop seeing it as a personal attack. Different newsgroups have different attitudes. comp.lang.python is not exactly a tech support group. Bug reports posters here are frequently adv

Re: ActivePython and Amara

2005-12-14 Thread James
If you are having problems installing Amara, ElementTree is another option http://effbot.org/downloads/elementtree-1.2.6-20050316.win32.exe from elementtree import ElementTree as ET from urllib import urlopen rss = ET.parse(urlopen('index.xml')) title = rss.find('//channel/title').text articles

Re: ActivePython and Amara

2005-12-14 Thread James
OK! The story so far ... You wanted to parse an RSS feed and wanted a simple library. You tried Amara. The binary installer had a problem. Not sure what was the issue with installing the source via distutils. Since you have way too many options to do this, it is probably better to switch to anothe

Re: ActivePython and Amara

2005-12-15 Thread James
Jay, You are practically asking the community to write your 4 line program for you. Read Alex's post (first one in this thread, 2nd and 3rd paragraphs) slowly and carefully again. If you understand the absolute basics of Python, you would not be asking this question, nor the previous one. You are

Re: ActivePython and Amara

2005-12-16 Thread James
Where I go to work, a quote stands etched in a very large font into the concrete prominently to remind us to be humble. The greatest obstacle to discovery is not ignorance - it is the illusion of knowledge. (Daniel J. Boorstin) You just have to trust us on this. We are not jumping to conclusions

Re: Wingide is a beautiful application

2005-12-17 Thread James
>> I haven't used an IDE in a long time but gave wing ide a try because >> I wanted the same development platform on Linux and Windows. >> I'm currently using Ultraedit and it works fine but needed something >> more portable as I'm moving my main platform over to Ubuntu. I first >> tried jedit and

Re: What is unique about Python?

2005-12-19 Thread James
>> The indentation-based syntax seems to be unique I think Haskell was there first. As well as ABC, one of Python's precursors. Python is a pragmatic language, just like C (I wish I could say that about Java). It does not necessarily innovate but incorporates things known to work elsewhere. C and

Re: Queueing in Python (ala JMS)

2005-12-20 Thread James
Stefan Arentz wrote: > Is there a JMS-like API available for Python? I would like to > quickly receive messages through the network and then process > those slowly in the backgound. In the Java world I would simply > create a (persistent) queue and tell the JSM provider to run > N messagehandlers p

Re: Queueing in Python (ala JMS)

2005-12-20 Thread James
Wolfgang Keller wrote: > > Is there a JMS-like API available for Python? > > Better. >:-> Omninotify, a Corba notification service implementation. > > Sincerely, > > Wolfgang Keller And it's ICE (a CORBA alternative with Python bindings) equivalent IceStorm A messaging service with support for f

Re: Python or Java or maybe PHP?

2006-01-02 Thread James
Now I am curious. How do Python 2.5 and Ruby create new control structures? Any code samples or links? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Productivity and Quality of IDE

2006-01-03 Thread James
It depends on a number of factors including yourself. I am a very visual person. I consider visual design as the native language of expression and representation (at least from a human stand point) for objects that have visual end presentation. I know I am productive this way. Your mileage may wary

Re: Python or Java or maybe PHP?

2006-01-03 Thread James
While on topic of custom contructs, the topic of syntactic macros has come up in the past. Does anyone know if the dev team ever considered for or against them? My interest in them was renewed when I came across Logix http://www.livelogix.net/logix/ It does not seem very active at the moment nor do

Re: Python or Java or maybe PHP?

2006-01-03 Thread James
Guido's concerns about preserving simplicity resonate well with me. Maybe I am just a kid excited with his new toy. I have always admired macros. Quite a few functional languages have them now. But they have always been in languages with sub-optimal community code base, which meant I never went too

Re: download full sites?

2006-01-08 Thread James
This isn't a Python question unless you are looking for a Python implementation. HTTrack is one that I have used in the past as a general purpose tool. http://www.httrack.com/ As for Python http://harvestman.freezope.org/ I have no experience with it. I just searched in the CheeseShop. -- http:

Re: ALLAH

2006-08-10 Thread James
> I dont know why post a subject like this here! Anyway, the post is in > Turkish and talks about Islam, with the format, sub-heading (which is a > main topic in Islamic belief) and then a story relating to the > sub-heading, which is used to explain the topic. He is an Internet Looney. According

Problem installing Python 2.4.3 on FreeBSD 5.3-RELEASE-p31

2006-08-17 Thread james
h just a standard "./configure" and "make". Any help would be great :) Regards, James -- http://mail.python.org/mailman/listinfo/python-list

Re: can python be a "shell" of c++ program?

2006-06-03 Thread James
reter in your program which would allow you to use Python code within it - either from a script or individual commands. It's a fairly common use of Python :) James On 03/06/06, key9 <[EMAIL PROTECTED]> wrote: > Hi all > > I have some data to process, whith complex mech

Re: How do you practice Python?

2006-06-03 Thread James
es of the language... last time I did it for a job was in the days of Python 1.5.2. Being non-critical utilities on the backend means whenever new features are introduced I can upgrade my code to take advantage of them without worrying about things going wrong as well ;) James On 02/06/06, Jarek

Re: How do you practice Python?

2006-06-03 Thread James
Any code which requires serious algorithmic work I write and test in Python before converting into Java - it's so much easier to use Python's datatypes and interpreter to get things right before having to deal with Java's clunky class libraries. James On 02/06/06, Norbert K

changing a file's permissions

2006-10-01 Thread James
the sucker and have done with it, but I want to apply the permissions within the python script if I can. So my question is: how does one change a file's permissions inside of python?James -- http://mail.python.org/mailman/listinfo/python-list

Python at MS Event!

2005-05-05 Thread James
Just back from an MS event. They normally don't show anything non-MS. This time they showed a Python client (interpreter in interactive mode) interop with a .NET web service. They even had a few nice things to say of Python. Of course, then the rest of the presentation was about WSE which doesn't

Re: Python at MS Event!

2005-05-06 Thread James
Standard. 2.4.x -- http://mail.python.org/mailman/listinfo/python-list

Re: Found python for delphi new web site

2005-05-06 Thread James
It has been around for a while now. But I am glad I visited it again. The new PyScripter IDE is great. They should really announce new software like these here. -- http://mail.python.org/mailman/listinfo/python-list

Re: Found python for delphi new web site

2005-05-06 Thread James
I didn't either since it needs some components to be installed. I will surely try playing with the source. It should be a lot easier to customerize than other IDEs. I just installed the binary http://mmm-experts.com/Downloads.aspx?ProductId=4 It does have code insight in the interpreter, but not

Re: What is different with Python ?

2005-06-15 Thread James
If you're thinking of things like superstrings, loop quantum gravity and other "theories of everything" then your friend has gotten confused somewhere. There is certainly no current experiments which we can do in practise, which is widely acknowledged as a flaw. Lots of physicists are trying to wor

Re: UML to Python/Java code generation

2005-06-16 Thread James
> Is there any UML tools that is able to take UML and generate Python codes? Dia2code generates Python from UML. Boa Constructor generates UML from Python. PyUt. Object Domain's UML Tool (Commercial) You need to use Google. -- http://mail.python.org/mailman/listinfo/python-list

Re: Alternative Ways to install Python 2.4?

2005-06-16 Thread James
If this is a bug with the standard distribution alone, maybe he can try ActiveState's distribution (ActivePython) instead. -- http://mail.python.org/mailman/listinfo/python-list

Re: UML to Python/Java code generation

2005-06-17 Thread James
Peter Dembinski wrote: > "Grigoris Tsolakidis" <[EMAIL PROTECTED]> writes: > > > There is tool to generate UML from Python Code... > > The best is human brain. No! It isn't. In fact, it's the worst. The brain may be fine for generating Python from UML but it is MANY MANY orders of magnitude harde

regular expression

2007-06-22 Thread James
Hi folks, I have a little script that sits in a directory of images and, when ran, creates thumbnails of the images. It works fine if I call the function inside the program with something like "thumbnailer("jpg), but I want to use a regular expression instead of a plain string so that I can match

strip newline from string

2007-04-28 Thread James
-R 2024:localhost:2024 [EMAIL PROTECTED]' % (username, ipAddress) os.system(cmd2) connector() The autoconf.txt contains two lines, which first has an ip address and second a username. The problem I'm having is that the string.strip() doesn't appear to be stripping the newline of

capturing system exit status

2007-04-01 Thread James
s detailed here: http://www.python.org/doc/2.1.3/lib/os-process.html, but I can't formulate a way to use it. What I want is a simple if statement such that: if ExitStatusIsBad: sys.exit() else: go on to next code chunk James -- http://mail.python.org/mailman/listinfo/python-list

Python new user question - file writeline error

2007-02-07 Thread James
reading in each line and converting all date fields (05/ MAR/1950) to different format (1950-03-05) in order to load into MySQL table. I have two issues: 1. the outfile doesn't complete with no error message. when I check the last line in the python interpreter, it has read and processed the last line, but the output file stopped before. 2. Is this the best way to do this in Python? 3. (Out of scope) is there a way to load this CSV file directly into MySQL data field without converting the format? Thank you. James -- http://mail.python.org/mailman/listinfo/python-list

Re: Python new user question - file writeline error

2007-02-07 Thread James
On Feb 7, 4:59 pm, "Shawn Milo" <[EMAIL PROTECTED]> wrote: > On 7 Feb 2007 11:31:32 -0800, James <[EMAIL PROTECTED]> wrote: > > > > > Hello, > > > I'm a newbie to Python & wondering someone can help me with this... > > > I ha

Re: Fwd: Python new user question - file writeline error

2007-02-08 Thread James
On Feb 8, 3:26 pm, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Shawn Milo a écrit : > > > > > To the list: > > > I have come up with something that's working fine. However, I'm fairly > > new to Python, so I'd really appreciate any suggestions on how this > > can be made more Pythonic. > > > T

interacting with shell - another newbie question

2007-02-09 Thread James
use to interact with the shell? (I'm running linux) Thank you. James -- http://mail.python.org/mailman/listinfo/python-list

Mail System Error - Returned Mail

2007-11-06 Thread james
This Message was undeliverable due to the following reason: Your message was not delivered because the destination computer was not reachable within the allowed queue period. The amount of time a message is queued before it is returned depends on local configura- tion parameters. Most likely ther

How to recast integer to a string

2006-05-09 Thread James
How to recast an integer to a string? something like n = 5 str = str + char(n) J.L -- http://mail.python.org/mailman/listinfo/python-list

Re: How to recast integer to a string

2006-05-09 Thread James
Christoph Haas wrote: > On Tue, May 09, 2006 at 12:17:34PM -0700, James wrote: > > How to recast an integer to a string? > > > > something like > > n = 5 > > str = str + char(n) > > str(n) > > Kindly > Christoph In python2,4, I 've got Ty

syntax for -c cmd

2006-05-10 Thread James
Wrong syntax is shown below. What should be the delimiter before else? python -c 'if 1==1: print "yes"; else print "no"' James -- http://mail.python.org/mailman/listinfo/python-list

Re: combining a C# GUI with Python code?

2006-05-20 Thread James
Yes! It is. Just make your GUI in C# and assign event handlers using Python for .NET http://www.zope.org/Members/Brian/PythonNet/ Python for .NET is a great tool and has a minimal learning curve. Unfortunately, it hasn't attracted enough attention from the Python community. It does not have a .NET

Re: John Bokma harassment

2006-05-24 Thread James
> We seem to have strayed a long way from Voltaire's > "I do not agree with what you say, but I will defend to the death your > right to say it." Not at all. My problem with Xah Lee is that he is abusing the Usenet as a personal BLOG. He has a web site to post these articles and he can certainly p

Cost of Queue.put

2008-03-17 Thread James
his code: http://mail.python.org/pipermail/python-list/2002-December/177394.html I suppose the addition of cPickle to the mix must hurt Queue.put()... Any recommendations for alternative persistent queues? Thanks, James class PickleQueue(Queue.Queue): """A multi-producer, multi-consumer,

Accessing POST parameters from BaseHTTPServer

2008-11-06 Thread James
;t see how I access parameters passed by POST requests... The particular client programme I'm testing will be passing stuff up as text/xml, if that's any help... Thanks! James -- http://mail.python.org/mailman/listinfo/python-list

Re: How complex is complex?

2009-03-28 Thread james
complexity is acceptable" is a fair question, and the possible answers to choose from is the bread-and-butter of computer sciences. again, for those who want to get a handle on the issue, start with donald knuth's work or introductory texts that build on his work. -james Quoting

Re: How complex is complex?

2009-03-28 Thread james
tention in computer sciences, and cs teachers discuss it in class, passing along their own appreciation of it to their students. - james Quoting Paul Rubin <"http://phr.cx"@NOSPAM.invalid>: ja...@biosci.utexas.edu writes: donald knuth's anaylses of the computational complex

  1   2   3   4   5   6   7   8   9   10   >