Find more than one error at once

2008-05-10 Thread Joseph Turian
Is it possible to coax python to find more than one error at once? Thanks, Joseph -- http://mail.python.org/mailman/listinfo/python-list

Re: People still using Tkinter?

2008-05-10 Thread Marc 'BlackJack' Rintsch
On Sat, 10 May 2008 00:20:33 -0500, Kenneth McDonald wrote: Any guesses as to how many people are still using Tkinter? And can anyone direct me to good, current docs for Tkinter? AFAIK `Tkinter` hasn't changed much over time, so old documentation is still current. Ciao, Marc

Re: RELEASED Python 2.6a3 and 3.0a5

2008-05-10 Thread Martin v. Löwis
I'm trying to install on the latest Ubuntu (8.04) and the following extension modules fail: _bsddb, _curses, _curse_panel, _hashlib, _sqlite3, _ssl, _tkinter, bz2, dbm, gdbm, readline, zlib All of them except for _tkinter are included in the preinstalled Python 2.5.2, so I guess the

Re: Property in derived class

2008-05-10 Thread Joseph Turian
On May 9, 9:05 pm, George Sakkis [EMAIL PROTECTED] wrote: Using the overridable property recipe [1], [1]http://infinitesque.net/articles/2005/enhancing%20Python's%20property... Thanks, this is a great solution! Joseph -- http://mail.python.org/mailman/listinfo/python-list

Re: anagram finder / dict mapping question

2008-05-10 Thread George Sakkis
On May 9, 11:19 pm, dave [EMAIL PROTECTED] wrote: On 2008-05-09 18:53:19 -0600, George Sakkis [EMAIL PROTECTED] said: On May 9, 5:19 pm, [EMAIL PROTECTED] wrote: What would be the best method to print the top results, the one's that had the highest amount of anagrams??  Create a new

Re: Find more than one error at once

2008-05-10 Thread David
On Sat, May 10, 2008 at 8:38 AM, Joseph Turian [EMAIL PROTECTED] wrote: Is it possible to coax python to find more than one error at once? Thanks, Joseph -- http://mail.python.org/mailman/listinfo/python-list Sounds like you want to catch and log exceptions. --

Re: Find more than one error at once

2008-05-10 Thread Ben Finney
Joseph Turian [EMAIL PROTECTED] writes: Is it possible to coax python to find more than one error at once? Definitely, write unit tests and run the whole suite URL:http://www.python.org/doc/lib/module-unittest. All errors found by your unit test suite will be reported. If you mean the Python

Re: The Importance of Terminology's Quality

2008-05-10 Thread Waylen Gumbal
George Neuner wrote: On Thu, 8 May 2008 22:38:44 -0700, Waylen Gumbal [EMAIL PROTECTED] wrote: Not everyone follows language-neutral groups (such as comp,programming as you pointed out), so you actually reach more people by cross posting. This is what I don't understand - everyone

firefox add-on to grab python code handily?

2008-05-10 Thread CM
I encounter a fair number of small Python scripts online, and usually try them out by copying them to the clipboard, pasting into Notepad, saving them, and either running them directly or opening them in IDLE. And so I was wondering if anyone knew of an extension/add-on/script for Firefox which

Re: anagram finder / dict mapping question

2008-05-10 Thread Arnaud Delobelle
Kam-Hung Soh [EMAIL PROTECTED] writes: On Sat, 10 May 2008 07:19:38 +1000, [EMAIL PROTECTED] wrote: What would be the best method to print the top results, the one's that had the highest amount of anagrams?? Create a new histogram dict? You can use the max() function to find the biggest

Pythonicity of some algorithms

2008-05-10 Thread David
Hi list. I have 2 questions about the Pythonicity of some algorithms. One question is about generator usage, the other is about producer and consumer threads GENERATOR QUESTION Usually for generators, the usage is like this: for var in generator(): do_something(var) I sometimes have cases

Re: Pythonicity of some algorithms

2008-05-10 Thread Martin v. Löwis
This works for me. But I'd like to know if this is considered Pythonic, and if there are other, better ways of doing the above in Python. From the Python point of view, it's fine. However, it uses busy-wait, which I consider bad style (in any language). 3) Make a custom thread-safe queue

Re: implementation for Parsing Expression Grammar?

2008-05-10 Thread Lars Rune Nøstdal
Hi, Finite automata works for nested things. http://en.wikipedia.org/wiki/Automata_theory -- Lars Rune Nøstdal http://nostdal.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: PyXml

2008-05-10 Thread kdwyer
Stefan Behnel wrote: Martin v. Löwis wrote: Can anyone recommend a Python validating parser that validates vs Xml Schema? The libxml bindings for Python can do that. ... although the OP will likely prefer using lxml, where it's three lines of Python (ok, plus an import), compared to

Re: Pythonicity of some algorithms

2008-05-10 Thread castironpi
On May 10, 5:21 am, Martin v. Löwis [EMAIL PROTECTED] wrote: This works for me. But I'd like to know if this is considered Pythonic, and if there are other, better ways of doing the above in Python. From the Python point of view, it's fine. However, it uses busy-wait, which I consider bad

Re: slicing lists

2008-05-10 Thread castironpi
On May 9, 3:17 pm, [EMAIL PROTECTED] wrote: On May 9, 10:11 am, Yves Dorfsman [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: The only thing is, is there is another natural meaning to [a,b:c]. Counting grids on the diagonals, the rational set is well defined: 0: 0, 0 1: 1,

Re: People still using Tkinter?

2008-05-10 Thread castironpi
On May 10, 1:38 am, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Sat, 10 May 2008 00:20:33 -0500, Kenneth McDonald wrote: Any guesses as to how many people are still using Tkinter? And can   anyone direct me to good, current docs for Tkinter? AFAIK `Tkinter` hasn't changed much over

Re: Find more than one error at once

2008-05-10 Thread Diez B. Roggisch
Joseph Turian schrieb: Is it possible to coax python to find more than one error at once? What kind of errors? Syntax-errors? Then use one of the python source code analyzers, such as pylint or pychecker. Diez -- http://mail.python.org/mailman/listinfo/python-list

Authoring SOAP and WSDL

2008-05-10 Thread Ken Starks
I would like to write SOAP services in python, and have an environment that will then generate a matching WSDL for me automatically. Does such a thing exist in python? Thanks in advance. Ken. -- http://mail.python.org/mailman/listinfo/python-list

Re: People still using Tkinter?

2008-05-10 Thread Guilherme Polo
2008/5/10 Kenneth McDonald [EMAIL PROTECTED]: Any guesses as to how many people are still using Tkinter? And can anyone direct me to good, current docs for Tkinter? I will say no to the first question. Now about the second question.. there are these links you may find interesting: An

Re: The Importance of Terminology's Quality

2008-05-10 Thread Lew
Waylen Gumbal wrote: George Neuner wrote: On Thu, 8 May 2008 22:38:44 -0700, Waylen Gumbal [EMAIL PROTECTED] wrote: Not everyone follows language-neutral groups (such as comp,programming as you pointed out), so you actually reach more people by cross posting. This is what I don't

Simple question

2008-05-10 Thread Gandalf
I use to write code with PHP. To ran script width PHP I need to open new file inside my WWW directory and name it somethin.php and then to write my script inside ?php? tags how can i ran script with python thenks -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple question

2008-05-10 Thread Bjoern Schliessmann
Gandalf wrote: how can i ran script with python It depends on your web server configuration. To get your web server execute Python code, there are several alternatives like * CGI * FastCGI * mod_python Regards, Björn -- BOFH excuse #93: Feature not yet implemented --

Re: Simple question

2008-05-10 Thread Gandalf
On May 10, 2:36 pm, Bjoern Schliessmann usenet- [EMAIL PROTECTED] wrote: Gandalf wrote: how can i ran script with python It depends on your web server configuration. To get your web server execute Python code, there are several alternatives like * CGI * FastCGI * mod_python Regards,

Re: How to kill Python interpreter from the command line?

2008-05-10 Thread Thomas Bellman
Jean-Paul Calderone [EMAIL PROTECTED] wrote: (Ctrl+Z which sends SIGSTOP and _cannot_ be masked or otherwise ignored) Bzzt! Ctrl-Z causes a SIGTSTP to be sent, not SIGSTOP, and SIGTSTP can be both caught, ignored and masked. -- Thomas Bellman, Lysator Computer Club,

Re: Simple question

2008-05-10 Thread Matt Nordhoff
Gandalf wrote: my server is my computer and all i did way to install python on it. But what web server program are you using? Apache? IIS? Lighttpd? -- -- http://mail.python.org/mailman/listinfo/python-list

Re: firefox add-on to grab python code handily?

2008-05-10 Thread Larry Bates
CM wrote: I encounter a fair number of small Python scripts online, and usually try them out by copying them to the clipboard, pasting into Notepad, saving them, and either running them directly or opening them in IDLE. And so I was wondering if anyone knew of an extension/add-on/script for

Re: implementation for Parsing Expression Grammar?

2008-05-10 Thread Kay Schluehr
On 10 Mai, 07:52, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: In the past weeks i've been thinking over the problem on the practical problems of regex in its matching power. For example, often it can't be used to match anything of nested nature, even the most simple nesting. It can't be used to

Re: Simple question

2008-05-10 Thread Irmen de Jong
Gandalf wrote: On May 10, 2:36 pm, Bjoern Schliessmann usenet- [EMAIL PROTECTED] wrote: Gandalf wrote: how can i ran script with python It depends on your web server configuration. To get your web server execute Python code, there are several alternatives like * CGI * FastCGI * mod_python

Re: People still using Tkinter?

2008-05-10 Thread Zentrader
I like New Mexico Tech's site as well. Also, take a look at the PMW extension for additional widgets, and TkTable and/or TableListWrapper. http://infohost.nmt.edu/tcc/help/pubs/tkinter/ -- http://mail.python.org/mailman/listinfo/python-list

Now, as for the jokes: Python!

2008-05-10 Thread castironpi
Dear Monty, Grail This. The grail is unarmed and floating. Stop posting the newsgroup. Python is Monty Python. In the sense of identity ascription, of course. Trivially not, A Bartender. -- http://mail.python.org/mailman/listinfo/python-list

Re: Mathematics in Python are not correct

2008-05-10 Thread Lou Pecora
In article [EMAIL PROTECTED], Terry Reedy [EMAIL PROTECTED] wrote: Lou Pecora [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | In article [EMAIL PROTECTED], | Terry Reedy [EMAIL PROTECTED] wrote: | | Luis Zarrabeitia [EMAIL PROTECTED] wrote in message | news:[EMAIL

Re: People still using Tkinter?

2008-05-10 Thread Guilherme Polo
2008/5/10 Zentrader [EMAIL PROTECTED]: I like New Mexico Tech's site as well. Also, take a look at the PMW extension for additional widgets, and TkTable and/or TableListWrapper. http://infohost.nmt.edu/tcc/help/pubs/tkinter/ There is also Tile, or Ttk since Tk 8.5, if you are interested in

Re: How to call a file

2008-05-10 Thread Gary Herron
Chris Sprinkles wrote: I'm still having trouble with calling a text file and I know its so simple here is the code work = open('C:\Documents and Settings\Administrator\My Documents\Chris\Python\Python\work.txt', 'r') for line in work.txt:

Re: People still using Tkinter?

2008-05-10 Thread Kevin Walzer
Kenneth McDonald wrote: Any guesses as to how many people are still using Tkinter? And can anyone direct me to good, current docs for Tkinter? Thanks, Ken I develop Tk applications commercially on Mac OS X, using Tcl and Python. Here's a screenshot of my Python app:

Re: People still using Tkinter?

2008-05-10 Thread Kevin Walzer
Guilherme Polo wrote: 2008/5/10 Zentrader [EMAIL PROTECTED]: I like New Mexico Tech's site as well. Also, take a look at the PMW extension for additional widgets, and TkTable and/or TableListWrapper. http://infohost.nmt.edu/tcc/help/pubs/tkinter/ There is also Tile, or Ttk since Tk 8.5, if

Re: People still using Tkinter?

2008-05-10 Thread Guilherme Polo
2008/5/10 Kevin Walzer [EMAIL PROTECTED]: Guilherme Polo wrote: 2008/5/10 Zentrader [EMAIL PROTECTED]: I like New Mexico Tech's site as well. Also, take a look at the PMW extension for additional widgets, and TkTable and/or TableListWrapper. http://infohost.nmt.edu/tcc/help/pubs/tkinter/

Re: People still using Tkinter?

2008-05-10 Thread Chuckk Hubbard
I am, but still isn't the word, I just started. Good, *complete* docs seem to be hard to find, but using a combination of the free resources and going back and forth between them seems to work all right so far. -Chuckk On Sat, May 10, 2008 at 8:20 AM, Kenneth McDonald [EMAIL PROTECTED] wrote:

Re: People still using Tkinter?

2008-05-10 Thread Kevin Walzer
Guilherme Polo wrote: Thanks ;) And, yes Kevin, I'm planning to submit it for inclusion into Tkinter's core. Excellent. I hope your effort is successful. Thanks for support it, and sorry for saying yours was incomplete. I wasn't trying to sell my version by doing that, was just trying to

Re: Am I missing something with Python not having interfaces?

2008-05-10 Thread Rhamphoryncus
On May 9, 1:53 pm, Daniel Marcel Eichler [EMAIL PROTECTED] wrote: Am Freitag 09 Mai 2008 10:19:45 schrieb Bruno Desthuilliers: very often sees do-nothing catch-all try/catch blocks in Java - which is way worse than just letting the exception propagate. I find all this totally pointless,

Now what!?

2008-05-10 Thread notbob
Grrr I'm following A Byte of Python and into the while loops chap. I cp/paste while.py to a file and give 777 perms. I mv while.py to while and run it (./while) as a standalone script. I get errors. Here is the script: while.py

Re: Now what!?

2008-05-10 Thread Diez B. Roggisch
notbob schrieb: Grrr I'm following A Byte of Python and into the while loops chap. I cp/paste while.py to a file and give 777 perms. I mv while.py to while and run it (./while) as a standalone script. I get errors. Here is the script: while.py

Re: The Importance of Terminology's Quality

2008-05-10 Thread Sherman Pendley
Lew [EMAIL PROTECTED] writes: You guys are off topic. None of the million groups to which this message was posted are about netiquette. Netiquette has come up at one point or another in pretty much every group I've ever read. It's pretty much a universal meta-topic. sherm-- -- My blog:

Re: People still using Tkinter?

2008-05-10 Thread Martin v. Löwis
I am, but still isn't the word, I just started. Good, *complete* docs seem to be hard to find, but using a combination of the free resources and going back and forth between them seems to work all right so far. IMO, the trick really is to also have a Tk documentation around. If you need to

Re: Now what!?

2008-05-10 Thread Matias Surdi
Diez B. Roggisch escribió: notbob schrieb: Grrr I'm following A Byte of Python and into the while loops chap. I cp/paste while.py to a file and give 777 perms. I mv while.py to while and run it (./while) as a standalone script. I get errors. Here is the script: while.py

Orlando Florida Python Tutor Needed

2008-05-10 Thread vbgunz
I will pay anyone for a face-to-face tutoring in the Orlando Florida area. I will pay $20.00 per hour (minimum 2 hours needed). What I need are lessons in Decorators and Class methods. If I can walk away with at least 5 lessons taught in both subjects I will be happy to offer an additional $20.00.

Re: Simple question

2008-05-10 Thread Gandalf
Thanks guys I think you miss understood me. i have been mining to use python to create a none web application. And i found out that i can ran python scripts by calling them from CMD or just raning them from windows -- http://mail.python.org/mailman/listinfo/python-list

Re: Now what!?

2008-05-10 Thread notbob
On 2008-05-10, Diez B. Roggisch [EMAIL PROTECTED] wrote: notbob schrieb: script the same way ($ ./helloworld) and it works fine. Same shebang, same dir, same permission, etc. I'm pretty sure you misse the correct shebang - Sorry. Both exactly the same. I checked 5 times. helloworld

Re: Now what!?

2008-05-10 Thread Ivan Illarionov
On 10 май, 21:22, notbob [EMAIL PROTECTED] wrote: On 2008-05-10, Diez B. Roggisch [EMAIL PROTECTED] wrote: notbob schrieb: script the same way ($ ./helloworld) and it works fine. Same shebang, same dir, same permission, etc. I'm pretty sure you misse the correct shebang - Sorry.

Re: Newbie to python --- why should i learn !

2008-05-10 Thread Aahz
In article [EMAIL PROTECTED], Gary Herron [EMAIL PROTECTED] wrote: With Python, you can program with a smile on your face. +1 QOTW (Truly, when I found Python, programming became fun again.) Again? Looking back over the years, after I learned Python I realized that I never really had

list object

2008-05-10 Thread Gandalf
my manual contain chapter about lists with python. when i try to copy paste : li = [a, b, mpilgrim, z, example] (1) it i get this errore: TypeError: 'list' object is not callable i was wondering if their is any special module I should import before i use this function i know i ask foolish

Re: list object

2008-05-10 Thread member thudfoo
On 5/10/08, Gandalf [EMAIL PROTECTED] wrote: my manual contain chapter about lists with python. when i try to copy paste : li = [a, b, mpilgrim, z, example] (1) it i get this errore: TypeError: 'list' object is not callable i was wondering if their is any special module I should

Re: Now what!?

2008-05-10 Thread notbob
On 2008-05-10, Ivan Illarionov [EMAIL PROTECTED] wrote: Shebang is certainly broken, possible causes: 1. Wrong line endings (should be \n) Nope. Not it. 2. Whitespace before the shebang BINGO! we have a winner. ;) I thought for sure that was not correct. No white space before the

Re: multiple Python versions, but on Windows (how to handle registry updates)

2008-05-10 Thread Terry Reedy
Banibrata Dutta [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | given that I already have Python2.5 installed will install Python2.4, will | copying the ../Lib/site-packages/ from 2.5 into 2.4's, work ? | i think the answer is no, but still asking. is it package specific ? If a

Is there a PyPI API?

2008-05-10 Thread Mike Driscoll
Hi, I am experimenting on creating a GUI wrapper for easy_install and I would like to be able to allow the user the browse PyPI topically. However, I am having some trouble figuring out how to get the information in a topical manner. I can get the list of classifiers easily using urllib2 like

Re: list object

2008-05-10 Thread Terry Reedy
member thudfoo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | On 5/10/08, Gandalf [EMAIL PROTECTED] wrote: | my manual contain chapter about lists with python. when i try to copy | paste : | | li = [a, b, mpilgrim, z, example] (1) | | | it i get this errore: | |

Re: People still using Tkinter?

2008-05-10 Thread Kenneth McDonald
The only trick it that sometimes it isn't obvious how to make the Tcl/ Tk call via Python. Ken On May 10, 2008, at 11:27 AM, Martin v. Löwis wrote: I am, but still isn't the word, I just started. Good, *complete* docs seem to be hard to find, but using a combination of the free resources

Re: Is there a PyPI API?

2008-05-10 Thread Martin v. Löwis
I just can't figure out how to get the metadata, I guess. See http://wiki.python.org/moin/PyPiXmlRpc Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

how to reference my own module ?

2008-05-10 Thread Stef Mientki
hello, I've a library that I import as import ppygui.api as gui the reason for this construct is that I've to use different libraries for different platforms. Now I like to write some examples in the library (activated by if __name__ == '__main__' :) and I would that these examples can

Re: Now what!?

2008-05-10 Thread notbob
On 2008-05-10, notbob [EMAIL PROTECTED] wrote: BTW, anyone know a better cli news client/editor combo than slrn/jed (don't even think vi!)? When I cp/past code (or most anything else) to jed, all the lines become stair-stepped. This is no biggie for a most stuff, but for idented code, it's

Re: Is there a PyPI API?

2008-05-10 Thread Mike Driscoll
On May 10, 2:23 pm, Martin v. Löwis [EMAIL PROTECTED] wrote: I just can't figure out how to get the metadata, I guess. See http://wiki.python.org/moin/PyPiXmlRpc Regards, Martin Ah-so. Most helpful, Martin. Thanks a lot! Mike -- http://mail.python.org/mailman/listinfo/python-list

Any other UI kits with text widget similar to that in Tk?

2008-05-10 Thread Kenneth McDonald
I'm wondering if any of the other GUI kits have a text widget that is similar in power to the one in Tk. wxWindows, from what I can tell, doesn't offer nearly the options the Tk widget does. I'm less familiar with Qt. Any feedback would be most appreciated. Thanks, Ken --

Re: Any other UI kits with text widget similar to that in Tk?

2008-05-10 Thread Stef Mientki
Kenneth McDonald wrote: I'm wondering if any of the other GUI kits have a text widget that is similar in power to the one in Tk. wxWindows, from what I can tell, doesn't offer nearly the options the Tk widget does. I'm less familiar with Qt. Any feedback would be most appreciated. Thanks,

Re: Mathematics in Python are not correct

2008-05-10 Thread wxPythoner
I am stunned that this simple misunderstanding of mine ended in a mathematical clash of a sort. :) You guys really blew me away wih your mathematical knowledge. And also the 0**0 is a thing I've never thought about trying, until now that is. If the mathematical rule is that EVERYTHING raised to

Python doesn't recognize quote types

2008-05-10 Thread wxPythoner
There's a thing that bugs me in Python. Look at this... print Testing\ SyntaxError: EOL while scanning single-quoted string Please focus on the part of the error message that states while scanning single-quoted string. How can Python claim it scanned a single-quoted string when I fed it with a

Python, are you ill?

2008-05-10 Thread wxPythoner
If you are in the interactive prompt of the Python interpreter and you do this print Testing\ or print '''Testing\''' you get three dots [...] as if Python expects a code block. If you press Enter, you get three dots again, and again, and again... You can't get out of the code block with

Re: Python, are you ill?

2008-05-10 Thread Ludwig
This is not a bug, this is how it should work. A triple quoted string ends only with another triple quoted string (which can extend over multiple lines) In your example you are escaping the first quote character at the end of the line, thus leaving just two quotes that do not end the string.

Re: Python, are you ill?

2008-05-10 Thread John Machin
On May 11, 6:59 am, [EMAIL PROTECTED] wrote: If you are in the interactive prompt of the Python interpreter and you do this print Testing\ or print '''Testing\''' you get three dots [...] as if Python expects a code block. If you press Enter, you get three dots again, and again, and

Re: Python, are you ill?

2008-05-10 Thread John Henderson
[EMAIL PROTECTED] wrote: If you are in the interactive prompt of the Python interpreter and you do this print Testing\ or print '''Testing\''' you get three dots [...] as if Python expects a code block. If you press Enter, you get three dots again, and again, and again... You can't

Re: Python, are you ill?

2008-05-10 Thread Nicolas Dandrimont
* [EMAIL PROTECTED] [EMAIL PROTECTED] [2008-05-10 13:59:37 -0700]: If you are in the interactive prompt of the Python interpreter and you do this print Testing\ or print '''Testing\''' you get three dots [...] as if Python expects a code block. If you press Enter, you get three dots

Re: Python doesn't recognize quote types

2008-05-10 Thread Nicolas Dandrimont
* [EMAIL PROTECTED] [EMAIL PROTECTED] [2008-05-10 13:56:39 -0700]: There's a thing that bugs me in Python. Look at this... print Testing\ SyntaxError: EOL while scanning single-quoted string Please focus on the part of the error message that states while scanning single-quoted string.

Special INFORMATION – a must read

2008-05-10 Thread law
Interesting information found at PASGOM. Just click on; http://www.pasgom.org/traffic.html http://www.pasgom.org/Stores.html You may look at this important INFO, view the short but interesting movies, and even share with others. Interestingly, Registration for all these is FREE. Nkaw --

Re: Python, are you ill?

2008-05-10 Thread Matt Nordhoff
[EMAIL PROTECTED] wrote: You can't get out of the code block with pressing the Enter key; you have to press Ctrl+Z (if you're in Linux) in order to get out of that code block, which then throws you back to the Linux command line, but before that it prints this line [1]+ Stopped

Re: The Importance of Terminology's Quality

2008-05-10 Thread Lew
Sherman Pendley wrote: Lew [EMAIL PROTECTED] writes: You guys are off topic. None of the million groups to which this message was posted are about netiquette. Netiquette has come up at one point or another in pretty much every group I've ever read. It's pretty much a universal meta-topic.

Re: Python doesn't recognize quote types

2008-05-10 Thread John Machin
On May 11, 6:56 am, [EMAIL PROTECTED] wrote: There's a thing that bugs me in Python. Look at this... print Testing\ SyntaxError: EOL while scanning single-quoted string Please focus on the part of the error message that states while scanning single-quoted string. How can Python claim it

test

2008-05-10 Thread Colin J. Williams
test -- http://mail.python.org/mailman/listinfo/python-list

test

2008-05-10 Thread Colin J. Williams
test -- http://mail.python.org/mailman/listinfo/python-list

Re: how to reference my own module ?

2008-05-10 Thread Terry Reedy
Stef Mientki [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | hello, | | I've a library that I import as | |import ppygui.api as gui | | the reason for this construct is that I've to use different libraries | for different platforms. | | Now I like to write some examples in the

Re: Now what!?

2008-05-10 Thread Grant Edwards
On 2008-05-10, Dennis Lee Bieber [EMAIL PROTECTED] wrote: These are the minute details that bedevil the poor noob. I've read dozens of tutorials on different prog langs and have never read a single thing on white space or blank lines preceding a shebang. Till now. I always get

Re: Find more than one error at once

2008-05-10 Thread Joseph Turian
On May 10, 8:13 am, Diez B. Roggisch [EMAIL PROTECTED] wrote: What kind of errors? Syntax-errors? Then use one of the python source code analyzers, such as pylint or pychecker. Great! -- http://mail.python.org/mailman/listinfo/python-list

Re: Now what!?

2008-05-10 Thread Patrick Mullen
On Sat, May 10, 2008 at 3:57 PM, Grant Edwards [EMAIL PROTECTED] wrote: On a Linux system (and I presume on other Unixes), the kernel itself (if built with the proper options) knows know how start a script file that starts with the characters #!. When the kernel is told to execute a file

Re: how to reference my own module ?

2008-05-10 Thread Stef Mientki
Terry Reedy wrote: Stef Mientki [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | hello, | | I've a library that I import as | |import ppygui.api as gui | | the reason for this construct is that I've to use different libraries | for different platforms. | | Now I like to write

Re: Now what!?

2008-05-10 Thread notbob
On 2008-05-10, Dennis Lee Bieber [EMAIL PROTECTED] wrote: So... in short, you'd need to have been reading a tutorial specific to shell scripting... I have been. I'm also trying to learn bash shell scripting, not to mention sed/awk, php, etc. I should have started this a long time ago,

Initializing a subclass with a super object?

2008-05-10 Thread frankdmartinez
Class A inherits from class B. Can anyone point me in the direction of documentation saying how to initialize an object of A, a1, with an object of B, b1? -- http://mail.python.org/mailman/listinfo/python-list

Re: implementation for Parsing Expression Grammar?

2008-05-10 Thread Barb Knox
In article [EMAIL PROTECTED], Lars Rune Nøstdal [EMAIL PROTECTED] wrote: Hi, Finite automata works for nested things. Only in the special case when the depth of nesting is bounded ahead of time. If it's unbounded then there is an unbounded amount of stack information that the automaton

Re: Initializing a subclass with a super object?

2008-05-10 Thread Terry
On May 11, 7:22 am, [EMAIL PROTECTED] wrote: Class A inherits from class B. Can anyone point me in the direction of documentation saying how to initialize an object of A, a1, with an object of B, b1? This is called a 'factory'in design patterns. Search 'python factory', you will get a lot of

Re: Find more than one error at once

2008-05-10 Thread John Machin
Diez B. Roggisch wrote: Joseph Turian schrieb: Is it possible to coax python to find more than one error at once? What kind of errors? Syntax-errors? Then use one of the python source code analyzers, such as pylint or pychecker. I don't know about pylint, but PyChecker works in a

paypal wholesale, bape, air jordan ( paypal accept ) ( www.honest-shop.cn )

2008-05-10 Thread 128
paypal wholesale,bape,air jordan (paypal accept ) (www.honest-shop.cn ) paypal wholesale,bape,air jordan(paypal accept ) (www.honest-shop.cn ) paypal wholesale,bape,air jordan (paypal accept ) (www.honest-shop.cn ) paypal

paypal wholesale, NBA,adidas ( paypal accept ) ( www.honest-shop.cn )

2008-05-10 Thread 128
paypal wholesale, NBA,adidas ( paypal accept) ( www.honest-shop.cn ) paypal wholesale, NBA,adidas ( paypal accept ) ( www.honest-shop.cn ) paypal wholesale, NBA,adidas ( paypal accept ) ( www.honest-shop.cn ) paypal wholesale, NBA,adidas ( paypal accept ) (

paypal wholesale, NBA,adidas ( paypal accept ) ( www.honest-shop.cn )

2008-05-10 Thread 128
paypal wholesale, NBA,adidas ( paypal accept) ( www.honest-shop.cn ) paypal wholesale, NBA,adidas ( paypal accept ) ( www.honest-shop.cn ) paypal wholesale, NBA,adidas ( paypal accept ) ( www.honest-shop.cn ) paypal wholesale, NBA,adidas ( paypal accept ) (

Re: Mathematics in Python are not correct

2008-05-10 Thread Terry Reedy
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] |I am stunned that this simple misunderstanding of mine ended in a | mathematical clash of a sort. :) You guys really blew me away wih | your mathematical knowledge. And also the 0**0 is a thing I've never | thought about trying, until

Re: Initializing a subclass with a super object?

2008-05-10 Thread frankdmartinez
Hi, Terry. Yeah, no. If we think of the inherited B as an object nested within a1, I'm attempting to initialize that B with b1 by accessing the B, say, via a function call. I don't see how using a python factory achieves this. -- http://mail.python.org/mailman/listinfo/python-list

Re: multiple Python versions, but on Windows (how to handle registry updates)

2008-05-10 Thread Gabriel Genellina
En Sat, 10 May 2008 01:38:24 -0300, Banibrata Dutta [EMAIL PROTECTED] escribió: given that I already have Python2.5 installed will install Python2.4, will copying the ../Lib/site-packages/ from 2.5 into 2.4's, work ? i think the answer is no, but still asking. is it package specific ? does

Re: The Importance of Terminology's Quality

2008-05-10 Thread George Neuner
On Fri, 09 May 2008 22:45:26 -0500, [EMAIL PROTECTED] (Rob Warnock) wrote: George Neuner gneuner2/@/comcast.net wrote: On Wed, 7 May 2008 16:13:36 -0700 (PDT), [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: • Functions [in Mathematica] that takes elements out of list are variously named First,

do you fail at FizzBuzz? simple prog test

2008-05-10 Thread globalrev
http://reddit.com/r/programming/info/18td4/comments claims people take a lot of time to write a simple program like this: Write a program that prints the numbers from 1 to 100. But for multiples of three print Fizz instead of the number and for the multiples of five print Buzz. For numbers

Re: implementation for Parsing Expression Grammar?

2008-05-10 Thread George Neuner
On Fri, 9 May 2008 22:52:30 -0700 (PDT), [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: In the past weeks i've been thinking over the problem on the practical problems of regex in its matching power. For example, often it can't be used to match anything of nested nature, even the most simple nesting.

RE: firefox add-on to grab python code handily?

2008-05-10 Thread Ryan Ginstrom
On Behalf Of Larry Bates Since most of us keep Idle or some other Python IDE open nearly 100% of the time we just copy from webpage, paste into new Python document, and run in the IDE. While you could clearly write a plug-in for FF to achieve this, IMHO I doubt many people would actually

Re: do you fail at FizzBuzz? simple prog test

2008-05-10 Thread John Machin
globalrev wrote: http://reddit.com/r/programming/info/18td4/comments claims people take a lot of time to write a simple program like this: Write a program that prints the numbers from 1 to 100. But for multiples of three print Fizz instead of the number and for the multiples of five print

Re: do you fail at FizzBuzz? simple prog test

2008-05-10 Thread Kam-Hung Soh
On Sun, 11 May 2008 11:12:37 +1000, globalrev [EMAIL PROTECTED] wrote: http://reddit.com/r/programming/info/18td4/comments claims people take a lot of time to write a simple program like this: Write a program that prints the numbers from 1 to 100. But for multiples of three print Fizz

Re: Can I delete the namespace of a module that i import?

2008-05-10 Thread Gabriel Genellina
En Fri, 09 May 2008 11:06:49 -0300, gbin,Zhou [EMAIL PROTECTED] escribió: I see from http://docs.python.org/tut/node11.html; that Name spaces are created at different moments and have different lifetimes. The namespace containing the built-in names is created when the Python interpreter

  1   2   3   >