Re: Why is there no functional xml?

2018-01-22 Thread Rustom Mody
On Sunday, January 21, 2018 at 4:51:34 PM UTC+5:30, Peter Otten wrote: > Personally I'd probably avoid the extra layer and write a function that > directly maps dataclasses or database records to xml using the conventional > elementtree API. Would appreciate your thoughts/comments Peter! I find

Re: Help: 64bit python call c and got OSError: exception: access violation writing 0xFFFFFFFF99222A60

2018-01-22 Thread Jason Qian via Python-list
Thanks for the help, Jason On Mon, Jan 22, 2018 at 5:41 PM, eryk sun wrote: > On Mon, Jan 22, 2018 at 9:00 PM, Jason Qian via Python-list > wrote: > > > > I am using ctypes on Windows to interface with a dll and it works fine > > on Linux and windows 32-bit python. But, when using 64-bit pyt

Re: Help: 64bit python call c and got OSError: exception: access violation writing 0xFFFFFFFF99222A60

2018-01-22 Thread Jason Qian via Python-list
Thanks you very much, fixed the problem :) On Mon, Jan 22, 2018 at 4:28 PM, Random832 wrote: > On Mon, Jan 22, 2018, at 16:00, Jason Qian via Python-list wrote: > > Hello! > > > > I am using ctypes on Windows to interface with a dll and it works fine > > on Linux and windows 32-bit python. B

Re: Installing "kitchen" module

2018-01-22 Thread Paul Moore
On 22 January 2018 at 17:20, wrote: > On Tuesday, 23 January 2018 03:41:28 UTC+10:30, Paul Moore wrote: >> "python -m pip install kitchen" is probably your best approach (from >> the CMD prompt). >> >> On 22 January 2018 at 16:31, wrote: >> > On Tuesday, 23 January 2018 02:56:56 UTC+10:30, Pa

Re: Help: 64bit python call c and got OSError: exception: access violation writing 0xFFFFFFFF99222A60

2018-01-22 Thread eryk sun
On Mon, Jan 22, 2018 at 9:00 PM, Jason Qian via Python-list wrote: > > I am using ctypes on Windows to interface with a dll and it works fine > on Linux and windows 32-bit python. But, when using 64-bit python, we got > error "exception: access violation writing 0x99222A60". > > from cty

Re: Help: 64bit python call c and got OSError: exception: access violation writing 0xFFFFFFFF99222A60

2018-01-22 Thread Random832
On Mon, Jan 22, 2018, at 16:00, Jason Qian via Python-list wrote: > Hello! > > I am using ctypes on Windows to interface with a dll and it works fine > on Linux and windows 32-bit python. But, when using 64-bit python, we got > error "exception: access violation writing 0x99222A60". Y

Help: 64bit python call c and got OSError: exception: access violation writing 0xFFFFFFFF99222A60

2018-01-22 Thread Jason Qian via Python-list
Hello! I am using ctypes on Windows to interface with a dll and it works fine on Linux and windows 32-bit python. But, when using 64-bit python, we got error "exception: access violation writing 0x99222A60". Checking our server, it seems work without any problem. but the python gi

Re: How to use asyncore with SSL?

2018-01-22 Thread breamoreboy
On Thursday, January 18, 2018 at 11:25:58 PM UTC, Grant Edwards wrote: > I've been trying to use the secure smtpd module from > https://github.com/bcoe/secure-smtpd, but the SSL support seems to be > fundamentally broken. That module simply wraps a socket and then > expects to use it in the normal

Re: Installing "kitchen" module

2018-01-22 Thread codydaviestv
On Tuesday, 23 January 2018 03:41:28 UTC+10:30, Paul Moore wrote: > "python -m pip install kitchen" is probably your best approach (from > the CMD prompt). > > On 22 January 2018 at 16:31, wrote: > > On Tuesday, 23 January 2018 02:56:56 UTC+10:30, Paul Moore wrote: > >> You need to run that

Re: Installing "kitchen" module

2018-01-22 Thread Paul Moore
"python -m pip install kitchen" is probably your best approach (from the CMD prompt). On 22 January 2018 at 16:31, wrote: > On Tuesday, 23 January 2018 02:56:56 UTC+10:30, Paul Moore wrote: >> You need to run that command from a CMD prompt, not from inside the >> Python interpreter. >> >> On 2

Re: Installing "kitchen" module

2018-01-22 Thread codydaviestv
On Tuesday, 23 January 2018 02:56:56 UTC+10:30, Paul Moore wrote: > You need to run that command from a CMD prompt, not from inside the > Python interpreter. > > On 22 January 2018 at 16:19, cody wrote: > > On Tuesday, 23 January 2018 02:41:04 UTC+10:30, bream...@gmail.com wrote: > >> On Monda

Re: Installing "kitchen" module

2018-01-22 Thread alister via Python-list
On Mon, 22 Jan 2018 08:19:51 -0800, codydaviestv wrote: > On Tuesday, 23 January 2018 02:41:04 UTC+10:30, bream...@gmail.com > wrote: >> On Monday, January 22, 2018 at 3:37:44 PM UTC, codyda...@gmail.com >> wrote: >> > So here's the situation. I am unfamiliar with Python but need it to >> > expor

Re: Installing "kitchen" module

2018-01-22 Thread Paul Moore
You need to run that command from a CMD prompt, not from inside the Python interpreter. On 22 January 2018 at 16:19, wrote: > On Tuesday, 23 January 2018 02:41:04 UTC+10:30, bream...@gmail.com wrote: >> On Monday, January 22, 2018 at 3:37:44 PM UTC, codyda...@gmail.com wrote: >> > So here's the

Re: Installing "kitchen" module

2018-01-22 Thread breamoreboy
On Monday, January 22, 2018 at 3:37:44 PM UTC, codyda...@gmail.com wrote: > So here's the situation. I am unfamiliar with Python but need it to export a > wiki, so I have been following this tutorial, using the latest version of > Python 2 on Windows 7: > > https://github.com/WikiTeam/wikiteam/w

Re: Installing "kitchen" module

2018-01-22 Thread codydaviestv
On Tuesday, 23 January 2018 02:41:04 UTC+10:30, bream...@gmail.com wrote: > On Monday, January 22, 2018 at 3:37:44 PM UTC, codyda...@gmail.com wrote: > > So here's the situation. I am unfamiliar with Python but need it to export > > a wiki, so I have been following this tutorial, using the latest

Installing "kitchen" module

2018-01-22 Thread codydaviestv
So here's the situation. I am unfamiliar with Python but need it to export a wiki, so I have been following this tutorial, using the latest version of Python 2 on Windows 7: https://github.com/WikiTeam/wikiteam/wiki/Tutorial#I_have_no_shell_access_to_server I have everything working up to the p

close figure after plot

2018-01-22 Thread jorge . conrado
Hi, I have several satellite data (500 images). I read it and plot using plt.show(). I would like know how can I delete the window after I save the image. I use plt.close(), plt.close('all') but these options didn't work. Thanks, Conrado -- https://mail.python.org/mailman/listinfo/python-l

Re: exec and traceback

2018-01-22 Thread Ned Batchelder
On 1/22/18 3:22 AM, ken...@gameofy.com wrote: (BTW, I've written a simple secure eval()) You have accurately guessed our interest!  Would you mind starting a new thread to show us your simple secure eval? --Ned. -- https://mail.python.org/mailman/listinfo/python-list

Re: exec and traceback

2018-01-22 Thread Chris Angelico
On Mon, Jan 22, 2018 at 7:22 PM, wrote: > > > I'm using exec() to run a (multi-line) string of python code. If an > exception occurs, I get a traceback containing a stack frame for the string. > I've labeled the code object with a "file name" so I can identify it easily, > and when I debug, I fin

exec and traceback

2018-01-22 Thread ken . py
I'm using exec() to run a (multi-line) string of python code. If an exception occurs, I get a traceback containing a stack frame for the string. I've labeled the code object with a "file name" so I can identify it easily, and when I debug, I find that I can interact with the context of t

Re: 'QMessageBox' object has no attribute 'setCheckBox' on recent pull

2018-01-22 Thread jkn
On Monday, January 22, 2018 at 10:22:36 AM UTC, jkn wrote: [...] oops, wrong group, sorry! -- https://mail.python.org/mailman/listinfo/python-list

'QMessageBox' object has no attribute 'setCheckBox' on recent pull

2018-01-22 Thread jkn
Hi Edward Seen after a recent pull: D:\winapps\leo-editor>python launchLeo.py can not import leo.plugins.importers.wikimarkup can not import leo.plugins.importers.wikimarkup reading settings in D:\winapps\leo-editor\leo\config\leoSettings.leo reading settings in C:\Users\jnicoll\.leo\myLeoSettin

Re: Can't get python running

2018-01-22 Thread eryk sun
On Sun, Jan 21, 2018 at 10:57 AM, Paul Moore wrote: > > The "py" launcher is always added to PATH. It's installed by default > (and always has been I believe) although there is a checkbox you can > untick if you don't want to install it. Yes, we can choose to not install the launcher. However, if