Re: Windows installer from python source code without access to source code

2023-03-31 Thread jkn
On Friday, March 31, 2023 at 1:09:12 PM UTC+1, Chris Angelico wrote: > On Fri, 31 Mar 2023 at 23:01, Jim Schwartz wrote: > > > > I want a windows installer to install my application that's written in > > python, but I don't want the end user to have access to my source code. > > > > > > >

Re: ANN: pdfposter 0.8.1 - scale and tile PDF pages to print on multiple sheets

2022-11-04 Thread jkn
On Friday, November 4, 2022 at 6:21:55 PM UTC, Hartmut Goebel wrote: > I'm pleased to announce pdftools.pdfposter 0.8.1, a tool to scale and > tile PDF images/pages to print on multiple pages. > > :Homepage: https://pdfposter.readthedocs.io/ > :Author:Hartmut Goebel > :License: GNU

Re: Find the path of a shell command

2022-10-12 Thread jkn
On Wednesday, October 12, 2022 at 12:07:36 PM UTC+1, jak wrote: > Il 12/10/2022 09:40, jkn ha scritto: > > On Wednesday, October 12, 2022 at 6:12:23 AM UTC+1, jak wrote: > >> Il 12/10/2022 06:00, Paulo da Silva ha scritto: > >>> Hi! > >>> > >>

Re: Find the path of a shell command

2022-10-12 Thread jkn
On Wednesday, October 12, 2022 at 6:12:23 AM UTC+1, jak wrote: > Il 12/10/2022 06:00, Paulo da Silva ha scritto: > > Hi! > > > > The simple question: How do I find the full path of a shell command > > (linux), i.e. how do I obtain the corresponding of, for example, > > "type rm" in command

Re: any author you find very good has written a book on Python?

2022-09-06 Thread jkn
On Tuesday, September 6, 2022 at 9:06:31 PM UTC+1, Thomas Passin wrote: > Mark Pilgram's "Dive Into Python" was good. Now he's updated it for > Python 3: like, about ten years ago? (I think Mark Pilgrim dropped off the 'net many years ago...) > https://diveintopython3.net > On 9/6/2022 11:36

Re: any author you find very good has written a book on Python?

2022-09-06 Thread jkn
On Tuesday, September 6, 2022 at 4:36:38 PM UTC+1, Meredith Montgomery wrote: > Paul Rubin writes: > > > Meredith Montgomery writes: > >> So that's my request --- any author you find very good has written a > >> book on Python? > > > > The ones by David Beazley are great. Same with his

Re: Resolving Weekday Schedules to Dates

2022-07-21 Thread jkn
On Thursday, July 21, 2022 at 8:19:34 PM UTC+1, rambius wrote: > Hello, > > Do you know of a library that resolves schedules like every Wednesday > at 3:00pm to absolute time, that is return the datetime of the next > occurrence? > > Regards > rambius > > P.S. > > -- > Tangra Mega

Re: "CPython"

2022-06-21 Thread jkn
On Tuesday, June 21, 2022 at 2:09:27 PM UTC+1, Grant Edwards wrote: > On 2022-06-21, Chris Angelico wrote: > > > Not sure why it's strange. The point is to distinguish "CPython" from > > "Jython" or "Brython" or "PyPy" or any of the other implementations. > > Yes, CPython has a special place

Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'

2022-02-09 Thread jkn
On Wednesday, February 9, 2022 at 12:46:49 PM UTC, Christian Gollwitzer wrote: > Am 09.02.22 um 08:46 schrieb NArshad: > > When I enter data using Tkinter form in an Excel file when the excel file > > is closed there is no error but when I enter data using Tkinter form when > > the excel is

Re: Sad news: Fredrik Lundh ("Effbot") has passed away

2021-12-13 Thread jkn
On Sunday, December 12, 2021 at 2:01:19 PM UTC, Skip Montanaro wrote: > Like many others, I'm saddened to hear of Fredrik Lundh's passing. I > vaguely recall meeting him just once, probably at a Python workshop, > before they grew big enough to be called conferences. Effbot.org was > my

Re: Sad news: Fredrik Lundh ("Effbot") has passed away

2021-12-11 Thread jkn
On Saturday, December 11, 2021 at 1:37:07 AM UTC, Roel Schroeven wrote: > Message from Guido van Rossum > (https://mail.python.org/archives/list/pytho...@python.org/thread/36Q5QBILL3QIFIA3KHNGFBNJQKXKN7SD/): > > > > A former core dev who works at Google just passed the news that > > Fredrik

Re: do ya still use python?

2021-04-20 Thread jkn
On Tuesday, April 20, 2021 at 7:11:41 AM UTC+1, Paul Rubin wrote: > Jon Ribbens writes: > > Why do you say that? The group seems quite lively to me (and no I'm > > not counting spam etc). > No there is a lot happening in the Python world that never gets > mentioned here. Look at the 3.10 and

Re: Suggestions on mechanism or existing code - maintain persistence of file download history

2020-01-31 Thread jkn
On Friday, January 31, 2020 at 9:41:32 AM UTC, R.Wieser wrote: > jkn, > > > I think a combination of hashing the URL, > > I hope you're not thinking of saving the hash (into the "done" list) instead > if the URL itself. While hash collisions do not happen ofte

Re: Suggestions on mechanism or existing code - maintain persistence of file download history

2020-01-31 Thread jkn
On Friday, January 31, 2020 at 9:41:32 AM UTC, R.Wieser wrote: > jkn, > > > I think a combination of hashing the URL, > > I hope you're not thinking of saving the hash (into the "done" list) instead > if the URL itself. While hash collisions do not happen ofte

Re: Suggestions on mechanism or existing code - maintain persistence of file download history

2020-01-30 Thread jkn
Err, well, thanks for that discussion gents... As it happens I do know how to use a database, but I regard it as overkill for what I am trying to do here. I think a combination of hashing the URL, and using a suffix to indicate the result of previous downloaded attempts, will work adequately for

Re: Suggestions on mechanism or existing code - maintain persistence of file download history

2020-01-29 Thread jkn
On Wednesday, January 29, 2020 at 8:27:03 PM UTC, Chris Angelico wrote: > On Thu, Jan 30, 2020 at 7:06 AM jkn wrote: > > > > Hi all > > I'm almost embarrassed to ask this as it's "so simple", but thought I'd > > give > > it a go... >

Suggestions on mechanism or existing code - maintain persistence of file download history

2020-01-29 Thread jkn
Hi all I'm almost embarrassed to ask this as it's "so simple", but thought I'd give it a go... I want to be a able to use a simple 'download manager' which I was going to write (in Python), but then wondered if there was something suitable already out there. I haven't found it, but thought

Re: Is there an archive of this list with permanent URLs to each message?

2019-06-18 Thread jkn
On Monday, June 17, 2019 at 10:28:44 AM UTC+1, Luciano Ramalho wrote: > Hello! When I wrote Fluent Python a few years ago I provided my > readers with hundreds of links to my sources, including several links > to messages in the python-list archive. > > Now as I prepare the 2nd edition I notice

Re: what considerations for changing height of replacement radiator?

2019-01-30 Thread jkn
All very droll, thanks for the replies guys. I spotted my posting error 0.0001 secs after pressing the button... uk.d-i-y-is-that-way-ly yours J^n -- https://mail.python.org/mailman/listinfo/python-list

what considerations for changing height of replacement radiator?

2019-01-30 Thread jkn
Hi all I'm looking at changing a radiator in a bedroom shortly and wondering about my options re. sizing. The current radiator is 900mm W x 600mm H, and is single panel, no convector. So looking at some representative specs, let's say 550W output. I would be replacing this with a single

Re: So apparently I've been banned from this list

2018-10-01 Thread jkn
On Monday, October 1, 2018 at 6:57:30 PM UTC+1, Ethan Furman wrote: > On 09/30/2018 09:30 AM, Steven D'Aprano wrote: > > > Notwithstanding Ethan's comment about having posted the suspension notice > > on the list, I see no sign that he actually did so. > > My apologies to you and the list. I

Re: Feasibility of console based (non-Gui) Tkinter app which can accept keypresses?

2018-07-12 Thread jkn
Hi All thanks for the comments and confirmation that this is not really possible in a Tkinter environment. I had thought of using ncurses but was shying clear of learning about another set of widgets etc. just now. The output of the simulator is simple enough that it could just accept

Feasibility of console based (non-Gui) Tkinter app which can accept keypresses?

2018-07-11 Thread jkn
Hi All This is more of a Tkinter question rather than a python one, I think, but anyway... I have a Python simulator program with a Model-View_Controller architecture. I have written the View part using Tkinter in the first instance; later I plan to use Qt. However I also want to be able to

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-26 Thread jkn
To: Chris Angelico From: jkn On Monday, June 25, 2018 at 4:23:57 PM UTC+1, Chris Angelico wrote: > On Mon, Jun 25, 2018 at 11:15 PM, jkn wrote: > > (as well as pedanticism ;-o). > > Pedantry. > > ChrisA > (You know I can't let that one pass.) I was chanel[l]ing the

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-26 Thread jkn
To: Paul Moore From: jkn On Monday, June 25, 2018 at 12:17:29 PM UTC+1, Paul Moore wrote: > On 25 June 2018 at 11:53, Steven D'Aprano > wrote: > > > And the specific line you reference is *especially* a joke, one which > > flies past nearly everyone's head: > &

Re: [ANN] pdfposter 0.7

2018-06-26 Thread jkn
To: Hartmut Goebel From: jkn On Sunday, June 24, 2018 at 10:02:05 PM UTC+1, Hartmut Goebel wrote: > I'm pleased to announce pdftools.pdfposter 0.7, a tool to scale and > tile PDF images/pages to print on multiple pages. > > :Homepage: https://pdfposter.readthedocs.io/ > :Auth

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-25 Thread jkn
On Monday, June 25, 2018 at 4:23:57 PM UTC+1, Chris Angelico wrote: > On Mon, Jun 25, 2018 at 11:15 PM, jkn wrote: > > (as well as pedanticism ;-o). > > Pedantry. > > ChrisA > (You know I can't let that one pass.) I was chanel[l]ing the TimBot, as any fule kno... --

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-25 Thread jkn
On Monday, June 25, 2018 at 12:17:29 PM UTC+1, Paul Moore wrote: > On 25 June 2018 at 11:53, Steven D'Aprano > wrote: > > > And the specific line you reference is *especially* a joke, one which > > flies past nearly everyone's head: > > > > There should be one-- and preferably only one

Re: [ANN] pdfposter 0.7

2018-06-25 Thread jkn
On Sunday, June 24, 2018 at 10:02:05 PM UTC+1, Hartmut Goebel wrote: > I'm pleased to announce pdftools.pdfposter 0.7, a tool to scale and > tile PDF images/pages to print on multiple pages. > > :Homepage: https://pdfposter.readthedocs.io/ > :Author:   Hartmut Goebel > :Licence:  GNU Public

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

Re: Any ReST aware editors?

2016-09-22 Thread jkn
Hi Steve On Thursday, September 22, 2016 at 12:13:16 PM UTC+1, Steve D'Aprano wrote: > I have editors which will use syntax highlighting on .rst files, but I'm > hoping for something a bit smarter. > > What I'd like is an editor with a split window, one side showing the rst > that I can edit,

Re: real time FM synthesizer

2016-04-13 Thread jkn
Hi Irmen On Wednesday, April 13, 2016 at 12:22:25 AM UTC+1, Irmen de Jong wrote: > It seems that Python is fast enough [1] to create a real time FM music > synthesizer > (think Yamaha DX-7). I made one that you can see here: > https://github.com/irmen/synthesizer > > The synthesizer can

use Python and an outlook: protocol URL to bring up a specific email

2016-01-12 Thread jkn
Hi all a little OS/windows specific, I'm afraid: In Windows, there exists a part-supported 'outlook protocol' to obtain and use email references within Outlook as URL. You have to go through various shenanagins to enable this and to get Outlook to give you access to the URLs - see for

Re: use Python and an outlook: protocol URL to bring up a specific email

2016-01-12 Thread jkn
Hi Chris On Tuesday, January 12, 2016 at 5:11:18 PM UTC, Chris Angelico wrote: > On Wed, Jan 13, 2016 at 3:51 AM, jkn <jkn...@nicorp.f9.co.uk> wrote: > > I happy to carve some code without using urllib, but I am not clear what I > > actually need to do to 'open' such a UR

Re: Python handles globals badly.

2015-09-10 Thread jkn
On Thursday, 10 September 2015 13:18:39 UTC+1, Steven D'Aprano wrote: > On Thu, 10 Sep 2015 05:18 am, Chris Angelico wrote: > > > On Thu, Sep 10, 2015 at 5:14 AM, Laura Creighton wrote: > >> In a message of Thu, 10 Sep 2015 05:00:22 +1000, Chris Angelico writes: > >>>To get

Re: Slightly OT: Seeking (python-based) project diary tool, or framework to write one

2015-05-20 Thread jkn
Hi Frank On Wednesday, 20 May 2015 06:33:33 UTC+1, Frank Millman wrote: jkn jkn...@nicorp.f9.co.uk wrote in message news:99067d97-cad4-42f8-8fd1-b1884bed7...@googlegroups.com... Hi All as in the title, this is a little bit OT - but since ideally I'd like a tool written in Python

Re: Slightly OT: Seeking (python-based) project diary tool, or framework to write one

2015-05-19 Thread jkn
Hi Rustom On Tuesday, May 19, 2015 at 5:50:11 PM UTC+1, Rustom Mody wrote: On Tuesday, May 19, 2015 at 9:59:16 PM UTC+5:30, jkn wrote: Hi All as in the title, this is a little bit OT - but since ideally I'd like a tool written in Python, and I know readers here have wide experience

Slightly OT: Seeking (python-based) project diary tool, or framework to write one

2015-05-19 Thread jkn
Hi All as in the title, this is a little bit OT - but since ideally I'd like a tool written in Python, and I know readers here have wide experience of development/collaborative workflows etc ... A few jobs ago the company I was with used a 'Project Diary' tool which I found very useful. It

Re: Micropython?

2015-03-14 Thread jkn
On Saturday, 14 March 2015 06:43:18 UTC, Paul Rubin wrote: http://www.micropython.org/ Has anyone used this? Know anything about it? I don't remember seeing any mention of it here. I remember there was a stripped down Python some years back that didn't work very well, but I think this is

Re: Standard

2015-02-23 Thread jkn
On Sunday, 22 February 2015 14:11:54 UTC, Mark Lawrence wrote: On 19/02/2015 16:27, Phillip Fleming wrote: In my opinion, Python will not take off like C/C++ if there is no ANSI standard. Python has already taken off because it doesn't have a standard as such. Bjarne Stroustrup, in

Re: Future of Pypy?

2015-02-22 Thread jkn
On Sunday, 22 February 2015 12:45:15 UTC, Dave Farrance wrote: As an engineer, I can quickly knock together behavioural models of electronic circuits, complete units, and control systems in Python, then annoyingly in a few recent cases, have to re-write in C for speed. I've tried PyPy, the

OTish: using short-term TCP connections to send to multiple slaves

2014-11-16 Thread jkn
Hi all This is a little bit OT for this newsgroup, but I intend to use python for prototyping at least, and I know there are a lot of knowledgeable people using Python in a Network context here... I have a use case of a single 'master' machine which will need to periodically 'push' data to

Re: OTish: using short-term TCP connections to send to multiple slaves

2014-11-16 Thread jkn
Hi All Thanks for the various and interesting responses so far. A bit of fleshing out in a few areas: The problems of maintaining the long-term TCP connection is something I'd like to leave to one side, for now at least. There are some non-technical project issues here which is why I am

FYI: Micro Python running on kickstarter pyBoard project, now shipping

2014-10-23 Thread jkn
Hi all I haven't heard in mentioned here, but since I saw one of the boards today thought I'd pass on the news: The Kickstarter 'MicroPython' project, which has a tiny 'pyboard' (only a couple of sq.inches in size) with a processor running 'a complete re-write of the Python (version 3.4)

Re: Keepin constants, configuration values, etc. in Python - dedicated module or what?

2014-09-30 Thread jkn
might this be of interest (though old)? https://wiki.python.org/moin/ConfigParserShootout Cheers Jon N -- https://mail.python.org/mailman/listinfo/python-list

Re: This Python script cannot open by a editor?

2014-07-04 Thread jkn
Hi there the script is 'actually' a python script compressed, with a short header (see the '#!/usr/bin/python' right at the front? I'm guessing that if you make it executable, and run it, then it will either create a .py file that you can edit, or just run the hdlmake function that you

Re: Get named groups from a regular expression

2014-07-01 Thread jkn
On Tuesday, 1 July 2014 16:12:34 UTC+1, Florian Lindner wrote: Hello, Is there a way I can extract the named groups from a regular expression? e.g. given (?Ptestgrp\d) I want to get something like [testgrp]. OR Can I make the match object to return default values for

Re: which async framework?

2014-03-11 Thread jkn
Hi Grant On Tuesday, 11 March 2014 16:52:18 UTC, Grant Edwards wrote: [...] And don't bother with device drivers for the network adapters either. Just map their PCI regions in to user-space and twiddle the reigisters directly! ;) [I do that when testing PCI boards with C code, and one

Re: Oh look, another language (ceylon)

2013-11-17 Thread jkn
Hi Stephen On Sunday, 17 November 2013 05:48:58 UTC, Steven D'Aprano wrote: [...] It's just a pity they based the syntax on C rather than something more enlightened. (Why do people keep doing that when they design languages?) When the only tool you've used is a hammer, every tool

Re: The Spirit of Python

2013-11-14 Thread jkn
On Thursday, November 14, 2013 6:11:08 PM UTC, Roy Smith wrote: https://twitter.com/dabeaz/status/400813245532876800/photo/1 Now THIS is a Python book I should get.  I'm guessing it's about design patterns. Or maybe just the GIL. Excellent, thanks fro the link. And is that a book by

ePIPE exception received when other end can't send an RST - how come?

2013-10-09 Thread jkn
Hello there I am experimenting with a simple python script which establishes a TCP connection, over GPRS, to a server. It then periodically sends a small block of data (60 bytes or so) to the server. I then disconnect the GPRS antenna on this client machine (I am actually investigating the

Re: wil anyone ressurect medusa and pypersist?

2013-10-04 Thread jkn
On Thursday, 3 October 2013 21:48:35 UTC+1, c-gsc...@neogov.net wrote: On Thursday, May 16, 2013 11:15:45 AM UTC-7, vispha...@gmail.com wrote: www.prevayler.org in python = pypersist medusa = python epoll web server and ftp server eventy and async wow interesting

Re: First attempt at a Python prog (Chess)

2013-02-14 Thread jkn
Hi Chris On Wednesday, 13 February 2013 23:25:09 UTC, Chris Hinsley wrote: New to Python, which I really like BTW. Welcome aboard! But aren't you supposed to be writing Forth? ;-) Cheers Jon N -- http://mail.python.org/mailman/listinfo/python-list

Re: pylint or similar to test version-specific language constructs?

2013-01-13 Thread jkn
Hi Dave On 11 Jan, 15:06, Dave Angel d...@davea.name wrote: Not sure what you mean by beforehand.  Don't you run all your unit tests before putting each revision of your code into production?  So run those tests twice, once on 2.7, and once on 2.4.  A unit test that's testing code with a

pylint or similar to test version-specific language constructs?

2013-01-09 Thread jkn
Hi all I have to write python code which must run on an old version of python (v2.4) as well as a newer (v2.7). I am using pylint and would like to check if is possible to check with pylint the use of operators etc. which are not present in 2.4; the ternary operator springs to mind. I haven't

Re: Brython - Python in the browser

2012-12-19 Thread jkn
Hi Pierre this looks very interesting, thanks. But I wonder ... do you know of pyjs (pyjamas as-was)? http://pyjs.org/ I would be interested in a comparison between (the aims of) Brython and pyjs. Either way, thanks for the info. Regards Jon N --

Re: how to simulate tar filename substitution across piped subprocess.Popen() calls?

2012-11-18 Thread jkn
Hi Hans [...] However, once he does that, it's simpler to cut out xargs and invoke sh directly. Or even cut out sh and test and instead use os.path.isfile and then call md5sum directly. And once he does that, he no longer needs to worry about single quotes. Yes indeed, using

Re: how to simulate tar filename substitution across piped subprocess.Popen() calls?

2012-11-12 Thread jkn
Hi Hans thanks a lot for your reply: That's what 'xargs' will do for you.  All you need to do, is invoke xargs with arguments containing '{}'.  I.e., something like: cmd1 = ['tar', '-czvf', 'myfile.tgz', '-c', mydir, 'mysubdir'] first_process = subprocess.Popen(cmd1,

Re: how to simulate tar filename substitution across piped subprocess.Popen() calls?

2012-11-12 Thread jkn
slight followup ... I have made some progress; for now I'm using subprocess.communicate to read the output from the first subprocess, then writing it into the secodn subprocess. This way I at least get to see what is happening ... The reason 'we' weren't seeing any output from the second call

Re: how to simulate tar filename substitution across piped subprocess.Popen() calls?

2012-11-12 Thread jkn
On Nov 12, 4:58 pm, Rebelo puntabl...@gmail.com wrote: Dana četvrtak, 8. studenoga 2012. 19:05:12 UTC+1, korisnik jkn napisao je: Hi All     i am trying to build up a set of subprocess.Ponen calls to replicate the effect of a horribly long shell command. I'm not clear how I can do one

Re: how to simulate tar filename substitution across piped subprocess.Popen() calls?

2012-11-12 Thread jkn
Hi Hans On Nov 12, 4:36 pm, Hans Mulder han...@xs4all.nl wrote: On 12/11/12 16:36:58, jkn wrote: slight followup ... I have made some progress; for now I'm using subprocess.communicate to read the output from the first subprocess, then writing it into the secodn subprocess

Re: how to simulate tar filename substitution across piped subprocess.Popen() calls?

2012-11-12 Thread jkn
Hi Hans [...]         xargsproc.append(test -f %s/{} md5sum %s/{} % (mydir, mydir)) This will break if there are spaces in the file name, or other characters meaningful to the shell.  If you change if to         xargsproc.append(test -f '%s/{}' md5sum '%s/{}'                          

how to simulate tar filename substitution across piped subprocess.Popen() calls?

2012-11-08 Thread jkn
Hi All i am trying to build up a set of subprocess.Ponen calls to replicate the effect of a horribly long shell command. I'm not clear how I can do one part of this and wonder if anyone can advise. I'm on Linux, fairly obviously. I have a command which (simplified) is a tar -c command piped

Re: Recruiting for Python Developer - Perm

2012-05-22 Thread jkn
On May 22, 10:30 am, Python Recruiter ro...@omniumit.com wrote: If any one can recommend, I will pay a £100 recom fee for any successful placements. aHaHaHaHaHa... And what percentage will you be charging your client? 15 percent? 25 percent? Even if you were to offer 15% of your (say) 15%

Re: why can't I pickle a class containing this dispatch dictionary?

2012-04-03 Thread jkn
Hi Peter On Apr 3, 8:54 am, Peter Otten __pete...@web.de wrote: jkn wrote:     I'm clearly not understanding the 'can't pickle instancemethod objects' error; can someone help me to understand, I think classes implemented in C need some extra work to make them picklable, and that hasn't

why can't I pickle a class containing this dispatch dictionary?

2012-04-02 Thread jkn
Hi All I'm clearly not understanding the 'can't pickle instancemethod objects' error; can someone help me to understand, maybe suggest a workaround, (apart from the obvious if ... elif...). I'm running Python 2.6 on an embedded system. == testpickle.py == import pickle class Test(object):

Re: What's the best way to write this regular expression?

2012-03-09 Thread jkn
Also unrelated to the OP, but a far superior Commnad line interface to Windows is the (unhelpfully-named) 'console' program: http://sourceforge.net/projects/console/ This has tabbed windows, preset directory navigation, good copy/paste facilities, the ability to configure different shells,

Re: multiple namespaces within a single module?

2012-02-10 Thread jkn
Hi Peter On Feb 10, 11:10 am, Peter Otten __pete...@web.de wrote: [...] Hmm ... thanks for mentioning this feature, I didn't know of it before. Sounds great, except that I gather it needs Python 2.5? I'm stuck with v2.4 at the moment unfortunately... You can import and run explicitly,

multiple namespaces within a single module?

2012-02-09 Thread jkn
Hello there is it possible to have multiple namespaces within a single python module? I have a small app which is in three or four .py files. For various reasons I would like to (perhaps optionally) combine these into one file. I was hoping that there might be a simple mechanism that would

Re: multiple namespaces within a single module?

2012-02-09 Thread jkn
Hi Peter On Feb 9, 7:33 pm, Peter Otten __pete...@web.de wrote: jkn wrote:     is it possible to have multiple namespaces within a single python module? Unless you are abusing classes I don't think so. I have a small app which is in three or four .py files. For various reasons I would

Re: Language Enhancement Idea to help with multi-processing (your opinions please)

2011-10-13 Thread jkn
FWIW, this looks rather like the 'PAR' construct of Occam to me. http://en.wikipedia.org/wiki/Occam_%28programming_language%29 J^n -- http://mail.python.org/mailman/listinfo/python-list

Re: Literate Programming

2011-04-07 Thread jkn
Without fully answering your question ... I suggest you have a look at Leo http://webpages.charter.net/edreamleo/front.html and ask your question at the (google) groups page devoted to that editor. http://groups.google.com/group/leo-editor HTH J^n --

Re: Python CPU

2011-04-01 Thread jkn
On Apr 1, 4:38 pm, Brad hwfw...@gmail.com wrote: Hi All, I've heard of Java CPUs. And Forth CPUs as well, I suspect ;-) Has anyone implemented a Python CPU in VHDL or Verilog? I don't think so - certainly not in recent memory. If you look at the documentation for the python byte code, for

Re: Making Line Graphs

2011-02-19 Thread jkn
Graphviz? http://www.graphviz.org/ HTH Jon N -- http://mail.python.org/mailman/listinfo/python-list

Re: Python database of plain text editable by notepad or vi

2010-03-25 Thread jkn
Kirbybase is one possibility. http://pypi.python.org/pypi/KirbyBase/1.9 J^n -- http://mail.python.org/mailman/listinfo/python-list

Re: Reverse engineering CRC?

2010-03-15 Thread jkn
Hi Greg Just to say thanks for taking the time to write up your work on this interesting topic. Cheers J^n -- http://mail.python.org/mailman/listinfo/python-list

Re: Karrigell 3.0.4 published

2010-02-27 Thread jkn
Hi Pierre Oops ! wrong group, sorry. It's for c.l.p.announce Well, I for one was happy to learn of this release here - thanks J^n -- http://mail.python.org/mailman/listinfo/python-list

Re: Hubris connects Ruby to Haskell, will there be such a connection between Python and Haskell?

2010-02-17 Thread jkn
On Feb 17, 2:04 am, Carl Banks pavlovevide...@gmail.com wrote: Hubris connects Ruby to Haskell, will there be such a connection between Python and Haskell? I would have expected Hubris to link Ada and Common Lisp together. Carl Banks ;-) J^n --

Re: Support for Windows 7 ?

2009-09-06 Thread jkn
On Sep 5, 4:45 pm, Pascale Mourier pascale.mour...@ecp.fr wrote: YES IT IS! Sorry for the inconvenience. I usually start from this assumption. Yesterday this new student was really agressive, and I assumed he was right! I suggest that (in general) you don't allow the first clause of this

Re: off topic: google groups sucks?

2009-08-17 Thread jkn
On Aug 17, 3:05 pm, Aaron Watters aaron.watt...@gmail.com wrote: Just a note.  It seems that google groups is increasing the sucks coefficient. I search for things using group search for comp.lang.python and I get no results even though I know there are results from a few months or weeks

Re: Is it possible to produce spider plots?

2009-08-05 Thread jkn
On Aug 5, 3:51 pm, dp_pearce dp_pea...@hotmail.com wrote: I want to be able to use Python to produce Spider plots (perhaps you know them as radar plots or star plots). Does anyone know how to achieve this? Are there existing libraries? The 'wxPython in Action' book has some simple example

Re: Python docs disappointing

2009-08-01 Thread jkn
On Aug 1, 4:18 am, Terry Reedy tjre...@udel.edu wrote: This is one area where Windows users seems to have an advantage. The standard installer includes the doc set as a Windows help file. I often keep that open in one window while programming in others. I only later discovered that this was a

Re: Python docs disappointing

2009-08-01 Thread jkn
Hi Tim On Aug 1, 8:32 pm, Tim Golden m...@timgolden.me.uk wrote: Unfortunately, the combination of the python 2.6 CHM helpfile style, and the KChmViewer application gives me body text which is almost unreadable (black text on dark blue background). I'm not sure if this a bug in

Re: Python docs disappointing

2009-08-01 Thread jkn
update: if I set 'use KHTMLPart-based widget' instead of 'QTextBrowser- based Widget' to display HTML content in the application settings of KchmViewer, all is readable. Hurrah! I wonder if it is picing up some QT stylesheet I have lying around in an over-clever way... J^n --

Re: Ann: Google releases Python-based open-source NX server

2009-07-16 Thread jkn
On Jul 16, 3:51 pm, J Kenneth King ja...@agentultra.com wrote: It's pretty cool, but not PEP8! Probably because they just bought the source off of another smaller proprietary project.  Makes me sad seeing Google, proud supporter of all things Python, release non-PEP8 code. Personally, I don't

Ann: Google releases Python-based open-source NX server

2009-07-15 Thread jkn
Google quietly releases open-source NX server ...written in Python, apparently http://www.computerworld.com/s/article/9135504/ Google_quietly_releases_open_source_NX_server?taxonomyId=88 Neatx can be downloaded from Google's code repository: http://code.google.com/p/neatx/ Regards J^n

Re: Making the case for repeat

2009-06-08 Thread jkn
On Jun 8, 9:30 am, Ben Finney ben+pyt...@benfinney.id.au wrote: [...] As originally defined by Martin Fowler, re-factoring always means the external behaviour is unchanged URL:http://refactoring.com/. So, there's no such thing as a re-factoring that changes the API. Anything that changes an

Re: Making the case for repeat

2009-06-08 Thread jkn
Possibly a *factoring*, without the re-, just like Raymond said. Also, keep in mind that when creating a new API, you have no existing API to re-factor. Exactly. I think this has come up before, but I can't remember the answers; any suggestions for pointer to examples of very well-designed

Re: How to find in in the documentation

2009-03-14 Thread jkn
On Mar 14, 7:00 am, Tim Golden m...@timgolden.me.uk wrote: Well, this may not solve the OP's problem, but the current (2.7a0) .chm file has a much better index for operators and keywords. And in is in there. If you're interested in comparing, there's a copy here:

Re: OTish: convince the team to drop VBScript

2009-03-02 Thread jkn
On Feb 28, 8:19 pm, rdmur...@bitdance.com wrote: [...] IMO the first thing you ought to do is dig in, really listen, and find out what his issue is with module distribution. Listening well is your most powerful asset. Overcome your own prejudices first, and his may follow :) I agree with

Re: Time.sleep(0.0125) not available within Linux

2008-09-26 Thread jkn
On Sep 26, 9:26 am, Steven D'Aprano [EMAIL PROTECTED] wrote: On Fri, 26 Sep 2008 19:46:10 +1200, Lawrence D'Oliveiro wrote: In message [EMAIL PROTECTED], Steven D'Aprano wrote: On Wed, 24 Sep 2008 22:18:05 +1200, Lawrence D'Oliveiro wrote: Just a thought, your minimum sleep time is

Re: How to Teach Python Variables

2007-11-26 Thread jkn
On Nov 25, 10:36 pm, Ben Finney [EMAIL PROTECTED] wrote: In addition to the good answers you've had already, I highly recommend David Goodger's Code like a Pythonista page URL:http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html, which contains a very good cardboard boxes

Re: Generating HTML

2007-09-12 Thread jkn
I used to use Cheetah, but have switched recently to Jinja: http://jinja.pocoo.org/ Mainly this is because the syntax is similar to Django's templates, and eventually I plan on migrating to Django. jon N -- http://mail.python.org/mailman/listinfo/python-list

Re: Erlang style processes for Python

2007-05-10 Thread jkn
Have you seen Candygram? http://candygram.sourceforge.net/ jon N -- http://mail.python.org/mailman/listinfo/python-list

Re: How to communicate via USB port

2007-04-18 Thread jkn
Have a look for PyUSB - there are (confusingly) two different packages called pyUSB. one interfaces to FTDI chips connected to a USB port: http://bleyer.org/pyusb/ The other uses libusb to interface to devices generally under windows: http://pyusb.berlios.de/ HTH jon N --

Re: Indentation for code readability

2007-03-31 Thread jkn
If I wanted to mark out stack depth stuff like this in python, I'd do it with some form of stylised comment, like this: # LEVEL 0 pushMatrix(): # LEVEL 1 drawstuff() pushMatrix() # LEVEL 2 drawSomeOtherStuff() popMatrix() # LEVEL 1

Re: clean up html document created by Word

2007-03-30 Thread jkn
IIUC, the original poster is asking about 'cleaning up' in the sense of removing the swathes of unnecessary and/or redundant 'cruft' that Word puts in there, rather than making valid HTML out of invalid HTML. Again, IIUC, HTMLtidy does not do this. If Beautiful Soup does, then I'm intererested!

Re: Communicating with a DLL under Linux

2007-03-13 Thread jkn
Hi Mikael It is probably worth you finding out more about the specific Hardware that Velleman use for this kit. Depending on the chip manufacturer, there may be more or less support already available. For instance, I have recently been communicating with the FTDI USB chips under windows. There

Re: c++ for python programmers

2007-02-14 Thread jkn
Hi Thomas On Feb 12, 6:00 pm, Thomas Nelson [EMAIL PROTECTED] wrote: I realize I'm approaching this backwards from the direction most people go, but does anyone know of a good c/c++ introduction for python programmers? They are not particularly aimed at Python programmers, but Bruce Eckel's

  1   2   >