Re: Python 3.4 Idle?

2015-07-25 Thread Laura Creighton
In a message of Sat, 25 Jul 2015 09:00:18 -0700, Steve Burrus writes: >On Thursday, July 23, 2015 at 8:50:47 PM UTC-5, Steve Burrus wrote: >> On Thursday, July 23, 2015 at 8:41:03 PM UTC-5, Chris Angelico wrote: >> > On Fri, Jul 24, 2015 at 11:34 AM, Steve Burrus >> > wrote: >> > > I got Idle the

Re: Gmail eats Python

2015-07-25 Thread Laura Creighton
In a message of Sat, 25 Jul 2015 11:51:49 -0500, Zachary Ware writes: >On Jul 25, 2015 11:35 AM, "Laura Creighton" wrote: >> >> Gmail eats Python. >> >> We just saw this mail back from Sebastian Luque which says in part: >> >> >>>

Re: scalar vs array and program control

2015-07-25 Thread Laura Creighton
In a message of Sat, 25 Jul 2015 18:53:33 +0200, "Thomas 'PointedEars' Lahn" wr ites: >Laura Creighton wrote: > >> […] "Thomas 'PointedEars' Lahn" [writes]: >>> Laura Creighton wrote: >>>> […] You really cannot make you

Re: UDP and Python2.7 and 2.7 documentation gives error!

2015-07-25 Thread Laura Creighton
In a message of Sat, 25 Jul 2015 19:10:53 +0200, Nils writes: >UDP and Python2.7 and 2.7 documentation gives error! >I am trying to send UDP messages from one PC to another, using P2.7. >BUT I get an error I do not understand, this as I am following the doc's >for Python2.7! Listing of the script w

Re: Gmail eats Python

2015-07-25 Thread Laura Creighton
In a message of Sat, 25 Jul 2015 20:52:38 +0300, Jussi Piitulainen writes: >Jussi Piitulainen writes: >> Has the world adopted UTF-8 as the default charset now or what? (I'll >> be only glad to hear that it has, if it has, but a reference to some >> sort of internet standard would be nice.) I don'

Re: UDP and Python2.7 and 2.7 documentation gives error!

2015-07-25 Thread Laura Creighton
In a message of Sat, 25 Jul 2015 19:43:45 +0200, "Stéphane Wirtel" writes: >the bind function is for the server, not for the client. > >here is an example: https://wiki.python.org/moin/UdpCommunication > >Stephane >On 25 Jul 2015, at 19:10, Nils wrote: > >> UDP and Python2.7 and 2.7 documentation g

Re: Gmail eats Python

2015-07-26 Thread Laura Creighton
In a message of Sun, 26 Jul 2015 00:58:08 -, Grant Edwards writes: >You use mutt or something else decent as your MUA. > I do -- the problem is all the gmail users out there. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Questions - July 25, 2015

2015-07-26 Thread Laura Creighton
> It can take a considerable amount of time and effort to get a >programming language installed and running with all of the features that are >needed. It probably took me 5 to 10 years to get Perl organized on my >computer like that. > So, that is what I was asking about Python.

Re: Python Questions - July 25, 2015

2015-07-27 Thread Laura Creighton
In a message of Sun, 26 Jul 2015 18:58:14 -0500, "E.D.G." writes: > This is an indirect URL for a potentially important computer program >that I feel needs to be developed. Unfortunately, although Python could be >used to create PC or Mac versions of the program I don't think that those

Re: ImportError: No module named site

2015-07-27 Thread Laura Creighton
What I want to know is can you import anything else? If site.py is just the first thing in a long list of modules, and you cannot find any of them, which is what I think is the case, and I'd start looking for problems with the PYTHONPATH then you have a different problem than if you can find other

Re: Usage of P(C)ython Logo for Coffee Mug

2015-07-29 Thread Laura Creighton
ngs, > >dex You will have to talk to the Cython developers for use of their image -- but I doubt there will be any problem. We have SVG versions here: https://www.python.org/community/logos/ Good luck and have fun, Laura Creighton -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Questions - July 25, 2015

2015-07-29 Thread Laura Creighton
In a message of Tue, 28 Jul 2015 17:45:00 +0100, BartC writes: >On 28/07/2015 17:12, Steven D'Aprano wrote: >> On Tue, 28 Jul 2015 07:46 pm, BartC wrote: >> >>> (I'm still reeling from the size of that Anaconda download. Apparently >>> it contains a whole bunch of stuff, nothing to do with numpy, t

Re: Gmail eats Python

2015-07-29 Thread Laura Creighton
In a message of Tue, 28 Jul 2015 20:35:15 -0700, Rustom Mody writes: >- I should not have to customize emacs so that CTRL/A, CTRL/E, CTRL/N, and >CTRL/P continue to work the way they've done since the mid-1970s. > >etc etc > >¹ emacs 18 dates from around 1992 (!!) N

Re: Uninstall

2015-08-05 Thread Laura Creighton
In a message of Tue, 04 Aug 2015 11:37:47 +0900, Bill writes: >How do I uninstall Python from a Mac? > > >-- >https://mail.python.org/mailman/listinfo/python-list How did you get it in the first place? If you installed it yourself, then you have to retrace what steps you took to install it in or

Re: Linux script to get most expensive processes

2015-08-05 Thread Laura Creighton
If you are running this script with Python 2 write: if sys.platform.startswith('linux'): to handle the case where you get linux or linux2 (and a few other weird things some embedded systems give you ...) Right now I think every linux system returns linux for Python 3, so it is less of an issu

Re: GOTCHA with list comprehension

2015-08-05 Thread Laura Creighton
In a message of Wed, 05 Aug 2015 17:05:49 +1000, Chris Angelico writes: >Incidentally, why Python 2.6? Python 2.7 has been out for a pretty >long time now, and if you can't move to version 3.x, I would at least >recommend using 2.7. Since the release of 2.6.9 back before Frozen >came out, that bran

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

2015-08-05 Thread Laura Creighton
In a message of Wed, 05 Aug 2015 21:06:31 -0400, Terry Reedy writes: >0. Classes where Idle is used: >Where -- my house or sometimes at the board game society >Level -- beginners and there are 8 children right now. >Idle users: > >1. Are you I am post graduate, but the kids are all grade school.

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

2015-08-05 Thread Laura Creighton
Added: right now most children I know who want to program want to write games that run on their cell phones and tablets. So Idle integration with kivy would be very nice, if Idle developers are looking for new directions. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: python for barcode

2015-08-06 Thread Laura Creighton
In a message of Thu, 06 Aug 2015 11:27:23 -0700, Xxx Ooo writes: >I try to do a program to modify barcode which kind of like "Msoffice" >if you suggestion? >Thanks > >Raymond I don't know what you mean by 'kind of like Msoffice'. Mostly I use reportlab for things like this. blogpost about it here

Re: Linux users: please run gui tests

2015-08-07 Thread Laura Creighton
In a message of Fri, 07 Aug 2015 19:51:51 +1000, Chris Angelico writes: >On Fri, Aug 7, 2015 at 7:15 PM, Peter Otten <__pete...@web.de> wrote: >> By default Debian doesn't install the test suite -- that's why you cannot >> run it ;) >> >> Install it with >> >> $ sudo apt-get install libpython3.4-te

Re: Linux users: please run gui tests

2015-08-07 Thread Laura Creighton
In a message of Fri, 07 Aug 2015 15:06:41 +0200, Peter Otten writes: >$ touch test.py >$ python -c import\ test >$ rm test.py >$ python3 -m test -ugui test_tk >/usr/bin/python3: bad magic number in 'test': b'\x03\xf3\r\n' > >>From that I'd conclude that your python3 sees a leftover python2 pyc inst

Re: Python Scheduling

2015-08-07 Thread Laura Creighton
In a message of Fri, 07 Aug 2015 06:48:32 -0700, Emile van Sebille writes: >On 8/6/2015 11:06 AM, sairam kumar wrote: >> Hi Experts, >> >> I am Automating some repetitive works through Sikuli and Python >> scripting languages.I have multiple workflows.i need to schedule this >> script for ever

Re: Linux users: please run gui tests

2015-08-07 Thread Laura Creighton
In a message of Fri, 07 Aug 2015 17:34:54 +0200, Peter Otten writes: >Run > >$ python3 -m test -ugui -v test_tk > >(That way the unittest framework will see the -v option) Aha, I didn't understand that. Thank you. >Note that there are lines like > ># possible namespace for /home/lac/src/accounti

Re: Python speed

2015-08-07 Thread Laura Creighton
In a message of Fri, 07 Aug 2015 09:57:26 -0700, beliavsky--- via Python-list w rites: >On Friday, August 7, 2015 at 10:08:37 AM UTC-4, roge...@gmail.com wrote: >> Can anyone compare PyNum calculation speed to Fortran? >> >> This is for a number crunching program working with large files. >> >> R

Re: Linux users: please run gui tests

2015-08-07 Thread Laura Creighton
In a message of Fri, 07 Aug 2015 21:13:02 +0200, Peter Otten writes: >test_set() was introduced in a bugfix > >http://bugs.python.org/issue15133 >https://hg.python.org/cpython/rev/117f45749359/ > >that I don't have on my machine (up-to-date Linux Mint 17). When I download > >https://hg.python.org/

Re: Python speed

2015-08-07 Thread Laura Creighton
In a message of Fri, 07 Aug 2015 23:26:46 +0200, Christian Gollwitzer writes: >Am 07.08.2015 um 19:17 schrieb Laura Creighton: >> you >> really only are doing crunching, and your crunching is done >> in loops which run for a significant amount of time -- then PyPy >&g

Re: Which Python implementation am I using?

2015-08-07 Thread Laura Creighton
In a message of Sat, 08 Aug 2015 03:27:04 +1000, "Steven D'Aprano" writes: > >def jython(): >t = platform.java_ver() >return (t and t[0]) or ('java' in sys.platform.lower()) Around here if we cannot find platform.python_implemention() we just look for sys.platform.startswith('j

Re: Linux users: please run gui tests

2015-08-07 Thread Laura Creighton
I forgot to mention that I am running OpenBox as a window manager, so if this is a problem with ubuntu Unity, then so far we don't seem to have any Unity users running these tests. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Linux users: please run gui tests

2015-08-07 Thread Laura Creighton
In a message of Fri, 07 Aug 2015 21:25:21 -0400, Terry Reedy writes: >was about this very test failure. The failure only occurred with tk >8.4. What tk version do you have? (Easily found, for instance, in Idle >-> Help -> About Idle. (python3 -m idlelib should start idle). > >-- >Terry Jan Re

Re: python-matplotlib changes very often?

2015-08-08 Thread Laura Creighton
In a message of Sat, 08 Aug 2015 10:41:39 +0200, Cecil Westerhof writes: >On openSUSE I see python-matplotlib updated very often. Sometimes more >as once a week. It is also not very small (almost 40 MB). Is there a >reason for this, or is there a problem at SUSE? > >-- >Cecil Westerhof >Senior Sof

Re: Linux users: please run gui tests

2015-08-08 Thread Laura Creighton
Ok, I moved to debian unstable (stretch/sid) lac@smartwheels:~$ lsb_release -a LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:security-4.0-amd

Re: Linux users: please run gui tests

2015-08-08 Thread Laura Creighton
Tried this on a different debian unstable system. lac@fido:~$ lsb_release -a No LSB modules are available. Distributor ID:Debian Description: Debian GNU/Linux unstable (sid) Release: unstable Codename: sid lac@fido:~$ Same 3 errors. (So it is not just me.) Laura -

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

2015-08-08 Thread Laura Creighton
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 cor

Re: Iterators membership testing

2015-08-09 Thread Laura Creighton
Maybe add something about this here? https://docs.python.org/2/tutorial/classes.html#iterators Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Parsing data from text file to python

2015-08-09 Thread Laura Creighton
In a message of Mon, 10 Aug 2015 08:55:10 +0530, OmPs writes: >I have built a contact form which sends me email for every user >registration My question is more related to parsing some text data into csv >format. Your contact form should be able to produce csv files for you, rather than producing p

Re: Pipes

2015-08-11 Thread Laura Creighton
In a message of Mon, 10 Aug 2015 15:43:26 -0500, "E.D.G." writes: > I needed a program that could generate data regarding the locations >of the sun and the moon in the sky in response to specific times entered. >Roger developed the basic equations with some help from another researcher. >A

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

2015-08-11 Thread Laura Creighton
In a message of Tue, 11 Aug 2015 09:49:01 +0800, Dwight GoldWinde writes: >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

Re: Pipes

2015-08-11 Thread Laura Creighton
The O'Reilly book Effective Computation in Physics that Larry Hudson recommended looks really good. It also occurs to me that another way to get familiar with the scientific python world is to attend a Scientific Python conference. EuroSciPy is the end of this month in Cambridge. https://www.euro

Python Book In Persian Language (fwd)

2015-08-12 Thread Laura Creighton
Are only English language blogs eligible for planet python? This showed up on Python list. I don't want to ask him if he wants to get his blog added if we have a language policy that I am unaware of. Laura --- Forwarded Message Date:Wed, 12 Aug 2015 17:37:41 +0430 To: python-list@p

Re: Python Book In Persian Language (fwd)

2015-08-12 Thread Laura Creighton
In a message of Wed, 12 Aug 2015 18:53:29 +0200, Laura Creighton writes: >Are only English language blogs eligible for planet python? >This showed up on Python list. I don't want to ask him if he wants to >get his blog added if we have a language policy that I am unaware of. > &

Re: Linux users: please run gui tests

2015-08-12 Thread Laura Creighton
In a message of Wed, 12 Aug 2015 21:49:24 -0400, Terry Reedy writes: >On 8/8/2015 2:40 AM, Laura Creighton wrote: >> In a message of Fri, 07 Aug 2015 21:25:21 -0400, Terry Reedy writes: > > >> https://bugs.python.org/issue15601 >>> was about this very test failure.

Re: How to model government organization hierarchies so that the list can expand and compress

2015-08-13 Thread Laura Creighton
Figure out, right now, what you want to do when you find a government agency that has 2 masters and not one, so the strict heirarchy won't work. Laura -- https://mail.python.org/mailman/listinfo/python-list

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

2015-08-13 Thread Laura Creighton
In a message of Thu, 13 Aug 2015 18:30:17 -0700, Rustom Mody writes: > >I dont know Django. Used RoR some years ago and it was frightening. >And Ruby is not bad. So I assume Rails is. >I just assumed -- maybe ignorantly -- that Django and RoR are generically >similar systems > It's web2py that is

Re: How to model government organization hierarchies so that the list can expand and compress

2015-08-14 Thread Laura Creighton
In a message of Fri, 14 Aug 2015 16:42:00 -0700, Alex Glaros writes: >Frank, thanks for describing the terminology of what I'm trying to do. > >1. Do the recursive join Postgres examples you linked to, use a data structure >where the child has the adjoining parent-ID? Examples look great. > >2. No

Re: Detecting if a library has native dependency

2015-08-15 Thread Laura Creighton
In a message of Sat, 15 Aug 2015 17:10:01 +0530, Harish Vishwanath writes: >Hello > >Is there a reliable way to detect if a python library has native dependency >or native code? For ex. can I programmatically determine that "lxml" >package has native code and depends on the presence of libxml on th

Re: memory control in Python

2015-08-15 Thread Laura Creighton
If the problem is that Python is using too much memory, then PyPy may be able to help you. PyPy is an alternative implementation of Python, and by defaiult uses a minimark garbage collector. https://pypy.readthedocs.org/en/release-2.4.x/garbage_collection.html You will have to write your own bind

Re: -2146826246 in win32com.client for empty #N/A cell in Excel

2015-08-16 Thread Laura Creighton
For what it's worth, I use xlrd for this. http://www.python-excel.org/ Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread Laura Creighton
In a message of Sun, 16 Aug 2015 12:16:53 -0700, shiva upreti writes: >I am still getting the error:"ImportError: No module named kivy". > >Any help will be highly appreciated. >Thanks. The preferred way to install kivy with ubuntu is to follow the instructions here: http://kivy.org/docs/installa

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread Laura Creighton
In a message of Sun, 16 Aug 2015 20:19:49 -0700, rurpy--- via Python-list write s: >On Sunday, August 16, 2015 at 8:00:14 PM UTC-6, Chris Angelico wrote: >> On Mon, Aug 17, 2015 at 5:16 AM, shiva upreti >> wrote: >> > I am new to linux. I tried various things in attempt to install kivy. I >> > i

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-17 Thread Laura Creighton
In a message of Sun, 16 Aug 2015 22:05:29 -0700, rurpy--- via Python-list write s: >So I eventually found the kivy docs on their website where they >list prerequisite packages for installing kivy on ubuntu. I'll >translate those to hopefully the equivalent fedora package names, >install them, re

Re: Error in IDLE

2015-08-17 Thread Laura Creighton
In a message of Sat, 15 Aug 2015 16:42:13 +0100, Henry Quansah writes: >I just installed python. But I'm unable to access IDLE after several clicks >and double clicks. I even tried repairing by trying to reinstall but I have >the same issue. > What version of Python have you installed? How did yo

Re: Who is using littletable?

2015-08-17 Thread Laura Creighton
Some of the PyPI traffic is for mirrors. In addition to our official mirrors, some people/companies set up their own mirrors and suck down everything. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Mobile development using kivy

2015-08-17 Thread Laura Creighton
In a message of Mon, 17 Aug 2015 09:35:12 -0700, reetesh nigam writes: >Hi All, > >I am using Python2.7 version, while developing basic app using kivy, I am >getting following error : > >dev@synechron-desktop-156:~/myDev/mobile_app$ cat main.py >from kivy import app >from kivy.app import App >fro

Re: memory control in Python

2015-08-17 Thread Laura Creighton
In a message of Mon, 17 Aug 2015 11:40:32 -0700, Ping Liu writes: >> Discuss this more on pypy-...@python.org or the #pypy channel on freenode. >> People on pypy-dev would appreciate not getting libreoffice spreadsheet >> attachments but just the figures as plain text. >> >> Laura > >Hi, Laura, >

Re: memory control in Python

2015-08-17 Thread Laura Creighton
In a message of Tue, 18 Aug 2015 10:13:57 +1000, Chris Angelico writes: >On Tue, Aug 18, 2015 at 8:09 AM, Ping Liu wrote: >> If I move from Python to Jython or IronPython, do I need to retool whatever >> I have done? If so, that may take quite a long time. This may make the >> reimplementation i

Re: memory control in Python

2015-08-18 Thread Laura Creighton
In a message of Tue, 18 Aug 2015 01:56:16 -0700, Rustom Mody writes: >[How she (her mail client) manages to befuddle googlegroups thusly is >quite a mystery... >] For me as well, as all I am doing is just replying to the mail ... And I haven't changed my mail client at all in years and years ...

Re: Logging to a file from a C-extension

2015-08-19 Thread Laura Creighton
In a message of Tue, 18 Aug 2015 08:07:51 -0500, Al Pfalzgraf writes: > If a logging file is opened at the level of a Python application, how would > the log file name be communicated to a C-extension so that logging from the > extension would be sent to the same log file? To convert a file to a

Re: execute commands as su on remote server

2015-08-19 Thread Laura Creighton
I haven't tried this but fabric looks encouraging: >From >http://docs.fabfile.org/en/latest/api/core/operations.html#fabric.operations.run fabric.operations.run(*args, **kwargs) Run a shell command on a remote host. ... Any text entered in your local terminal will be forwarded to

Re: execute commands as su on remote server

2015-08-19 Thread Laura Creighton
In a message of Wed, 19 Aug 2015 10:44:53 +0200, Laura Creighton writes: >I haven't tried this but fabric looks encouraging: > >>From >>http://docs.fabfile.org/en/latest/api/core/operations.html#fabric.operations.run > > fabric.operations.run(*args, **kwargs) &g

Re: Can I download XML data from the web and save, in as CSV or TXT delimitation?

2015-08-19 Thread Laura Creighton
nd what error messages were generated. Also let them know what verison of R you are using and what operating system you are running on. This will make it a lot easier for them to help you. Good luck, Laura Creighton -- https://mail.python.org/mailman/listinfo/python-list

Re: Can I download XML data from the web and save, in as CSV or TXT delimitation?

2015-08-19 Thread Laura Creighton
Python is very, very good at doing this but you will have to learn how to program in Python -- at least a little -- to do this. Have you programmed in Python before? In another language? Laura Creighton -- https://mail.python.org/mailman/listinfo/python-list

Re: Parametrized Unit Tests

2015-08-21 Thread Laura Creighton
In a message of Fri, 21 Aug 2015 08:17:32 -0700, rambius writes: >Although I developed these tests as unit tests they are more of integration >tests. Is there an integration testing framework that supports a more >convenient passing of test parameters / data? > >Thank you in advance for your resp

Re: Sandboxing Python

2015-08-22 Thread Laura Creighton
Ned Batchelder has researched this one quite a bit, see: see: http://nedbatchelder.com/blog/201206/eval_really_is_dangerous.html http://nedbatchelder.com/blog/201302/looking_for_python_3_builtins.html http://nedbatchelder.com/blog/201302/finding_python_3_builtins.html Laura -- https://mail.pytho

Re: Qestion

2015-08-23 Thread Laura Creighton
In a message of Sat, 22 Aug 2015 06:53:21 -, ali ranjbar writes: >hi dear friend > >I have python version 2.4.3 > >Which version of PIL is appropriate for me and how can I add it to my systems? > >Regards > >-- >https://mail.python.org/mailman/listinfo/python-list If you really have python 2.

Re: Casting to a "number" (both int and float)?

2015-08-27 Thread Laura Creighton
I suspect your code will have these 2 lines in it somewhere ... if isinstance(field, dict): return int(field['floatApprox']) using isinstance() or type() is generally frowned upon because it breaks duck typing, and makes it necessary for you to write more code every time somebody wants to feed

Re: Having no luck installing Twisted 15.3.0

2015-08-28 Thread Laura Creighton
In a message of Fri, 28 Aug 2015 12:01:40 -0500, Skip Montanaro writes: >One of our users needs Twisted. I built and installed 15.3.0. When I >tried to import it, it complained: > >ImportError Twisted requires zope.interface 3.6.0 or later. > >Skip I've seen this. You used pip to install zope.in

Re: Having no luck installing Twisted 15.3.0

2015-08-28 Thread Laura Creighton
Glad to see it's working. Looking at the notes for 'how to talk to the cheese packaging machine in Oslo' which is where I remember this problem, it seems my fix may be MaxOS specific, anyhow. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Copy polygonal subset of an image

2015-08-28 Thread Laura Creighton
thing working, especially if you think your problem is more along the 'I think I am not understanding Python' lines than the 'I don't know how to make Gimp do this thing'. Laura Creighton -- https://mail.python.org/mailman/listinfo/python-list

Re: pycparser error or openSUSE error

2015-08-28 Thread Laura Creighton
In a message of Sat, 29 Aug 2015 00:51:57 +0200, Cecil Westerhof writes: >When doing a ‘zypper update’ on openSUSE I get: >Installing: python-pycparser-2.12-8.2 >

Re: pycparser error or openSUSE error

2015-08-28 Thread Laura Creighton
In a message of Sat, 29 Aug 2015 01:22:54 +0200, Laura Creighton writes: >In a message of Sat, 29 Aug 2015 00:51:57 +0200, Cecil Westerhof writes: >>When doing a ‘zypper update’ on openSUSE I get: >>Installing: python-pyc

Re: Automation of Windows app?

2015-08-30 Thread Laura Creighton
In a message of Sun, 30 Aug 2015 07:25:55 -0700, ryguy7272 writes: >I know this is an old post, but anyway, can't you just use Windows Scheduler? >http://windows.microsoft.com/en-us/windows/schedule-task#1TC=windows-7 I think you may have missed the original post, where poor old Grant Edwards sai

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-30 Thread Laura Creighton
When you get TypeError: unhashable type: 'dict' it almost always means that you are trying to use a dict as a key for a different dict. Python 2.7.10 (default, Jul 1 2015, 10:54:53) [GCC 4.9.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> d={1:'one', 2:'t

Re: TypeError: unhashable type: 'dict' when attempting to hash list - advice sought

2015-08-30 Thread Laura Creighton
In a message of Sun, 30 Aug 2015 10:34:18 -0700, kbtyo writes: >@Laura - thank you. I observed this earlier. Please see my reply to Ben and >MRAB for the most up to date status. For the more general problem of 'how do I parse my XML' download and use this package. https://pypi.python.org/pypi/x

Re: install pip

2015-08-31 Thread Laura Creighton
In a message of Mon, 31 Aug 2015 15:38:26 +0800, "chenc...@inhand.com.cn" write s: >hi: >I cross compiled python2.7.10 and install python on my embedded >device. But now, I may install pip on my embedded device. So, how can i >do that? https://pip.pypa.io/en/latest/installing.html This is n

Re: AttributeError: 'module' object has no attribute '__path__'

2015-08-31 Thread Laura Creighton
Check and see if you have a file in your working directory with the very same name as a module you are trying to import, or the_same_name.py If so, change the name of that file to something else. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: AttributeError: 'module' object has no attribute '__path__'

2015-08-31 Thread Laura Creighton
In a message of Mon, 31 Aug 2015 17:01:07 -0400, Saran Ahluwalia writes: >Laura, > >It does not appear to be the case. I actually had to actually unset the >PYTHONPATH. > >Thanks for your suggestion. > >Sincerely, >Saran Are you and kbtyo the same person? If deleting your PYTHONPATH fixed it, th

Re: Why Python is not both an interpreter and a compiler?

2015-09-01 Thread Laura Creighton
If I understand what you are saying, then I think what you are looking for is not a compiler, but docker. see: https://www.docker.com/ in particular https://www.docker.com/whatisdocker PyPy used this to produce portable PyPy binaries. See: https://github.com/squeaky-pl/portable-pypy/blob/master/R

Re: How to compare lists

2015-09-01 Thread Laura Creighton
In a message of Tue, 01 Sep 2015 07:08:48 +0200, "Jahn" writes: >1. >How can I save 256 lists, each list has 32 values( hexadecimal numbers) >2. >How to compare the saved lists with another 256 lists ( that are read online >and have the >same structure as the list one)? >( the first list must be

Re: execute commands as su on remote server

2015-09-01 Thread Laura Creighton
In a message of Tue, 01 Sep 2015 05:16:48 -0700, harirammanohar...@gmail.com wr ites: >On Tuesday, 18 August 2015 08:27:33 UTC+5:30, hariramm...@gmail.com wrote: >> execute commands as su on remote server >> >> Postby hariram » Mon Aug 17, 2015 4:02 am >> Needed: >> I need to execute commands aft

Re: Does mkstemp open files only if they don't already exist?

2015-09-01 Thread Laura Creighton
In a message of Wed, 02 Sep 2015 00:57:45 +1000, Chris Angelico writes: >On Wed, Sep 2, 2015 at 12:45 AM, Steven D'Aprano wrote: >> I assume the answer is "Yes", but is it safe to expect that >> tempfile.mkstemp() will only create a file that doesn't already exist? I >> presume that there's no cha

Re: Why Python is not both an interpreter and a compiler?

2015-09-01 Thread Laura Creighton
In a message of Tue, 01 Sep 2015 19:20:51 +0300, Marko Rauhamaa writes: >Somehow Guile manages it even though Scheme is at least as dynamic a >language as Python. But are Guile programs small? I the OP made a categorisation error, confusing correlation with causation. (i.e. the presence of feath

Re: Low level file descriptors and high-level Python files

2015-09-01 Thread Laura Creighton
In a message of Wed, 02 Sep 2015 00:57:22 +1000, "Steven D'Aprano" writes: >Let's suppose somebody passes me a file descriptor to work with. It could >come from somewhere else, but for the sake of discussion let's pretend I >create it myself this way: >Q1: In this example, I know that I opened th

Re: Why Python is not both an interpreter and a compiler?

2015-09-01 Thread Laura Creighton
>But are Guile programs small? I the OP made a categorisation error, >confusing correlation with causation. (i.e. the presence of >feathers makes a animal able to fly). s/I the/I think the/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Low level file descriptors and high-level Python files

2015-09-02 Thread Laura Creighton
In a message of Tue, 01 Sep 2015 22:19:15 -, Grant Edwards writes: >On 2015-09-01, Laura Creighton wrote: > >> Don't go around closing things you don't know are open. They >> could be some other processes' thing. > >I don't understand. Closing a

Re: Why Python is not both an interpreter and a compiler?

2015-09-02 Thread Laura Creighton
In a message of Wed, 02 Sep 2015 10:50:15 +1000, Chris Angelico writes: >And compiled C programs are notoriously hard to distribute. Can you >pick up a Guile binary and carry it to another computer? Do you have >to absolutely perfectly match the libguile version, architecture, >build settings, etc?

Re: Getting the logging level from text representation

2015-09-02 Thread Laura Creighton
In a message of Wed, 02 Sep 2015 12:14:44 +0200, Antoon Pardon writes: See: https://docs.python.org/3.5/library/logging.html#levels you can just use 30 everywhere for warning, and that is what Logger.getEffectiveLevel() will tell you even if you initialised it with the text form. Laura -- https

Re: error

2015-09-02 Thread Laura Creighton
>import numpy as np > >import netCDF4 > >f = netCDF4.Dataset('uwnd.mon.ltm.nc','r') > > >f.variables > > >and I had the message: > > >netcdf4.py >Traceback (most recent call last): >File "", line 1, in >NameError: name 'netcdf4' is not defined You have a file called netcdf4.py It contains the

Re: .py to .html generation

2015-09-03 Thread Laura Creighton
In a message of Wed, 02 Sep 2015 22:04:03 -0700, uday3prak...@gmail.com writes: >Hi friends! > >Can some one help me with the best module and/or its tutorial, to generate >html reports for python scripts? > >I tried pyreport and sphc; but, i am getting errors. >-- >https://mail.python.org/mailma

Re: .py to .html generation

2015-09-03 Thread Laura Creighton
In a message of Thu, 03 Sep 2015 09:22:27 +0200, Laura Creighton writes: >There is also a report generator implemented as an extension to sphinx. >https://github.com/AndreasHeger/CGATReport >Interfaces nicely with ipython. Makes it easy to stick matplotlib >graphs into your repor

Re: Strange location for a comma

2015-09-03 Thread Laura Creighton
In a message of Thu, 03 Sep 2015 14:20:06 +0200, "ast" writes: >Hello, > >At the end of the last line of the following program, >there is a comma, I dont understand why ? > >Thx > > >from cx_Freeze import setup, Executable > ># On appelle la fonction setup >setup( >name = "salut", >version

Re: sending push notifications

2015-09-03 Thread Laura Creighton
In a message of Thu, 03 Sep 2015 08:30:35 -0400, Larry Martell writes: >I'm looking for people's experiences with the different ways to send >push notifications to mobile devices. I have an app that will be >running on Amazon, so I can use their SNS API or I can do it myself. >>From googling there

Re: Strange location for a comma

2015-09-03 Thread Laura Creighton
No, I am wrong. You are in the middle of a fuction definition. You are correct, that is a wierd place for a comma, though I can see doing that if you anticipate adding more arguments to the function in the near future. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: How do I real a SSL certs serial number using Python?

2015-09-03 Thread Laura Creighton
Is this a good enough point? https://pyopenssl.readthedocs.org/en/stable/api/crypto.html?highlight=serial%20number#OpenSSL.crypto.X509.get_serial_number Write back if you need more help. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Porting Python Application to a new linux machine

2015-09-03 Thread Laura Creighton
In a message of Thu, 03 Sep 2015 07:32:55 -0700, Heli Nix writes: >Dear all, > >I have my python scripts that use several python libraries such as h5py, >pyside, numpy > >In Windows I have an installer that will install python locally on user >machine and so my program gets access to this l

Re: XML Binding

2015-09-03 Thread Laura Creighton
In a message of Thu, 03 Sep 2015 22:21:29 -0700, Palpandi writes: >Thanks Burak. > >lmxl is good. But it is not supported with python 2.5. Any other option? >-- >https://mail.python.org/mailman/listinfo/python-list check and see what python you have. If 2.6 or more recent, use lxml If you have 2

Re: XML Binding

2015-09-03 Thread Laura Creighton
In a message of Fri, 04 Sep 2015 08:46:33 +0200, Laura Creighton writes: >In a message of Thu, 03 Sep 2015 22:21:29 -0700, Palpandi writes: >>Thanks Burak. >> >>lmxl is good. But it is not supported with python 2.5. Any other option? >>-- >>https://mail.python

Re: Python Package installation causing [Error 13] Permission Denied on Windows 7

2015-09-04 Thread Laura Creighton
Over in the physics lab we have a big sign, which (translated) says: 'For windows 7, it is not enough to _be_ an admininstrator to install packages. When opening up the command prompt you also have to select the 'run as administrator' option.' No windows system here to test, but maybe this is y

Re: Permission denied error in download nltk_data...

2015-09-04 Thread Laura Creighton
In a message of Fri, 04 Sep 2015 18:50:11 +0800, Dwight GoldWinde writes: >Please helpŠ(my apologizesŠI got a response to this before, but I CANNOT >find it now)Š https://mail.python.org/pipermail/python-list/2015-August/695546.html Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Laura Creighton
In a message of Sun, 06 Sep 2015 04:50:23 -0700, tropical.dude@gmail.com wr ites: >Hello everyone, > >I want to use python for web development but I >could not configure my Apache server to run python >with the guides I found on the internet. > >Can anyone help me configure http.server >to run

Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread Laura Creighton
In a message of Sun, 06 Sep 2015 14:16:37 +0200, Chris Warrick writes: >Don’t use http.server. Don’t use CGI. This is not how things work in Python. > >In Python, you should use a web framework to write your code. Web >frameworks include Flask, Django, Pyramid… Find one that’s popular and >that you

<    1   2   3   4   5   6   7   >