Importing is partially working...

2015-08-10 Thread Dwight GoldWinde
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(humprin

pyjs - a compiler from Python to JavaScript

2015-08-10 Thread Uri Even-Chen
To Python developers, Are you familiar with pyjs ? I saw the website and I see that the latest stable release is from May 2012. Is it possible to use pyjs to compile Python to JavaScript? Which versions of Python are supported? Are versions 2.7 and 3.4 supported? And is it possib

Re: Who uses IDLE -- please answer if you ever do, know, or teach

2015-08-10 Thread tjohnson
On 8/6/2015 7:31 PM, Terry Reedy wrote: On 8/6/2015 11:35 AM, Timothy Johnson wrote: problems because it works well for that. Most of the time I use PyDev and Notepad++ to edit Python code, but if more features were added to Idle I would consider using it more. What 1 or 2 features would you

Re: Who uses IDLE -- please answer if you ever do, know, or teach

2015-08-10 Thread tjohnson
On 8/7/2015 9:10 PM, Terry Reedy wrote: On 8/7/2015 7:29 AM, tjohnson wrote: On 8/6/2015 7:31 PM, Terry Reedy wrote: On 8/6/2015 11:35 AM, Timothy Johnson wrote: problems because it works well for that. Most of the time I use PyDev and Notepad++ to edit Python code, but if more features were

Re: Linux users: please run gui tests

2015-08-10 Thread 20/20 Lab
On 08/06/2015 07:07 PM, Terry Reedy wrote: Python has an extensive test suite run after each 'batch' of commits on a variety of buildbots. However, the Linux buildbots all (AFAIK) run 'headless', with gui's disabled. Hence the following test_tk test_ttk_guionly test_idle (and on 3.5, test_t

Re: Iterators membership testing

2015-08-10 Thread Tim Chase
On 2015-08-09 19:24, Chris Angelico wrote: > That's exactly right. The only way for the interpreter to handle > 'in' on an iterator is something like this: > > def contains(iter, obj): > for val in iter: > if val == obj: return True > return False Which can nicely be written as

Re: Pipes

2015-08-10 Thread Roger Hunter
I agree that some of Python is simple but the description of subprocess is certainly not. I spent much of my working career using Fortran and TrueBasic on mainframes. I'd like programming to be more like holding a discussion to the computer in English instead of Sanscrit. Roger On Sun, Aug 9, 2

Re: Importing is partially working...

2015-08-10 Thread Chris Angelico
On Sun, Aug 9, 2015 at 3:45 PM, Dwight GoldWinde wrote: > 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) > > Traceback (most recent call las

Re: Who uses IDLE -- please answer if you ever do, know, or teach

2015-08-10 Thread memilanuk
On 08/07/2015 04:29 AM, tjohnson wrote: On 8/6/2015 7:31 PM, Terry Reedy wrote: What 1 or 2 features would you most like to see? Practically, I'd say a line number margin and right edge indicator. Theoretically, a tabbed editor and dockable interpreter pane. YES!!! and yes to the above. S

Re: Pipes

2015-08-10 Thread Chris Angelico
On Mon, Aug 10, 2015 at 12:55 PM, Roger Hunter wrote: > I agree that some of Python is simple but the description of subprocess is > certainly not. That's because spawning subprocesses is a complicated thing to do - or rather, it's a simple thing to do, but with a large number of options. This is

Re: pyjs - a compiler from Python to JavaScript

2015-08-10 Thread Billy Earney
Uri, It has been a few years since I have messed with py2js. Have you checked out brython? http://brython.info It supports javascript libraries such as jQuery, raphael.js, etc. Billy On Fri, Aug 7, 2015 at 6:00 AM, Uri Even-Chen wrote: > To Python developers, > > Are you familiar with pyjs <

Re: Is Django the way to go for a newbie?

2015-08-10 Thread Thomas 'PointedEars' Lahn
Chris Angelico wrote: > 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. Your posting shows again that your knowledge of "JS" is

Re: Is Django the way to go for a newbie?

2015-08-10 Thread Chris Angelico
On Mon, Aug 10, 2015 at 9:58 PM, Thomas 'PointedEars' Lahn wrote: > Chris Angelico wrote: > >> 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 bett

Re: Pipes

2015-08-10 Thread Mark Lawrence
On 10/08/2015 03:55, Roger Hunter wrote: I agree that some of Python is simple but the description of subprocess is certainly not. I spent much of my working career using Fortran and TrueBasic on mainframes. That's good. It means that you were probably taught to read and write from left to r

Re: Pipes

2015-08-10 Thread rogerh906
On Monday, August 10, 2015 at 7:45:28 AM UTC-6, Mark Lawrence wrote: > On 10/08/2015 03:55, Roger Hunter wrote: > > I agree that some of Python is simple but the description of subprocess > > is certainly not. > > > > I spent much of my working career using Fortran and TrueBasic on mainframes. > >

Re: Pipes

2015-08-10 Thread Mark Lawrence
On 10/08/2015 15:05, rogerh...@gmail.com wrote: On Monday, August 10, 2015 at 7:45:28 AM UTC-6, Mark Lawrence wrote: On 10/08/2015 03:55, Roger Hunter wrote: I agree that some of Python is simple but the description of subprocess is certainly not. I spent much of my working career using Fortra

Re: Importing is partially working...

2015-08-10 Thread MRAB
On 2015-08-10 11:11, Chris Angelico wrote: On Sun, Aug 9, 2015 at 3:45 PM, Dwight GoldWinde wrote: 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) Tr

Re: Importing is partially working...

2015-08-10 Thread Chris Angelico
On Tue, Aug 11, 2015 at 1:48 AM, MRAB wrote: >> You're almost there! But in Python, you don't import something from a >> specific file - you import from a module, and the Python interpreter >> is free to locate that file anywhere that it can. It might be >> implemented in C, and be stored in Funct

Re: pyjs - a compiler from Python to JavaScript

2015-08-10 Thread Ian Kelly
On Fri, Aug 7, 2015 at 5:00 AM, Uri Even-Chen wrote: > > Are you familiar with pyjs? I saw the website and I see that the latest > stable release is from May 2012. Is it possible to use pyjs to compile Python > to JavaScript? Which versions of Python are supported? Are versions 2.7 and > 3.4 su

Calling Out All Python Programmer in Pakistan

2015-08-10 Thread Yasoob Khalid
Hi there guys! I am Yasoob. I am one of the guys behind python.org.pk We are trying to organize a local meetup in Lahore but having a hard time finding members. Kindly let me know if you live in Lahore, Pakistan and would be interested in a meetup. If any of your friends would be interested in

Re: Pipes

2015-08-10 Thread E.D.G.
wrote in message news:d6a3dfe4-8389-463b-ac66-a93f14a91...@googlegroups.com... Just learning Python and have a question. Posted by E.D.G. on August 10, 2015 Roger's original post is largely a continuation of my July 25, 2015 posting regarding "Python Questions." His post does not actu

Python Developer- Houston, TX

2015-08-10 Thread appthought1
Hi, Hope you are doing well !!! My name is Siva and I'm a recruiter at TheAppliedthought , a global staffing and IT consulting company. Please find the below job description which may suits any of your consultants who are available in market or who are looking for change, please send me latest u

Re: Python Developer- Houston, TX

2015-08-10 Thread Larry Martell
Can this be done remotely or only on-site? On Mon, Aug 10, 2015 at 3:24 PM, wrote: > Hi, > Hope you are doing well !!! > My name is Siva and I'm a recruiter at TheAppliedthought , a global staffing > and IT consulting company. > Please find the below job description which may suits any of your

Re: Python Developer- Houston, TX

2015-08-10 Thread Emile van Sebille
On 8/10/2015 2:24 PM, appthoug...@gmail.com wrote: Hi, Hope you are doing well !!! My name is Siva and I'm a recruiter at TheAppliedthought , a global staffing and IT consulting company. You really shouldn't post job offerings on this list. Please use the Python Job Board at https://www.pyth

Re: Pipes

2015-08-10 Thread Mark Lawrence
On 10/08/2015 21:43, E.D.G. wrote: wrote in message news:d6a3dfe4-8389-463b-ac66-a93f14a91...@googlegroups.com... Just learning Python and have a question. Other important resources would be the ability to perform rapid calculations and the ability to generate plots that could display

[RELEASED] Python 3.5.0rc1 is now available

2015-08-10 Thread Larry Hastings
On behalf of the Python development community and the Python 3.5 release team, I'm relieved to announce the availability of Python 3.5.0rc1, also known as Python 3.5.0 Release Candidate 1. Python 3.5 has now entered "feature freeze". By default new features may no longer be added to Python

Re: Sorry folks, minor hiccup for Python 3.5.0rc1

2015-08-10 Thread Larry Hastings
On 08/10/2015 05:55 PM, Larry Hastings wrote: I yanked the tarballs off the release page as soon as I suspected something. I'm rebuilding the tarballs and the docs now. If you grabbed the tarball as soon as it appeared, it's slightly out of date, please re-grab. p.s. I should have mentioned

Sorry folks, minor hiccup for Python 3.5.0rc1

2015-08-10 Thread Larry Hastings
I built the source tarballs with a slightly-out-of-date tree. We slipped the release by a day to get two fixes in, but the tree I built from didn't have those two fixes. I yanked the tarballs off the release page as soon as I suspected something. I'm rebuilding the tarballs and the docs n

Re: Is Django the way to go for a newbie?

2015-08-10 Thread Dwight GoldWinde
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

Re: Is Django the way to go for a newbie?

2015-08-10 Thread Dwight GoldWinde
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 You

Re: Is Django the way to go for a newbie?

2015-08-10 Thread Dwight GoldWinde
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" wrote: >On Mon, Aug 10, 2015 at 3:4

Re: Importing is partially working...

2015-08-10 Thread Steven D'Aprano
On Tue, 11 Aug 2015 01:48 am, MRAB wrote: > On Windows, the extension for Python extension DLLs is ".pyd". I believe that there is a subtle difference in the entry-point depending on whether the file is named .pyd or .dll. http://effbot.org/pyfaq/is-a-pyd-file-the-same-as-a-dll.htm https://docs.

Re: Importing is partially working...

2015-08-10 Thread Dwight GoldWinde
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 p

Re: Is Django the way to go for a newbie?

2015-08-10 Thread Mark Lawrence
On 11/08/2015 02:53, Dwight GoldWinde wrote: [snipped] Pleased to see that you're getting answers, but would you please not top post here. Trying to follow long threads is particularly difficult when you have the response at the top, but have to scroll down to find what it's in response to.

looking for standard/builtin dict-like data object

2015-08-10 Thread Vladimir Ignatov
Hi, In my code I often use my own home-brewed object for passing bunch of data between functions. Something like: class Data(object): def __init__ (self, **kwargs): self.__dict__ = kwargs return Data(attr1=..., attr2=..., attr3=...) Logically it works like plain dictionary bu

Re: Is Django the way to go for a newbie?

2015-08-10 Thread Michael Torrie
On 08/10/2015 07:49 PM, Dwight GoldWinde wrote: > 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!? Django is a prog

Re: looking for standard/builtin dict-like data object

2015-08-10 Thread Chris Rebert
On Mon, Aug 10, 2015 at 8:22 PM, Vladimir Ignatov wrote: > Hi, > > In my code I often use my own home-brewed object for passing bunch of > data between functions. Something like: > > class Data(object): > def __init__ (self, **kwargs): > self.__dict__ = kwargs > > > > return Data(

Re: looking for standard/builtin dict-like data object

2015-08-10 Thread Cameron Simpson
On 10Aug2015 23:22, Vladimir Ignatov wrote: In my code I often use my own home-brewed object for passing bunch of data between functions. Something like: class Data(object): def __init__ (self, **kwargs): self.__dict__ = kwargs return Data(attr1=..., attr2=..., attr3=...) Logic

Re: looking for standard/builtin dict-like data object

2015-08-10 Thread Chris Angelico
On Tue, Aug 11, 2015 at 1:40 PM, Cameron Simpson wrote: > I also thought the stdlib had some kind of "namespace" class with this kind > of API, but I can't find it now:-( It does - types.SimpleNamespace(). It accepts keyword arguments, and will let you create more attributes on the fly (unlike a

Re: Is Django the way to go for a newbie?

2015-08-10 Thread Rustom Mody
On Tuesday, August 11, 2015 at 8:59:47 AM UTC+5:30, Michael Torrie wrote: > On 08/10/2015 07:49 PM, Dwight GoldWinde wrote: > > 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

Re: looking for standard/builtin dict-like data object

2015-08-10 Thread Cameron Simpson
On 11Aug2015 14:09, Chris Angelico wrote: On Tue, Aug 11, 2015 at 1:40 PM, Cameron Simpson wrote: I also thought the stdlib had some kind of "namespace" class with this kind of API, but I can't find it now:-( It does - types.SimpleNamespace(). It accepts keyword arguments, and will let you c

Re: Pipes

2015-08-10 Thread Larry Hudson via Python-list
On 08/10/2015 01:43 PM, E.D.G. wrote: [snip] It has been my experience that researchers, particularly scientists, need to have some versatile and powerful programming language available that is compatible with the Windows operating system. The language needs to make certain resources av

Flan definition collision

2015-08-10 Thread smahabole--- via Python-list
I am importing two modules, each of which is defining flags (command line arguments) with the same name. This makes it impossible to import both the modules at once, because of flag name definition conflict. Is there any way which doesn't involve modifying the flag names in these modules? -- ht