Re: how does the % work?

2013-03-22 Thread Tim Roberts
leonardo selmi wrote: > >i wrote this example : > >name = raw_input("What is your name?") >quest = raw_input("What is your quest?") >color = raw_input("What is your favorite color?") > >print """Ah, so your name is %s, your quest is %s, >and your favorite color is %s.""" % (name, quest, color)

Re: LiClipse

2013-03-22 Thread rusi
On Mar 23, 7:58 am, Fabio Zadrozny wrote: > Hello there, > > As I've proposed it, let me try to explain it a bit better (if you have > doubts, I should probably rephrase the proposal). > > There are 2 main targets there: keeping PyDev properly supported (which > hopefully doesn't need more explana

Can I reflect to get arguments exec()?

2013-03-22 Thread rocky
I have been porting my Python debugger pydbgr to Python3. See [1] or [2]. Inside the debugger, when there is an exec() somewhere in the call stack, I'd like to be able to retrieve the string parameter. With this, the debugger can show part of the string in a call stack. Or it can show the text w

Re: LiClipse

2013-03-22 Thread Fabio Zadrozny
Hello there, As I've proposed it, let me try to explain it a bit better (if you have doubts, I should probably rephrase the proposal). There are 2 main targets there: keeping PyDev properly supported (which hopefully doesn't need more explanation) and creating LiClipse. The idea for LiClipse is

Re: LiClipse

2013-03-22 Thread Verde Denim
On 03/22/2013 04:26 PM, Wanderer wrote: > I just updated PyDev and I got this message that they are looking for funding > for a new flavor of Eclipse called LiClipse. The description of what LiClipse > will be is kind of sketchy. No offense intended, but why? There is already a > bunch of downlo

Re: Grouping items by a key?

2013-03-22 Thread Steven D'Aprano
On Fri, 22 Mar 2013 12:22:13 -0700, Michael Fogleman wrote: > I feel like Python ought to have a built-in to do this. Take a list of > items and turn them into a dictionary mapping keys to a list of items > with that key in common. > > It's easy enough to do: > > # using defaultdict > lo

Re: Python IDLE

2013-03-22 Thread Steven D'Aprano
On Fri, 22 Mar 2013 18:11:32 +0100, Steve DeMicoli wrote: > Dear Sir, Madame, > > I am having trouble starting up IDLE. You say below that "both" IDLE's used to work. So what have you done to change the situation? What's different? > I have found threads with similar stories, however I haven'

Re: LiClipse

2013-03-22 Thread Steven D'Aprano
On Fri, 22 Mar 2013 13:26:31 -0700, Wanderer wrote: > I just updated PyDev and I got this message that they are looking for > funding for a new flavor of Eclipse called LiClipse. The description of > what LiClipse will be is kind of sketchy. No offense intended, but why? > There is already a bunch

Re: Change in Python 3.3 with the treatment of sys.argv

2013-03-22 Thread Steven D'Aprano
On Fri, 22 Mar 2013 17:57:42 -0400, Colin J. Williams wrote: > Below is an extract from some code to run on Python 2.7.3, 3.2.3 and > 3.3.0 to compare speeds, both between versions and machines: Do you have an actual question? I don't see the point. You've given us an "extract", which means the

Re: Change in Python 3.3 with the treatment of sys.argv

2013-03-22 Thread Peter Otten
Colin J. Williams wrote: > Below is an extract from some code to run on Python 2.7.3, 3.2.3 and > 3.3.0 to compare speeds, both between versions and machines: > > if __name__ == '__main__': > # Text string for initial test - Modify for your own machine or > # delete it and and answer th

Re: Change in Python 3.3 with the treatment of sys.argv

2013-03-22 Thread Ethan Furman
On 03/22/2013 02:57 PM, Colin J. Williams wrote: Below is an extract from some code to run on Python 2.7.3, 3.2.3 and 3.3.0 to compare speeds, both between versions and machines: if __name__ == '__main__': # Text string for initial test - Modify for your own machine or # delete it and

Re: Change in Python 3.3 with the treatment of sys.argv

2013-03-22 Thread Chris Angelico
On Sat, Mar 23, 2013 at 8:57 AM, Colin J. Williams wrote: > Below is an extract from some code to run on Python 2.7.3, 3.2.3 and 3.3.0 > to compare speeds, both between versions and machines: Can you post the actual code in question, please? There are several problems with the code as posted: mai

Faking TCP Sessions with Scapy

2013-03-22 Thread Jim Mellander
Hi all: For various reasons, I want to take apache logs, and create actual pcap packets that could plausibly have created those logs. Obviously, a lot of the info would need to be faked, such as the actual page contents that were served (we have a byte count), the ports, and a few other details.

Change in Python 3.3 with the treatment of sys.argv

2013-03-22 Thread Colin J. Williams
Below is an extract from some code to run on Python 2.7.3, 3.2.3 and 3.3.0 to compare speeds, both between versions and machines: if __name__ == '__main__': # Text string for initial test - Modify for your own machine or # delete it and and answer the input statement with your own machin

LiClipse

2013-03-22 Thread Wanderer
I just updated PyDev and I got this message that they are looking for funding for a new flavor of Eclipse called LiClipse. The description of what LiClipse will be is kind of sketchy. No offense intended, but why? There is already a bunch of downloads at Eclipse and there is also Easy Eclipse. T

Grouping items by a key?

2013-03-22 Thread Michael Fogleman
I feel like Python ought to have a built-in to do this. Take a list of items and turn them into a dictionary mapping keys to a list of items with that key in common. It's easy enough to do: # using defaultdict lookup = collections.defaultdict(list) for item in items: lookup[

How to use multiple instances of the same COM object at the same time

2013-03-22 Thread Jan
Dear Usenet readers, Our company wants to implement about 40 biometric access control devices which have a proprietary DLL with a COM object in it. I've done some research about COM objects and how to use them. Now, I need to connect to every device separately and register for real time event

Re: how does the % work?

2013-03-22 Thread Rick Johnson
On Friday, March 22, 2013 12:06:18 PM UTC-5, leonardo selmi wrote: > hi guys > > i wrote this example : > > name = raw_input("What is your name?") > quest = raw_input("What is your quest?") > color = raw_input("What is your favorite color?") > > print """Ah, so your name is %s, your quest is %s,

Re: Python IDLE

2013-03-22 Thread Rick Johnson
On Friday, March 22, 2013 12:11:32 PM UTC-5, Steve DeMicoli wrote: > Dear Sir, Madame, > > [...message body removed for fear of legal reprisals...] > > The information in this email and any attachments are > confidential and intended solely for the use of the > individual or entity to whom they a

Re: [Python-Help] how does the % work?

2013-03-22 Thread bob gailer
It is better to post to just one list at a time. On 3/22/2013 1:06 PM, leonardo selmi wrote: name = raw_input("What is your name?") quest = raw_input("What is your quest?") color = raw_input("What is your favorite color?") print """Ah, so your name is %s, your quest is %s, and your favorite col

Re: INSTRUCTOR SOLUTIONS MANUAL

2013-03-22 Thread Roger Cox
Do you have the Instructor Solutions Manual for these two text books? Fundamentals of Fluid Mechanics, 5th Edtion, Munson, young, Okiishi Chemical Engineering Fluid Mechanics, 2nd Edition, Ron Darby Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Global NameError Fix?

2013-03-22 Thread Rick Johnson
On Thursday, March 21, 2013 7:24:17 PM UTC-5, Dave Angel wrote: > On 03/21/2013 07:43 PM, maiden129 wrote: > > Hello, > > > I'm using the version 3.2.3 of Python and I am having an > > issue in my program and I don't know how to fix it: > > > counterLabel["text"] = str(counter) > > NameError: glo

Re: how does the % work?

2013-03-22 Thread John Gordon
In leonardo selmi writes: > hi guys > i wrote this example : > name = raw_input("What is your name?") > quest = raw_input("What is your quest?") > color = raw_input("What is your favorite color?") > print """Ah, so your name is %s, your quest is %s, > and your favorite color is %s.""" % (n

Python IDLE

2013-03-22 Thread Steve DeMicoli
Dear Sir, Madame, I am having trouble starting up IDLE. I have found threads with similar stories, however I haven't managed to solve mine. basically: I have installed both python 2.7 and python 3 on windows 7 both IDLEs used to work tried running program in command bar and still nothing tried

how does the % work?

2013-03-22 Thread leonardo selmi
hi guys i wrote this example : name = raw_input("What is your name?") quest = raw_input("What is your quest?") color = raw_input("What is your favorite color?") print """Ah, so your name is %s, your quest is %s, and your favorite color is %s.""" % (name, quest, color) but i get this error: T

Re: MySQL database schema discovery

2013-03-22 Thread Tim Golden
On 22/03/2013 16:01, Roy Smith wrote: > What are my options for MySQL schema discovery? I want to be able to > find all the tables in a database, and discover the names and types of > each column (i.e. the standard schema discovery stuff). > > PEP 249 doesn't seem to have any discovery methods.

MySQL database schema discovery

2013-03-22 Thread Roy Smith
What are my options for MySQL schema discovery? I want to be able to find all the tables in a database, and discover the names and types of each column (i.e. the standard schema discovery stuff). PEP 249 doesn't seem to have any discovery methods. Nor does MySQLdb appear to have any non-standard

The Qur'an Leads The Way To Science

2013-03-22 Thread BV BV
The Qur'an Leads The Way To Science http://www.youtube.com/watch?v=TpwPBd9dmpk thank you -- http://mail.python.org/mailman/listinfo/python-list

Re: Vowels [was Re: "monty" < "python"]

2013-03-22 Thread Grant Edwards
On 2013-03-21, Terry Reedy wrote: > On 3/21/2013 1:31 PM, Grant Edwards wrote: > > http://en.wikipedia.org/wiki/Linking_and_intrusive_R > >> Is the Python language rhotic or non-rhotic? > > Python uses American rather that British English, which would make it > rhotic. Well, there are parts of Ne

how to implement HTML block page

2013-03-22 Thread jtindbaek
Hi, I am currently creating a Web proxy in python. I need to implement an URL blacklist. Once the user requests an URL on the blacklist I need to return a HTML blockpage in the browser. Any suggestions on how to implement that ?. Regards, Jens -- http://mail.python.org/mailman/listinfo/python-l

Re: problem with function

2013-03-22 Thread leonardo
thank you all Il giorno 22/mar/2013, alle ore 00:20, Terry Reedy ha scritto: > On 3/21/2013 2:31 PM, leonardo selmi wrote: > >> i wrote the following code: >> >> def find(word, letter): >> index = 0 >> while index < len(word): >> if word[index] == letter: >> ret