Re: PyWart: Itertools module needs attention

2011-09-12 Thread Nick Stinemates
On Mon, Sep 12, 2011 at 10:04 PM, rantingrick wrote: > > > # Quote # > > # The itertools module is great HOWEVER i believe m

Re: python time

2011-03-20 Thread Nick Stinemates
You should just use cron (or Windows Scheduled Tasks if that's your thing) for job scheduling, allowing people the flexibility of the environment they already know. Nick On Sun, Mar 20, 2011 at 6:19 PM, ecu_jon wrote: > I'm working on a script that will run all the time. at time specified > in

Re: Could I joined in this Happy family

2011-03-18 Thread Nick Stinemates
Welcome aboard ! On Mar 18, 2011 11:34 AM, "duxiu xiang" wrote: > Dear friends: > I am in China.For some rearon,I cannot visit your Google Group.May > I joint this mail list for help in learning Python? > > -- > 笑看嫣红染半山,逐风万里白云间。 -- http://mail.python.org/mailman/listinfo/python-list

Re: PyCon

2011-03-11 Thread Nick Stinemates
http://blip.tv/search?q=pycon HTH Nick On Fri, Mar 11, 2011 at 4:45 AM, Rita wrote: > Hello, > > I noticed the old presentations at PyCon aren't avaliable anymore. > http://us.pycon.org/2010/ http://us.pycon.org/2009/ > > Does anyone know where else I can get thes

Re: Bugs/issues in tkinter.simpledialog!!

2011-01-26 Thread Nick Stinemates
> However some things never change it seems and some improvements are > actually a step backwards. The same problems with the unit test in 2.x > got ported to 3.x. And the new SimpleDialog is just more lackluster > code like we've seen before. I was hoping to be amazed, i am > disappointed and disg

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Nick Stinemates
> > Greg Wilson - > I thought about using wxPython in the most recent run of my Python > course, but > decided to stick to Tkinter because: > > - There isn't a wxWindows/wxPython book (matters a lot when > organizations are > trying to decide what to adopt for long-term use). > Greg

Re: Tkinter: The good, the bad, and the ugly!

2011-01-20 Thread Nick Stinemates
> > > > So you're going to lead the "peasants" (your word) whether they like it > > or not, and any who don't want to follow are clearly being selfish and > > ignorant? > > If you could read Bill's words and not find them to be overly selfish > and ignorant then i don't know what to say. He clearly

Re: Tkinter: The good, the bad, and the ugly!

2011-01-18 Thread Nick Stinemates
You make it very hard for me to take what you say seriously. I lurk on this list and I have created a filter where emails from you go in to Spam. Good luck. Nick On Tue, Jan 18, 2011 at 5:23 PM, rantingrick wrote: > On Jan 18, 2:37 pm, Adam Skutt wrote: > > On Jan 18, 2:11 pm, rantingrick wr

Re: cipher encoding

2011-01-12 Thread Nick Stinemates
Try print s[::-1] Nick On Wednesday, January 12, 2011, Cathy James wrote: > Dear all, > > I hope someone out there can help me. > >  The output string of my code is close to what i need, but i need it > 1)printed on one line and > > 2) reversed > > > #mycode: > s= input("Enter message: ") > key

Re: A Good Mailer

2009-11-18 Thread Nick Stinemates
uot;em...@myhost.com"] session.sendmail(email_from, email_to, header+messages) HTH, Nick Stinemates > TIA, > Victor > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list

Re: Accessing a Web server --- how?

2009-11-18 Thread Nick Stinemates
This is what the History and Compare URL translates to: http://service.nordea.com/nordea-openpages/six.action?target=/nordea.public/bond/nordeabond.page&magic=(cc+(detail+(tsid+310746)+(view+hist)))& Some questions.. Do you have an idea on what the tsid is? It looks like it's a unique identifier

Re: _winreg error on open key (64bit) - proper usage of _winreg.DisableReflectionKey

2009-11-17 Thread Nick Stinemates
>From _winreg.c: "Disables registry reflection for 32-bit processes running on a 64-bit OperatingSystem. Will generally raise NotImplemented if executed on a 32-bit Operating System. If the key is not on the reflection list, the function succeeds but has noeffect. Disabling reflection for a key

Re: Vim breaks after Python upgrade

2009-11-17 Thread Nick Stinemates
At least with Gentoo, there's a command to recompile all of the plugins you have installed when upgrading python versions. Your issue is probably related to that. I don't think VIM uses hardcoded locations for scripts at the core. If you have any specific questions about the errors you're receivi

Re: list comprehension problem

2009-10-29 Thread Nick Stinemates
> Some objects are singletons, ie there's only ever one of them. The most > common singleton is None. In virtually every other case you should be > using "==" and "!=". Please correct me if I am wrong, but I believe you meant to say some objects are immutable, in which case you would be correct.

RE: Testing dynamic languages

2009-04-05 Thread Nick Stinemates
Plenty. Try github.com for starters. -Original Message- From: python-list-bounces+nick=stinemates@python.org [mailto:python-list-bounces+nick=stinemates@python.org] On Behalf Of barisa Sent: Sunday, April 05, 2009 10:22 AM To: python-list@python.org Subject: Re: Testing dynamic

RE: Generators/iterators, Pythonicity, and primes

2009-04-05 Thread Nick Stinemates
I thought it was beautiful. Reminded me of lisp and I haven't seen that done in Python before. -Original Message- From: python-list-bounces+nick=stinemates@python.org [mailto:python-list-bounces+nick=stinemates@python.org] On Behalf Of Kay Schluehr Sent: Sunday, April 05, 2

RE: is there a way to collect twitts with python?

2009-04-03 Thread Nick Stinemates
> Thank you, thank you, thank you > everyone around me seems to love that thing (twitter), and I still can't > work out why (apart from hacks such as using it as a hosted queue for > cross-server comms, or receiving cheap sms to your app) > Tim Wintle You mean you don't want to read every d

Re: multiple pattern regular expression

2008-04-25 Thread Nick Stinemates
On Fri, Apr 25, 2008 at 08:40:55PM -0400, Carsten Haese wrote: > Nick Stinemates wrote: >> On Fri, Apr 25, 2008 at 09:50:56AM -0400, [EMAIL PROTECTED] wrote: >>> How about this? >>> >>> for line in file: >>> # ignore lines without = assignment

Re: multiple pattern regular expression

2008-04-25 Thread Nick Stinemates
following regex import re str = """a=b c=d e=f string=The sum of 2+2=4""".split("\n") p = re.compile("([^=]*)=(.*)") for lines in str: key,value=p.findall(lines)[0] print key, value -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling Python code from inside php

2008-04-25 Thread Nick Stinemates
On Fri, Apr 25, 2008 at 03:29:49PM +0200, Diez B. Roggisch wrote: > Nick Stinemates schrieb: >>> While I certainly prefer to use Python wherever I can, that does not mean >>> that there aren't cases where legacy systems or other constraints make >>> this impos

Re: MESSAGE RESPONSE

2008-04-25 Thread Nick Stinemates
about the internet. > ZING! -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Remove multiple inheritance in Python 3000

2008-04-24 Thread Nick Stinemates
tance. > > I also published this request at http://bugs.python.org/issue2667 > -- > http://mail.python.org/mailman/listinfo/python-list You make strong, compelling arguments.... -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling Python code from inside php

2008-04-24 Thread Nick Stinemates
wasting a lot of time)? I don't understand how the 2 are mutually exclusive? You can have PHP and Python bindings installed on the same Apache server, unless I'm mistaken? -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling Python code from inside php

2008-04-23 Thread Nick Stinemates
How do I go about this?? > > > Cheers > Vijay > -- > http://mail.python.org/mailman/listinfo/python-list Why not just write it all in Python? -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- http://mail.python.org/mailman/listinfo/python-list

Re: how turbo geras code works

2008-04-18 Thread Nick Stinemates
On Wed, Apr 16, 2008 at 01:35:29AM -0700, reetesh nigam wrote: > hi. > actually i have developed one small project but now i want to > develope a project with the help of html.. > please help me out > -- > http://mail.python.org/mailman/listinfo/python-list OK. Done -- Nick

Re: insert python script in current script

2008-04-18 Thread Nick Stinemates
ttp://mail.python.org/mailman/listinfo/python-list Could it also be that he would like to have a base class? Cause that's what It sounds like to me! class Base: def __init__(self): self.address = "address" self.status = 1 //use numbers instead of strings :) class Person(Base): def __init__(self): Base.__init__(self) # now you have the self.address, self.status -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- http://mail.python.org/mailman/listinfo/python-list

Re: python beginer

2008-04-18 Thread Nick Stinemates
ve a nice day > -- > http://mail.python.org/mailman/listinfo/python-list Start with learning how to type. -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting subprocess.call() output into a string?

2008-04-18 Thread Nick Stinemates
_close(self): os.kill(self.__process.pid,9) def _listen(self): """ get from stdout """ return "".join(self.__stdout.readlines()) def _listen2(self): """ My attempt at trying d

Re: How to have unittest tests to be executed in the order they appear?

2008-04-18 Thread Nick Stinemates
ngle test that > way if you wanted to. > Agreed! -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- http://mail.python.org/mailman/listinfo/python-list

Re: program to Ping ip addresses

2008-04-18 Thread Nick Stinemates
ot;+str(b)+" is online.\n") > elif z==1: > print("Either "+str(sec)+"."+str(b)+" is offline, or ping > request has been blocked.") > zx.write("Either "+str(sec)+"."+str(b)+" is offline, or ping > request has been blocked.\n") > > intb = intb + 1 > b=str(intb) > > else: > > print("Wrong choice. Retard.") > I love that you call the users of your app retards :) That rocks! ping runs forever. tracert doesnt. try: > ping -w 5 -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Brand New!

2008-04-18 Thread Nick Stinemates
here. I have immensely enjoyed it so far, and will continue to tinker > well into the future. > > --Paul > I think that's wonderful! I think problem solving language independent. As long as you can break down what you need to do and conceptualize. You must have learned to do with wi

Re: Brand New!

2008-04-18 Thread Nick Stinemates
if it works for you, go ahead. > For other resources, see the beginners section in the Python wiki: > http://wiki.python.org/moin/BeginnersGuide I agree and disagree! As long as the student understands how the different parts play together, and the Web medium is what gets him interested

Re: Brand New!

2008-04-18 Thread Nick Stinemates
t how long will it take me to learn the basics of > the language? > -Thanks 4 all ur help! Agent E 10 > -- > http://mail.python.org/mailman/listinfo/python-list Windows or Unix/Linux? I find python is easier to learn in Linux environments, since it assumes some familiarty with the shell. -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- http://mail.python.org/mailman/listinfo/python-list

Re: py3k s***s

2008-04-18 Thread Nick Stinemates
rhaps been drinking but i have been p**d all week since i > began look into this:-( > -- > http://mail.python.org/mailman/listinfo/python-list Yo, no one here is a child so don't litter your title and text with hard to read bullshit. -- Nick Stinemates ([EMAIL PROTECTED]) http://n

Re: name of client module

2008-02-18 Thread Nick Stinemates
Jeff Schwab wrote: > Nick Stinemates wrote: > >>> I'm not saying I don't want to do that. I'm saying that, in addition to >>> what you've written, I want foo to know it's being imported, and by whom. >>> > > Please

Re: name of client module

2008-02-18 Thread Nick Stinemates
; % module a.setImported(self) i = Importer() i.__import__("Imported") Imported.py #!/usr/bin/python def setImported(importer): print "I've been imported by %s" %importer -- ====== Nick St

Re: Python ASP Error

2008-02-18 Thread Nick Stinemates
unning IIS/whatever webserver you're running read access to C:\\WINDOWS\\TEMP\\gen_py\\2.5\\__init__.py -- == Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org AIM: Nick Stinemates MSN: [EMAIL PROTECTED] Yahoo: [EMAIL PROTECTED] == -- http://mail.python.org/mailman/listinfo/python-list

Re: name of client module

2008-02-18 Thread Nick Stinemates
o.exec() -- == Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org AIM: Nick Stinemates MSN: [EMAIL PROTECTED] Yahoo: [EMAIL PROTECTED] == -- http://mail.python.org/mailman/listinfo/python-list

Re: Threading the Python interpreter

2008-02-18 Thread Nick Stinemates
mb > here. Am I correct in my assumption this is OK or just lucky so far? > FYI -- That's not multi threading that's multiprocessing. You're safe. -- == Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org AIM: Nick Stinemates MSN: [EMAIL PROTECTED] Yahoo: [EMAIL PROTECTED] == -- http://mail.python.org/mailman/listinfo/python-list