Re: Permission denied error in download nltk_data...
import nltk nltk.download('maxent_treebank_pos_tagger¹) Is now giving the error: [nltk_data] Error loading maxent_treebank_pos_tagger: Any suggestions, please. BIG SMILE... Always, Dwight -- https://mail.python.org/mailman/listinfo/python-list
Permission denied error in download nltk_data...
Please help(my apologizesI got a response to this before, but I CANNOT find it now) Using this code: import nltk nltk.download('maxent_treebank_pos_tagger¹) I get this error: [nltk_data] Downloading package maxent_treebank_pos_tagger to [nltk_data] /Users/dwightgoldwindex/nltk_data... Traceback (most recent call last): File "test short.py", line 18, in nltk.download('maxent_treebank_pos_tagger') File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packag es/nltk/downloader.py", line 664, in download for msg in self.incr_download(info_or_id, download_dir, force): File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packag es/nltk/downloader.py", line 549, in incr_download for msg in self._download_package(info, download_dir, force): File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packag es/nltk/downloader.py", line 604, in _download_package os.mkdir(download_dir) PermissionError: [Errno 13] Permission denied: '/Users/dwightgoldwindex/nltk_data' BIG SMILE... Always, Dwight www.3forliving.key.to (video playlist on YouTube) www.couragebooks.key.to (all my books on Amazon) -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Permission denied error in download nltk_data...
Please help Using this code: import nltk nltk.download('maxent_treebank_pos_tagger¹) I get this error: [nltk_data] Downloading package maxent_treebank_pos_tagger to [nltk_data]/Users/dwightgoldwindex/nltk_data... Traceback (most recent call last): File test short.py, line 18, in module nltk.download('maxent_treebank_pos_tagger') File /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packag es/nltk/downloader.py, line 664, in download for msg in self.incr_download(info_or_id, download_dir, force): File /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packag es/nltk/downloader.py, line 549, in incr_download for msg in self._download_package(info, download_dir, force): File /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packag es/nltk/downloader.py, line 604, in _download_package os.mkdir(download_dir) PermissionError: [Errno 13] Permission denied: '/Users/dwightgoldwindex/nltk_data' BIG SMILE... Always, Dwight www.3forliving.key.to (video playlist on YouTube) www.couragebooks.key.to (all my books on Amazon) -- https://mail.python.org/mailman/listinfo/python-list
Global command doesn't seem to work...
Inside of Functions.py I define the function: def subwords (): global subwordsDL subwordsDL = {'enjoy':['like', 'appreciate', 'love', 'savor'], 'hurt':['damage', 'suffering']} print (subwordsDL) Return In my test code module, the code is: global subwordsDL from Functions import subwords subwords () print (subwordsDL) print (subwordsDL['enjoy'][2]) I get an error on the 4th line of this module (BTW, I tried this module with and without the first line, reaffirming subwordsDL as global, and the results are the same): {'hurt': ['damage', 'suffering'], 'enjoy': ['like', 'appreciate', 'love', 'savor']} Traceback (most recent call last): File test short.py, line 4, in module print (subwordsDL) NameError: name 'subwordsDL' is not defined LOLworked on this for over an hour Please help. BIG SMILE... Always, Dwight -- https://mail.python.org/mailman/listinfo/python-list
Re: Is Django the way to go for a newbie?
With much appreciation, Michael… When I get to that point, I will look into learning what I need to know about html, css, javascript, and SQL. I have been a life coaching now for 28 years (and super happy with it), although I was a computer software consultant before that. I’m not really thinking of getting back into web development for pay, just for fun for a project that I am designing for creating an “automated life coach”. Again, thank you! BIG SMILE... Always, Dwight www.3forliving.key.to (video playlist on YouTube) www.couragebooks.key.to (all my books on Amazon) On 8/10/15, 1:41 AM, Michael Torrie torr...@gmail.com wrote: On 08/08/2015 10:08 PM, Dwight GoldWinde wrote: I am both new to Python and I haven¹t even touched Django yet. I understand I that I need Django or something like it to develop my website. From what I have read, Python and Django somewhat go together. Is that true? Or is there another development platform better for someone like me than Django? Any and all feedback or questions are much appreciated. Web development is very a very hard problem, largely because it involves quite a few different domain-specific languages that you have to be proficient in. It's not just a matter of Python and Django. You must also have a good working knowledge of html, css, javascript, SQL (or some other database engine, and even though Django abstracts the database somewhat), and how they all interconnect and interact with each other. So at this stage of the game, get some Python experience. Then mess with html, css, javascript on their own (static pages). After than then you'll be ready to add Django to the mix and also get some basic database experience. And judging by how much custom web applications cost these days, once you've mastered all this, you'll be in a position to make a lot of money. Not joking either! Web developers are some of the smartest people I know, and in the highest demand, because they work so well with such complex systems. In this area, node.js is getting very popular. I don't care much for javascript but using it on the server as well as the web browser itself reduced the number of languages you have to know by one. BIG SMILE... Just relax and let the hooks do their work. -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Re: Is Django the way to go for a newbie?
Thank you, Gary, for this new information. I will be looking into virtualenv and vertualenvwrapper. I thought that Django was an IDE. But, it seems that an IDE is one more thing that I need that I didn¹t know I needed!? BIG SMILE... Always, Dwight www.3forliving.key.to (video playlist on YouTube) www.couragebooks.key.to (all my books on Amazon) On 08/08/2015 09:08 PM, Dwight GoldWinde wrote: I am both new to Python and I haven¹t even touched Django yet. I understand I that I need Django or something like it to develop my website. From what I have read, Python and Django somewhat go together. Is that true? Or is there another development platform better for someone like me than Django? Any and all feedback or questions are much appreciated. BIG SMILE... Always, Dwight www.3forliving.key.to http://www.3forliving.key.to (video playlist on YouTube) www.couragebooks.key.to http://www.couragebooks.key.to (all my books on Amazon) I'm also somewhat of a newbie but seem to be a little further down the road than you are. So hear is some advise from someone with recent bruises. The advise to learn python first is a very good piece of advice. I tried Postgresql and Django first and got bogged down just about the time that I was starting to get past the setup phase. You might try Learning Python The Hard Way. It's working for me. Django v.s. other frameworks. It depends on what you want to do. I'm working on a data archiving project so the fact that Dango was / is developed by a couple of newspaper journalists fits well with my project. This may not be true for you. I will say that once you set the system up you will probably never see the sql database again. A very good thing. What ever you do set up virtualenv and vertualenvwrapper. Not only will this keep you project code away from the rest of your system, it will allow you to run different versions of software simultaneously. (Note: Unless you are using SQLite your database engine will be installed globally. Everything else inside the wrapper using pip.) There are a lot of scripting languages out there and everyone has a favorite. No matter what Python strikes me as being a good choice. You will need some kind of an Integrated Development Environment (IDE). I happen to like Ninja-Ide. (Don't everyone start throwing rocks. We all have our favorites. An no, I haven't checked them all out.) This is my first programming in some years too. I use to be a whiz at fortran, C and Xbase but haven't done anything since I retired. Good luck Gary R -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Re: Is Django the way to go for a newbie?
So many new things to look into! Chris, I now will also investigate i18n. Thank you. BIG SMILE... Always, Dwight www.3forliving.key.to (video playlist on YouTube) www.couragebooks.key.to (all my books on Amazon) On 8/10/15, 9:27 AM, Chris Angelico ros...@gmail.com wrote: On Mon, Aug 10, 2015 at 3:41 AM, Michael Torrie torr...@gmail.com wrote: Web development is very a very hard problem, largely because it involves quite a few different domain-specific languages that you have to be proficient in... In this area, node.js is getting very popular. I don't care much for javascript but using it on the server as well as the web browser itself reduced the number of languages you have to know by one. There's another thing you absolutely have to know when you do web development, and that's i18n. This is why I don't recommend Node.js for server-side work - because Python's Unicode support is better than JS's. Stick with Python (and avoid Python 2 on Windows) and you get great Unicode support. Do anything in JavaScript/ECMAScript and you get UTF-16 as the official representation. What's the length of the string Hello, world? len(Hello, world) 12 Hello, world.length 12 So far, so good. What if those weren't ASCII characters? len(, ) 12 (That's Python 3. In Python 2, you'd need to put a u prefix on the string, but it's otherwise the same, modulo the Windows narrow-build issue.) , .length 22 ECMAScript stipulates that strings are not codepoints, but UTF-16 code units, so whenever you work with astral characters (which includes a lot of emoticons, Chinese characters, and other symbols that your end users *will* use), they'll get things wrong. The length of the string counts astral characters twice; indexing/slicing can take half of a character; any manipulation at all could corrupt your data. So, use Python for all your text processing. Life's better that way. ChrisA -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Re: Importing is partially working...
Such a simple change, I wouldn¹t think it would work. But it did. You suggested from Functions import humprint² instead of from Functions.py import humprint². Thank you, Chris! Now I can define functions all over the place. LOL BIG SMILE... Always, Dwight www.3forliving.key.to (video playlist on YouTube) www.couragebooks.key.to (all my books on Amazon) On 8/10/15, 6:11 PM, Chris Angelico ros...@gmail.com wrote: from Functions import humprint -- https://mail.python.org/mailman/listinfo/python-list
Importing is partially working...
I am trying to import and function. The function (humprint) is defined in a .py module inside the same folder as the executing code. I am put traces in the Functions.py module to show that it works okay there (Python 3.4). Here is the code of the Functions.py module: try: print (callable(humprint)) except NameError: print ('humprint not defined') def humprint (sentence): import random import time import sys for char in sentence: sys.stdout.write (char) sys.stdout.flush () part_second = random.randint(1, 100) / 400 time.sleep(part_second) # delays for x seconds print (callable(humprint)) sentence = 'Testing humprint inside of the same module' humprint (sentence) And here is the code for the calling module: name = 'Jim' coach = 'Dwight' import importlib sentence = 'Hi, there, ' + name + '. My name is ' + coach + '. I will be your coach today.' from Functions.py import humprint humprint (sentence) And here are the results of running the calling module: humprint not defined True Testing humprint inside of the same moduleTraceback (most recent call last): File frozen importlib._bootstrap, line 2218, in _find_and_load_unlocked AttributeError: 'module' object has no attribute '__path__' During handling of the above exception, another exception occurred: Traceback (most recent call last): File Intro.py, line 5, in module from Functions.py import humprint ImportError: No module named 'Functions.py'; 'Functions' is not a package So, it seems like it is accessing the module, but not the function? Please advise! With appreciation. BIG SMILE... Always, Dwight www.3forliving.key.to (video playlist on YouTube) www.couragebooks.key.to (all my books on Amazon) -- https://mail.python.org/mailman/listinfo/python-list
Re: Is Django the way to go for a newbie?
Wowsuch a generous response. Thank you, Laura! Based upon your feedback, I did some additional investigation and decided to go with Django. One of the reasons is that it¹s got everything in the package. For example, I won¹t have to go outside of Django for my database needs. And, although my website will be simple to start, it will grow in sophistication over the years. Thank you, again! BIG SMILE... Always, Dwight www.3forliving.key.to (video playlist on YouTube) www.couragebooks.key.to (all my books on Amazon) On 8/9/15, 2:23 PM, Laura Creighton l...@openend.se wrote: There are lots of Web Frameworks. https://wiki.python.org/moin/WebFrameworks lists some of them. I wouldn't place too much faith in the classification of some as 'Popular' and others as 'Regarded as Less Popular' -- I keep getting the itch to put a wikipedia style footnote (by whom) -- in my corner of the world Zope 2 and Pylons are very popular, and Pyramid which is the successor to Pylons is rather more popular than either. All 3 of them are more popular around here than web2py (which is also popular, just not at much) and I don't know anybody who is using Turbogears at all. (Pyramid is listed under the 'non full stack frameworks' but if I had been making the list it would be under full stack; maybe the list got made when Pyramid was more incomplete.) The most important consideration when choosing a web framework is whether you have somebody local who can help you, in person, with the thing. If you have such a person, and they prefer a certain Framework, go for that one. Otherwise there really isn't a thing to do but build a small example and see how you like it. Because they actually play quite differently. They are designed by people to make things most convenient for the way they like to work, to expose the complexity that they want control over and hide the stuff they don't. This means, for instance that the very things that web2py lovers like the best about their framework is precisely what the people who dislike web2py hate about it -- and the same is true for Django, and all down the list. Remember that the people who love Django (for instance) are all quite happy to write blog posts about their happiness, while the people who find writing Django code most unpleasant don't tend to talk about it. They just find something they like better, and use it. You will be happiest with the one that fits your brain best, but alas it is hard to know what that will be before you try it. But there is one major split you probably know about yourself when figuring out what to try first. If you are the sort of person who takes great comfort from the knowledge that 'all the batteries are included' and that you will never _outgrow_ your framework, should you need to do some new thing with it, the components will already be there, then you will prefer a full stack framework. The disadvantage in using a comprehensive framework like that is that you will have much less flexibility in how you do things -- you will have to do Django things the Django way, and web2py things the web2py way, etc. And things will be much more complicated. But if you are naturally inclined towards comprehensive solutions, start playing with the Full Stack Frameworks. If you throw up your hands and say 'this is all too complicated!' you can then try something simpler. If, on the other hand, your natural inclination is to dislike comprehensive solutions because you always want to go after the _simplest_ thing that can work, then you should start playing with Micro frameworks. And if you throw up your hands saying 'But this thing barely has support for anything! I don't want to have to write my own this, that, and some other thing' then you can try something more comprehensive. Sorry not to be more helpful, but this is very much one of the cases where 'it depends' and it very much 'depends on you'. Laura -- https://mail.python.org/mailman/listinfo/python-list
Is Django the way to go for a newbie?
I am both new to Python and I haven¹t even touched Django yet. I understand I that I need Django or something like it to develop my website. From what I have read, Python and Django somewhat go together. Is that true? Or is there another development platform better for someone like me than Django? Any and all feedback or questions are much appreciated. BIG SMILE... Always, Dwight www.3forliving.key.to (video playlist on YouTube) www.couragebooks.key.to (all my books on Amazon) -- https://mail.python.org/mailman/listinfo/python-list
Re: Is Django the way to go for a newbie?
Thank you, Chris! Good input. I was a computer software consulting for 20 years, ending in 1987, whrn I changed my career to life coaching (which I have now done happily for 28 years). So now I going back to learn a new language freshly (much different than COBOL and BASIC!). I am working on a long-term project to create an ³automated life coaching² website. BIG SMILE... Always, Dwight www.3forliving.key.to (video playlist on YouTube) www.couragebooks.key.to (all my books on Amazon) On 8/9/15, 12:44 PM, Chris Angelico ros...@gmail.com wrote: On Sun, Aug 9, 2015 at 2:08 PM, Dwight GoldWinde dwi...@goldwinde.com wrote: I am both new to Python and I haven¹t even touched Django yet. I understand I that I need Django or something like it to develop my website. From what I have read, Python and Django somewhat go together. Is that true? Or is there another development platform better for someone like me than Django? Django is quite big and powerful, but if your needs are simple, you could consider something a bit simpler. I've used Flask for a couple of web sites, and have worked with a number of students who've used it successfully. My recommendation: Learn Python first, and worry about web frameworks later. Once you have the basics of the language under your belt, you'll be better able to judge what works and what doesn't for the web site you're trying to build. Do you have a background in other programming languages, or are you new to programming as a whole? ChrisA -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Re: How to import a function from another module...
Thank you, Steven. I am a newbie with Python? so I really want to learn how to do it the easy way. Yes, could you tell me how to put the py.file that contains the function in the Python search path??? BIG SMILE... Always, Dwight www.3forliving.key.to (video playlist on YouTube) www.couragebooks.key.to (all my books on Amazon) On 8/4/15, 9:24 AM, Steven D'Aprano st...@pearwood.info wrote: On Tue, 4 Aug 2015 09:57 am, Dwight GoldWinde wrote: I am trying to import a function defined in another module. You can't use spaces in the name of importable Python modules: change the name from Simulate typing.py to simulate_python.py. You can use spaces in file names if they are only used as a runnable script and not imported. Then use this: from simulate_python import humprint There's no need to use importlib. You may need to arrange for the simulate_python file to be placed somewhere in the Python search path. Do you need help with that? What you are trying to do with importlib is fight the language. Your life will be much simpler if you work within the parameters of how the language is designed to work. -- Steven -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
How to import a function from another module...
I am trying to import a function defined in another module. The code is this: name = 'Jim' sex = 'm' coach = 'Dwight' import importlib sentence = 'Hi, there, ' + name + '. My name is ' + coach + '. I will be your coach today.' importlib.import_module ('humprint', 'Macintosh HD/Users/dwightgoldwindex/Documents/Active Information/ACL/Testing Code/Simulate typing.py') The response and error message I receive is this: Traceback (most recent call last): File Intro.py, line 7, in module importlib.import_module ('humprint', 'Macintosh HD/Users/dwightgoldwindex/Documents/Active Information/ACL/Testing Code/Simulate typing.py') File /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/importlib/_ _init__.py, line 109, in import_module return _bootstrap._gcd_import(name[level:], package, level) File frozen importlib._bootstrap, line 2249, in _gcd_import File frozen importlib._bootstrap, line 2199, in _sanity_check SystemError: Parent module 'Macintosh HD/Users/dwightgoldwindex/Documents/Active Information/ACL/Testing Code/Simulate typing.py' not loaded, cannot perform relative import How can I change my code to have the import work properly? Thank you. BIG SMILE... Always, Dwight www.3forliving.key.to (video playlist on YouTube) www.couragebooks.key.to (all my books on Amazon) -- https://mail.python.org/mailman/listinfo/python-list
Re: I'm a newbie and I'm still stumped...
On 8/3/15, 4:55 PM, Dwight GoldWinde dwi...@goldwinde.com wrote: Okay, thank you, Dave, so I got the following info: type $(which python3) /Library/Frameworks/Python.framework/Versions/3.4/bin/python3 is /Library/Frameworks/Python.framework/Versions/3.4/bin/python3 But I can¹t figure out what short of ³usr² statement (e.g. #!/usr/bin/env python3) I need to point it there. Whatever I tried, still gives me version 2. ??? Dwight On 8/3/15, 4:27 PM, Dave Farrance df@see.replyto.invalid wrote: Dwight GoldWinde dwi...@goldwinde.com wrote: Here are the results I got below, showing the same error. The first line says, 2.7.6 (default, Sep 9 2014, 15:04:36)². Does that mean I am running the old Python? How could that be since I am SURE I downloaded 3.4.3 (it even gives the folder name as ³Python 3.4² in the Applications folder on my Mac. Yes, that's Python2. I've never used MAC OS, but I understand that it has the BASH shell, so you can use which try to figure out where python is being found on the path: $ echo $PATH $ which python Use the above to also check for the position of python2 and python3. You can check for aliases and links with the type and file commands. Do this for python, python2 and python3: $ type $(which python) $ file $(which python) -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Re: I'm a newbie and you helped me find the answer...
Thank you, Jussi. Problem finally solved. I am using Coderunner 2 as my editor. It has a language setting. I had set it as Python instead of Python 3. Duh! Thank you again, everyone! With appreciation, Dwight dwi...@goldwinde.com www.goldwinde.com Author of the book, Courage: the Choice that Makes the Difference--Your Key to a Thousand Doors You can find all my books at http://www.couragebooks.key.to/ 1-206-923-9554 (USA Telephone) 1-206-350-0129 (voice mail and fax U.S.A.) 86-153-9867-5712 (China Telephone) goldwindedwight (Skype) goldwinde (Wechat) +8615398675712 (Whatsapp) www.3forliving.key.to (daily living video playlist) http://www.couragebooks.key.to/ (my books) On 8/3/15, 5:49 PM, Jussi Piitulainen jpiit...@ling.helsinki.fi wrote: Dwight GoldWinde quotes himself: Okay, thank you, Dave, so I got the following info: type $(which python3) /Library/Frameworks/Python.framework/Versions/3.4/bin/python3 is /Library/Frameworks/Python.framework/Versions/3.4/bin/python3 But I can¹t figure out what short of ³usr² statement (e.g. #!/usr/bin/env python3) I need to point it there. Whatever I tried, still gives me version 2. How are you launching your script? If your method involves clicking some pretty picture or something similar, you may be bypassing /usr/bin/env altogether and relying on some association of file types in Mac OS. Then you need to investigate file properties in Finder, or something like that. It should be safe to change the association for that individual script but not necessarily for all files with the same extension. If your method is to type python scriptname at the shell prompt, you are definitely bypassing /usr/bin/env and specifying the default python as the one to use. Solution: type python3 scriptname instead. (A more advanced solution: make scriptname executable and type ./scriptname instead. This one uses /usr/bin/env to find the interpreter.) (You could try #!/usr/bin/env aintgotnosuch as your script's hashbang line to see if it even matters what that line says. Check first that you don't happen to have a program named aintgotnosuch in your path.) -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
FW: I'm a newbie and I'm still stumped...
On 8/3/15, 4:07 PM, Dwight GoldWinde dwi...@goldwinde.com wrote: Thank you, Paul. But does this mean I am not using Python 3.4? BIG SMILE... Always, Dwight www.3forliving.key.to (video playlist on YouTube) www.couragebooks.key.to (all my books on Amazon) On 8/3/15, 3:14 PM, Paul Rubin no.email@nospam.invalid wrote: Dwight GoldWinde dwi...@goldwinde.com writes: word = input('Enter a word ') Use raw_input instead of input. In python 2.x, input treats the stuff you enter as a Python expression instead of a string. -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Re: I'm a newbie and I'm still stumped...
Thank you, Emile, Paul, Terry, and Joel for your suggestions! And the error persists. Maybe my error is coming from running the old version (2.7.6) of Python, but I can’t figure out why that would be happening??? I downloaded 3.4.3 again from the Python.org website for my Mac. I inserted the import sys and did “print (sys.version)” into the code. So here what the code is: #!/usr/bin/env python3 import sys print (sys.version) word = input('Enter a word ') Here are the results I got below, showing the same error. The first line says, 2.7.6 (default, Sep 9 2014, 15:04:36)”. Does that mean I am running the old Python? How could that be since I am SURE I downloaded 3.4.3 (it even gives the folder name as “Python 3.4” in the Applications folder on my Mac. 2.7.6 (default, Sep 9 2014, 15:04:36) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] Enter a word serendipity Traceback (most recent call last): File test short.py, line 4, in module word = input('Enter a word ') File string, line 1, in module NameError: name 'serendipity' is not defined Please help… BIG SMILE... Always, Dwight www.3forliving.key.to (video playlist on YouTube) www.couragebooks.key.to (all my books on Amazon) #!/usr/bin/env python3 import sys print (sys.version) word = input('Enter a word ') 2.7.6 (default, Sep 9 2014, 15:04:36) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] Enter a word serendipity Traceback (most recent call last): File test short.py, line 3, in module word = input('Enter a word ') File string, line 1, in module NameError: name 'serendipity' is not defined On 8/2/15, 12:30 AM, Emile van Sebille em...@fenx.com wrote: On 7/30/2015 6:22 PM, Dwight GoldWinde wrote: I am running Python 3.4 on my Mac mini, OS X 10.10.2, using Coderunner 2 as my editor. Here¹s the code: #!/usr/bin/env python3 word = (input('Enter a word Œ)) When running this inside of Coderunner, I get the follow error, after entering the word Œserendipity¹: Enter a word serendipity Traceback (most recent call last): File test short.py, line 2, in module word = (input('Enter a word ')) File string, line 1, in module NameError: name 'serendipity' is not defined I'd look at which python is actually running (sys.version): Python 3.4.0 (default, Apr 11 2014, 13:05:11) [GCC 4.8.2] on linux Type help, copyright, credits or license for more information. word = (input('enter a word ')) enter a word test emile@emile-OptiPlex-9010:~$ python Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 Type help, copyright, credits or license for more information. word = (input('enter a word ')) enter a word test Traceback (most recent call last): Emile File stdin, line 1, in module File string, line 1, in module NameError: name 'test' is not defined -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
I'm a newbie and I'm stumped...
Please help. I am running Python 3.4 on my Mac mini, OS X 10.10.2, using Coderunner 2 as my editor. Here¹s the code: #!/usr/bin/env python3 word = (input('Enter a word )) When running this inside of Coderunner, I get the follow error, after entering the word serendipity¹: Enter a word serendipity Traceback (most recent call last): File test short.py, line 2, in module word = (input('Enter a word ')) File string, line 1, in module NameError: name 'serendipity' is not defined -- https://mail.python.org/mailman/listinfo/python-list
[issue23457] make test failures
Dwight added the comment: Hi David, Thanks for the feed back. I must have a defective distribution because when installed python 3 it did not remove the older python 2. Also for some reason I have to set the LIBPATH to include the path to python libarary. Don't know why; but the build does not build a python module that know where the library is installed. I understand that IBM no longer sells workstations based on the Power processor; but there are a few of us out here that have been working on RT/PC, RS/6000 and pSeries system for close to 20 years. It is not a simple project to just up and move to a different environment even if it is another UNIX system. (I have a number of assembly applications that I use every day! Optimized for the Power processor!) I have used the new python to successfully build atk; but am having problems with GObject-Introspection 1.42. It seems that python 3 broke something in that distribution. So far I have not been able to determine if there is a fix for the problem. I have two power systems. A 9114-275 Intellistation and a pSeries 520. Both are configured as workstations. I certaily would rather not have to spend my time trying to build firefox; but I need firefox to access the AIX support site and the H/W and S/W documentation site. (It took about a year for someone to fix it so that I could access the online support site. They at least admitted it was there fault that I could not access the site. However; the current support person/group will not even admit that there is a problem.) Well enough of this off the subject stuff. Thanks for the information and comments. I guess I am now off to solving the GObject-Introspection 1.42 problem. Humm! Have you heard about this incompatability problem? Thanks, Dwight -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23457 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23457] make test failures
Dwight added the comment: Thanks for the response. What is the AIX tester? Appreciate the explanation of what might be causing the problem. I do have at least three other version of python installed on my AIX 7.1 system. Have no idea if these versions produced test errors. These version of python were supplied to me. The only reason I am trying to create a new version of python is because when I tried to build a gnome module which is required to build gtk+ is did not like any of the version of python that I have installed. The only reason that I am asking about these test failures is because I have no idea if they will cause problems in all my follow on builds. firefox acts funny in AIX (maybe other UNIX builds)! Somewhere in the final linked module there are bugs that can cause firefox to hang. Just wanted to make sure everything up to the point before the build of firefox is OK. As you probably know mozilla will not provide any support in my efforts to build a working firefox. (Not sure I can even build a working version. Definitely not a C++ programmer and am just a novice C programmer. Need to eliminate all possible of errors I can.) I really need a working browser. (I have an open PMR with AIX support because firefox can not access the online documentation for AIX. Just great. Documentation is only available online and I can not get to it. AIX support say they do not support firefox so it my fault I can not access the online documentation.) I guess I could just install python and continue trying to build firefox. Oh! By the way. Do you know if when I install this version of pyhton the gmake install will remove the older version of pyhton? Not talking about the AIX or Linux toolkit version; but the one that is installed in the directory where I will be installing this version of python. Appreciate the help! Dwight -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23457 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23457] make test failures
New submission from Dwight: Hi, Looking for assistance in figuring out what caused the following test failures and how to fix the problems. Built and run on an IBM pSeries system running AIX 7.1. Appreciate any help I can get. I am not a software developer. I am compiling this because I need this to build things I need to build firefox. Would really appreciate some help! (Mozilla.org and IBM not interested in providing a working browser for my system.) Bye, Dwight ***Failed Test the were run in verbose mode test_locale failed test_io failed test_ssl failed test_faulthandler test_httpservers test_socket failed test_fileio failed test_distutils failed test_asyncio failed test_mmap failed test_resource failed test_posix failed -- components: Tests files: PYTHONFailedTest.log messages: 235871 nosy: dcrs6...@gmail.com priority: normal severity: normal status: open title: make test failures versions: Python 3.4 Added file: http://bugs.python.org/file38124/PYTHONFailedTest.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23457 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15903] Make rawiobase_read() read directly to bytes object
Dwight Guth added the comment: I was programming something today and thought I should let you know I came across a situation where the current behavior of this function is able to expose what seems to be raw memory to the user. import io class A(io.RawIOBase): def readinto(self, b): return len(b) A().read(100) -- nosy: +dwight.guth ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15903 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18082] Inconsistent behavior of IOBase methods on closed files
New submission from Dwight Guth: Consider the following program: import io class A(io.IOBase): def __init__(self): self.x = 5 def read(self, limit=-1): self.x -= 1 if self.x 0: return b5 return b def seek(self, offset, whence=0): return 0 def write(self, b): pass a = A() a.close() assert a.__next__() == b assert a.readline() == b assert a.tell() == 0 These three operations succeed, even though the file is closed. However, these two operations fail: a.readlines() a.writelines([]) Why do some of the mixin methods on IOBase call _checkClosed and others don't? -- components: IO messages: 190224 nosy: dwight.guth priority: normal severity: normal status: open title: Inconsistent behavior of IOBase methods on closed files type: behavior versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18082 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Minor consistency question in io.IOBase
Hi, so, I don't necessarily know if this is the right place to ask this question since it's kindof a rather technical one which gets into details of the python interpreter itself, but I thought I'd start here and if nobody knew the answer, they could let me know if it makes sense to ask on python-dev. I am wondering why it is that the default implementations of certain of the mixin methods on IOBase seem to behave somewhat inconsistently. Specifically, the behavior of precisely when in the pipeline a method checks to see whether the object is already closed seems to be inconsistent. In the following methods: IOBase.__next__ IOBase.readline IOBase.tell In each case, these methods never check to see whether the file is closed. __next__ immediately calls readline(), readline(limit) calls read(1) at most limit times, and tell calls seek(0, 1). It is relying on the underlying method to raise a ValueError if the file is already closed. Otherwise, __next__ and readline will raise AttributeErrors on unreadable files, and tell will raise an UnsupportedOperation on unseekable files. A side effect of this is that readline(0) on a closed file will succeed. In the following methods, however: IOBase.writelines IOBase.readlines In each case, the methods will check to determine whether the file has been closed before ever calling their underlying method. Thus, calling writelines([]) will raise a ValueError on a closed file, though it never calls write. Similarly, readlines() will raise a ValueError on a closed file before ever calling readline() even once. Can someone explain to me if there's some kind of consistent logic that explains the differing behaviors of these functions? Or is it simply an oversight on the part of the people who wrote Modules/_io/iobase.c? -- http://mail.python.org/mailman/listinfo/python-list
[issue17983] global __class__ statement in class declaration
New submission from Dwight Guth: The following python program causes cpython to crash: class A: global __class__ def a(self): super() I get the following output on the console: bug.py:2: SyntaxWarning: name '__class__' is assigned to before global declaration global __class__ lookup '__class__' in � a sequ 2 -1 freevars of A: ('__class__',) Fatal Python error: compiler_make_closure() Current thread 0x7fc712192700: Aborted (core dumped) This probably happens because __class__ is handled specially by the scoping rules and isn't expected to be anything other than a member of co_cellvars. It should probably throw an exception instead (SystemError?) -- messages: 189293 nosy: dwight.guth priority: normal severity: normal status: open title: global __class__ statement in class declaration type: crash versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17983 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Re: Aggressive language on python-list
On Wed, Oct 17, 2012 at 10:21 PM, wu wei wuwe...@gmail.com wrote: You don't know me No, I really do. Then tell me more about myself...doc. Your behaviour isn't as clever or as masking as you think it is. It's intended to be involved, witty, and as informed as I can be on a topic by someone I'm conversing with. And to knw when I don't know, or remember something. You're a sad, lonely, desperate person No, I'm fine a s a monk until recently, when medical, and faith issues arose, and for your information, I've been laid quite a few times, and won't have a problem doing so again. I've been out here 6-7 years getting my life together without chasing pussy. who I would genuinely feel sorry for if you could stop acting like a self-righteous cunt for long enough. Not self righteous, again wrong. I've been the bad guy, and now I have to watch out for them, which seems self righteous, but it's merely the fact that I have to have a good public persona now. But that's never going to happen; you've convinced yourself that arrogant superiority Go get to know a real few arrogant individuals, with superiority complexes before you comment. If anything, I have an inferiority complex that comes out when I'm downed by someone. is how to succeed in this world, so you better prepare yourself now for the shitty, sad life that's going to give you. It's been that way in my socioeconomic upbringing I'm trying to overcome, so you're preaching to the choir. Spoiler alert: you're going to die alone and unloved. Doubt it. After 6-7 years of leaving sluts, and whores alone, I've realized I need to be secure emotionally, physically, financially, and spiritually. Go insult a troll, because I like to fish off the top of the bridge. Well above trash such as yourself who like to bring people down for fun due to their own superiority complexes. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: OT Questions
On Wed, Oct 17, 2012 at 2:06 AM, Demian Brecht demianbre...@gmail.com wrote: This is my prototype portfolio for freelancing. If you have an honest critique, then what, in your opinion, am I good at? https://www.odesk.com/users/~01710ac049863018eb I can't ascertain what your strengths are as I don't work with you on a daily basis (one of the many benefits of working with people smarter than you ;)). Doubt that, unless they have 160+ I.Q.'s(been seeing psychiatrists since I was 13). I'm very secure in my childlike intellectualism. What I feel safe in assuming is that: * You seemingly have a *want* to learn, which in itself is very important. Want to. I'm the most interdisciplinary learner you might have ever encountered in your life. Like you said, you don't know me that well, and this isn't intended to get mean...I just had to get honest with myself without that much ego. * Your strength is not design. Using bevel and emboss (and a pattern here and there) does not constitute good design. It's simplicity within a symbolism, and now that I need money for medical reasons, the work I've done isn't perfect, but it's on par. I know when I see something aesthetically pleasing, and if I like what I have, I'm using the same mindset. If you're showcasing logo work, I hope you're ready to supply variations that can be used cross-medium. These are all portfolio sites of my own, and I'm slowly revising them, just like any other rough draft, and as you can tell I'm asking other people to critique it. * You're not a game developer Not yet, but wait until you see a translated prototype from python/tkinter turned into blender. I'm fond of games, and I try to not mimic, but keep in the same realm of professional. Remember you're looking at rough drafts, and you haven't seen other developments. (given what I've seen, I highly doubt that you can readily tackle the complexities in game development even in a team environment, let alone solo) You mean a GDK with a story line, points, and scores with little cool graphics. Lowly doubt your opinion of that. Don't lie (this includes stretching the truth). In which case have i lied. I'm capable of many things, and that's confidence, not arrogance. In doing so, you'll mismanage client expectations and simply drive any future prospective clients away. Under-promise, over-deliver ;) This I believe in somewhat, but I want to tell the client I can do it, and they're the final inspector who oversees the project. I just algorithm, develop, and deliver their expectations. As to not flood the list with OT discussion, if you can stay away from the flame wars (I avoid such things, directly or indirectly as it's childish and entirely unprofessional), Defending yourself when attacked is a necessity. In business people will run over you, steal your ideas, and take advantage of you, and I can't let that happen in any forum, no matter how childish it can get. I don't mind answering questions here and there (just e-mail me directly). I'm not a genius or a guru, but I've had enough experience that I may be of some help in pointing you in the right directions if you're genuinely interested. I'm a lonely guy, and I like friends. I only flame up in hostile situations. So we can discuss this off list, and I'll accept any advice I acknowledge as being beneficial, and will argu a point I think is valid. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: OT Questions
On Wed, Oct 17, 2012 at 5:31 AM, Chris Angelico ros...@gmail.com wrote: On Wed, Oct 17, 2012 at 5:27 PM, Dwight Hutto dwightdhu...@gmail.com wrote: On Wed, Oct 17, 2012 at 2:06 AM, Demian Brecht demianbre...@gmail.com wrote: I can't ascertain what your strengths are as I don't work with you on a daily basis (one of the many benefits of working with people smarter than you ;)). Doubt that, unless they have 160+ I.Q.'s(been seeing psychiatrists since I was 13). I'm very secure in my childlike intellectualism. A high IQ just proves ability to score well on IQ tests. On the whole, your statement strikes me as reminiscent of Sheldon Cooper's insistence that I'm not crazy, my mother had me tested!. Someone insulted my intelligence, and stated how they worked with much smarter people...this was just a confidence statement that I'm intelligent as well, so don't get uppity with me. Personally, I've never taken an IQ test, so I don't know how well I'd score. But I'm a school dropout, never went to college/uni/TAFE/etc/etc, don't have any certifications of any sort. Me too, I was tested earlier in life, and took others. Dropped out in ninth grade, and went to the library to self learn, which isn't always the best path, but the one I took as well. I'm a pretty uneducated fella, according to my reacute;sumhtmlentitiesdontworkhere; (that's resume when folded into ASCII). So according to how most people think about intelligence, I probably have a sub-par IQ. There are many aspects to 'sub-par I.Q.', because I like to think everyone has a savant skill in them. On the flip side, I'm a professional programmer, I run a server where people play Dungeons and Dragons, and I'm a well-respected wordsmith as Dungeon Master. Plus, I work in theatre (in fact, at the moment I'm posting from the bio box, sitting next to the follow spot that I'll be operating for the next two weeks). So I think I have enough muscle upstairs to get through life... Bench pressing those molecules, and problem solving is just like bench pressing some weight...it gives you the ability to do a little heavy mental lifting when necessary. But Dwight (and I'll continue to address you as such until you change your mail headers), I'll get to that eventually. a LOT of what you're saying is coming across as over-inflated ego. No, just stating to another I'm intelligent as well, so don't push the subject if you don't want the actual response of who I am. Maybe you are a majorly interdisciplinary learner; but boasting that you're the most interdisciplinary learner [we] might have ever encountered just comes across poorly. Not a boast. I'm forgetful sometimes because I OCD crash coursing everything, so I just say that with confidence, not arrogance. One thing I've learned from various groups is that, no matter how X you are, there's someone else who's even more X - for any X. Maybe it isn't true somewhere, maybe you really are the peak - but more than likely you aren't, Probably not, I've met many who I can tell you are greater, but I have my pride as well when I enter into a conversation, and get insulted. and it's much more pleasant to be proved better than your claim than to be proved worse. (There are exceptions, of course. I have absolutely no doubt that I am the person most familiar with the RosMud++ code and thus the person best positioned to maintain that project. This is because I wrote it. But I am not claiming to be the best C++ programmer in the world, because there are a lot of other C++ programmers among the seven billion here.) Went to write my own language as well, but got caught up in a million more I liked better. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: OT Questions
On Wed, Oct 17, 2012 at 10:19 AM, Grant Edwards invalid@invalid.invalid wrote: On 2012-10-17, Dwight Hutto dwightdhu...@gmail.com wrote: No I'm not a troll. I like to answer, as well as ask, and sometimes things get heated, and you get called a name, and the name takes the argument out of context sometimes. Uh, what? How can a name take an argument out of context? Taking something out of context is something done by a somebody who is reading or quoting somebody else. -- I meant that you get called a name when someone reads something that has been taken out of the context of several arguments between a few people in several threads, and call you something like a racist. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: OT Questions
On Wed, Oct 17, 2012 at 12:38 PM, Prasad, Ramit ramit.pra...@jpmorgan.com wrote: David Hutto wrote: On Wed, Oct 17, 2012 at 2:06 AM, Demian Brecht demianbre...@gmail.com wrote: * Your strength is not design. Using bevel and emboss (and a pattern here and there) does not constitute good design. It's simplicity within a symbolism, and now that I need money for medical reasons, the work I've done isn't perfect, but it's on par. I know when I see something aesthetically pleasing, and if I like what I have, I'm using the same mindset. If you're showcasing logo work, I hope you're ready to supply variations that can be used cross-medium. Well, all of these are my domain names, and works in progress/revision. The client would get several versions, and know what they want me to do, I just have to be able to do it for them, and add in a little extra to show my worth to them. These are all portfolio sites of my own, and I'm slowly revising them, just like any other rough draft, and as you can tell I'm asking other people to critique it. Aesthetics and web design are relative to the eye of the beholder. It's a statistic. I see things that lots of others like, so when I design, I say tomyself do I like that enough? But it's always in revision for perfection of the piece being worked on, just like apps have revisions, so do logos and artwork. The question is whose opinion matters. Yours? Mine? Others? Personally, I heartily second the recommendation to get professional advice on site design. Your site reminds me of something I would create in the '90s with FrontPage (do people even use that anymore?) as an amateur or hobbyist; not something I would create as a professional attempting to market my services. I'm moving toward the smaller devices, but I'm a desktop guy, and so are a lot of others. And what site doesn't have a frontpage? Now I do not say this in order to be mean, but to provide constructive criticism. Not because I do not like the site; but because I think *other* people will not like the site layout and ultimately my opinion does not matter; it matters what your prospective clients think. That goes back to stats. You might not be the demographic I attract, but others will like it...hopefully That is unless you can afford to turn away business by sticking to your design principles. No, the client is the main opinionator. If they like some of my stuff, and have an idea they need implemented, I just showcae I can do it. Several top level links did not work and that is a bad sign for a portfolio. At the very least, take a few minutes to setup a blank page I thought there were blank pages, and within the next week or so, there will be more. I'm looking toward other programmers for peer review to refine my main site. so the visitor does not get a 404 error. The background of your logo page should match the color scheme of the rest of the website. Oh, and your logo for your main page is incomprehensible to me. I am not sure if it is a artistic design or some text, but it is too hard to make out. It is hard to say much more since the site is so bare. I will reiterate what others have said regarding background sounds (especially ones that start by default). If you take a look at some famous websites and you will notice that they rarely have sound and for good reason. It's more of a commercial to me. In the end it doesn't show the webcrawlers for SEO my text, and it's a rough draft. It'll eventually be just a banner ad, and there will be a more static design. Another thing to note is wasted space. Network bandwidth is a commodity. You pay for it and your visitor pays for it. You pay for it in terms of hosting or internet service while the visitor pays for it in internet service and possibly even in their data cap. I cannot imagine loading your website from a phone (nor would I ever try to). You want to be as efficient as possible. Have you ever taken a look at Google's home page source? Now they are an extreme example of keeping a site lean, but maybe that will give you an idea of how important it is. An overly giant GIF and sound files are poor choices. It should be easy to compress the GIF to a *much* smaller file size while keeping the animation. You can probably use a midi file for the same effect with regards to sounds I'm working on the reduction right now, and that's the reason for asking for reviews. . I hope that helps, Don't worry, it does. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: OT Questions
On Wed, Oct 17, 2012 at 7:12 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Wed, 17 Oct 2012 18:05:12 -0400, Dwight Hutto wrote: On Wed, Oct 17, 2012 at 5:31 AM, Chris Angelico ros...@gmail.com wrote: On Wed, Oct 17, 2012 at 5:27 PM, Dwight Hutto dwightdhu...@gmail.com wrote: On Wed, Oct 17, 2012 at 2:06 AM, Demian Brecht demianbre...@gmail.com wrote: I can't ascertain what your strengths are as I don't work with you on a daily basis (one of the many benefits of working with people smarter than you ;)). Doubt that, unless they have 160+ I.Q.'s(been seeing psychiatrists since I was 13). I'm very secure in my childlike intellectualism. A high IQ just proves ability to score well on IQ tests. On the whole, your statement strikes me as reminiscent of Sheldon Cooper's insistence that I'm not crazy, my mother had me tested!. Someone insulted my intelligence, and stated how they worked with much smarter people... Much smarter people than *himself*, not smarter than you. Demian made no comment about *your* intelligence. this was just a confidence statement that I'm intelligent as well, so don't get uppity with me. Please tone down the aggression. It's email, things get misinterpreted sometimes. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Aggressive language on python-list
Instead of diabetic, try inserting the word black or female. There's no shame in those either, yet I think that the offensiveness of either of those words used in that context should be obvious. To take it a little further, what if I said I got gypped. I think it goes to gypsy's. Was it racist? Reneged has always been renegotiable, yet one time I accidently said to a good black friend of mine that something was nig rigged, and thought it meant negotiably rigged, but it wasn't racist. Recently, I told a guy to ramit, because his name or pseudo name, I thought, was ramit, and got called a racist for it. It seems that we get too politically correct when we want to cherry pick a comment for propaganda against someone. Sometimes it's just ridiculous. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Aggressive language on python-list
On Wed, Oct 17, 2012 at 9:02 PM, alex23 wuwe...@gmail.com wrote: On Oct 18, 9:53 am, Dwight Hutto dwightdhu...@gmail.com wrote: To take it a little further, what if I said I got gypped. I think it goes to gypsy's. Was it racist? Ignorant racism is still racism. No it's not, that 's why it's called ignorant...you just didn't know what it meant at the time, and correct yourself afterwards. Historical racism is still racism. No shit Sherlock. It seems that we get too politically correct when we want to cherry pick a comment for propaganda against someone. I think a person who tells others not to be sensitive to his actions towards them shouldn't post so many complaints about how other people are acting toward him. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Deployment tools using Python (was: unittest for system testing)
On Wed, Oct 17, 2012 at 11:30 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: Rita rmorgan...@gmail.com writes: Currently, I use a shell script to test how my system behaves before I deploy an application. For instance, I check if fileA, fileB, and fileC exist and if they do I go and start up my application. The operating system shell, or the deployment framework of choice, is best suited to that I think. This works great BUT I would like to use python and in particular unittest module to test my system and then deploy my app. I understand unittest is for functional testing 10 Well, unittest is for unit testing (testing of small isolated units of the code). There are many definitions of “functional testing”, and I don't think ‘unittest’ is a good choice for any of them. but I think this too would be a case for it. Reserve the term “testing” for testing the code of your application, I'd recommend. Libraries designed for “testing” are not good outside that domain. Any thoughts? The unittests are just a basic framework to build upon. Logging and testing your own functions/classes is something that come in the pre-algorithm of the app you wish to deploy. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Aggressive language on python-list
On Wed, Oct 17, 2012 at 11:47 PM, wu wei wuwe...@gmail.com wrote: On Thu, Oct 18, 2012 at 1:10 PM, Dwight Hutto dwightdhu...@gmail.com wrote: It's intended to be involved, witty, and as informed as I can be You fail on every level here. According to your opinion. No, I'm fine a s a monk until recently, when medical, and faith issues arose, and for your information, I've been laid quite a few times, and won't have a problem doing so again. Yeah, you're full of confidence in yourself, you're not defensive at all. Confidence is a defence against individuals who want to cherry pick, and bring you down with propaganda that lacks anymore than a textbook approach...show some innovation please. I've been out here 6-7 years getting my life together without chasing pussy. When you use terms like chasing pussy, that's probably a good indication of why it's been 7 years since you last had any satisfying interaction with a woman. That was a character flaw i had...doc. I had to rid an addiction to saving women who were in bad situations, and clarify my mind as to who I want as a prime mate. Not self righteous, again wrong. I've been the bad guy, and now I have to watch out for them, which seems self righteous, but it's merely the fact that I have to have a good public persona now. But you _don't_ have a good public persona. You come across as someone desperately trying to convince people that you're smarter and better than you are. Again, just your opinion of a few threads. When insulted, you either insult back, or ascert your intelligence. I took the higher ground. Go get to know a real few arrogant individuals, with superiority complexes before you comment. I have. I'm speaking from direct experience here, and you demonstrate a lot in common with such people. You lack serious perspective n this subject, so stop trying to say I'm arrogant. If anything, I have an inferiority complex that comes out when I'm downed by someone. Then don't react the way you do, because it doesn't do you any favours. It's been that way in my socioeconomic upbringing I'm trying to overcome, so you're preaching to the choir. Oh boo hoo, you've had pain in your life, you're surely the only person on the planet. I give myself the same fucking thought everytime I have to feel symptoms which I',m trying to afford the cost to diagnose , and fix. So cry me a fucking river, and boohoo about my vulgar language. Doubt it. After 6-7 years of leaving sluts, and whores alone, I've realized I need to be secure emotionally, physically, financially, and spiritually. You don't see the hypocrisy in claiming you're after _spiritual_ and _emotional_ security and calling women sluts and whores? You should have met them. They may have become more, but that's who I was trying to save from other bad relationships. Use the little psychology you understand, and you'll see I was trying to save my mother. You're going to die alone with that attitude. Go insult a troll, because I like to fish off the top of the bridge. Things like this really aren't as witty as you think. Your ego couldn't take the insult, could it? Well above trash such as yourself who like to bring people down for fun due to their own superiority complexes. No, I just like highlighting the huge discrepancies between what people think say they are and how they behave, especially when that person is a hugely disruptive asshole who thinks the incomprehensible crap they write assists people in learning Python. Provide some references please, instead of a blanketed insult. You're in serious need of self-reflection at a level I'm not convinced you're capable of. You should hear some thought projection I have about my own past behaviour then. Maybe you should start another crybaby thread on the You mean a request for social critique that improves myself, then I'll throw a temper tantrum. Maybe you wanna come watch, or maybe you have the balls to participate(but that would be just my old behaviour). Python list to find out whether everyone else agrees. Or hell, you're the CEO of your company, I'm sure you have dozens if not hundreds of employees you can lean on for moral support, right? Just started, so I'm a startup, and you just insulted the majority of the list with good dreams of being a productive citizen of society. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Deployment tools using Python (was: unittest for system testing)
On Wed, Oct 17, 2012 at 11:59 PM, alex23 wuwe...@gmail.com wrote: On Oct 18, 1:39 pm, Dwight Hutto dwightdhu...@gmail.com wrote: Logging and testing your own functions/classes is something that come in the pre-algorithm of the app you wish to deploy. What is a pre-algorithm? -- http://mail.python.org/mailman/listinfo/python-list Pseudo code that shows what the actual algorithm will have. Like a rough draft algorithm. Tossing the idea around in your mind is what I meant. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Aggressive language on python-list
On Wed, Oct 17, 2012 at 11:50 PM, wu wei wuwe...@gmail.com wrote: Did you really forward a private email to a public mailing list without permission? Are you really that fucking ignorant of the law? This is a public discussion. Maybe you just need to stand behind a loophole in the law, but the first amendment overrides that. Plus, that is the standard. We discuss this as a community. You never stated you wanted it private, ad if you had, it would have remained that way. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Aggressive language on python-list
On Thu, Oct 18, 2012 at 12:06 AM, alex23 wuwe...@gmail.com wrote: On Oct 18, 2:02 pm, Dwight Hutto dwightdhu...@gmail.com wrote: [a public response to a private email] I really don't appreciate you pushing public a *private email exchange*, especially when it has nothing whatsoever to do with this list. Usually, etiquette dictates, that we hit reply all. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Aggressive language on python-list
On Thu, Oct 18, 2012 at 12:11 AM, alex23 wuwe...@gmail.com wrote: On Oct 18, 2:05 pm, Dwight Hutto dwightdhu...@gmail.com wrote: This is a public discussion. Maybe you just need to stand behind a loophole in the law, but the first amendment overrides that. I'm not in America, so your constitution means nothing to me. But you apparently want freedom of speech. Plus, that is the standard. We discuss this as a community. You never stated you wanted it private, ad if you had, it would have remained that way. I *sent you a private response* because it wasn't relevant to the list. You chose to re-include the list, No, lots of people hit 'reply' instead of 'reply all'. Read around, it gets stated all the time. The main response is don't reply privately, keep it on list, unless otherwise stated. which is an active decision you had to make. Based on certain list's rules. Hit 'reply all' That is not acceptable behaviour, nor is it the standard. That's debatable, unless you implied that was your intention. As I've mentioned before...people can start arguing, and one replies off list, and then goes back on the list after a private e-mail, and says ahah, see how they're acting, and they never saw the private reply you sent. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Aggressive language on python-list
On Thu, Oct 18, 2012 at 12:23 AM, Chris Angelico ros...@gmail.com wrote: On Thu, Oct 18, 2012 at 3:05 PM, Dwight Hutto dwightdhu...@gmail.com wrote: On Wed, Oct 17, 2012 at 11:50 PM, wu wei wuwe...@gmail.com wrote: Did you really forward a private email to a public mailing list without permission? Are you really that fucking ignorant of the law? This is a public discussion. Maybe you just need to stand behind a loophole in the law, but the first amendment overrides that. Common misconception. The First Amendment to the United States Constitution prohibits the *making of any law* that restricts certain freedoms. It does not have ANYTHING to do with I have first amendment rights to say whatever I like. Your constitutional opinion, but not everyone's. And I quote: Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or --abridging the freedom of speech, or of the press--; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances. It is restrictions on Congress and the state governments in the US of A. Even if python-list were purely US-based, it still wouldn't apply. Deliberately forwarding a private email without permission is a breach of courtesy, more than of the law. How many emails end in hit 'reply all'? It may be possible to make a civil case of the breach of privacy in some jurisdictions, but mainly it's just a gross discourtesy. It wasn't stated that that was their intent. I though it was the regular hit 'reply', instead of hit 'reply all' (Assuming, that is, that the email wasn't actually intended to be public. I've at times responded on-list to a private email, but with a tag at the top explaining that.) That I failed to do. To say please hit 'reply all' -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Aggressive language on python-list
On Thu, Oct 18, 2012 at 12:28 AM, Chris Angelico ros...@gmail.com wrote: On Thu, Oct 18, 2012 at 3:21 PM, Dwight Hutto dwightdhu...@gmail.com wrote: On Thu, Oct 18, 2012 at 12:06 AM, alex23 wuwe...@gmail.com wrote: On Oct 18, 2:02 pm, Dwight Hutto dwightdhu...@gmail.com wrote: [a public response to a private email] I really don't appreciate you pushing public a *private email exchange*, especially when it has nothing whatsoever to do with this list. Usually, etiquette dictates, that we hit reply all. That's not actually true either. The convention is to reply to the list with material that is edifying to the list, or to the author alone if the situation calls for it. Using reply-all sends the author a copy as well as putting it on-list, which is unnecessary (unless it's likely the author isn't subscribed). It's completely unnecessary to include the list in what's not of interest. And here I am, posting on-list something that's completely necessary. (sigh* Alex, Dwight, can you two please cool down a bit? A little calmness would improve this discussion significantly, methinks. Sometimes an e-mail doesn't convey tone, or pitch of voice. If it were face to face, instead of text, things would be much different. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Aggressive language on python-list
On Thu, Oct 18, 2012 at 12:24 AM, alex23 wuwe...@gmail.com wrote: On Oct 18, 2:21 pm, Dwight Hutto dwightdhu...@gmail.com wrote: Usually, etiquette dictates, that we hit reply all. Then why did you actively re-add the list as a recipient when I had removed it? How was I supposed to know you removed it. Usually it's an accident to hit just 'reply'. Check around, and ask. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Aggressive language on python-list
On Thu, Oct 18, 2012 at 12:31 AM, alex23 wuwe...@gmail.com wrote: On Oct 18, 2:26 pm, Dwight Hutto dwightdhu...@gmail.com wrote: But you apparently want freedom of speech. I can't even begin to address this idiocy. Then don't(your idiocy acknowledges your own misunderstanding), because you don't want the freedom to speak publicly, so don't reply, or send messages anymore, because your stance is weak, and your word meaningless if you don't like that particular amendment. As I've mentioned before...people can start arguing, and one replies off list, and then goes back on the list after a private e-mail, and says ahah, see how they're acting, and they never saw the private reply you sent. And yet that's *exactly* what *you* have just done. No, I included everything that was said, no editing. So stop the bullshit PR attack, you're not good at it. Should I forward to this list all of the offensive private posts that you've sent me? Of course not, because you sent them to me privately Unaware, and of course send them, and make sure they're not falsified data, because I have google copies of what I've sent.. and they're *not relevant to this list*. That's why they have an OT term.It's just conversation other than the mundane How do you print a digit? -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Python on Windows
On Tue, Oct 16, 2012 at 7:35 AM, Marco Nawijn naw...@gmail.com wrote: On Tuesday, October 16, 2012 1:29:23 PM UTC+2, graham wrote: Downloaded and installed Python 2.7.3 for windows (an XP machine). Entered the Python interactive interpreter/command line and typed the following: import feedparser and I get the error message No module named feedparser. Did you install it into the site-packages directory? Or did you cd to the directory it's in, and launch, or place it into the directory you're trying to launch it from? -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: [on topic] Re: readline trick needed
On Tue, Oct 16, 2012 at 7:27 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Tue, 16 Oct 2012 10:30:01 +0200, Peter Otten wrote: Steven D'Aprano wrote: I'm working with the readline module, and I'm trying to set a key combination to process the current command line by calling a known function, *and* enter the command line. Something along the lines of: * execute function spam() in some context where it can access the current command line as a string * enter the command line I'm working on the dictionary now,but I came up with this, which uses a list as the key, and accepts the params to perform the function: import subprocess as sub key_list = ['print_something','espeak'] def print_something(params): print %s % (params) def espeak(params): sub.call(['espeak','%s' % (params)]) key = raw_input(Please enter key: ) for line in key_list: if str(line) == key: params = raw_input(Enter Params: ) eval(%s('%s') % (key,params)) I keep getting the function performed in the dict. I'll figure it out eventually, I know I've done it before, and it might be a lambda solution...not sure. But the above could be refined more, it just uses a list, and key/params. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: [off topic], was Re: [on topic] Re: readline trick needed
On Tue, Oct 16, 2012 at 10:36 AM, Peter Otten __pete...@web.de wrote: Dwight Hutto wrote: I knew I'd eventually regret putting on topic into the subject... I didn't write that. If you're referring to OT, it means Off Topic, and a response would be appreciated. And you can call me David, I go by my middle name. Well done, Dwight. -- http://mail.python.org/mailman/listinfo/python-list -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: OT Questions
I'm not sure whether or not this is a troll, but I'll bite. No, not a troll, I've been around these lists for a while, and a few wild arguments stemming from both my ego, and some other programmer's arrogance. If you're going to ask for people's opinions on your work, I would try to keep the negativity in a list to zero. If a flame on you pops up, you sometimes fight fire with fire. There are a lot of things that get mixed up. Like maybe a personal reply instead of reply all, that everyone else missed, or didn't see another thread in which the argument started. I'm relatively new to this list and the tirades that you've gone on have been childish at best. You haven't been on lists long enough then to have seen some real flame warts...no offense. Doing that and then turning around and asking for useful feedback (if you're genuinely looking for it) is not going to yield much. It does from those who I trust as not going to go into rants, such as I have, but mine are usually in response, and yes they do get nasty at times. Now that that's over.. I couldn't get to your oDesk profile, got an empty page. That *could* be caused by the dead zones that I'm hitting atm, but I gave up after a few tries. It's there, and it's a starter portfolio for other freelance sites looking for work. I then went to your website and here's what I can see from a glance. This isn't meant to be harsh or slag you personally, but learn what you're doing before you attempt to create a company to help others. If you *do* know what you're doing, use your site to showcase that. Nobody will hire someone with a business site like your current site: It's in a design phase, and I'm asking the local experts to critique it, and even be harsh. * You have a bloated, 50+MB gif serving your page contents. That's just bad for obvious reasons It was meant as more of a commercial to show a little more umph in my site presentation, and I'm working on reducing the size through several different means. . * There's no DOCTYPE declaration in your HTML. * You have divs mixed in pre-body * You don't have a head container Working on it buddy. * You have embedded music. Not only is this a bad design choice from a UX perspective, but it's also causing the client to load more I know this, and I'm trying to reduce it, but show something that's appealing. . * You have *no* SEO Not yet, and the graphic has no text for the web crawlers to parse, which I'm aware of, as well as no meta tags * You have commented out HTML This is the design phase, and that will be removed. * You don't have any design sense (not a personal attack, I don't have any either). I kind of like my designs, and they're being refined through these conversations. My suggestions: * Take courses (free or paid) on web development. Udacity has a few good ones. I like w3schools.com, and I know that it's a rough draft, and so should my critics. * Apply your learnings to your site. Showcase what you can do and what you know and what you can do. * Look for a designer partner, someone who can make your work visually appealing. The visuals are the first impression (after initial load times). I like to work alone, and his is an attempt to get others in the OS community to comment. Now having said all of that, if this is a troll, I feel rather foolish. Only trolling for fish under the bridge...clients -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: OT Questions
On Tue, Oct 16, 2012 at 11:13 AM, Jean-Michel Pichavant jeanmic...@sequans.com wrote: - Original Message - [snip a link to a 1980's personal gif based homepage] Now having said all of that, if this is a troll, I feel rather foolish. Search deep inside your heart, and you'll realize you already know the answer to that question :o) No I'm not a troll. I like to answer, as well as ask, and sometimes things get heated, and you get called a name, and the name takes the argument out of context sometimes. You can't like everybody, and sometimes egos get in the way. Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: OT Questions
On Tue, Oct 16, 2012 at 11:53 AM, rusi rustompm...@gmail.com wrote: On Oct 16, 7:55 pm, Demian Brecht demianbre...@gmail.com wrote: I'm not sure whether or not this is a troll, but I'll bite. Do trolls exist any more than pixies, elves, gnomes, unicorns? Trolling posts of course do... IOW: There's a small light somewhere deep down that says maybe this is just someone quite misdirected. I've spet a lot of time alone working on things I like, and just wanted to have some good critics come in without the bs that can go on, and sometimes I sling a little mud at awhat seems to be a personal attack. means giving the benefit of doubt and seems to me to be good policy (withing reasonable limits) -- http://mail.python.org/mailman/listinfo/python-list -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: OT Questions
On Tue, Oct 16, 2012 at 1:23 PM, Ian Kelly ian.g.ke...@gmail.com wrote: On Tue, Oct 16, 2012 at 9:21 AM, Demian Brecht demianbre...@gmail.com wrote: There's a small light somewhere deep down that says maybe this is just someone quite misdirected. A brief search shows that he has multiple domains, all with the same type of design. I would be hard pressed to think that someone would go to that extent just to troll a list. Meh, maybe it's my good nature :P My theory for a while now has been that Mr. Hutto is probably an enterprising teenager. Nope 33, with a bad history, and trying to reinvent myself. And my nature is always shop talk, and messing around with the guys, and it's never mean. I'm a self educated individual, and I like to joke some, which doesn't get conveyed when you're in an email/text conversation, and you can't hear the tone or pitch of my voice joking with you. That can lead to a misinterpretation of what's said. His desire to build a web development company is sincere and should be encouraged, but his lack of experience You have no clue about my other skill sets, and what I do, so get to know me, and you'll see experience s that will blow your mind. This comes from a former crip/tru soldier getting his life straight instead of the other options I have available. is readily apparent, as is his rather crude behavior on list. I'm working on toning down the smack talk, I'm just used to a little witty back and forth with some seriously cruel individuals. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: OT Questions
On Tue, Oct 16, 2012 at 1:47 PM, Walter Hurry walterhu...@lavabit.com wrote: On Tue, 16 Oct 2012 11:23:09 -0600, Ian Kelly wrote: My theory for a while now has been that Mr. Hutto is probably an enterprising teenager My theory for a while now has been that Mr. Hutto belongs in the bozo bin. Maybe you're a little too serious. From what I've seen, a little clowning around makes days easier, and it's supposed to be good natured discussion that just gets misconveyed in an email with no personal contact. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: overriding equals operation
On Tue, Oct 16, 2012 at 9:51 AM, Pradipto Banerjee pradipto.baner...@adainvestments.com wrote: I am trying to define class, where if I use a statement a = b, then instead of a pointing to the same instance as b, it should point to a copy of b, but I can't get it right. Currently, I have the following: class myclass(object): def __init__(self, w3kschoolsname='') self.name = name def copy(self): newvar = myclass(self.name) return newvar def __eq__(self, other): if instance(other, myclass): return self == other.copy() return NotImplemented Now if I try: a=myclass() a.name = 'test' b=a b.name 'test' b.name = 'test2' a.name 'test2' I wanted b=a to make a new copy of a, but then when I assigned b.name = 'test2', even a.name became 'test2'. How can I rectify my code to make the __eq__() behave like copy()? Thanks If I'm understanding correctly(quick look at it), then write a new py file and __import__ it if I'm remember correctly. Use a secondary file to rewrite the existing nature of the python code file, then import it, and utilize the remade secondary py file for your usage.. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: list comprehension question
On Tue, Oct 16, 2012 at 10:13 PM, Dwight Hutto dwightdhu...@gmail.com wrote: On Tue, Oct 16, 2012 at 9:54 PM, Kevin Anthony kevin.s.anth...@gmail.com wrote: I've been teaching myself list comprehension, and i've run across something i'm not able to convert. here's the original code for matrix multiplcation retmatrix = Matrix(self.__row,other.__col) for m in range(0,retmatrix.__row): for n in range(0,retmatrix.__col): product = 0 for p in range(1,self.__col+1): product += (self.__matrix[m][p] * other.__matrix[p][n]) retmatrix.__matrix[m][n] = product Here is what i have so far: retmatrix.__matrix = [[ product = product + (self.__matrix[m][p]* other.__matrix[p][n]) if product else self.__matrix[m][p]* other.__matrix[p][n]) for p in range(0,self.col) for n in range(0,self.col)] for m in range(0,self.__row)] But i know that isn't correct, can someone nudge my in the right direction? -- Thanks Kevin Anthony www.NoSideRacing.com Do you use Banshee? Download the Community Extensions: http://banshee.fm/download/extensions/ -- http://mail.python.org/mailman/listinfo/python-list I did this a little while back for something else, but memories get jumbled up in these molecules of data I have floating around in my mind, but maybe this will put you on the right track. -- I know this doesn't answer the python question, but it will help you algorithm out what you need to know. I do lots of interdisciplinary research, so if this doesn't help, let me know, and I'll take a refresher, and work up some code. Also, look at numpy. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: list comprehension question
On Tue, Oct 16, 2012 at 10:13 PM, Dave Angel d...@davea.name wrote: On 10/16/2012 09:54 PM, Kevin Anthony wrote: I've been teaching myself list comprehension, and i've run across something i'm not able to convert. here's the original code for matrix multiplcation retmatrix = Matrix(self.__row,other.__col) for m in range(0,retmatrix.__row): for n in range(0,retmatrix.__col): product = 0 for p in range(1,self.__col+1): product += (self.__matrix[m][p] * other.__matrix[p][n]) retmatrix.__matrix[m][n] = product Here is what i have so far: retmatrix.__matrix = [[ product = product + (self.__matrix[m][p]* other.__matrix[p][n]) if product else self.__matrix[m][p]* other.__matrix[p][n]) for p in range(0,self.col) for n in range(0,self.col)] for m in range(0,self.__row)] But i know that isn't correct, can someone nudge my in the right direction? The biggest thing to learn about list comprehensions is when not to use them. I can't imagine how your latter version (even if correct) is clearer than the first. I think he might be using the wrong function for a matrix multiplication, not that it's not workable, but there are other libraries like numpy that could help out. I wouldn't use list comprehension for this, unless it might be several lists that interact. -- DaveA -- http://mail.python.org/mailman/listinfo/python-list -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Aggressive language on python-list
On Tue, Oct 16, 2012 at 10:45 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Tue, 16 Oct 2012 14:10:17 -0700, rurpy wrote: On 10/16/2012 10:49 AM, Steven D'Aprano wrote: On Tue, 16 Oct 2012 09:27:48 -0700, rurpy wrote about trolls and dicks: No, I wrote about trolls. dicks is a highly emotive and almost totally subjective word As opposed to troll, which is unemotional and objective? Not. that I would not use in a rational discussion. I would. If someone is acting like a dick, why not call them by the word that most accurately describes their behaviour? I see nothing troll like in Dwight call me David, but I can't be bothered changing my signature Hutto's behaviour. He doesn't seem to be trolling, in either sense: he doesn't appear to be making provocative statements for the purpose of making people think, nor does he seem to be making inflammatory statements to get a rise out of people. He seems to genuinely want to help people, in a clumsy, aggressive, and I believe often intoxicated way. So it seems to me that you are wrongly applying the term troll as a meaningless pejorative to anyone who behaves badly. Perhaps you were trying to be amusing? Certainly not. The best advise is to ignore such posts and encourage others to do the same. [...] How should somebody distinguish between I am being shunned for acting like a dick, and I have not received any responses because nobody has anything to add? Because you sent them private email telling them that? My, what a ... unique ... concept of ignore such posts you have. So far, this has been the best advice you have given so far. My opinion is that there is a graduated response to dickish behaviour: * send a message telling the person they are acting unacceptably, preferably privately on a first offence to avoid public shaming (when possible -- lots of people aren't privately contactable for many reasons other than that they are trolls); * if the behaviour continues, make a public comment condemning that behaviour generally without engaging directly in a debate or tit-for-tat argument with the person. And for those who value their own peace and quiet over the community benefit: * block or killfile posts from that person so they don't have to be seen, preferably publicly. When I killfile someone, I tend to make it expire after a month or three, just in case they mend their ways. Call me Mr Softy if you like. [...] If I believe that your behaviour (giving lousy advice) is causing great harm to this community, and *I don't say anything*, how will you know to change your behaviour? If that was how you thought, then you would be someone I hope would follow my advice. Because you would clearly seem to be unable to distinguish between difference of opinion on a subject relevant to the newsgroup, and inflammatory trolling. Further you see the situation in extreme terms (*great harm*) and one in which only a single point of view (your's) is acceptable. As opposed to only your opinion being acceptable? Why on earth should I follow your advice if I think it is bad advice? We can't both be right[1]. We can't simultaneously confront bad behaviour, and ignore bad behaviour. I think your advice is bad, and has the potential to kill this community. You think my advice is bad, and has the potential to kill this community. Except that you've made a 180- degree turn from your advice to ignore bad behaviour, but apparently didn't notice that *sending private emails* is not by any definition ignoring. So apparently you don't actually agree with your own advice. You would be bordering on delusional by thinking your post would somehow change my behavior. It's not necessarily about changing your behaviour. (Well, in this case, it's less about you than about Dwight Hutto specifically and badly- behaved posters in general.) It's about sending a message that the behaviour is unacceptable. The primary purpose of that message is to discourage *others* from following in the same behaviour. Nothing will kill a forum faster than trolls and dicks feeding off each other, until there is nothing left but trolls and dicks. A single troll doesn't do much harm -- few of them have the energy to spam a news group for long periods, drowning out useful posts. But even if you had a more rational response *raises eyebrow* and saved that reaction for actual trolling and not someone who simply disagreed with you, I ask again, what makes you think your response will change that troll's behavior, when in actuality, your kind of response is exactly what most trolls hope to elicit? Did it help in the case I mentioned? As I said, I do not believe that Dwight Hutto is a troll. I believe he is merely badly behaved. And yes, I do believe that confronting him has changed his behaviour, at least for now. Not immediately, of course. His immediate
Re: list comprehension question
On Wed, Oct 17, 2012 at 12:43 AM, Kevin Anthony kevin.s.anth...@gmail.com wrote: Is it not true that list comprehension is much faster the the for loops? If it is not the correct way of doing this, i appoligize. Like i said, I'm learing list comprehension. I thought it was matrix multiplication mixed with list comprehension. Check this out real quick from the docs for list comprehension, but if it's a mixture of matrix multi, and list comp, then reply back. http://docs.python.org/tutorial/datastructures.html#list-comprehensions -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: OT Questions
On Wed, Oct 17, 2012 at 1:25 AM, Demian Brecht demianbre...@gmail.com wrote: You haven't been on lists long enough then to have seen some real flame warts...no offense. No offense taken, it's why I said it in the first place ;) Having said that, generally engaging in flame wars solves nothing and sheds a negative light on the individuals who take part in it. It's in a design phase, and I'm asking the local experts to critique it, and even be harsh. You're not a designer. There's nothing at all wrong with that (I'm not either for the record). Most aren't good at both left *and* right-brained functions. My sincere suggestion is pick which aspect of development piques your interest the most and follow that. Delegate the other aspects to others who are good at what they do. Remember.. You're asking for feedback here :) It was meant as more of a commercial to show a little more umph in my site presentation, and I'm working on reducing the size through several different means. It's a bad way of advertising your business. In this day and age, there will likely be less people looking for potential contractors on desktop systems than on mobile devices. As such, you want to make sure that your site has very little in the way of heavy graphics (unless there's a version that the user gets redirected to that's mobile-friendly). Take advantage of client-side rendering where possible. I know this, and I'm trying to reduce it, but show something that's appealing. My point was that it shouldn't be there *at all*. Automatically playing music is widely thought of as being annoying and does absolutely nothing at all for your business. You're not selling games, you're not selling DJ services. I can guarantee that you will turn away more prospective business by having the music there in the first place than not having any at all. I kind of like my designs, and they're being refined through these conversations. I like my designs too. However, I realized *long* ago that I'm not good at them. I even grew to dislike even doing design work because of how much extra time and effort it took to develop something decent rather than just concentrating on what I was good at. My designs wouldn't hold up compared to other professional entities and unless there are remarkable improvements, yours won't either. I like w3schools.com, and I know that it's a rough draft, and so should my critics. w3schools is generally thought of as being a bad resource. Take a read through http://w3fools.com (there are many other resources, that was just the first one that popped up on Google search). Udacity has a high powered academic faculty. Coursera is another great resource. Both have content that you'll never get from resources like w3schools. Open higher learning is where it's at. I like to work alone, and his is an attempt to get others in the OS community to comment. Working alone is almost always the worst thing that you can do if you're new (or newer) to development, design, user experience or any combination thereof. Surrounding yourself with people smarter than you is the best way to learn and grow. Sure, you can attempt to get some of that over mailing lists and the like, but nothing will *ever* beat in-person environments. This is my prototype portfolio for freelancing. If you have an honest critique, then what, in your opinion, am I good at? https://www.odesk.com/users/~01710ac049863018eb -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: LinkedIn Python group discussions
On Sun, Oct 14, 2012 at 7:42 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: I've been sparked into raising the subject as this has just come up Does Jython/Python fall short of true POSIX thread parallelism?. I'm not qualified to comment and I recognise relatively few names amongst the people who do participate over there. I subscribe to many lists, but you're not going to find people interested in certain aspects of programming. The last thing I'd want would be FUD or worse still complete crap being written in response to any thread and me not being in a position to reply. If you're on the right mailing list, and you can use google for a little research, then it's very unlikely you'll get bs'd Is this something for the Python community here to be thinking about? Not really. These are specific things being questioned that might have something to do with python, but are mainly specific to certain areas of computing that involve python, but need to be solved by others in other areas of computing/utilization of python. Sometimes it's their problem, but sometimes it's pythons, which does need to be analyzed and corrected for specific systems/OS's. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: OT Questions
On Tue, Oct 16, 2012 at 12:05 AM, Dwight Hutto dwightdhu...@gmail.com wrote: Like a lot of people here, I'm trying to build a web development business. I'm starting off by building a profile on a freelance site. I would like some honest opinions(don't be too harsh, or you can be, that's what it's about), about my approach. I'm looking for a team effort to analyze my marketability. This is just my prototype freelance portfolio: https://www.odesk.com/users/~01710ac049863018eb -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Which book is the best?
On Tue, Oct 16, 2012 at 12:27 AM, 老爷 yujian4newsgr...@gmail.com wrote: I have strong c++ development experience. But now I want to study the python to do some windows setting task, such as editing file, changing the system setting, doing some network processing. Please help me which book is the best? Definitely command line apps/command line usage. I could recommend google searches, but use the calls to the OS, and you can accomplish a good bit of things. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Aggressive language on python-list
I'm not a know it all, but when attacked personally I defend myself, and those can turn into flame wars. Your plonks are irrelevant in terms of an argument ytou shouldn't participate in. These things can get nasty quick. So if you have virgin eyes, then kill file it, but I like to think Ioffer logical reasoning to those who respect a good programming conversation. If you want it, bring it, but it's mainly just regular computer science discussion. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: I am just trying to find out if there is any relevant/current research in the production of a generic quality assurance tool for my PhD.
On Sun, Oct 7, 2012 at 1:55 AM, Dwight Hutto dwightdhu...@gmail.com wrote: On Sun, Oct 7, 2012 at 1:02 AM, rusi rustompm...@gmail.com wrote: On Oct 7, 9:15 am, Ramchandra Apte maniandra...@gmail.com wrote: On Sunday, 7 October 2012 00:13:58 UTC+5:30, Darryl Owens wrote: I am currently starting my PhD in software quality assurance and have been doing a lot of reading round this subject. I am just trying to find out if there is any relevant/current research in the production of a generic quality assurance tool i.e. a tool/methodology that can accept many languages for the following areas: •Problems in code/coding errors •Compiler bugs •Language bugs •Users mathematical model You could also utilize other unittests from other languages, and roll that into wrappers that checked for specific languages utilization, and it's probable errors, by initiating the unittest functions with a python call specific to the language being utilized. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: I am just trying to find out if there is any relevant/current research in the production of a generic quality assurance tool for my PhD.
On Sun, Oct 7, 2012 at 2:03 AM, Dwight Hutto dwightdhu...@gmail.com wrote: On Sun, Oct 7, 2012 at 1:55 AM, Dwight Hutto dwightdhu...@gmail.com wrote: On Sun, Oct 7, 2012 at 1:02 AM, rusi rustompm...@gmail.com wrote: On Oct 7, 9:15 am, Ramchandra Apte maniandra...@gmail.com wrote: On Sunday, 7 October 2012 00:13:58 UTC+5:30, Darryl Owens wrote: I am currently starting my PhD in software quality assurance and have been doing a lot of reading round this subject. I am just trying to find out if there is any relevant/current research in the production of a generic quality assurance tool i.e. a tool/methodology that can accept many languages for the following areas: •Problems in code/coding errors •Compiler bugs •Language bugs •Users mathematical model Maybe easier through checking particular error logs. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: I am just trying to find out if there is any relevant/current research in the production of a generic quality assurance tool for my PhD.
On Sun, Oct 7, 2012 at 2:16 AM, Dwight Hutto dwightdhu...@gmail.com wrote: On Sun, Oct 7, 2012 at 2:03 AM, Dwight Hutto dwightdhu...@gmail.com wrote: On Sun, Oct 7, 2012 at 1:55 AM, Dwight Hutto dwightdhu...@gmail.com wrote: On Sun, Oct 7, 2012 at 1:02 AM, rusi rustompm...@gmail.com wrote: On Oct 7, 9:15 am, Ramchandra Apte maniandra...@gmail.com wrote: On Sunday, 7 October 2012 00:13:58 UTC+5:30, Darryl Owens wrote: I am currently starting my PhD in software quality assurance and have been doing a lot of reading round this subject. I am just trying to find out if there is any relevant/current research in the production of a generic quality assurance tool i.e. a tool/methodology that can accept many languages for the following areas: •Problems in code/coding errors •Compiler bugs •Language bugs •Users mathematical model It is about 2:30 A.M. here, and I'm tossing out thoughts that could go deeper. You're looking for: •Problems in code/coding errors •Compiler bugs •Language bugs •Users mathematical model The below is the base algorithm I see for every language: There are problems, and ways to test in every language. Some have more advanced tests based on their usage, and those who use them. You have identified the errors needed to be checked for: -Problems in code/coding errors -Compiler bugs -Language bugs -Users mathematical model 1. You have test methods in lots of languages for these, and you need to parse for the file extension, or something in the code that shows it has switched to a new language. I'm assuming classes and functions here 2. It seems like you should have a file/script in each language to check for as much as you can. 3. You could call these scripts via a python command line app, and have an app to display the output, and check for know error calls returned from the command line output(stderr/stdin/,etc), or the browsers output/error logs. 4. You could go to a lower level. 5. You're in python, so pick the best way to wrap and execute the above based on file extensions, and parsing, then run your test on portions of code if the have parameters or error values, or the code as a whole, and deal with each of the problems stated above. This is just to begin to understand your mentality of how you want to implement in python. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: notmm is dead!
On Sun, Oct 7, 2012 at 9:19 PM, alex23 wuwe...@gmail.com wrote: On Oct 6, 12:59 pm, Michael Torrie torr...@gmail.com wrote: I suppose a person can fail a turing test... You did, yes :) What is failed, but a timeline in this scenario, if you found the answer in the end? Failure becomes answer not given in interval required, but did anybody else, and if so...how many? -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: notmm is dead!
On Thu, Oct 4, 2012 at 2:10 PM, Etienne Robillard animelo...@gmail.com wrote: Dear list, Due to lack of energy and resources i'm really sad to announce the removal of notmm from pypi and bitbucket. I deleted also my account from bitbucket as it was not really useful for me. Not 1 response? notmm will continue to be accessible from my master site at http://gthc.org/dist/notmm until the server get down, as I cannot find money to pay for the hosting of notmm.org, neither anyone to encourage the project so it can grow further. Saw a niche, and announced your takeover? I have tried to develop a coherent extension for Django using the open source model but I'm afraid to have been bitten by its failure to encourage a free market over one dictated by profit and the use of cheap tricks to compete unfairly with perhaps too much openness. I always will also continue to love and use free softwares but sadly it seems asking for a little fairness is too much asked to competitors dedicated in stealing and subverting my work for their own advantages... Then bring in an OS project of your own, and know that's what happens. I therefore refuse to continue any longer being mocked by competitors asking excessive prices for having a broken Internet dictated by a few companies and decide the content I should be visiting. Just market penetration, not mocking. Shall you have anything you wish saying I'll be open to discuss further on this list. I wish also to thanks the supporters of the project who have invested time and energy into my business and dedication to the notmm project. It has to have an equal, or equivlilaint value to the current statistically valued features. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: I am just trying to find out if there is any relevant/current research in the production of a generic quality assurance tool for my PhD.
On Sun, Oct 7, 2012 at 1:02 AM, rusi rustompm...@gmail.com wrote: On Oct 7, 9:15 am, Ramchandra Apte maniandra...@gmail.com wrote: On Sunday, 7 October 2012 00:13:58 UTC+5:30, Darryl Owens wrote: I am currently starting my PhD in software quality assurance and have been doing a lot of reading round this subject. I am just trying to find out if there is any relevant/current research in the production of a generic quality assurance tool i.e. a tool/methodology that can accept many languages for the following areas: •Problems in code/coding errors •Compiler bugs •Language bugs •Users mathematical model The main tests for python is: http://docs.python.org/library/unittest.html For other languages, and even in python, you can roll your own. I'd begin by algorithming each particular language's calls(based on the statistical probabilities of languages that are utilized, and designed in a hierarchical order of the utilization), language bugs, and mathematical models needed performed, then perform the necessary function calls/series of calls. Pass data, and check the returns. CMD errors in some cases, and checking for error logs from URL calls. I'd suggest the bug repositories for the OS, browser, or app framework the language is launched in(version/build #, etc), or some form of url scraping the data from these in order to correct/check known problems. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Can't import modules
On Sun, Sep 30, 2012 at 10:15 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sun, 30 Sep 2012 18:35:50 -0700, Peter Farrell wrote: Since I use Python 3.2.3 I've had trouble with programs and modules designed for Python 2 and many programs don't work on my 64-bit system. While Python tries very hard to be backward compatible, the transition from the 2.x series to the 3.x series was intentionally allowed to break backward compatibility in certain areas. If VPython only supports 2.x, Naw , that's your job, plus maybe looking through the python code for Vpython, and adding a little from __future__ import * you should ask the vendors to support at least 3.3 or better, preferably the full 3.x series. In the meantime, you may have to stick to the 2.x series. I was hoping it was a common error that newbies encounter. Trying to run Python 2.x code in 3.x? Yes, that's common. Trying to run VPython? Not so much. Good luck! -- Steven -- http://mail.python.org/mailman/listinfo/python-list -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Can't import modules
Plus from What's New From Python 3, which are things you should be able to change comes: http://docs.python.org/release/3.0.1/whatsnew/3.0.html Change the module yourself. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Can't import modules
On Sun, Sep 30, 2012 at 10:48 PM, Dwight Hutto dwightdhu...@gmail.com wrote: Plus from What's New From Python 3, which are things you should be able to change comes: http://docs.python.org/release/3.0.1/whatsnew/3.0.html Change the module yourself. And, of course: http://docs.python.org/library/2to3.html -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Stop feeding the trolls (Was: which a is used?)
On Fri, Sep 28, 2012 at 1:51 AM, rusi rustompm...@gmail.com wrote: On Sep 28, 10:21 am, Dwight Hutto dwightdhu...@gmail.com wrote: On Fri, Sep 28, 2012 at 1:12 AM, Littlefield, Tyler ty...@tysdomain.com wrote: On 9/27/2012 10:50 PM, Dwight Hutto wrote: On Fri, Sep 28, 2012 at 12:40 AM, Chris Angelico ros...@gmail.com wrote: On Fri, Sep 28, 2012 at 1:47 PM, Dwight Hutto dwightdhu...@gmail.com wrote: [ lots of screed that demonstrates that Dwight hasn't grokked the hacker culture ] Don't hack, but could very well if necessary. You couldn't hack your self out of a wet paper bag, and you're fooling noone. Yeah I could. Sorry... buddy. You should go away now; So you can dominate with a lame ass attempt to approach my responses with a manipulative tactic to discredit me, including such hits as racism, and sexism? You asked who is laughing at you the other day, and at that point you had the ability to salvage (or at least attempt to salvage) your reputation with a few people. Nobody, they're laughing at your failed attempt to discredit me in a on thread response in which I was a respondent. Please don't disguise your foolishnish with lies. You've pretty much blown that away at this point, so a belated answer to your question is everyone. You mean I went to sleep, woke up and responded? Nice attempt, but you can set a random seed of mine up your ass. Dwight, have a read of these documents. They may help you to understand how the python-list community operates, and perhaps more so, why most of the regulars here think the way they do. They have double digit I.Q.'s ? Actually, this may be of interest to quite a few people, so I'll post it on-list. Go right aheadbuddy. http://catb.org/~esr/faqs/ ChrisA -- http://mail.python.org/mailman/listinfo/python-list -- Take care, Ty http://tds-solutions.net The aspen project: a barebones light-weight mud engine: http://code.google.com/p/aspenmud He that will not reason is a bigot; he that cannot reason is a fool; he that dares not reason is a slave. Some facts that are well-known enough but somehow seem relevant to this discussion. Technology is called a great enabler -- A little less gushingly its a great multiplier. When we look a little impartially at it we see that as technology increases in scope/power the corresponding human involvement gets more and more passive. But technology should be engaged by many different view points, in order to insure that the output of technology is within the, not only the grasp of outsiders, but the scope of those who wish to debate it's usage in many different areas in order to have stability of the society(societies) that produce the output. Coming to the specific technology-stack -- mailing-lists atop the internet -- we see the following: When I hit the send button Ive no idea who will read what I send. Likewise what I end up reading may not be something I specifically wish to read. That's common on mailing lists, and the discussions they maintain, as well as the usage membership. Specifically, Ive no idea what is the size of the python-list readership -- surely in hundreds, more likely thousands. Then it's part of, but the only side of, your public persona. So when I feel like making a response to one or two people which has more heat than (python-related) light, it would help to consider the thousand(s) who will read it who are not involved/interested in the fracas. Don't be a little bitch, and respond. Instead you're whining about it. A more physical analogy: Lets say I am driving along happily on the freeway and someone does something to me that generates severe justifiable road-rage. So I stop the car, get down and do my schtick -- shout, shoot, mow-him-down, whatever -- and in the process create a jam of a hundred vehicles all around. However justifiable my rage, I would be lucky to get anyone's support! It's called information overload, and temporary insanity...go ask a lawyer list. A more personal point. I find that anger is usually a thin cover for depression. A medical condition which can be cause by many different factors, and all legal. And depression inversely correlates with amount of sunshine I see. This is more seasonal depression, and human biological adjustment to circadian rhythm in nature that appears in several areas. So before hitting the send button, it may be a good idea to sleep over and see if the rising sun changes my mood. It always does, it's biological in nature for this to happen. Coming to threads like this one: We've seen an old member of this list scolded for stretching the drinking jokes a bit too far. Probably me, and you have no idea what I'm not saying when if not drinking I have severe nerve damage...that would probably blow your own little itty bitty mind, so deal with average intelligence on your own. And another old
Re: Article on the future of Python
Summary of that article: Sure, you have all these legitimate concerns, but look, cake! Quote : This piece argues that Python is an easy-to-learn language that where you can be almost immediately productive in. It is, but so is every other language. hello world is the standard... follow the syntax, import/include the appropriate library functions, and create your own to use them. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Stop feeding the trolls
It's past time to stop feeding this troll, please. You mean like the post above you sentbitch please, I'm eatin good right now. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Stop feeding the trolls (Was: which a is used?)
On Wed, Sep 26, 2012 at 8:40 PM, alex23 wuwe...@gmail.com wrote: On Sep 26, 5:06 pm, Dwight Hutto dwightdhu...@gmail.com wrote: You can Plonk my dick bitches. You do understand that when you have so many people react badly to how you phrase things, that the problem most likely lies with you and not them? Depends on the demographic. That the only person who actually reacts favourably to this garbage coming from you is *you*? Yeah...I'm egotistical. There is no place for racist or sexist speech here. \ There never was any from me Reply personally to whomever you want with whatever invective you choose, that's your right (just as it is their right to flag your emails as spam, as I have). Yeah, hit the mute button if you don't like me. That's a brilliant fucking idea...buddy. But this is a place for public discussion and, again, we do not need you driving away people who might actually contribute positively simply because you're unable or unwilling to always do so. Uhm, I do post appropriately, unless you're trolling the board, with a few other avatars, and buddies in order to stomp a flame war someone else started...IMHO. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Stop feeding the trolls (Was: which a is used?)
On Fri, Sep 28, 2012 at 12:40 AM, Chris Angelico ros...@gmail.com wrote: On Fri, Sep 28, 2012 at 1:47 PM, Dwight Hutto dwightdhu...@gmail.com wrote: [ lots of screed that demonstrates that Dwight hasn't grokked the hacker culture ] Don't hack, but could very well if necessary. Dwight, have a read of these documents. They may help you to understand how the python-list community operates, and perhaps more so, why most of the regulars here think the way they do. They have double digit I.Q.'s ? Actually, this may be of interest to quite a few people, so I'll post it on-list. Go right aheadbuddy. http://catb.org/~esr/faqs/ ChrisA -- http://mail.python.org/mailman/listinfo/python-list -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Stop feeding the trolls (Was: which a is used?)
On Fri, Sep 28, 2012 at 1:12 AM, Littlefield, Tyler ty...@tysdomain.com wrote: On 9/27/2012 10:50 PM, Dwight Hutto wrote: On Fri, Sep 28, 2012 at 12:40 AM, Chris Angelico ros...@gmail.com wrote: On Fri, Sep 28, 2012 at 1:47 PM, Dwight Hutto dwightdhu...@gmail.com wrote: [ lots of screed that demonstrates that Dwight hasn't grokked the hacker culture ] Don't hack, but could very well if necessary. You couldn't hack your self out of a wet paper bag, and you're fooling noone. Yeah I could. Sorry... buddy. You should go away now; So you can dominate with a lame ass attempt to approach my responses with a manipulative tactic to discredit me, including such hits as racism, and sexism? You asked who is laughing at you the other day, and at that point you had the ability to salvage (or at least attempt to salvage) your reputation with a few people. Nobody, they're laughing at your failed attempt to discredit me in a on thread response in which I was a respondent. Please don't disguise your foolishnish with lies. You've pretty much blown that away at this point, so a belated answer to your question is everyone. You mean I went to sleep, woke up and responded? Nice attempt, but you can set a random seed of mine up your ass. Dwight, have a read of these documents. They may help you to understand how the python-list community operates, and perhaps more so, why most of the regulars here think the way they do. They have double digit I.Q.'s ? Actually, this may be of interest to quite a few people, so I'll post it on-list. Go right aheadbuddy. http://catb.org/~esr/faqs/ ChrisA -- http://mail.python.org/mailman/listinfo/python-list -- Take care, Ty http://tds-solutions.net The aspen project: a barebones light-weight mud engine: http://code.google.com/p/aspenmud He that will not reason is a bigot; he that cannot reason is a fool; he that dares not reason is a slave. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Stop feeding the trolls (Was: which a is used?)
You can Plonk my dick bitches. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Stop feeding the trolls (Was: which a is used?)
On Wed, Sep 26, 2012 at 3:06 AM, Dwight Hutto dwightdhu...@gmail.com wrote: You can Plonk my dick bitches. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com +5.75 -- http://mail.python.org/mailman/listinfo/python-list
Re: Article on the future of Python
On Wed, Sep 26, 2012 at 3:17 AM, Ethan Furman et...@stoneleaf.us wrote: wxjmfa...@gmail.com wrote: Py 3.3 succeeded to somehow kill unicode and it has been transformed into an American product for American users. Well, we can all use american as a standard, or maybe you'd prefer to borrow my Latin for Idiots handbook. But then again google has a Universal Communicator going, so, does it matter? -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Article on the future of Python
Well, we can all use american as a standard, or maybe you'd prefer to borrow my Latin for Idiots handbook. But then again google has a Universal Communicator going, so, does it matter? Never in the field of human discussion has there been so much reason for so many to plonk so few. Plonk it if you want. Your homosexual ideologies have no effect on me. Butt, back to the discussion, there are quite a few ways to encode, as well as translate code. Plonk it in your mouth, and let the nut hairs tickle your throat. ChrisA -- http://mail.python.org/mailman/listinfo/python-list -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Article on the future of Python
Why do you keep repeating this rubbish when you've already been shot to pieces? I still feel intact, so whatever little shards of pain you intended to emit were lost on my ego. Don't you know when it's time to make sure that you're safely strapped in and reach for and use the release button for the ejector seat. You ain't shot down shit, but your own reputation. Look at the full conversation. Further for somebody who is apparently up in the high tech world, why are you using a gmail account and hence sending garbage in more ways than one to mailing lists like this? Um, using gmail instead of reinventing the wheel is now appropriate to you? -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Article on the future of Python
I tried to make a play on that some days ago and failed dismally. That's the fucking understatement of the year. Thanks for putting me out of my misery :) -- No prob. Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Article on the future of Python
That's the fucking understatement of the year. You remind me of the opening to the song Plaistow Patricia by Ian Dury and the Blockheads. Make a modern day/mainstream reference, and maybe someone will get it. Thanks for putting me out of my misery :) Again, no problem...anytime buddy. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Article on the future of Python
they are written in themselves, using some clever bootstrapping techniques. C is neither the most powerful, the oldest, the best, or the most fundamental language around. Would you recommend Assembly, because C just becomea macros of Assembly, or better yet machine language, which is line for line procedural Assembly for the processor instruction set working in line with the OS.. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Fastest web framework
to Andriy You can use a framework, however, the function from the framework has to be used, and the parameters utilized by the frameworks functions. It would seem that writing your own witin the main page, or using the original function in place from the framework would run a timeit better. I'll look later, but it seems correct in terms of enhancing the frameworks estimated(OS ops)time to completion. Andriy Kornatskyy 5:39 AM (5 minutes ago) to me David, This makes sense... and probably can pretend to be most accurate. Well, in a higher level language, such as Python, you have to remove layers in order to reduce interpreter completion time. So just the usage of a framework makes you utilize a function that has to be imported, accessed and run before the function completes using the parameters. It might be faster if you just used the function itself, or optimized it. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: For Counter Variable
By now I think we're in the DNFTT zone. -- Taking a bite yourself there buddy. Hop under the bridge, and comment...it make you a troll, and you're trying to feed yourself with pile on comment from the rest of the under bridge dwellers. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: keeping information about players around
I have yet another design question. In my mud, zones are basically objects that manage a collection of rooms; For example, a town would be it's own zone. It holds information like maxRooms, the list of rooms as well as some other data like player owners and access flags. The access flags basically is a list holding the uid of a player, as well as a bitarray of permissions on that zone. For example, a player might have the ability to edit a zone, but not create rooms. So I have a couple of questions based on this: First, how viable would it be to keep a sort of player database around with stats and that? Well, what are the main items you need to retain for the player to return to the game? Also, If this is a browser app I'd go with phpmyadmin, and MySQL If a tkinter/wxpython/etc app, then maybe sqlite. It could contain the player's level, as well as other information like their access (player, admin, builder etc), and then when someone does a whois on the player I don't have to load that player up just to get data about them. How would I keep the information updated? When I delete a player, I could just delete the entry from the database by uid. Second, would it be viable to have both the name and the uid stored in the dictionary? Then I could look up by either of those? Why would you use a dictionary, when it's DB manipulation you're after? Also, I have a couple more general-purpose questions relating to the mud. When I load a zone, a list of rooms get stored on the zone, as well as world. I thought it might make sense to store references to objects located somewhere else but also on the world in WeakValueDictionaries to save memory. It prevents them from being kept around (and thus having to be deleted from the world when they lose their life), but also (I hope) will save memory. Is a weakref going to be less expensive than a full reference? For any case, you're going to have a DB field with a value, so it doesn't look like a high value memory cost in the DB. Second, I want to set up scripting so that you can script events for rooms and npcs. For example, I plan to make some type of event system, so that each type of object gets their own events. For example, when a player walks into a room, they could trigger some sort of trap that would poison them. This leads to a question though: I can store scripting on objects or in separate files, but how is that generally associated and executed? Well, the event doesn't need to be stored unless there is a necessity to store the event, but if it's poisoned, then it's just a life penalty, then no need to store the event, just the score loss. Finally, I just want to make sure I'm doing things right. When I store data, I just pickle it all, then load it back up again. My world object has an attribute defined on it called picklevars, which is basically a list of variables to pickle, and my __getstate__ just returns a dictionary of those. All other objects are left as-is for now. Zones, (the entire zone and all it's rooms) get pickled, as well as players and then the world object for persistence. Is this the suggested way of doing things? I'll also pickle the HelpManager object, which will basically contain a list of helpfiles that I might suggest you take a look at the Blender Game Engine(python API) at this point, unless you're just liking doing it the hard way to gain experience(just like I have). Design the DB, and let the scene render what needs to be rendered, or list data for, and those are the necessities to be stored. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: A little morning puzzle
Ergo: 'enumerate(some_list)' is the correct suggestion over manually maintaining your own index, despite it ostensibly being more code due to its implementation. But, therefore, that doesn't mean that the coder can just USE a function, and not be able to design it themselves. So 'correct suggestion' is a moot point. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Anyone able to help on installing packages?
You could just take the python code, and put it in the site packages file. Depends on the package. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: A little morning puzzle
On Mon, Sep 24, 2012 at 5:18 PM, Ethan Furman et...@stoneleaf.us wrote: Ian Kelly wrote: On Sat, Sep 22, 2012 at 9:44 PM, Dwight Hutto dwightdhu...@gmail.com wrote: Why don't you all look at the code(python and C), and tell me how much code it took to write the functions the other's examples made use of to complete the task.n in or register. Just because you can use a function, and make it look easier, doesn't mean the function you used had less code than mine, so if you look at the whole of what you used to make it simpler, mine was on point. I understood the sarcastic comments (the first one, at least) to be referring to your solution as bad not due to complexity (I actually thought it was quite simple), but because it does not solve the problem as stated. The problem posed by the OP was to find a set of common keys that are associated with the same values in each dict. Your solution takes only one predetermined key-value pair and counts how many times it occurs in the dicts, which isn't even close to what They stated: I have a list of dictionaries. They all have the same keys. I want to find the set of keys where all the dictionaries have the same values. Suggestions? No, to me it meant to find similar values in several dicts with the same key, and value. So I created several dicts, and some with the same key and value, and showed the matches. The OP can comment as to whether that is the correct interpretation of the situation. was requested. With your comment of Might be better ones, though, I actually thought that you were aware of this and were being intentionally satirical. I am. I just write out the algorithm as I understand the OP to want it, to give my version of the example. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: For Counter Variable
On Mon, Sep 24, 2012 at 6:09 PM, Ethan Furman et...@stoneleaf.us wrote: jimbo1qaz wrote: On Sunday, September 23, 2012 9:36:19 AM UTC-7, jimbo1qaz wrote: Am I missing something obvious, or do I have to manually put in a counter in the for loops? That's a very basic request, but I couldn't find anything in the documentation. Ya, they should really give a better way, but for now, enumerate works pretty well. ROFLOL!! I look forward to the day when you look back on that statement and think, Wow, I've come a long way! It's a function usage. Not to be too serious, there are usually simpler solutions, and built in functions. But you usually sticks with what works, and seems timely in return of data output -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: keeping information about players around
On Mon, Sep 24, 2012 at 6:19 PM, Chris Angelico ros...@gmail.com wrote: On Tue, Sep 25, 2012 at 7:14 AM, Dwight Hutto dwightdhu...@gmail.com wrote: Also, If this is a browser app I'd go with phpmyadmin, and MySQL If a tkinter/wxpython/etc app, then maybe sqlite. Out of curiosity, why? MySQL isn't magically better for everything where data ends up displayed in a web browser. No, but phpmyadmin is a great GUI for MySQL Unless you're planning to also reference this database from some other language, it's going to make little difference what backend you use; and even if you are using multiple languages, it's usually not difficult to find overlap. Well this is python, but in the browser a little echo, instead of print, isn't that bad for conversational php. And in the end it's usually html, php, css, javascript in the browser, atleast for me it is. I'm just starting to utilize python in that area, so excuse the naivety. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: keeping information about players around
Out of curiosity, why? MySQL isn't magically better for everything where data ends up displayed in a web browser. No, but phpmyadmin is a great GUI for MySQL Meaning, it gives a great web app, that sqlite doesn't have...yet. It's the tools around MySQL for me, that gives it the umph it needs to be a great DB, with the GUI (phpmyadmin)to match, and short reference/learni8ng curve to use php in this instance. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: For Counter Variable
*How* would one implement this better, more simply (for the user, not the implementator) or in a more readable manner? Chose *any* one of those. Well if you're learning then the builtin might be more like how we answer students questions here, than those doing work. Write out the algorithmic function, and if you find one you can stuff a few parameters in fine, but you still now how to do it by yourself algorithmically. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: keeping information about players around
is just a way of generating that. Any language works on the back end... and PHP isn't the best :) Python does quite well at that task; I have a tiny little Python script that uses a web browser as its front ent. This stems from my limited usage of python in the browser(I usually use it for prototype apps). It's usually going to be the difference between echo or print html/javascript, and perform an iteration for table, or formulaic computation within a standard function syntax. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: A little morning puzzle
The posted code produces neither a set nor any keys; it prints out the same predetermined non-key value multiple times. This shows multiple dicts, with the same keys, and shows different values, and some with the same, and that is, in my opinion what the OP asked for: a = {} a['dict'] = 1 b = {} b['dict'] = 2 c = {} c['dict'] = 1 d = {} d['dict'] = 3 e = {} e['dict'] = 1 x = [a,b,c,d,e] count = 0 collection_count = 0 search_variable = 1 for dict_key_search in x: if dict_key_search['dict'] == search_variable: print Match count found: #%i = %i % (count,search_variable) collection_count += 1 count += 1 print collection_count The OP can jump in and tell me to alter the example, if they want to. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: keeping information about players around
On Mon, Sep 24, 2012 at 7:28 PM, alex23 wuwe...@gmail.com wrote: On Sep 25, 8:32 am, Dwight Hutto dwightdhu...@gmail.com wrote: No, but phpmyadmin is a great GUI for MySQL If you're recommending MySQL use on the basis of phpmyadmin, you should also make sure to mention: http://www.phpmyadmin.net/home_page/security/ Great GUI, maybe. Huge security hole, absolutely. Most organisations I've worked for won't allow it anywhere near their servers. What DB are you recommending, check out sqlite's: http://www.cvedetails.com/vulnerability-list/vendor_id-9237/Sqlite.html Maybe just a parsed file with data, and accessing data that you design. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: For Counter Variable
On Sep 25, 8:26 am, Dwight Hutto dwightdhu...@gmail.com wrote: It's a function usage. Not to be too serious, there are usually simpler solutions, and built in functions. `enumerate` _is_ a built-in function. Please provide an example of a simpler solution. It's not the simpler solution I'm referring to, it's the fact that if you're learning, then you should be able to design the built-in, not just use it. You don't always know all the built-ins, so the builtin is simpler, but knowing how to code it yourself is the priority of learning to code in a higher level language, which should be simpler to the user of python. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list
Re: For Counter Variable
Well if you're learning then the builtin might be more like how we answer students questions here, than those doing work. STOP SAYING THIS NONSENSE. Using a pre-defined function is _not_ the student approach. What are talking about, I suggested they roll there own in several responses this week. Rolling your own version of an existing function from scratch is _not_ the professional approach. Yes it is, if you don't know the builtin, and everyone has memory flaws. If you're unable to realise this, then please stop dispensing advice here like you know something. Dude, you know jack shit, so go shovel this bullshit somewhere else, where people aren't intelligent enough to read the rest of my posts -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list