Re: Standard Delay Format (SDF) Parsing

2014-05-26 Thread moogyd
On Monday, 26 May 2014 08:15:53 UTC+2, garg.p...@gmail.com wrote: > Hi Steven, > > > > did you get the module to parse the sdf file? > > > > regards, > > pankaj Unfortunately not. I actually can't remember why I wanted/needed this. I guess that it wasn't that important since I didn't act

Re: Make Python Compilable, convert to Python source to Go

2014-05-26 Thread Stefan Behnel
Ben Finney, 26.05.2014 05:20: > bookaa bookaa writes: >> Generally, people consider Python as a script language. >> It has high development efficiency >> but run too slowly > > Which Python implementation are you talking about? Run time is not a > property of the language. It is a property of the

Hello and sorry for disturbing !

2014-05-26 Thread Radu Ioan Barbos
Greetings from Romania,sorry for my english,i just wanted to ask you if i need any other software/program beside the one software from the next pagehttps://www.python.org/downloads/ or is it enough the software on that page , download and install it ? This question goes for both windows 7 & ub

Re: compiled cx_freeze

2014-05-26 Thread Nagy László Zsolt
Let Christoph know, he is very responsive and extremely helpful. He did help. The new version is available on his site and it works. Thank you. -- https://mail.python.org/mailman/listinfo/python-list

Re: Make Python Compilable, convert to Python source to Go

2014-05-26 Thread Mark Lawrence
On 26/05/2014 07:31, Devin Jeanpierre wrote: On Sun, May 25, 2014 at 3:24 AM, Mark Lawrence wrote: On 25/05/2014 09:17, bookaa bookaa wrote: Maybe I will work on Python 3 later. That's good to know, it'll save me wasting my time looking at it now. This seems like an unnecessarily harsh w

Re: Hello and sorry for disturbing !

2014-05-26 Thread Rustom Mody
On Monday, May 26, 2014 2:57:54 PM UTC+5:30, Radu Ioan Barbos wrote: > Greetings from Romania,sorry > for my english,i just wanted to ask you if i need any other > software/program beside the one software from the next page > https://www.python.org/downloads/ > or is it enough the software on t

Re: Hello and sorry for disturbing !

2014-05-26 Thread Wolfgang Maier
On 26.05.2014 13:27, Rustom Mody wrote: On Monday, May 26, 2014 2:57:54 PM UTC+5:30, Radu Ioan Barbos wrote: Greetings from Romania,sorry for my english,i just wanted to ask you if i need any other software/program beside the one software from the next page https://www.python.org/downloads/ o

Re: Build tools, and Python 3 dependencies (was: How keep Python 3 moving forward)

2014-05-26 Thread Roy Smith
In article , Ben Finney wrote: > Roy Smith writes: > > > Stefan Behnel wrote: > > > > > And I don't really see why you would consider fabric a dependency > > > that keeps you from switching to Py3. In many cases, you can just > > > keep running it in Py2 as you did before. > > > > In theory,

Re: win32serviceutil: ImportError: DLL load failed: The specified module could not be found

2014-05-26 Thread Albert-Jan Roskam
Original Message - > From: Terry Reedy > To: python-list@python.org > Cc: > Sent: Sunday, May 25, 2014 11:49 PM > Subject: Re: win32serviceutil: ImportError: DLL load failed: The specified > module could not be found > > On 5/25/2014 1:40 PM, Nagy László Zsolt wrote: >>   >>> import wi

Re: win32serviceutil: ImportError: DLL load failed: The specified module could not be found

2014-05-26 Thread Nagy László Zsolt
Strange thing is that win32serviceutil.py is part of the pywin32 distribution, so I guess I should be able to import it, right? Make sure you have a pywin32 that matches ???. Matching includes python version and bitness. In addition, c:\python27\DLLs should also be on your %PATH%: setx PAT

Re: win32serviceutil: ImportError: DLL load failed: The specified module could not be found

2014-05-26 Thread Tim Golden
On 26/05/2014 14:24, Nagy László Zsolt wrote: Strange thing is that win32serviceutil.py is part of the pywin32 distribution, so I guess I should be able to import it, right? Make sure you have a pywin32 that matches ???. Matching includes python version and bitness. In addition, c:\python

Re: Hello and sorry for disturbing !

2014-05-26 Thread Mark Lawrence
On 26/05/2014 10:27, Radu Ioan Barbos wrote: Greetings from Romania,sorry for my english,i just wanted to ask you if i need any other software/program beside the one software from the next pagehttps://www.python.org/downloads/ or is it enough the software on th

Verify JSON Data

2014-05-26 Thread gaurangnshah
Hi Guys, Would someone let me know how to verify JSON data in python. There are so many modules available to verify XML file, however i didn't find any good module to verify JSON Data. After searching on the internet i came across JSON module, however it only coverts the JSON data to python.

Re: win32serviceutil: ImportError: DLL load failed: The specified module could not be found

2014-05-26 Thread cjgohlke
On Monday, May 26, 2014 6:32:19 AM UTC-7, Tim Golden wrote: > On 26/05/2014 14:24, Nagy L�szl� Zsolt wrote: > > > > > Strange thing is that win32serviceutil.py is part of the pywin32 > > distribution, so I guess I should be able to import it, right? > > >>> Make sure you have

Re: confused about the different built-in functions in Python

2014-05-26 Thread Deb Wyatt
> > On 5/25/14 7:55 PM, Deb Wyatt wrote: >> I am confused about how various built-in functions are called. Some are >> called with dot notation >> >> How do you know/remember which way to call them? >> >> TIA, >> Deb in WA, USA > > It can be confusing. Generally, built-in functions (like sum

Re: Verify JSON Data

2014-05-26 Thread Roy Smith
In article , gaurangns...@gmail.com wrote: > Hi Guys, > > Would someone let me know how to verify JSON data in python. There are so > many modules available to verify XML file, however i didn't find any good > module to verify JSON Data. Python comes with a built-in json module. Just use j

Re: Verify JSON Data

2014-05-26 Thread Burak Arslan
On 26/05/14 16:26, gaurangns...@gmail.com wrote: Hi Guys, Would someone let me know how to verify JSON data in python. There are so many modules available to verify XML file, however i didn't find any good module to verify JSON Data. Hi, Spyne re-implements (a useful subset of) Xml Schema

Re: Verify JSON Data

2014-05-26 Thread Gene Heskett
On Monday 26 May 2014 11:19:53 Roy Smith did opine And Gene did reply: > In article , > > gaurangns...@gmail.com wrote: > > Hi Guys, > > > > Would someone let me know how to verify JSON data in python. There > > are so many modules available to verify XML file, however i didn't > > find any good

Re: Verify JSON Data

2014-05-26 Thread Denis McMahon
On Mon, 26 May 2014 07:26:20 -0700, gaurangnshah wrote: > Is there any module through which i can verify JSON file like DOM or > Object oriented way. ( i.e. data.key) Where is the json data coming from? What do you mean by verify? https://docs.python.org/2/library/json.html#encoders-and-decoders

Re: Verify JSON Data

2014-05-26 Thread Chris Angelico
On Tue, May 27, 2014 at 1:37 AM, Gene Heskett wrote: > Just for S&G, and without checking the version numbers of anything, this > may not be all that bulletproof a test: > > gene@coyote:~$ echo '[1, 2, 3]' | json_xs -t null 2>/dev/null; echo $? > 127 > gene@coyote:~$ echo '[1; 2, 3]' | json_xs -t

Re: Verify JSON Data

2014-05-26 Thread Roy Smith
In article , Gene Heskett wrote: > > $ echo '[1, 2, 3]' | json_xs -t null 2>/dev/null; echo $? > 0 > > $ echo '[1; 2, 3]' | json_xs -t null 2>/dev/null; echo $? > 255 > gene@coyote:~$ echo '[1, 2, 3]' | json_xs -t null 2>/dev/null; echo $? > 127 > gene@coyote:~$ echo '[1; 2, 3]' | json_xs -t

Re: Verify JSON Data

2014-05-26 Thread Chris Angelico
On Tue, May 27, 2014 at 1:55 AM, Roy Smith wrote: > In article , > Gene Heskett wrote: > >> > $ echo '[1, 2, 3]' | json_xs -t null 2>/dev/null; echo $? >> 0 > >> > $ echo '[1; 2, 3]' | json_xs -t null 2>/dev/null; echo $? >> 255 > > >> gene@coyote:~$ echo '[1, 2, 3]' | json_xs -t null 2>/dev/nul

Re: Verify JSON Data

2014-05-26 Thread Chris Angelico
On Tue, May 27, 2014 at 1:19 AM, Roy Smith wrote: > Python comes with a built-in json module. Just use json.load() or > json.loads() to parse your JSON data. The first call reads from a > string, the second on from a file, but in all other ways, they're > identical. Minor nit-pick: they're the

Re: Verify JSON Data

2014-05-26 Thread Gene Heskett
On Monday 26 May 2014 11:55:29 Roy Smith did opine And Gene did reply: > In article , > > Gene Heskett wrote: > > > $ echo '[1, 2, 3]' | json_xs -t null 2>/dev/null; echo $? > > > > 0 > > > > > $ echo '[1; 2, 3]' | json_xs -t null 2>/dev/null; echo $? > > > > 255 > > > > > > gene@coyote:~$

Re: Verify JSON Data

2014-05-26 Thread Gene Heskett
On Monday 26 May 2014 11:58:06 Chris Angelico did opine And Gene did reply: > On Tue, May 27, 2014 at 1:37 AM, Gene Heskett wrote: > > Just for S&G, and without checking the version numbers of anything, > > this may not be all that bulletproof a test: > > > > gene@coyote:~$ echo '[1, 2, 3]' | js

Re: Python is horribly slow compared to bash!!

2014-05-26 Thread Johannes Bauer
On 22.05.2014 15:43, wxjmfa...@gmail.com wrote: > I can take the same application and replace 'z' by ..., and > ... No, I do not win :-( . Python fails. That's nothing. I can make an application a TOUSAND times slower by changing the constant 1 to a 2. Python is such utter garbage! import time

Re: Send commands to USB device in Python

2014-05-26 Thread andre . miras
Hi, I saw your thread on SourceFourge (http://sourceforge.net/p/pyusb/mailman/message/31969943/), but I don't have an account. I also have MTI RU-824 reader. I sniffed the USB communication in the Windows demo program and I saw that the header should be written backward. So rather than: HEADER

Re: Verify JSON Data

2014-05-26 Thread Grant Edwards
On 2014-05-26, gaurangns...@gmail.com wrote: > Would someone let me know how to verify JSON data in python. Parse the file into a data structure with whatever parser you like, then write a program to go thorugh the data structure and verify it. > There are so many modules available to verify XM

Re: confused about the different built-in functions in Python

2014-05-26 Thread Terry Reedy
On 5/26/2014 11:15 AM, Deb Wyatt wrote: On 5/25/14 7:55 PM, Deb Wyatt wrote: I am confused about how various built-in functions are called. Some are called with dot notation How do you know/remember which way to call them? It can be confusing. Generally, built-in functions (like sum,

Re: confused about the different built-in functions in Python

2014-05-26 Thread Marko Rauhamaa
Terry Reedy : > Part of the answer is Python's history. Up to about 2.1, most built-in > types did not have methods, though I know lists did. Ints and strings > did not, or chr and ord might have been int.chr() and str.ord(). (The > current string methods were originally functions in the string >

Re: win32serviceutil: ImportError: DLL load failed: The specified module could not be found [SOLVED]

2014-05-26 Thread Nagy László Zsolt
Python 3.4 does not run any bdist_wininst postinstall scripts. Try to run `C:\Python34\python.exe C:\Python34\Scripts\pywin32_postinstall.py -install` manually from an elevated command prompt. Christoph C:\>C:\Python34\python.exe C:\Python34\Scripts\pywin32_postinstall.py -install Copied py

Re: win32serviceutil: ImportError: DLL load failed: The specified module could not be found

2014-05-26 Thread Nagy László Zsolt
Python 3.4 does not run any bdist_wininst postinstall scripts. Try to run `C:\Python34\python.exe C:\Python34\Scripts\pywin32_postinstall.py -install` manually from an elevated command prompt. Much better when ran as an administrator: C:\Python\Projects\test>C:\Python34\python.exe C:\Python

Re: confused about the different built-in functions in Python

2014-05-26 Thread Christian Heimes
On 26.05.2014 21:00, Marko Rauhamaa wrote: > Terry Reedy : > >> Part of the answer is Python's history. Up to about 2.1, most built-in >> types did not have methods, though I know lists did. Ints and strings >> did not, or chr and ord might have been int.chr() and str.ord(). (The >> current string

Re: confused about the different built-in functions in Python

2014-05-26 Thread Marko Rauhamaa
Christian Heimes : > Python creates a new bound method object every time. A bound method > object is a callable object that keeps a strong reference to the > function, class and object. The bound method object adds the object as > first argument to the function (aka 'self'). I stand corrected. I

Re: confused about the different built-in functions in Python

2014-05-26 Thread Marko Rauhamaa
Marko Rauhamaa : > Christian Heimes : > >> Python creates a new bound method object every time. A bound method >> object is a callable object that keeps a strong reference to the >> function, class and object. The bound method object adds the object as >> first argument to the function (aka 'self'

Re: confused about the different built-in functions in Python

2014-05-26 Thread Gregory Ewing
Marko Rauhamaa wrote: IOW, you can override a method with setattr() but you cannot delete a method with delattr(). Actually, you can -- but you need to delete it from the class, not the instance: >>> delattr(X, 'f') >>> x.f() Traceback (most recent call last): File "", line 1, in Attribute

Command prompt not shown when running Python script with subprocess on Windows

2014-05-26 Thread ps16thypresenceisfullnessofjoy
I have written a Python script with a wxPython GUI that uses subprocess.Popen to open a list of files that the user provides. One of my users would like to be able to run a Python script with my application. The Python script he is trying to run uses the command line and gets keyboard input from

Re: Make Python Compilable, convert to Python source to Go

2014-05-26 Thread Steven D'Aprano
On Mon, 26 May 2014 12:17:10 +0100, Mark Lawrence wrote: > On 26/05/2014 07:31, Devin Jeanpierre wrote: >> On Sun, May 25, 2014 at 3:24 AM, Mark Lawrence >> wrote: >>> On 25/05/2014 09:17, bookaa bookaa wrote: Maybe I will work on Python 3 later. >>> That's good to know, it'll

Re: confused about the different built-in functions in Python

2014-05-26 Thread Steven D'Aprano
On Mon, 26 May 2014 23:58:37 +0300, Marko Rauhamaa wrote: > Marko Rauhamaa : > >> Christian Heimes : >> >>> Python creates a new bound method object every time. A bound method >>> object is a callable object that keeps a strong reference to the >>> function, class and object. The bound method obj

Re: confused about the different built-in functions in Python

2014-05-26 Thread Terry Reedy
On 5/26/2014 4:32 PM, Marko Rauhamaa wrote: I stand corrected. I had thought the trampoline ("bound method object") was created once and for all. Assuming that bound methods are immutable, this is an implementation detail, either way. However, it is common for a specific method to be called

Re: Build tools, and Python 3 dependencies (was: How keep Python 3 moving forward)

2014-05-26 Thread Steven D'Aprano
On Mon, 26 May 2014 08:44:51 -0400, Roy Smith wrote: >> That makes even less sense. The build system runs under whatever >> version of Python it needs, and your code runs under whatever version >> of Python you like. The two don't affect each other at run time, and >> don't affect each other's tes

Re: Build tools, and Python 3 dependencies (was: How keep Python 3 moving forward)

2014-05-26 Thread Steven D'Aprano
Oh, I was a bit trigger-happy with my earlier post. On Mon, 26 May 2014 08:44:51 -0400, Roy Smith wrote about his build system and production code: > The are tightly integrated, and share code. [...] > When you start working with large systems, reducing complexity becomes > important. Every t

Re: Build tools, and Python 3 dependencies (was: How keep Python 3 moving forward)

2014-05-26 Thread Rustom Mody
On Tuesday, May 27, 2014 8:29:13 AM UTC+5:30, Steven D'Aprano wrote: > On Mon, 26 May 2014 08:44:51 -0400, Roy Smith wrote: > > > > >> That makes even less sense. The build system runs under whatever > > >> version of Python it needs, and your code runs under whatever version > > >> of Python

Re: Verify JSON Data

2014-05-26 Thread Rustom Mody
On Tuesday, May 27, 2014 12:05:58 AM UTC+5:30, Grant Edwards wrote: > On 2014-05-26, gaurang shah wrote: > > Would someone let me know how to verify JSON data in python. > Parse the file into a data structure with whatever parser you like, > then write a program to go thorugh the data structure a

Re: Hello and sorry for disturbing !

2014-05-26 Thread Bob Martin
in 722639 20140526 144904 Mark Lawrence wrote: >On 26/05/2014 10:27, Radu Ioan Barbos wrote: >> Greetings from Romania,sorry for my english,i just wanted to ask you if >> i need any other software/program beside the one software from the next >> pagehttps://www.python.org