Re: Python 2 ‘print’, coercing arguments to Unicode

2015-10-06 Thread Laura Creighton
I think the thing you want to converse is your stringIO not your print. I think you do this using six.stringIO https://pythonhosted.org/six/ But I have only read the doc, not done this in practice. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 2 ‘print’, coercing arguments to Unicode

2015-10-06 Thread Laura Creighton
Hmm, now that I read the six document again @six.python_2_unicode_compatible seems exactly what you are asking for ... https://pythonhosted.org/six/ Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Pyserial and Ubuntu Linux kernel 3.13.0-65-generic

2015-10-06 Thread Laura Creighton
In a message of Tue, 06 Oct 2015 21:31:02 -, Grant Edwards writes: >On 2015-10-03, Laura Creighton wrote: > >> https://bugs.launchpad.net/ubuntu/+source/linux-lts-trusty/+bug/1501345 >> seems to be about a whole lot of serial ports to me, not just FTDI > >We just r

Re: Windows 32-bit Python 3.5 Install Failure

2015-10-07 Thread Laura Creighton
In a message of Tue, 06 Oct 2015 23:39:19 +0100, Ben Thompson writes: >Hi, > >I just tried using the 32-bit Python 3.5 installer for Windows from >python.org. The program seemed to run OK, I ticked the path box but >there seems to be no working python 3.5 on my (32-bit, XP) computer. The >screen

Re: certifi or tornadoweb broken? What is happening here?

2015-10-07 Thread Laura Creighton
There is discussion here about problems with ubuntu certificate handling. https://bugs.python.org/issue23476, with links to ubuntu bugs that you should read. No promises that this is your bug, but seems possible. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Is there a Windows Python SIG?

2015-10-08 Thread Laura Creighton
In a message of Thu, 08 Oct 2015 00:15:26 -0500, Anthony Papillion writes: >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA512 > >Over the next few months, I'll be working on a project using Python on >Microsoft Windows. While I'm doing this project, I'd also like to contribute >in any way I can

Re: change data in large excel file(more than 240 000 rows on sheet)

2015-10-08 Thread Laura Creighton
You need to use the optimised reader. https://openpyxl.readthedocs.org/en/latest/optimized.html Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Planet Scipy blog

2015-10-08 Thread Laura Creighton
In a message of Thu, 08 Oct 2015 15:10:21 +0100, Mark Lawrence writes: >On 08/10/2015 14:39, beliavsky--- via Python-list wrote: >> There used to be a blog about SciPy at https://planet.scipy.org/ , >> discussing the applications of Python to scientific computing. Now there is >> a static page ab

Re: Installation problem

2015-10-08 Thread Laura Creighton
In a message of Thu, 08 Oct 2015 15:49:56 +0100, Tim Golden writes: >On 08/10/2015 14:25, MICHAEL wrote: >> Hello, >> >> Please forgive a new user's ignorance. >> >> I am trying to install Python 3.5.0 on my laptop (Windows 10). The >> default installation directory is shown as c:\Users\(my user

Re: Installation problem

2015-10-08 Thread Laura Creighton
In a message of Thu, 08 Oct 2015 16:34:15 +0100, Tim Golden writes: >On 08/10/2015 16:27, Laura Creighton wrote: >> In a message of Thu, 08 Oct 2015 15:49:56 +0100, Tim Golden writes: >>> On 08/10/2015 14:25, MICHAEL wrote: >>>> Hello, >>>> >>>&

Re: change data in large excel file(more than 240 000 rows on sheet)

2015-10-09 Thread Laura Creighton
In a message of Fri, 09 Oct 2015 01:21:37 -0700, gall.pavgal.g...@gmail.com wri tes: >Thanks Laura! >But i need to change existing excel file and if i use the optimised reader, i >can read data only, but i can't change data. Hmmm. When I have this problem I have other problems as well, and the

Re: Script To Remove Files Made Either By Python Or Git

2015-10-09 Thread Laura Creighton
In a message of Fri, 09 Oct 2015 21:08:22 +1100, Joshua Stokes writes: >Hi > >Is there an available script to remove file created by either using the Python >module or by using git? > >Thanks > >>From Joshua P Stokes No. A file is a file. It doesn't know which program created it. I can use pyth

Re: Errors installing xmiparser with Python 3.4 and windows - any help?

2015-10-09 Thread Laura Creighton
In a message of Fri, 09 Oct 2015 10:24:34 -0700, Gary Hanyzewski writes: >I am trying to install xmiparser-1.5.dev-r124826 into python 3.4.0 on a >windows machine. >When I try and install (either with pip or setup.py install) I get a number of >syntax errors in the code ( below) > >Has anyone ma

Re: Errors installing xmiparser with Python 3.4 and windows - any help?

2015-10-09 Thread Laura Creighton
In a message of Fri, 09 Oct 2015 10:24:34 -0700, Gary Hanyzewski writes: >I am trying to install xmiparser-1.5.dev-r124826 into python 3.4.0 on a >windows machine. >When I try and install (either with pip or setup.py install) I get a number of >syntax errors in the code ( below) > >Has anyone ma

Re: How do I extend a class that I never instantiate myself?

2015-10-10 Thread Laura Creighton
In a message of Sat, 10 Oct 2015 10:02:24 -0700, speeze.pear...@gmail.com write s: >I should just use the existing library's `Node` class, and write >my library in a functional style. Don't define `MyNode.foo()`, >instead define `mylibrary.foo(my_node)`. >I've got nothing against functional progra

Re: Python problem

2015-10-10 Thread Laura Creighton
0 installer never was well tested with it. Can you open a bug report over here: bugs.python.org, and mention windows 10. If you got a log for what you were doing, please include that. Sorry for the hassle, Laura Creighton -- https://mail.python.org/mailman/listinfo/python-list

Re: Problem encountered using v3.5

2015-10-11 Thread Laura Creighton
In a message of Sat, 10 Oct 2015 16:16:14 -0700, Ben S writes: >http://stackoverflow.com/questions/33041621/python-attributeerror-when-calling-nltk-brown-corpus > >I am going to install the 32 bit python v3.5 to see if that works. > >Thanks, >Ben This looks like this nltk bug. https://github.com/

Re: Relaxed, or best-efforts JSON parser for Python?

2015-10-12 Thread Laura Creighton
In a message of Sun, 11 Oct 2015 17:56:33 -0700, Victor Hooi writes: >Hi, > >I'm attempting to parse MongoDB loglines. > >The formatting of these loglines could best be described as JSON-like... > >For example - arrays > >Anyhow, say I had the following logline snippet: > >{ Global: { acquireC

Re: Some Help getting started

2015-10-13 Thread Laura Creighton
In a message of Mon, 12 Oct 2015 16:58:40 -0600, Ian Kelly writes: >Just saying that it doesn't work doesn't help us help you. What >precisely have you tried, and what was the error that you got when you >tried it? What Ian said. Also what python version are you using and what OS? Laura -- htt

Re: Strong typing implementation for Python

2015-10-13 Thread Laura Creighton
In a message of Mon, 12 Oct 2015 19:35:57 -0600, Michael Torrie writes: >On 10/12/2015 06:07 PM, Steven D'Aprano wrote: >> Where is the "vast amounts of noise" added to the code? > >Well in Java code for one. No wonder they require auto-completion. >Java class-based namespaces must be a nightmare

sorry for all the typos

2015-10-13 Thread Laura Creighton
re-reading what I wrote after Marko quoted it, I see an unacceptable level of typos and other sentence structure errors. I have eyedrops in my eyes today. I really cannot read what I type well enough. Amusing that my fingers find 'struct' a more reasonable thing to type than 'struck', (to me

Re: Extended functions in embedded code

2015-10-13 Thread Laura Creighton
Are you looking for this:? https://docs.python.org/3.5/library/runpy.html or maybe this:? https://docs.python.org/3.5/library/importlib.html#importlib.import_module Or is your real problem 'I don't have a filesystem'? Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Strong typing implementation for Python

2015-10-13 Thread Laura Creighton
In a message of Tue, 13 Oct 2015 13:31:56 +0100, Bartc writes: >On 13/10/2015 11:42, Marko Rauhamaa wrote: > >> A few years back I programmed in Java. I literally had to write (or >> generate) 2,000 lines of code to satisfy the structural requirements >> (interfaces, method stubs, javadocs, ...) be

Re: request

2015-10-13 Thread Laura Creighton
In a message of Tue, 13 Oct 2015 13:28:29 -0600, paul.hermeneu...@gmail.com wri tes: >On Oct 13, 2015 1:16 PM, "Uday Pethakamsetty" >wrote: > >> The problem is that when I installed python 3.5, all the pip installs are >directing to python 3.5, instead of my native python 2.7. >> > >Probably, this

Re: Extended functions in embedded code

2015-10-13 Thread Laura Creighton
In a message of Tue, 13 Oct 2015 22:28:54 +0200, Ervin Hegedüs writes: >Hi Chris, > >what I misses: currently I'm using Python 2.7. > >On Wed, Oct 14, 2015 at 02:48:57AM +1100, Chris Angelico wrote: >> On Wed, Oct 14, 2015 at 2:29 AM, Ervin Hegedüs wrote: >> >> >> >> Sounds to me like the easiest

Re: Error see image

2015-10-14 Thread Laura Creighton
In a message of Wed, 14 Oct 2015 03:03:31 -, laverdur...@gmail.com writes: >hello I have this error >while trying to re-install the program and it’s still show >can you please help me ? 1. If you are running XP, you cannot run 3.5. XP is not supported. 2. Otherwise The api-ms-win-crt-runt

Re: Defamation

2015-10-19 Thread Laura Creighton
In a message of Tue, 20 Oct 2015 01:14:14 +1100, Chris Angelico writes: >On Mon, Oct 19, 2015 at 7:31 AM, gaini2002--- via Python-list > wrote: >> Please remove the page >> https://mail.python.org/pipermail/python-list/2014-September/678498.html > >That page is just spam that someone sent to the ne

Re: Defamation

2015-10-19 Thread Laura Creighton
In a message of Mon, 19 Oct 2015 08:36:37 -0600, Michael Torrie writes: >On 10/19/2015 08:14 AM, Chris Angelico wrote: >> On Mon, Oct 19, 2015 at 7:31 AM, gaini2002--- via Python-list >> wrote: >>> Please remove the page >> >> That page is just spam that someone sent to the newsgroup/mailing >> li

Re: Defamation

2015-10-20 Thread Laura Creighton
In a message of Wed, 21 Oct 2015 00:09:18 +1100, "Steven D'Aprano" writes: >On Tue, 20 Oct 2015 03:28 am, Laura Creighton wrote: > >> Actually, this one was part of a huge set of defaming articles sent a >> year ago we were requested to remove, and did. European L

Re: Defamation

2015-10-20 Thread Laura Creighton
In a message of Wed, 21 Oct 2015 10:30:35 +1100, "Steven D'Aprano" writes: >On Wed, 21 Oct 2015 01:44 am, Laura Creighton wrote: >> No, we are removing them because we want to. > >Who are "we"? You're not talking about *you and me*. Anybody who was

Re: A high-level cross-platform API for terminal/console access

2015-10-21 Thread Laura Creighton
In a message of Wed, 21 Oct 2015 11:30:25 -0700, Peter Brittain writes: >I have recently been working on a terminal/console animation package >(https://github.com/peterbrittain/asciimatics). Beyond the high-level >animation methods/objects it provides, it also needed to be cross-platform and >an

Re: select.poll and ppoll

2015-10-22 Thread Laura Creighton
In a message of Thu, 22 Oct 2015 16:38:52 +1100, "Steven D'Aprano" writes: >Using Python 2.6, don't hate me. >Technically, *I* don't want this, it's one of my work-colleagues. He says: > >"My high-level goal is to run a callback function whenever the alsa mixer >level changes. The C alsa API pro

Re: A high-level cross-platform API for terminal/console access

2015-10-22 Thread Laura Creighton
In a message of Thu, 22 Oct 2015 02:02:28 -0700, Peter Brittain writes: >On Wednesday, October 21, 2015 at 11:26:40 PM UTC+1, eryksun wrote: >> >> Also check out the curses module that's available on Christoph Gohlke's site: >> >> http://www.lfd.uci.edu/~gohlke/pythonlibs/#curses > >Neat. I

Re: Defamation

2015-10-22 Thread Laura Creighton
In a message of Thu, 22 Oct 2015 11:33:13 +0100, Oscar Benjamin writes: >I have a feeling that something may have changed recently but >certainly until a few years ago we used to have lots of cases of >"libel tourism" in the UK. This is where someone decides to bring a >libel case which has nothing

Re: Defamation

2015-10-22 Thread Laura Creighton
The UK libel reform act of 2013, I see, may be responsible for the decline in libel tourism. http://www.libelreform.org/ Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: UNABLE TO GET IDLE TO RUN

2015-10-23 Thread Laura Creighton
In a message of Fri, 23 Oct 2015 00:19:42 -0400, Terry Reedy writes: >On 10/21/2015 11:24 AM, Terry Alexander via Python-list wrote: > >> I have tried installing both Python 2.7 and 3.5, and in both cases I >> cannot get IDLE to work. I received the following message both times: > >What OS? Windows

Re: UNABLE TO GET IDLE TO RUN

2015-10-25 Thread Laura Creighton
In a message of Fri, 23 Oct 2015 11:42:54 +0200, Peter Otten writes: >I tried it out: > >$ mkdir test >$ cd test >$ touch string.py >$ idle3 >Traceback (most recent call last): > File "", line 1, in > File "/usr/lib/python3.4/idlelib/run.py", line 12, in >from idlelib import CallTips > Fil

Re: Fw: Python 3.5.0 (32-bit) won't install to Windows XP

2015-10-27 Thread Laura Creighton
Python.org is not supporting XP for 3.5 and beyond. You need to upgrade your OS, or stick with 3.4 Laura Creighton -- https://mail.python.org/mailman/listinfo/python-list

Re: UNABLE TO GET IDLE TO RUN

2015-10-29 Thread Laura Creighton
I think that it would be useful if IDLE spit out a warning: Warning: local file /u/lac/junk/string.py shadows module named string in the Standard Library Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Most space-efficient way to store log entries

2015-10-29 Thread Laura Creighton
Did the OP say he wanted to keep his compressed logfiles on a local disk? What if he wants to send them across the internet to some other machine and would like the transfer to happen as quickly as possible? Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: system error - api-ms-win-crt-runtime-l1-1-0.dll

2015-10-29 Thread Laura Creighton
1. If you are running XP, you cannot run Python 3.5. XP is not supported. You need to get a newer OS. 2. Otherwise, the api-ms-win-crt-runtime-l1-1-0-dll is Microsofts Universal CRT. You don't have one. You need to install it. Get it here: http://www.microsoft.com/en-us/download/detail

Re: Problem working with subprocess.check_call

2015-10-29 Thread Laura Creighton
In a message of Thu, 29 Oct 2015 09:52:56 +, David Aldrich writes: >Hi > >I am working on Linux with Python 3.4. > >I want to do a bash diff on two text files and show just the first 20 lines of >diff's output. So I tried: > cmd = 'head -20 <(diff ' + file1 + ' ' + file2 + ')' subpr

Re: Problem working with subprocess.check_call

2015-10-29 Thread Laura Creighton
In a message of Thu, 29 Oct 2015 11:11:17 +0100, Laura Creighton writes: >In a message of Thu, 29 Oct 2015 09:52:56 +, David Aldrich writes: >>Hi >> >>I am working on Linux with Python 3.4. >> >>I want to do a bash diff on two text files and show just the f

Re: python.exe is not a valid win32 executable

2015-10-29 Thread Laura Creighton
In a message of Thu, 29 Oct 2015 17:14:25 +0100, "Steffen Herzfeldt" writes: >Hi, >today i downloaded python3.5.0 x86 (win32) installer. >after the programm installed the files into its standard directory without >asking me if i wanted it in a different position, i tried running a program >that was

Re: python.exe is not a valid win32 executable

2015-10-29 Thread Laura Creighton
In a message of Fri, 30 Oct 2015 03:36:36 +1100, Chris Angelico writes: >I don't know what you mean by "natively", but I play a number of >DirectX games on my Debian Linux. Give it a try! You might find that >it all works perfectly. Or, if you develop games, you might not http://www.pcworld.c

Re: python.exe is not a valid win32 executable

2015-10-29 Thread Laura Creighton
In a message of Thu, 29 Oct 2015 19:21:14 +0100, Gisle Vanem writes: >Wouldn't it be more elegant of Python (and it's installer) >to put a '-subsystem:console,5.02' in the link flags? >And then detect Win-XP later on and refuse a further install? > >-- >--gv >-- >https://mail.python.org/mailman/l

Re: Most space-efficient way to store log entries

2015-10-29 Thread Laura Creighton
In a message of Fri, 30 Oct 2015 08:28:07 +1100, Cameron Simpson writes: >On 29Oct2015 09:15, Laura Creighton wrote: >>Did the OP say he wanted to keep his compressed logfiles on a >>local disk? What if he wants to send them across the internet >>to some other machine and wo

Re: Most space-efficient way to store log entries

2015-10-29 Thread Laura Creighton
In a message of Fri, 30 Oct 2015 09:47:42 +1100, Cameron Simpson writes: >Another post suggests that the OP is transferring log info in UDP packets and >hopes to keep the state within a maximum packet size, hence his desire for >compact representation. I suspect that personally I'd be going for s

Re: UNABLE TO GET IDLE TO RUN

2015-10-30 Thread Laura Creighton
In a message of Fri, 30 Oct 2015 16:21:30 +0100, Michiel Overtoom writes: >Hi, > >Laura wrote: >> I think that it would be useful if IDLE spit out a warning > >An ounce of prevention is worth a pound of cure. Maybe it's an idea that IDLE >gives a warning when you're trying to save a file with a na

Re: Unittests and serial workflows

2015-10-30 Thread Laura Creighton
In a message of Sat, 31 Oct 2015 12:46:53 +1100, Chris Angelico writes: >If the order of test execution affects the overall pass/fail of the >test set, then yes, that's a problem. But if, as in the OP's example, >some tests assume the correct operation of features tested >individually elsewhere, it

Re: Puzzled

2015-11-01 Thread Laura Creighton
In a message of Fri, 30 Oct 2015 09:20:23 -0700, "Robinson, Wendy" writes: >Hi there, >I installed Python 3.5.0 64-bit for Windows yesterday and tried some basic >programs successfully. >This morning I rebooted my computer and can't get a single one to work. The >interpreter seems to be fine and

Re: installer user interface glitch ?

2015-11-01 Thread Laura Creighton
In a message of Sun, 01 Nov 2015 10:23:15 +0200, t_ciorba--- via Python-list wr ites: >hi, >i am not sure what is wrong, but after launching the installer for windows >XPsp3 python-3.5.0.exe i couldnt see what i have to select, it was a white >board and the only button on it was "cancel". here is

Re: installer user interface glitch ?

2015-11-01 Thread Laura Creighton
In a message of Sun, 01 Nov 2015 11:24:55 +0100, Laura Creighton writes: >In a message of Sun, 01 Nov 2015 10:23:15 +0200, t_ciorba--- via Python-list wr >ites: >>hi, >>i am not sure what is wrong, but after launching the installer for windows >>XPsp3 python-3.5.0.exe i co

Re: Multithreading python,two tkinter windows

2015-11-01 Thread Laura Creighton
In a message of Sun, 01 Nov 2015 06:05:58 -0800, Vindhyachal Takniki writes: >I have made a python code & using multithreading in it. this is very basic >code, not using queues & other stuff. This is your problem. The code that uses queues is more basic. For tkinter you cannot use threads like yo

Re: Python 2 vs Python 3 for teaching

2015-11-01 Thread Laura Creighton
In a message of Mon, 02 Nov 2015 01:27:24 +1100, Chris Angelico writes: >On Mon, Nov 2, 2015 at 1:11 AM, wrote: >> On Nov 1, 2015 2:45 AM, "Chris Angelico" wrote: >>> >>> I'm proud to say that a Python tutoring company has just converted its >>> course over from teaching Python 2.7 to teaching 3

Re: UNABLE TO GET IDLE TO RUN

2015-11-01 Thread Laura Creighton
I managed to delete the real mail I would like to reply to. This is, at least in the same thread In a message of Mon, 02 Nov 2015 01:27:23 +1100, "Steven D'Aprano" writes a reply to Michael Overtoon: > Users are inclined to ignore alerts, dialogs and error messages, and > applications try ve

Re: installer user interface glitch ?

2015-11-01 Thread Laura Creighton
The important thing is that, numbers-wise, windowsXP was the version of computer a whole lot of people got when they got their first computer. The notion of, not it "wearing out" but that the whole world "wore out" or "advanced beyond" them is foreign to them. They aren't computer-hobbyists -- t

Re: installer user interface glitch ?

2015-11-01 Thread Laura Creighton
In a message of Sun, 01 Nov 2015 17:56:33 +, Grant Edwards writes: >On 2015-11-01, Laura Creighton wrote: > >> The whole message of 'get a newer os' is decidedly hard for them. >> "It works fine, like my 2004 Ford car" they want to tell you. > >Exc

Re: installer user interface glitch ?

2015-11-01 Thread Laura Creighton
Actually, adding the XP - do not look here -- message for several webpages has been on the pydotorg todo list for more than a week now. Not sure why it hasn't happened. Thank you for the reminder. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Top Engineers

2015-11-05 Thread Laura Creighton
'SoMa', precisely because they are South of some large Street whose name begins with 'Ma'? If you are trying to find people, we have a jobs board for that. https://www.python.org/jobs/ Use it. Stop damaging your reputation by posting things here. Laura Creighton -- https://mai

Re: Puzzled

2015-11-05 Thread Laura Creighton
In a message of Thu, 05 Nov 2015 12:48:11 -0800, "Robinson, Wendy" writes: >Well... I still can't get this to work. I guess I'll just uninstall it. >It's a bummer that there's no help on basic startup like this. > >Wendy Robinson >Audit Analyst >(916) 566-4994 phone There is enormous amount of hel

Re: PIL module for 64bit Python 2.7

2015-11-06 Thread Laura Creighton
In a message of Fri, 06 Nov 2015 20:55:34 +0100, "Jahn" writes: >Can anyone lat me know where I can download PIL module for 64bit Python 2.7 ? > I found for 32 bit Python 2.7 only and the installation ended with an error > that the >Python 2.7 was not found in registers. >Thank you The Modern

Re: Question about math.pi is mutable

2015-11-07 Thread Laura Creighton
In a message of Sat, 07 Nov 2015 13:00:37 +, Bartc writes: >Not just my option. From this 2010 paper for example ('High performance >implementation of Python for CLI ...' by Antonio Cuni): > >"As a language, Python is very hard to implement efficiently: the >presence of highly dynamic constr

Re: [Ubuntu] PyQt5

2015-11-08 Thread Laura Creighton
In a message of Sun, 08 Nov 2015 06:36:26 +0100, Vincent Vande Vyvre writes: >Le 08/11/2015 04:13, Andrew Diamond a écrit : >> Hi! >> >> I'm fairly new to Python, and installed pyqt5 and began working through the >> examples at http://zetcode.com/gui/pyqt5/menustoolbars/ However, whenever I >> c

Re: Is there an archive of the gohlke python binaries on windows

2015-11-08 Thread Laura Creighton
In a message of Sat, 07 Nov 2015 21:55:32 -0800, Sayth Renshaw writes: >Just wondering if there is an archive mirror for these binaries available. i >was looking for lxml 3.4.1 and the current version is the latest on the page >at 3.4.4 being on windows I cannot build it. > >http://www.lfd.uci.ed

Re: Python 3.5.0: python.exe is not a valid Windows 32 application

2015-11-08 Thread Laura Creighton
In a message of Sun, 08 Nov 2015 13:34:22 +0100, Tomáš Beňák writes: >Hi, > >I have downloaded the Python 3.5.0 installer for x86 ( >https://www.python.org/ftp/python/3.5.0/python-3.5.0.exe) and have >installed it on my Windows XP SP3. The installer run to a successful end, >but when I try to run p

Re: how to copy PyObject * memory data to another memory address?

2015-11-08 Thread Laura Creighton
In a message of Sat, 07 Nov 2015 21:23:51 +0800, yueyoum writes: >I'm working on a C program that has Python embedded. The host program is multi >processes, which communicate via shared memory (mmap). I create a Python >object (e.g., PyDict_New) in one process. How can I copy this data to shared

Re: [Ubuntu] PyQt5

2015-11-08 Thread Laura Creighton
In a message of Sun, 08 Nov 2015 18:05:32 -0500, Terry Reedy writes: >On 11/8/2015 11:03 AM, Andrew Diamond wrote: >> On Saturday, November 7, 2015 at 10:13:25 PM UTC-5, Andrew Diamond >> wrote: >>> Hi! >>> >>> I'm fairly new to Python, and installed pyqt5 and began working >>> through the examples

Re: Probelm with installing Python 3.5.0

2015-11-09 Thread Laura Creighton
In a message of Mon, 09 Nov 2015 17:17:08 +0800, lim_ee_...@ite.edu.sg writes: >Dear Python organisation staff, > > The Python 3.5.0 was successfully installed. But encountered missing dll >upon running the program. > > > >My computer is running on Win 7. > >Any advise to resolve this issue? > >Rg

Re:

2015-11-09 Thread Laura Creighton
d a lot more information about what it was that 'didn't work' before we can help you. Also, you might find it easier to write to a Spanish Languge Python mailing list, like this one. https://lists.es.python.org/listinfo/general Laura Creighton -- https://mail.python.org/mailman/listinfo/python-list

Re: Question about math.pi is mutable

2015-11-09 Thread Laura Creighton
In a message of Tue, 10 Nov 2015 06:45:40 +1100, Ben Finney writes: >So the remaining space of code that is safe for the proposed >optimisation is trivially small. Why bother with such optimisations, if >the only code that can benefit is *already* small and simple? You have things backwards. The r

Re: Getting response by email reply message

2015-11-09 Thread Laura Creighton
In a message of Mon, 09 Nov 2015 13:45:32 -0800, zljubi...@gmail.com writes: >> I'm assuming this is a website. If so, why not use a form with a checkbox? > >One of ideas is to put two url's in the email, one for yes and the other one >for no. > >I am also thinking about reading/parsing the reply

Re: Getting response by email reply message

2015-11-10 Thread Laura Creighton
In a message of Mon, 09 Nov 2015 23:09:50 -0800, zljubi...@gmail.com writes: >> If what you really need is a voting application, you can look at >> https://github.com/mdipierro/evote which the PSF uses for its elections. > >It is not a voting application (I will have more than yes/no answers). >I

Re: Question about math.pi is mutable

2015-11-10 Thread Laura Creighton
In a message of Tue, 10 Nov 2015 17:10:09 +1100, Ben Finney writes: >Steven D'Aprano writes: > >> Ben, I fear that you are not paying attention to me :-) > >Possibly, though I also think there's miscommunication in this thread. > >You speak of “compile time” and “run time”. You also speak of what

Re: Getting response by email reply message

2015-11-10 Thread Laura Creighton
In a message of Tue, 10 Nov 2015 11:23:21 +0100, Laura Creighton writes: >Their is no demand for 'yes/no answers' -- you can typically vote for s/Their/There/ ... >the whole thing way, way, way to heavy-weight for most purposes. s/to/too/ also s/heavy-weight/heavyweight/ depen

Re: Python.exe is not a valid Win32 application error message

2015-11-12 Thread Laura Creighton
In a message of Wed, 11 Nov 2015 08:28:11 -0700, Michael Torrie writes: >The Python website is looking very professional and polished these days. > But we still don't have a simple message on the download page telling >people Windows XP is no longer supported. Given the number of people >posting l

Re: Python Trouble

2015-11-12 Thread Laura Creighton
In a message of Wed, 11 Nov 2015 20:01:46 +, Kaif Mahmood writes: >I downloaded the recent version of Python and after it downloaded I tried IDLE. But when I tried to load it, it didn’t load and just acted as if nothing happened. All of the other features work fine, it’s just IDLE not worki

Re: Matplotlib error: Value Error: x and y must have same first dimension

2015-11-13 Thread Laura Creighton
In a message of Thu, 12 Nov 2015 17:54:28 -0800, Abhishek writes: >I am trying to run some Python code for the last few hours. How can I achieve >the effect of "dot divide" from Matlab, in the following code? I am having >trouble working with list comprehension and numpy arrays and getting the >

Re:

2015-11-13 Thread Laura Creighton
In a message of Fri, 13 Nov 2015 14:47:12 +0530, Animesh Srivastava writes: >Whenever i install python 3.5.0 compiler >It gives me error 0x07b >Can u please resolve it >-- >https://mail.python.org/mailman/listinfo/python-list Maybe this is your problem http://www.bitdefender.com/support/how-t

Re: Matplotlib error: Value Error: x and y must have same first dimension

2015-11-13 Thread Laura Creighton
In a message of Fri, 13 Nov 2015 14:04:01 +, Oscar Benjamin writes: >On 13 November 2015 at 08:34, Laura Creighton wrote: >> In a message of Thu, 12 Nov 2015 17:54:28 -0800, Abhishek writes: >>>I am trying to run some Python code for the last few hours. How can I >&g

Re: More tkinter Madness

2015-11-13 Thread Laura Creighton
In a message of Fri, 13 Nov 2015 13:14:08 -0600, Tim Daneliuk writes: >On 11/13/2015 12:32 AM, Christian Gollwitzer wrote: >> Apfelkiste:Sources chris$ > >Well, I get window and when I do this: > >pack [button .b -text Hello -command exit] > >Nothing appears. > >tkinter appears borked > >I have rei

Re: Problems using struct pack/unpack in files, and reading them.

2015-11-13 Thread Laura Creighton
In a message of Fri, 13 Nov 2015 14:20:45 -0500, kent nyberg writes: >Hi there, >Im deeply sorry for yet another question to this list. I have come across a >problem to which google seems not >to eager to supply the anwser. > >The problem is the following. >First I do this: > >def setup_drive():

Re: Problems using struct pack/unpack in files, and reading them.

2015-11-13 Thread Laura Creighton
I forgot to add. You get this wretched error message if your data is shorter than expected, and you ask struct to read more than you have, as well. most annoying. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: find which Python libraries are most influential in scientific research

2015-11-13 Thread Laura Creighton
In a message of Sat, 14 Nov 2015 00:38:41 -0500, Terry Reedy writes: >On 11/13/2015 10:58 PM, Ian Kelly wrote: >> On Nov 9, 2015 7:41 PM, "Heather Piwowar" wrote: >>> >>> Today's scientists often turn to Python to run analysis, simulation, and >> other sciency tasks. >>> >>> That makes us wonder:

Re: Mapping between python packages and distro packages?

2015-11-18 Thread Laura Creighton
In a message of Wed, 18 Nov 2015 17:44:51 +1100, Chris Angelico writes: >I don't know how the program would detect it, but I'd be thinking "the >one where 'sudo apt-get install PACKAGENAME' gets the same code that >'pip install THING' gets". In a lot of cases, PACKAGENAME will simply >be python-TH

Re: How to create a folder using IMAPLib?

2015-11-18 Thread Laura Creighton
In a message of Thu, 19 Nov 2015 07:35:36 +1100, Chris Angelico writes: >On Thu, Nov 19, 2015 at 7:01 AM, Anthony Papillion > wrote: >> I'm writing a program to help migrate mail from one host to another >> with a few special circumstances. I'm able to get a list off of the >> source IMAP server us

Re: Public key encryption example.

2015-11-19 Thread Laura Creighton
In a message of Wed, 18 Nov 2015 16:18:28 -0700, Vincent Davis writes: >This might be a "Let me Google that for you question", I tried. >I am looking for the "simplest" example of sending(encrypting) and >receiving(decrypting) using public key encryption. I am think of something >along the lines of

Re: PubMed / Entrez

2015-11-19 Thread Laura Creighton
In a message of Thu, 19 Nov 2015 09:17:35 +0100, c.bu...@posteo.jp writes: >I am looking for a way to use the PubMed (medical research search >engine) API (aka Entrez) with Python3. > >Does anyone know packages for that? https://pypi.python.org/pypi/Bio_Eutils/1.63 Or just get BioPython and use t

Re: Late-binding of function defaults (was Re: What is a function parameter =[] for?)

2015-11-19 Thread Laura Creighton
In a message of Fri, 20 Nov 2015 06:46:42 +1100, Chris Angelico writes: >Would this satisfy the people who get confused about "=[]"? > >ChrisA My experience says that the people who are confused want lists to behave like tuples. period. i.e. they don't want lists to be mutable. Which means wh

Re: Late-binding of function defaults (was Re: What is a function parameter =[] for?)

2015-11-19 Thread Laura Creighton
In a message of Thu, 19 Nov 2015 22:57:10 +0200, Marko Rauhamaa writes: >Laura Creighton : > >> My experience says that the people who are confused want lists to >> behave like tuples. period. i.e. they don't want lists to be mutable. > >I think it's simpler than

Re: Dabbling in web development

2015-11-19 Thread Laura Creighton
In a message of Thu, 19 Nov 2015 13:53:09 -0800, bSneddon writes: >I know there are a plethora of web frameworks out there for Python and to be serious about website developement I should learn on like Django. Really thought, I just want to dabble and do some easy stuff. Does anyone have any

Re: Late-binding of function defaults (was Re: What is a function parameter =[] for?) (fwd)

2015-11-19 Thread Laura Creighton
Arrgh! I got Ned Batchelder's email wrong. Forgot the t. (for somebody whose irc nick is nedbat. ) sending this to him again. warning any repliers that the mail address is wrong apologies, Laura --- Forwarded Message From: Laura Creighton Subject: Re: Late-binding of fun

Re: Dabbling in web development

2015-11-19 Thread Laura Creighton
In a message of Fri, 20 Nov 2015 10:09:01 +1100, Chris Angelico writes: >On Fri, Nov 20, 2015 at 9:53 AM, Laura Creighton wrote: >> It is not the case that 'serious website developers use heavyweight >> systems like Django' --- lots and lots of serious developers use &

Re: Dabbling in web development

2015-11-19 Thread Laura Creighton
In a message of Fri, 20 Nov 2015 01:07:24 +0200, Marko Rauhamaa writes: >Laura Creighton : > >> There are lots of other choices than Django. >> >> see: https://wiki.python.org/moin/WebFrameworks/ > >However, are there any good web applications? I have seen some

Re: What is a function parameter =[] for?

2015-11-19 Thread Laura Creighton
In a message of Thu, 19 Nov 2015 16:36:17 -0800, Ned Batchelder writes: >On Thursday, November 19, 2015 at 7:28:44 PM UTC-5, Steven D'Aprano wrote: >> On Fri, 20 Nov 2015 05:50 am, BartC wrote: >> >> >> > I said that Python's "=" does a very shallow copy. And I stated that in >> > A=B, something

Re: Problem to read from array

2015-11-21 Thread Laura Creighton
In Python we don't write while loops that often. instead we do: for i in range(NumberOfColumns): for j in range(NumberOfRows): do_something() But for the particular case that you are after, constructing lists, we have something even neater -- list comprehensions. So you might write:

Re: Problem to read from array

2015-11-21 Thread Laura Creighton
In a message of Sat, 21 Nov 2015 15:22:55 +0100, Laura Creighton writes: >At this point you might get a bit frustrated. Python is happily telling >you that you don't have a newarray[0][0] which is hardly news to you who >was trying to initialise the thing. My bad. I was th

Re: pip does not work anymore

2015-11-23 Thread Laura Creighton
In a message of Mon, 23 Nov 2015 08:48:54 +0100, Cecil Westerhof writes: >When I try to install something with pip2 I get: >Traceback (most recent call last): > File "/usr/bin/pip2", line 9, in >load_entry_point('pip==7.1.2', 'console_scripts', 'pip2')() > File "/usr/lib/pyth

Re: Persistent api-ms-win-crt-runtime-i1-1-0.dll start up error

2015-11-24 Thread Laura Creighton
In a message of Tue, 24 Nov 2015 10:56:32 +0200, tolga.karabiyiko...@ankara.edu .tr writes: >Hi all; > >Yesterday just downloaded python-3.5.0-amd64 on windows10 running >laptop- running flawless. > >But my trouble is with my office desktop Windows Vista. Considering the >processor diference, thi

pyweek is happening august 02 - august 09

2007-08-04 Thread Laura Creighton
www.pyweek.org if you think so, as well. But mail me. John -- assuming we want to meet up _before_ PyConUK -- can that work? Can you point us at a cheap hostel for a few days? Laura Creighton -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   6   7   >