What is the pattern?

2018-08-22 Thread no
I asked this before but my Usenet reader only saves messages for 30 days. I still can't get the pattern for this chart. I started working on the code that should print it, but I never remembered how to do it. empire={6:"Infantry",12:"Armor/Fighter",30:"Transport"} for x in range (6,120,6): pr

For next loops

2018-07-22 Thread no
x = range (5) y = range (5) for ply in x: for com in y: if ply==com: result="Tie" print(ply,com,result) Why is ply always equal to com? 0 0 Tie 0 1 Tie 0 2 Tie 0 3 Tie 0 4 Tie 1 0 Tie 1 1 Tie 1 2 Tie 1 3 Tie 1 4 Tie 2 0 Tie 2 1 Tie 2 2 Tie 2 3 Tie 2 4 Tie 3 0 Tie 3

Re: For next loops

2018-07-22 Thread no
never mind. x = range (5) y = range (5) for ply in x: for com in y: if ply==com: result="Tie" print(ply,com,result) result = "" On Sun, 22 Jul 2018 23:17:24 -0400, no@none.invalid wrote: >x = range (5) >y = range (5) >fo

Re: PyCharm

2018-07-22 Thread no
On Fri, 20 Jul 2018 20:56:41 -0700, Michael Vilain wrote: >I'm running PyCharm Edu (to go through their great tutorial). It's version is >2018.1.3, which I got from the web site. Unless you mistyped the version, >this is the current release and yours is very old. The date was just from a mess

Re: PyCharm

2018-07-22 Thread no
On Sun, 22 Jul 2018 11:51:51 +0200, Chris Warrick wrote: >On Sat, 21 Jul 2018 at 05:17, wrote: >> >> Win7 >> >> I was watching some tutorial videos on Python that recommended I use >> PyCharm and it worked pretty well until I tried to use input. >> >> I found this: >> https://youtrack.jetbrains.

Re: Edit with IDLE pull down menu

2018-07-21 Thread no
On Sat, 21 Jul 2018 14:34:15 -0700 (PDT), Rick Johnson wrote: This is really the code I keep copying. import random from random import randint a = [5, 10, 15, 20, 25, 30, 35, 40] b = ["Rock","Paper","Scissors","Lizard ","Spock"] I am lazy and don't type well, so I leave out some details when p

Re: Edit with IDLE pull down menu

2018-07-21 Thread no
On Sat, 21 Jul 2018 08:52:45 -0700 (PDT), Rick Johnson wrote: >n...@none.invalid wrote: >> Terry Reedy wrote: > >[...] > >> You seem to be able to directly affect Python development. >> If that is true, maybe you could remove the pull down >> redundancy from one menu and add a pull down optio

PyCharm

2018-07-20 Thread no
Win7 I was watching some tutorial videos on Python that recommended I use PyCharm and it worked pretty well until I tried to use input. I found this: https://youtrack.jetbrains.com/issue/PY-27891 It says.. Pavel Karateev commented 10 Jan 2018 11:57 Hi Calvin Broadus! I am sorry for the

Re: Edit with IDLE pull down menu

2018-07-20 Thread no
On Fri, 20 Jul 2018 03:19:16 -0400, Terry Reedy wrote: >On 7/19/2018 5:40 PM, no@none.invalid wrote: > >> The option for Edit with IDLE has an expanding menu. The only item in >> the pull down menu is..Edit with IDLE. > >What I see is Edit with IDLE 3.7. Ther

Re: copy and paste with a program called clipboard

2018-07-19 Thread no
indows >shell sets the initial title in the process startup info as the >fully-qualified path to the .LNK file and sets a flag that indicates >this. In this case, the console knows that the current properties >should be read from and written to the .LNK file. If the application >is run

Re: Edit with IDLE pull down menu

2018-07-19 Thread no
On Thu, 19 Jul 2018 18:25:41 -0400, Dennis Lee Bieber wrote: >On Thu, 19 Jul 2018 17:40:16 -0400, no@none.invalid declaimed the >following: > >> >>So to run a .py program, you have to right click and select the pull >>down menu Edit with IDLE and then inside that men

CASESOLUTIONSCENTRE (AT) GMAIL (DOT) COM

2018-07-19 Thread no
Gee. If those spams keep up, you would think that someone might try to turn the tables on the spammer. -- https://mail.python.org/mailman/listinfo/python-list

Re: Edit with IDLE pull down menu

2018-07-19 Thread no
On Thu, 19 Jul 2018 14:00:39 -0700 (PDT), Rick Johnson wrote: >n...@none.invalid wrote: >> Rick Johnson wrote: >> >n...@none.invalid wrote: >> > > >> > > Edit with IDLE pull down menu has one item. Why would you >> > > have nested menu with only one choice? >> > >> > Oh, i dunno, i'm just riffing

Re: Edit with IDLE pull down menu

2018-07-19 Thread no
On Thu, 19 Jul 2018 13:15:23 -0700 (PDT), Rick Johnson wrote: >n...@none.invalid wrote: >> Edit with IDLE pull down menu has one item. >> Why would you have nested menu with only one choice? > >Oh, i dunno, i'm just riffing here, but... perhaps because the menu's >_contents_ depend on _context_?

Edit with IDLE pull down menu

2018-07-19 Thread no
Edit with IDLE pull down menu has one item. Why would you have nested menu with only one choice? -- https://mail.python.org/mailman/listinfo/python-list

Re: copy and paste with a program called clipboard

2018-07-19 Thread no
On Thu, 19 Jul 2018 17:35:24 +0100, MRAB wrote: >On 2018-07-19 16:47, no@none.invalid wrote: >> I just installed Python 3.7 >> The instructions say to highlight some text and press enter to copy >> text. >> You are supposed to just right click with the mouse to past

copy and paste with a program called clipboard

2018-07-19 Thread no
I just installed Python 3.7 The instructions say to highlight some text and press enter to copy text. You are supposed to just right click with the mouse to paste text. I use a very useful program called Clipmate that captures from the clipboard and keeps a list of clipboard captures and I can men

Re: What is the pattern for this number set?

2018-07-18 Thread no
On Wed, 18 Jul 2018 18:43:18 -0400, no@none.invalid wrote: >On Wed, 18 Jul 2018 17:16:21 -0400, no@none.invalid wrote: > >>This is a chart I made using BASIC back in the 90s when I could still >>do math and programming. >>I would like to have a new print out of this c

Re: What is the pattern for this number set?

2018-07-18 Thread no
On Wed, 18 Jul 2018 17:16:21 -0400, no@none.invalid wrote: >This is a chart I made using BASIC back in the 90s when I could still >do math and programming. >I would like to have a new print out of this chart but I no longer can >figure out programming or math. >Anyone care to

Re: What is the pattern for this number set?

2018-07-18 Thread no
On Wed, 18 Jul 2018 18:43:18 -0400, no@none.invalid wrote: >On Wed, 18 Jul 2018 17:16:21 -0400, no@none.invalid wrote: > >>This is a chart I made using BASIC back in the 90s when I could still >>do math and programming. >>I would like to have a new print out of this c

What is the pattern for this number set?

2018-07-18 Thread no
This is a chart I made using BASIC back in the 90s when I could still do math and programming. I would like to have a new print out of this chart but I no longer can figure out programming or math. Anyone care to figure out the pattern and make a new copy of the chart? https://imgur.com/a/thF6U43

Compiling multiple python scripts into an exe file

2015-01-13 Thread no nein
Basically, is it possible to compile multiple unrelated python scripts into a single exe file, so when execute it several python programs are run at once. In order to use this on another machine without python installed and only by using one single file. -- https://mail.python.org/mailman/listin

Re: Python, email temperature

2012-12-22 Thread No One
On 2012-12-22, KarlE wrote: > On Saturday, December 22, 2012 9:44:39 PM UTC+1, Joel Goldstick wrote: >> On Sat, Dec 22, 2012 at 3:36 PM, Alexander Ranstam wrote: >> >> Hi! >> >> >> >> Im totally new to Python, and im using it on my Raspberry pi. I found a >> program that sends an email, and

Re: newbie qns : how do i use xmldiff?

2010-11-05 Thread No Name
I had to do some fishing around to figure this much out. Hope it helps. from input import * # From the xmldiff directory from fmes import * # From the xmldiff directory from format import *# From the xmldiff directory from StringIO import * # Build your original tree text1 = '123' st

Re: so funny...

2008-05-29 Thread Hung Well (no comma)
"John" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > http://sitscape.com/topic/funny > > Just keep hit the "Surprise->" button there for amazing fun. > Click on "channel" will show you other topics, lots of fun! You tickle easy. --WH -- http://mail.python.org/mailman/listinf

Ligmail bug?

2007-08-11 Thread No.23
objects Msg: 9/14 Re: Destruction of generator objects Msg: 10/14 Re: Destruction of generator objects Msg: 11/14 Re: Destruction of generator objects Msg: 12/14 Re: Destruction of generator objects Msg: 13/14 Re: Destruction of generator objects Msg: 14/14 Re: Destruction of generator object

Connection acception with confirmation

2007-05-29 Thread no`name`
Hi, i'm new in Python and i'm trying to write some server which can confirm connection from client. Here is a part of code: import sys import threading from socket import * class TelGUI(threading.Thread): def __init__(self): threading.Thread.__init__(self) def ru

Re: TypeError: unbound method must be called with class instance 1st argument

2006-12-20 Thread void . no . spam . com
Matimus wrote: > > Can someone please explain why I get the following error: > > The following line: > threading.Thread.__init__() > Should be written as: > threading.Thread.__init__(self) Thank you! -- http://mail.python.org/mailman/listinfo/python-list

TypeError: unbound method must be called with class instance 1st argument

2006-12-20 Thread void . no . spam . com
I'm a novice at Python, and found some code samples on how to use threads. My script is being run by a product that contains a Jython interpreter. Can someone please explain why I get the following error: Traceback (innermost last): File "/full/path/to/file/GenerateData.py", line 104, in ? F

Re: Lead Software Engineer

2006-10-19 Thread Edward Diener No Spam
Emma wrote: > Successful candidates meet the following requirements: > ยท A burning desire to build rock-solid apps that people will be > unable > to live without I use to have a burning desire to cleverly answer questionnaires for companies which either don't exist or, if they do, don't tell you

Re: Python component model

2006-10-14 Thread Edward Diener No Spam
Kay Schluehr wrote: > val bykoski wrote: >> Peter Wang wrote: >>> Edward, >>> >>> This isn't in response to any specific one of the 100+ posts on this >>> thread, but I justed wanted to encourage you to continue your >>> investigation into Python component models and maybe looking for some >>> comm

Re: Python component model

2006-10-14 Thread Edward Diener No Spam
laid out > in your post (the example for Skip), including delegates! I would like > to point out, however, that traits is a *general* component framework > for python that facilitates implementing the observer pattern and a > higher level of introspection. It can be used to build app

Re: Python component model

2006-10-10 Thread Edward Diener No Spam
Fredrik Lundh wrote: > fumanchu wrote: > >>> 4) Custom property and component editors: A component editor can present >>> a property editor or an editor for an entire component which the visual >>> design-time RAD environment can use to allow the programmer end-user of >>> the component to set or

Re: Python component model

2006-10-10 Thread Edward Diener No Spam
Kay Schluehr wrote: > fumanchu wrote: > >>> 4) Custom property and component editors: A component editor can present >>> a property editor or an editor for an entire component which the visual >>> design-time RAD environment can use to allow the programmer end-user of >>> the component to set or g

Re: Python component model

2006-10-10 Thread Edward Diener No Spam
fumanchu wrote: > Edward Diener No Spam wrote: >> OK, here is my idea of what such a component model envisages as a list >> of items. After this, unless I get some intelligent comments from people >> who might be interested in what I envision, or something very similar

Re: Python component model

2006-10-10 Thread Edward Diener No Spam
along with things like isCapability and hasProperty, if I remember > correctly. None of this was really shocking to anyone using Python, > mostly because Python had __getattr__ and __setattr__ even back then > for customising real property/attribute access, and Python's run-time > in

Re: Python component model

2006-10-10 Thread Edward Diener No Spam
Fredrik Lundh wrote: > Edward Diener No Spam wrote: > >> There's no doubt that Python's excellent introspection mechanism allows >> an outside RAD-like tool to inspect the workings of any Python object. >> But that does not make it a component model in my o

Re: Python component model

2006-10-10 Thread Edward Diener No Spam
Tim Chase wrote: >> There's no doubt that Python's excellent introspection mechanism >> allows an outside RAD-like tool to inspect the workings of any Python >> object. But that does not make it a component model in my original use >> of the term on this thr

Re: Python component model

2006-10-10 Thread Edward Diener No Spam
Diez B. Roggisch wrote: >> While I understand dynamic typing, I still think it is possible to >> create attributes in a Python component model which could tell a RAD >> tool what type the attribute will encompass for the purpose of >> properties and events. Obviously a "name, type" tuple, among oth

Re: Python component model

2006-10-10 Thread Edward Diener No Spam
Fredrik Lundh wrote: > "Edward Diener No Spam" wrote: > >> A RAD IDE tool to hook up components into an application or library ( >> module in Python ) has nothing to do with terseness and everything to do >> with ease of programming. > > python alread

Re: Python component model

2006-10-10 Thread Edward Diener No Spam
Richard Brodie wrote: > "Edward Diener No Spam" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >> "Thinking in Java or C++" as opposed to Python does not mean anything to me >> as a general >> statement. I am well aware of

Re: Python component model

2006-10-10 Thread Edward Diener No Spam
Michael Sparks wrote: > Edward Diener No Spam wrote: >> Michael wrote: >>> Edward Diener No Spam wrote: >>> >>>> Has there ever been, or is there presently anybody, in the Python >>>> developer community who sees the same need and is working t

Re: Python component model

2006-10-10 Thread Edward Diener No Spam
and a way to access that data with- > out having to actually create the object. > > implementing this using existing mechanisms is trivial (as the endless > stream of interface/component/adapter/trait implementations have shown > us); coming up with a good-enough-to-be-useful-for

Re: Python component model

2006-10-10 Thread Edward Diener No Spam
rdinary >> python-object be published as a component? At least for jython I can >> say "no", you will have to subclass an already existing >> java-object/interface. And I have difficulties imagining that it is any >> different in .NET - because I've read statements

Re: Python component model

2006-10-10 Thread Edward Diener No Spam
Diez B. Roggisch wrote: > Paul Rubin schrieb: >> "Nick Vatamaniuc" <[EMAIL PROTECTED]> writes: >>> Python does not _need_ a component model just as you don't _need_ a RAD >>> IDE tool to write Python code. The reason for having a component model >>> or a RAD IDE tool is to avoid writing a lot of bo

Re: Python component model

2006-10-10 Thread Edward Diener No Spam
Paul Rubin wrote: > "Nick Vatamaniuc" <[EMAIL PROTECTED]> writes: >> Python does not _need_ a component model just as you don't _need_ a RAD >> IDE tool to write Python code. The reason for having a component model >> or a RAD IDE tool is to avoid writing a lot of boiler plate code. > > It's also

Re: Python component model

2006-10-10 Thread Edward Diener No Spam
Nick Vatamaniuc wrote: > Edward Diener No Spam wrote: >> Michael wrote: > > Python does not _need_ a component model just as you don't _need_ a RAD > IDE tool to write Python code. The reason for having a component model > or a RAD IDE tool is to avoid writing a lot of b

Re: Python component model

2006-10-09 Thread Edward Diener No Spam
Michael wrote: > Edward Diener No Spam wrote: > >> Has there ever been, or is there presently anybody, in the Python >> developer community who sees the same need and is working toward that >> goal of a common component model in Python, blessed and encouraged by >>

Re: Python component model

2006-10-09 Thread Edward Diener No Spam
goon wrote: >> or IBM's Eclipse for Java > > Or Eclipse for Python using PyDev? [0] Those are very nice features but there is no re-usable Python bean support like there is a Java bean. That was my initial point. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python component model

2006-10-09 Thread Edward Diener No Spam
Robert Kern wrote: > Edward Diener No Spam wrote: > >> There's nothing wrong with Python's introspection. In fact Python's >> facilities in this area and its support for metadata are stronger than >> any of these other languages ! However there is no com

Re: Python component model

2006-10-09 Thread Edward Diener No Spam
Chaz Ginger wrote: > Edward Diener No Spam wrote: >> [EMAIL PROTECTED] wrote: >>> Edward> The definition of a component model I use below is a class >>> which >>> Edward> allows properties, methods, and events in a structured way >>> which

Re: Python component model

2006-10-09 Thread Edward Diener No Spam
Echo wrote: > On 10/9/06, Edward Diener No Spam <[EMAIL PROTECTED]> > wrote: >> The definition of a component model I use below is a class which allows >> properties, methods, and events in a structured way which can be >> recognized, usually through some form of

Re: Python component model

2006-10-09 Thread Edward Diener No Spam
" and "events" at run-time also in the usual way. If one has used Borland's Delphi or C++ Builder IDEs, or Sun's NetBeans or IBM's Eclipse for Java, or Microsoft's Visual Studio for .Net, one knows what I mean as far as a visual RAD environment. All of these are made

Python component model

2006-10-09 Thread Edward Diener No Spam
y CLR which allows .Net applications to be built visually using components created in any .Net supported language. With Python things are different. There is no single component model which allows Python developers to build components which will be used and recognized by the various RAD Python too

Re: UltraEdit and Python

2006-06-09 Thread No
/Tool Configuration: (Options tab) > > Program Type: Dos Program > > > Menu/Advanced/Tool Configuration: (Output tab) > > Command Output (DOC Commands): Output to List Box, Capture Output > Replace selected text with: No Replace > > > (This is with UltraStudio. S

Re: UltraEdit and Python

2006-06-09 Thread No
ons tab) Program Type: Dos Program Menu/Advanced/Tool Configuration: (Output tab) Command Output (DOC Commands): Output to List Box, Capture Output Replace selected text with: No Replace (This is with UltraStudio. Should be the same/similar in UltraEdit.) > > How do I set pause /

VBR mp3 length

2005-07-05 Thread No One
Hello all, If this isn't the correct newsgroup, please redirect me. I'm trying to extract the song length from variable bit rate mp3's. Does anyone know of a library or bit of code that will do this? I've tried pymad, but it seems to grab the bitrate of the first frame and then apply that to the

Re: Python 2.4 | 7.3 The for statement

2005-03-22 Thread he . dicho . que . no . quiero . spam
brainsucker wrote: > Python 2.4 | 7.3 The for statement: > --- > > for_stmt ::= "for" target_list "in" expression_list ":" > suite ["else" ":" suite] > > > New for statement: > -- > > for_stmt ::= "for" target_list "in" expression_list > [ "and"