Grouping code by indentation - feature or ******?

2005-03-25 Thread Tim Tyler
What do you guys think about Python's grouping of code via indentation? Is it good - perhaps because it saves space and eliminates keypresses? Or is it bad - perhaps because it makes program flow dependent on invisible, and unpronouncable characters - and results in more manual alignment issues

Re: Grouping code by indentation - feature or ******?

2005-03-26 Thread Tim Tyler
Peter Otten <[EMAIL PROTECTED]> wrote or quoted: > I, Tim Tyler wrote: > > What do you guys think about Python's grouping of code via indentation? > > This is a Python newsgroup. Assume that we all have been brainwashed. ;-) I had a good look for comp.lang.python.

Re: Grouping code by indentation - feature or ******?

2005-03-26 Thread Tim Tyler
Javier Bezos <[EMAIL PROTECTED]> wrote or quoted: > "Tim Tyler" <[EMAIL PROTECTED]> escribi? en el mensaje > > What do you guys think about Python's grouping of code via indentation? > > > > Is it good - perhaps because it saves space and elimina

Re: Good use for Jython

2005-03-30 Thread Tim Tyler
Mike Wimpe <[EMAIL PROTECTED]> wrote or quoted: > Other than being used to wrap Java classes, what other real use is > there for Jython being that Python has many other GUI toolkits > available? Also, these toolkits like Tkinter are so much better for > client usage (and faster) than Swing, so wha

Re: Grouping code by indentation - feature or ******?

2005-04-08 Thread Tim Tyler
I, Tim Tyler <[EMAIL PROTECTED]> wrote or quoted: > What do you guys think about Python's grouping of code via > indentation? Some relevant resources: http://c2.com/cgi/wiki?PythonWhiteSpaceDiscussion http://c2.com/cgi/wiki?IndentationEqualsGrouping http:

Are circular dependencies possible in Python?

2005-04-09 Thread Tim Tyler
Like C, Python seems to insist I declare functions before calling them - rather than, say, scanning to the end of the current script when it can't immediately find what function I'm referring to. C lets you predeclare functions to allow for the existence of functions with circular dependencies. D

Re: Are circular dependencies possible in Python?

2005-04-09 Thread Tim Tyler
Tim Tyler <[EMAIL PROTECTED]> wrote or quoted: > Like C, Python seems to insist I declare functions before calling > them - rather than, say, scanning to the end of the current script > when it can't immediately find what function I'm referring to. > > C lets yo

Re: Are circular dependencies possible in Python?

2005-04-10 Thread Tim Tyler
Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote or quoted: > In <[EMAIL PROTECTED]>, Tim Tyler wrote: > > Like C, Python seems to insist I declare functions before calling > > them - rather than, say, scanning to the end of the current script > > w

Re: Python or PHP?

2005-04-23 Thread Tim Tyler
Mage <[EMAIL PROTECTED]> wrote or quoted: > check this: http://wiki.w4py.org/pythonvsphp.html Good - but it hardly mentions the issue of security - which seems like a bit of a problem for PHP at the moment. -- __ |im |yler http://timtyler.org/ [EMAIL PROTECTED] Remove lock to reply.

Re: Python licence again

2005-04-23 Thread Tim Tyler
fuzzylollipop <[EMAIL PROTECTED]> wrote or quoted: > try spelling license correctly next time and heading the google > suggestions that probably looked like "didn't you mean : Python License" How do you spell license correctly? -- __ |im |yler http://timtyler.org/ [EMAIL PROTECTED] R

Re: Python or PHP?

2005-04-24 Thread Tim Tyler
Mage <[EMAIL PROTECTED]> wrote or quoted: > Tim Tyler wrote: > >Mage <[EMAIL PROTECTED]> wrote or quoted: > >>check this: http://wiki.w4py.org/pythonvsphp.html > > > >Good - but it hardly mentions the issue of security - which seems > >like a bit

replace parens update

2015-06-01 Thread Littlefield, Tyler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello all: I've put a new version here: https://dl.dropboxusercontent.com/u/10204868/replace_parens.py It's for me, a lot easier to understand. It uses regex to replace parens rather than using a state machine and conforms to the python standards for

Re: I'm using Sphinx, but is there a UML auto generator

2015-10-02 Thread Littlefield, Tyler
> You can use Graphvix and Plant UML from inside Sphinx. > http://build-me-the-docs-please.readthedocs.org/en/latest/Using_Sphinx/UsingGraphicsAndDiagramsInSphinx.html > > Laura > Keep this in mind: However you write your docs, they should be accessible for everyone to use. That is to say, scree

Re: Hiding code from intruders, a different slant on an old question

2015-10-07 Thread Littlefield, Tyler
On 10/7/2015 5:38 AM, c...@isbd.net wrote: > I know questions similar to this are often asked but my reasons for > wanting to do this (and thus ways it can be done) are slightly different. > > I have a number of little utility scripts (python and others) which I > use to automate the process of dec

Re: what's the command for (cd ..) in python

2011-09-09 Thread Littlefield, Tyler
On 9/9/2011 6:07 AM, kaustubh joshi wrote: Hello friends, How do we carry out the command "*cd ..*" in python? os.chdir, like so: >>> os.getcwd() '/home/tyler' >>> os.chdir("../") >>> os.getcwd() '/home&#x

Re: Installing 2.6 on Win 7

2011-09-09 Thread Littlefield, Tyler
On 9/9/2011 2:04 PM, ray wrote: I have not found binaries for this install. The page http://www.python.org/download/windows/ takes me to http://www.python.org/download/releases/ which goes to http://www.python.org/download/releases/2.6.7/ Here are Gzip and Bzip tar balls. The readme files descr

using python in web applications

2011-09-09 Thread Littlefield, Tyler
Hello all: I'm curious if there are some good solutions for using Python in web applications. I'm not feeling particularly masochistic, so I do not want to develop this project in PHP; essentially I'm looking to build a web-based MMO. I know that you can use nginx with Python with servers lik

Re: How to structure packages

2011-09-10 Thread Littlefield, Tyler
On 9/10/2011 4:11 AM, Nobody wrote: On Fri, 09 Sep 2011 11:37:44 +1000, Chris Angelico wrote: The Java compiler also acts as a "make" program. If it doesn't find a .class file for a needed class, it will search for the corresponding .java file and compile that. So to compile a complex program,

Re: test if a subclass inherits a superclass method

2011-09-10 Thread Littlefield, Tyler
On 9/10/2011 5:58 AM, Kayode Odeyemi wrote: Hello, I'm testing Python's class abstractness and inheritance. Since interface doesn't exist, I will like to test how to have access to a superclass method from a subclass without necessary invoking or overriding the superclass method in its subcla

Re: using python in web applications

2011-09-10 Thread Littlefield, Tyler
On 9/9/2011 10:19 PM, Ben Finney wrote: "Littlefield, Tyler" writes: I'm curious if there are some good solutions for using Python in web applications. Start with: http://docs.python.org/howto/webservers.html#frameworks> http://wiki.python.org/moin/WebFrameworks> Awe

Re: using python in web applications

2011-09-10 Thread Littlefield, Tyler
On 9/10/2011 5:35 PM, Laurent wrote: [troll] For a serious web based MMO you'd rather stick to low level and forget about bloated Object Relational Mapping java-like layered kind of frameworks that are made for Rapid Applications Development, not for efficiency. [/troll] I replied to that one

using twisted as a client-server hybrid

2011-12-14 Thread Littlefield, Tyler
Hello all: I have a quick question--I am working on a project where a system will connect to me to get commands. The idea is to make the server the "client," used for dispatching commands, so I'm trying to find a way that I can set it up to listen, but poll stdin somehow for input. Is this a

python logging module:a quick question

2011-12-26 Thread Littlefield, Tyler
Hello all: I have a basic server I am working on, and wanted some input with an error I'm getting. I am initializing the logger like so: if __name__ == "__main__": observer = log.PythonLoggingObserver() observer.start() logging.basicConfig(filename='logs/server.log', level=logging.DEBUG,

a couple of questions: pickling objects and strict types

2013-04-05 Thread Littlefield, Tyler
Hello all: I've been using Python for a while now, but I have one larger problem. I come from a c++ background; though it doesn't help in catching runtime errors, being able to compile a program helps catch a lot of syntax errors. I know about pychecker, which is somewhat useful. Do people have

Re: a couple of questions: pickling objects and strict types

2013-04-05 Thread Littlefield, Tyler
On 4/5/2013 2:30 PM, Steven D'Aprano wrote: On Fri, 05 Apr 2013 12:59:04 -0600, Littlefield, Tyler wrote: Hello all: I've been using Python for a while now, but I have one larger problem. I come from a c++ background; though it doesn't help in catching runtime errors, being ab

Launching multiple instances of a program with win32com.client.Dispatch?

2006-07-06 Thread tyler . schlosser
ul to anyone who could offer some help with this. Thank you very much, Tyler -- http://mail.python.org/mailman/listinfo/python-list

Re: Launching multiple instances of a program with win32com.client.Dispatch?

2006-07-07 Thread tyler . schlosser
gt; > > > Does anyone know how to force two separate program launches rather than > > having both Dispatch commands access the same object? I would be > > incredibly thankful to anyone who could offer some help with this. > > > > Thank you very much, > > > > Tyler > > -- http://mail.python.org/mailman/listinfo/python-list

Re: Launching multiple instances of a program with win32com.client.Dispatch?

2006-07-07 Thread tyler . schlosser
ntaining a > > > "win32com.client.Dispatch("Broker.Application")" comand, the same > > > problem happens (where even though the objects are named differently, > > > they do not each launch an instance of the program; the first one > > > launches it and the second one just "grabs" it). > > > > > > Does anyone know how to force two separate program launches rather than > > > having both Dispatch commands access the same object? I would be > > > incredibly thankful to anyone who could offer some help with this. > > > > > > Thank you very much, > > > > > > Tyler > > > -- http://mail.python.org/mailman/listinfo/python-list

cgi undefined?

2007-11-04 Thread Tyler Smith
ry and use cgi.FieldStorage() I get the following errors from cgitb: A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. /home/tyler/public_html/cgi-bin/cgi.py 2 3 import cgitb; cgitb.enable() 4 import cgi

Re: cgi undefined?

2007-11-04 Thread Tyler Smith
On 2007-11-04, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > > '/home/tyler/public_html/cgi-bin/cgi.py' > ^^ > > Very simple -- you named YOUR handler "cgi". So when it does "import > cgi" it

Re: may be a bug in string.rstrip

2007-11-22 Thread Tyler Reguly
ch on, so it stopped... that's why the other e was left. On 11/22/07, Tyler Reguly <[EMAIL PROTECTED]> wrote: > > Interesting... I tried this on three machines Windows/Python 2.4.3, > FC4/Python 2.4.3, Ubuntu/Python 2.5.1 and I saw the same thing for each... > It's a

Re: may be a bug in string.rstrip

2007-11-22 Thread Tyler Reguly
Interesting... I tried this on three machines Windows/Python 2.4.3, FC4/Python 2.4.3, Ubuntu/Python 2.5.1 and I saw the same thing for each... It's apparently not a three character issue but rather related to specific characters (e, n, o, r, t). A further test revealed that this affects one additio

Re: Outbound HTML Authentication

2007-11-29 Thread Tyler Reguly
did the recently for a project that I'm working on... and looked fairly deeply at Ronald's write-up... It is fairly decent... and I may actually implement it at some point in the future as a released Python module... for now though you'll have to do it yourself. -- Tyler Reguly

difflib and intelligent file differences

2009-03-26 Thread hayes . tyler
Hello All: I am starting to work on a file comparison script where I have to compare the contents of two large files. Originally I thought to just sort on a numeric key, and use UNIX's comm to do a line by line comparison. However, this would fail, hence my thinking that I really should've just us

Re: difflib and intelligent file differences

2009-03-26 Thread hayes . tyler
On Mar 26, 11:10 am, Marco Mariani wrote: > Marco Mariani wrote: > >>     while True: > >>         a = filea.readline() > >>         b = fileb.readline() > >>         if not (a or b): > >>             break > > BTW, watch out for this break. It might not be what you want :-/ HA! Just found it :P

Re: difflib and intelligent file differences

2009-03-26 Thread hayes . tyler
Thanks for all of your suggestions. Turns out Marco's first version was really the one I needed. Thanks again, t. On Mar 26, 12:37 pm, Marco Mariani wrote: > Marco Mariani wrote: > >> If the lines are really sorted, all you really need is a merge, > > For the archives, and for huge files where

Re: I donä't get while-loops

2008-08-02 Thread Tyler Breisacher
You're actually calling the read2() function from within read2(). This is called recursion, and it is *not* what you want in this case, since it unnecessarily fills up your call stack. Remember that a while loop automatically goes back to the top without you having to re-call your function. I w

Re: What Python looks like

2008-08-05 Thread Tyler Breisacher
To paraphrase this video (http://www.youtube.com/watch?v=zJOS0sV2a24) (which is the Randall Munroe, author of the famous xkcd (http://www.xkcd.com/), giving a talk at Google), "you just type the pseudo-code and it runs! And as someone said, if Python is executable pseudo-code, then Perl is exec

RE: A question about string and float number

2008-08-06 Thread Tyler Breisacher
It's generally a bad idea to use "except" without naming a specific exception. The exception you might expect in this case is ValueError. Any other exception *should* be uncaught if it happens. By the way, this method will return true for integers as well as floats. For example, isFloat('3') wi

PyDoc in Windows Vista

2008-08-29 Thread Tyler Shopshire
I can't seem to access the pydoc sever from my web browser. I start the server from the command prompt and everything seems to be working fine, then I got to http://localhost:/ and it doesn't work. I also tried starting the graphical mode with the -g parameter but I still cannot use PyDoc.

PyDoc in Vista

2008-08-29 Thread Tyler Shopshire
I can't seem to get Pydoc up and running in windows Vista. I can search for modules manually by using the "pydoc module_name" command but if i try to set up an http server, it says the server is up and running but I can't access it in FF or IE. Any help is appreciated. -- http://mail.python.org/

Re: PyDoc in Windows Vista

2008-08-29 Thread Tyler Shopshire
On Fri, 29 Aug 2008 07:12:28 -0700, Mike Driscoll wrote: > On Aug 28, 5:45 pm, Tyler Shopshire <[EMAIL PROTECTED]> wrote: >> I can't seem to access the pydoc sever from my web browser. I start the >> server from the command prompt and everything seems to be working

help with link parsing?

2010-12-20 Thread Littlefield, Tyler
Hello all, I have a question. I guess this worked pre 2.6; I don't remember the last time I used it, but it was a while ago, and now it's failing. Anyone mind looking at it and telling me what's going wrong? Also, is there a quick way to match on a certain site? like links from google.com and

re: nagios

2011-01-01 Thread Littlefield, Tyler
Adam, Frankly, I am getting really tired of listening to you. I've seen numerous good posts on this list, some post more good quality information and arguments than others, and so far I have yet to see any post of yours where you do not resort to insults and totally avoid the argument. I under

Re: Screen readers for Tkinter (was Re: Tkinter: The good, the bad, and the ugly!

2011-01-21 Thread Littlefield, Tyler
>And of course, it should also offer support for Windows, since most of the computer users use Windows, especially those who need accessibility features. uh. no, and no. Plenty of those utilizing screen readers are using macs nowadays, as well as vinux or some derivitave there of. -- Thanks,

Re: documentation / reference help

2011-01-23 Thread Littlefield, Tyler
The return value simply returns a value to the calling function, which the function can handle, however it wants. so: for example def add(a, b): return (a+b) That simply returns the value a+b, which you can use however you like, like so: i=add(2,3) will assign the return value to add. I rec

Re: WxPython versus Tkinter.

2011-01-23 Thread Littlefield, Tyler
RR, I have not seen anything useful from you thus far, except: 1) "you disagree with me, troll you must be," "2) who cares if my programs have bugs and don't compile cross-platform, defective code is code, none the less. 3) And a lot of unfounded arrogance in stating that no one understands Tkin

Re: WxPython versus Tkinter.

2011-01-23 Thread Littlefield, Tyler
>PS: Be sure not to cause any segfaults because these linux folks can't >debug for shite! Or maybe it is that the person fighting and throwing insults around like candy at a parade can't code for shite. Or *gasp* the library that is supposedly cross-platform has issues on certain platforms. You

Re: WxPython versus Tkinter.

2011-01-24 Thread Littlefield, Tyler
>I also have a segfault. You should fix that, rantingrick It's clear that the mighty text editor he's wielding in his arena of champions while taking on the world all by himself does not come with a debugger, or even the ability to run the code. Might I suggest throwing your current weapon of m

Re: WxPython versus Tkinter.

2011-01-24 Thread Littlefield, Tyler
off the soapbox already. On 1/23/2011 11:58 PM, Octavian Rasnita wrote: From: "Littlefield, Tyler" >PS: Be sure not to cause any segfaults because these linux folks can't >debug for shite! Or maybe it is that the person fighting and throwing insults around like candy at a parad

Re: WxPython versus Tkinter.

2011-01-24 Thread Littlefield, Tyler
Hello, I have been on another list with Octavian, and he takes his accessibility a bit to seriously. If things went his way, he wants laws where -everything- has to be accessible, and it is illegal not to do so. As a sidenote, I would like to preface everything I'm going to say by mentioning

Re: WxPython versus Tkinter.

2011-01-24 Thread Littlefield, Tyler
Bryan: Here's a pretty good list for you. Windows: Jaws for Windows (http://freedomscientific.com). Not free, but you get a 40 minute demo before you need to reboot. Nonvisual Desktop Access: http://www.nvda-project.org/ Free, open source, written in python (with some core stuff in c/c++). Linux

Re: WxPython versus Tkinter.

2011-01-24 Thread Littlefield, Tyler
RR, you idiot. Did you -not- read that I was blind and using a screen reader? And wasn't it -you- yelling at someone about reading and comprehention? On 1/24/2011 12:34 PM, MRAB wrote: On 24/01/2011 18:48, rantingrick wrote: On Jan 24, 12:21 pm, "Littlefield, Tyler" wrote:

Re: WxPython versus Tkinter.

2011-01-24 Thread Littlefield, Tyler
s is awesome. We for sure need more complainers and less people to do what the complainers are complaining about! On 1/24/2011 1:49 PM, Octavian Rasnita wrote: From: "Mark Roseman" "Littlefield, Tyler" wrote: Rather, I believe those pushing accessibility should concen

Re: WxPython versus Tkinter.

2011-01-24 Thread Littlefield, Tyler
a selfish, selfish person he is. Shame on you Octavian, Shame on You! You just showed your true colors Tyler, very sad. :( I understand Tyler because I know some blind people. It is very frustrating to be able to think better than many other sighted people and to be able to do very many complex

Re: WxPython versus Tkinter.

2011-01-24 Thread Littlefield, Tyler
>I think you are lying about being blind. And if you are, i am disgusted. By golly, you caught me in the act! shhh, don't tell everyone; it's all an elaborate front. The braille, the screen reader, the cane... I just like to fake it. block quote Well if i were a blind person i would use the mo

Re: WxPython versus Tkinter.

2011-01-25 Thread Littlefield, Tyler
RR, I do hate to break the news to you, but I am -blind-, which is why I am using a screen reader. So I'm not parking anywhere--the DMV refuses to give me a license for some odd reason. What was that post about IQ you made earlier?... -- http://mail.python.org/mailman/listinfo/python-list

Re: WxPython versus Tkinter.

2011-01-25 Thread Littlefield, Tyler
>Wow! I, I, I, I... is there a sentence that doesn't talk about your self interests? It is clear you have been taking lessons from RR; the word I does not convey self interest, in fact, it is the best word suited to speaking of oppinions (which is all that these are), in the first person. Lets m

Re: WxPython versus Tkinter.

2011-01-25 Thread Littlefield, Tyler
>What do you think Emile? I think that that starts with you. You want to be more accepting when it comes to you, but you've had no problems calling people an idiot and otherwise insulting them just as you are complaining about. On 1/25/2011 6:07 PM, rantingrick wrote: On Jan 25, 6:55 pm, Emile

Re: WxPython versus Tkinter.

2011-01-26 Thread Littlefield, Tyler
>I don't know why you didn't say this before. Comprehention, Octavian. I've made that point multiple times, but your to stuck on talking about how selfish people are. >The other part of the discussion is related to the accessibility and care for >accessibility and that discussion is not nice at

Re: WxPython versus Tkinter.

2011-01-26 Thread Littlefield, Tyler
"Littlefield, Tyler" I don't know why you didn't say this before. Comprehention, Octavian. I've made that point multiple times, but your to stuck on talking about how selfish people are. You didn't say that WxPython can't be used with Python 3. Have you said that?

Re: WxPython versus Tkinter.

2011-01-26 Thread Littlefield, Tyler
its so called JAWS cursor, it offers a poor accessibility in many applications and many other issues. You are wrong, on all accounts. On 1/26/2011 10:04 AM, Octavian Rasnita wrote: From: "Littlefield, Tyler" with JAWS because it is the most used screen reader. Get off your me soap

Re: WxPython versus Tkinter.

2011-01-26 Thread Littlefield, Tyler
>Stephen "Strawman" Hansen: If he only had a brain! And you want -us- to take -you- seriously? Tell me, what did you accomplish with that insult? Beyond elevating your own ego and trolling some more, anyway. On 1/26/2011 1:37 PM, rantingrick wrote: On Jan 26, 2:07 pm, Stephen Hansen wrote:

Re: WxPython versus Tkinter.

2011-01-26 Thread Littlefield, Tyler
Saying what? I don't understand what you were not saying. This is a sketch of your point of view and Tyler's point of view. What has the phrase I told above with what Tyler said? I said that if somebody can create accessible programs but doesn't *want* to do that, this generates

Re: WxPython versus Tkinter.

2011-01-27 Thread Littlefield, Tyler
>but what's wrong is that Python promotes a GUI which is not accessible by including it as a default GUI. You seem to have overlooked this multiple times and instead decided to shove words in my mouth and continue on your line of selfishness which is justified apparently now by the fact that you

Re: WxPython versus Tkinter.

2011-01-27 Thread Littlefield, Tyler
Eloq is an add-on, but it does support it. >but only eSpeak which sounds horrible That's your personal preference. Plenty use and like ESpeak. >it doesn't have a scripting language ready to use as JAWS and Window Eyes do, Scripting is done in Python, (no, not some native scripting language), and

Re: WxPython versus Tkinter.

2011-01-27 Thread Littlefield, Tyler
snita wrote: From: "Littlefield, Tyler" >I don't want to convince anyone, but I just want to inform the others and let >them know if they are doing something not recommended. not recommended by -you-, which is different than by a community or the subset of people you are atte

Re: WxPython versus Tkinter.

2011-01-27 Thread Littlefield, Tyler
>Tyler, you are a Linux and Mac user and you search with Google and try to >explain how many things you know about NVDA, but it is obviously that what >JAWS 1) Because you, your crew, and your group on a specific forum doesn't like ESpeak doesn't disqualify an entire re

Re: WxPython versus Tkinter.

2011-01-27 Thread Littlefield, Tyler
>* Disclaimer: You are stupid if you think this is true. But seriously, >Octavian makes it REALLY hard to continue caring about something that I >actually cared about before and thought was important. People like Octavian do that. Sadly, it is one of the things holding the blind community back. I

Re: WxPython versus Tkinter.

2011-01-27 Thread Littlefield, Tyler
>Because healthy Linux users ARE NOT equal to handicapped people! O? I bet I could run circles around RR in the shell, any day. Why are you trying to promote accessibility for a group of people you consider not equal to a group of "healthy" people? -- http://mail.python.org/mailman/listinfo/py

Re: WxPython versus Tkinter.

2011-01-28 Thread Littlefield, Tyler
>Exactly what I said. They are doing the same mistake as I did 20 years ago. and are still making now... Lack of English and grammar isn't the problem... -- http://mail.python.org/mailman/listinfo/python-list

Re: WxPython versus Tkinter.

2011-01-28 Thread Littlefield, Tyler
>Yes but his silence speaks louder than words. He is saying " While i >won't defend Tkinter publicly, i won't promote any others as well". That's the best translation I've ever heard: taking silence and diverting it into your own meaning for what you want it to mean. -- http://mail.python.org/ma

Re: WxPython versus Tkinter.

2011-01-28 Thread Littlefield, Tyler
>Man look at the state of Tkinter. Look at the bugs and mediocre code i >exposed. Are you going to set there with a strait face and tell me >many people are using Tkinter. Come on Kevin, be realistic! You also uncovered bugs in WX (remember those segfaults, RR)? On 1/28/2011 1:35 PM, rantingrick w

Re: WxPython versus Tkinter.

2011-01-30 Thread Littlefield, Tyler
am about accessibility, yell at the people charging an arm and a leg to make things accessible. On 1/28/2011 1:33 AM, Octavian Rasnita wrote: From: "Littlefield, Tyler" >* Disclaimer: You are stupid if you think this is true. But seriously, >Octavian makes it REALLY hard to continu

Re: Useing the processor clock, or get time in Femptoseconds

2011-01-30 Thread Littlefield, Tyler
If you are on windows, you can use high-resolution timers. What you are trying is physically impossible though: lets say you have a processor that runs at 2.5 GHz. that's 2.5 billion cycles per second, give or take a few. So, the lowest you can go is nanoseconds. You're trying to time like 10x

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-01-31 Thread Littlefield, Tyler
However we cannot blame the current maintainer... You seem to still not know who -we- is. rewrite your message using I in place of we, and you'll be on the right track. -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-02-01 Thread Littlefield, Tyler
>See now you are offering truth in your argument! Keep this up and i'll >move you over to the occasional flamers group. Then over time, if you >can demonstrate an ability to engage in lively discussion based on >facts and not emotion, i *may* even move you into the moderates group. O no, whatever

Re: Are Small Dogs Good with Kids?

2011-02-07 Thread Littlefield, Tyler
Not only does this have -nothing- to do with python, but you reproduced the spam yet again by quoting it... seriously? -- http://mail.python.org/mailman/listinfo/python-list

Re: Easy function, please help.

2011-02-09 Thread Littlefield, Tyler
Uh oh, I think we found RR's evil twin: another python to the modern day visionary. >Example 1 is not explicit enough. Too much guessing is required by the >reader! if list is empty, bla. if not, bla. it's not all that hard, and there's no guessing that needs to take place, honest. -- http://m

Re: Call to Update All Tutorials to Python3.x Standards.

2011-02-13 Thread Littlefield, Tyler
Hahaha. You've got a new one every week, don't you. What happened to the demand to evolve idol into the future or whatever the BS you were parroting was? So we're on TKInter being fixed/replaced, (which you haven't worked with the steps people gave you), Idol being forked and redone, (again whi

Re: Call to Update All Tutorials to Python3.x Standards.

2011-02-13 Thread Littlefield, Tyler
>However *we* are going to move forward with or >without you. In other words: We in RR's book means RR and this silent majority that has pitched in so much work to back his last call to move forward, that we're now boggling in awe at a new Idol. And moving forward means posting lots of trash, (

Re: Problems of Symbol Congestion in Computer Languages

2011-02-17 Thread Littlefield, Tyler
>My intention was to educate him on the pitfalls of multiplicity. O. that's what you call that long-winded nonsense? Education? You must live in America. Can I hazard a guess that your universal language might be english? Has it not ever occured to you that people take pride in their language?

Re: GUI(eclipse+pydev/SPE) freeze when doing python auto-completion under Linux

2009-06-17 Thread Tyler Laing
Do you experience the same problem even on an empty program file or is it limited to just one file? -Tyler On Wed, Jun 17, 2009 at 7:47 PM, Wei, James wrote: > On Jun 18, 10:45 am, "Wei, James" wrote: > > When I am editing python program with SPE, I found that SPE will &g

Calling subprocess with arguments

2009-06-18 Thread Tyler Laing
I've been trying any variation I can think of to do this properly, but here's my problem: I want to execute this command string: vlc -I rc This allows vlc to be controlled via a remote interface instead of the normal gui interface. Now, say, I try this from subprocess: >>>p=subprocess.Popen('v

Re: Status of Python threading support (GIL removal)?

2009-06-19 Thread Tyler Laing
mance, if you know how to use it properly. Basically the two sides are that you it ends up slowing things down, it makes the interpreter more complex vs you should use processes instead, and be smart about how you use the GIL. -Tyler On Fri, Jun 19, 2009 at 2:52 AM, Jure Erznožnik wrote: >

Re: Calling subprocess with arguments

2009-06-19 Thread Tyler Laing
So no one has an answer for why passing flags and the values the flags need through subprocess does not work? I would like an answer. I've examined all the examples I could find online, which were all toy examples, and not helpful to my problem. On Thu, Jun 18, 2009 at 7:40 PM, Tyler Laing

Re: Calling subprocess with arguments

2009-06-19 Thread Tyler Laing
I can't use communicate, as it waits for the child process to terminate. Basically it blocks. I'm trying to have dynamic communication between the python program, and vlc. On Fri, Jun 19, 2009 at 8:05 AM, Charles Yeomans wrote: > > On Jun 19, 2009, at 10:55 AM, Tyler Laing wrot

Re: Calling subprocess with arguments

2009-06-19 Thread Tyler Laing
Thanks mike, the idea that maybe some of the info isn't being passed is certainly interesting. Here's the output of os.environ and sys.argv: ty...@surak:~$ cat environ {'XAUTHORITY': '/home/tyler/.Xauthority', 'GNOME_DESKTOP_SESSION_ID': 'this-is-depr

Re: Calling subprocess with arguments

2009-06-19 Thread Tyler Laing
Sorry, XD. I'll ask the VLC people if they happen to know why VLC won't open up the remote interface. -Tyler On Fri, Jun 19, 2009 at 9:09 AM, Mike Kazantsev wrote: > On Fri, 19 Jun 2009 22:00:28 +0600 > Mike Kazantsev wrote: > > > On Fri, 19 Jun 2009 08:28:17 -07

Re: Calling subprocess with arguments

2009-06-19 Thread Tyler Laing
It appears to be an issue specifically with VLC, not subprocess. Thank you guys. The remote interface works through sockets, which is perfectly fine... if I create a local socket, I can have it connect to the socket with command line arguments. On Fri, Jun 19, 2009 at 9:30 AM, Tyler Laing wrote

Re: Status of Python threading support (GIL removal)?

2009-06-19 Thread Tyler Laing
CPython itself can't... but the c extension can. Mine did. On Fri, Jun 19, 2009 at 9:50 AM, OdarR wrote: > On 19 juin, 16:16, Martin von Loewis > If you know that your (C) code is thread safe on its own, you can > > release the GIL around long-running algorithms, thus using as many > > CPUs as

Re: Newbie -> NameError: getopt

2011-04-04 Thread R. Tyler Croy
w. Try bringing your imports up out of the "if __name__" block. Where you are referencing getopt (the main() function), the getopt module hasn't yet been imported. You can do something like this: import getopt def main(): # ... -- - R. Tyler Croy ---

<    1   2