New user group: Rochester, MN, USA

2016-01-21 Thread Jonathan Hartley
http://www.meetup.com/PyRochesterMN/ First meeting is Thursday 28th Jan 2016. -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

New user group: Rochester, MN, USA

2016-01-20 Thread Jonathan Hartley
http://www.meetup.com/PyRochesterMN First meeting planned for Thu 28th January 2016 -- Jonathan Hartley tart...@tartley.com +1 507-513-1101 -- https://mail.python.org/mailman/listinfo/python-list

Re: easy_install doesn't install non-package *.py file

2011-11-10 Thread Jonathan Hartley
Hey. I don't know the details, but your setup.py needs to use either the 'package_data' or the 'data_files' entry in the dict you pass to setup. These can specify files you want included in the sdist which aren't package files. There are many complications with using them though. One of them in

Re: leftover pyc files

2011-11-04 Thread Jonathan Hartley
I like to install a Bash shell of some kind on windows boxes I work on, specifically so I can use shell commands like this, just like on any other operating system. Cywin works just fine for this. svn also has hooks, but sadly not a checkout hook: http://svnbook.red-bean.com/en/1.1/ch05s02.html

Re: leftover pyc files

2011-11-04 Thread Jonathan Hartley
Apologies for all my messasges appearing twice. I'm using google groups web ui and have no idea why it's doing that. I'll stop using it. -- http://mail.python.org/mailman/listinfo/python-list

Re: leftover pyc files

2011-11-03 Thread Jonathan Hartley
A task like this is more suited to bash than Python: find . -name '*.pyc' -exec rm '{}' ';' -- http://mail.python.org/mailman/listinfo/python-list

Re: leftover pyc files

2011-11-03 Thread Jonathan Hartley
This can be added to git as a post-checkout hook: In your project's .git/hooks/post-checkout: #!/usr/bin/env bash cd ./$(git rev-parse --show-cdup) find . -name '*.pyc' -exec rm '{}' ';' -- http://mail.python.org/mailman/listinfo/python-list

Re: leftover pyc files

2011-11-03 Thread Jonathan Hartley
This can be added to your project's .git/hooks/post-checkout: #!/usr/bin/env bash cd ./$(git rev-parse --show-cdup) find . -name '*.pyc' -exec rm '{}' ';' -- http://mail.python.org/mailman/listinfo/python-list

Re: executing arbitrary statements

2011-10-03 Thread Jonathan Hartley
Fair points Steven. Thanks for further refining my initial refinement. :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: executing arbitrary statements

2011-10-02 Thread Jonathan Hartley
On Saturday, October 1, 2011 8:06:43 AM UTC+1, Chris Rebert wrote: On Fri, Sep 30, 2011 at 11:31 PM, Jason Swails jason@gmail.com wrote: I'm probably missing something pretty obvious, but I was wondering if there was a way of executing an arbitrary line of code somehow (such as a line of

Re: cause __init__ to return a different class?

2011-09-15 Thread Jonathan Hartley
Perhaps a more idiomatic way of achieving the same thing is to use a factory function, which returns instances of different classes: def PersonFactory(foo): if foo: return Person() else: return Child() Apologies if the code is messed up, I'm posting from Google

Re: How to structure packages

2011-09-08 Thread Jonathan Hartley
On Thursday, September 8, 2011 1:29:26 AM UTC+1, Steven D#39;Aprano wrote: Steven D'Aprano wrote: Other than that, is there any justification for this rule? Any Java fans want to defend this? If one class per file, why not one method per class too? Why is the second rule any more silly

Re: Can someone help please

2011-07-22 Thread Jonathan Hartley
Hey! Is Billy a responder, rather than the OP? Sorry then! My previous point is entirely nullified. -- http://mail.python.org/mailman/listinfo/python-list

Re: Can someone help please

2011-07-22 Thread Jonathan Hartley
Hey Billy. That may not be the important part of the code, but the many people giving up their free time to read it and help you don't know that. It's probably most helpful to give them a working example so as not to waste their time. Just sayin for future, is all. :-) Best regards, Jonathan

Re: Functional style programming in python: what will you talk about if you have an hour on this topic?

2011-07-14 Thread Jonathan Hartley
On Jul 13, 1:39 pm, Anthony Kong anthony.hw.k...@gmail.com wrote: (My post did not appear in the mailing list, so this is my second try. Apology if it ends up posted twice) Hi, all, If you have read my previous posts to the group, you probably have some idea why I asked this question. I

Re: Functional style programming in python: what will you talk about if you have an hour on this topic?

2011-07-14 Thread Jonathan Hartley
On Jul 14, 4:32 am, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: Anthony Kong wrote: So I have picked this topic for one of my presentation. It is because functional programming technique is one of my favorite in my bag  of python trick. I'm not sure it's a good idea to emphasise

Re: lightweight way to create new projects from templates

2011-05-12 Thread Jonathan Hartley
Hey Chris, Thanks for the thoughts. I must confess I had already given up on a 'single file' approach, because I want to make it easy for people to create their own templates, so I have to handle copying a template defined by creating a new directory full of diles. If I'm already handling this

lightweight way to create new projects from templates

2011-05-11 Thread Jonathan Hartley
}' for replaceable tags in the template? I wanted something that would not be valid Python, and would be unlikely to occur naturally in a project. Best regards, Jonathan -- Jonathan Hartleytart...@tartley.comhttp://tartley.com Made of meat. +44 7737 062 225 twitter/skype: tartley

Re: Development tools and practices for Pythonistas

2011-05-06 Thread Jonathan Hartley
://infinitemonkeycorps.net/docs/pph/ Also, where I work we have tried many IDEs, but happily and productively use GVim and very little else, so don't feel you *have* to use an IDE. Best regards, Jonathan Hartley -- http://mail.python.org/mailman/listinfo/python-list

Re: Vectors

2011-04-25 Thread Jonathan Hartley
On Apr 20, 2:43 pm, Andreas Tawn andreas.t...@ubisoft.com wrote: Algis Kabaila akaba...@pcug.org.au writes: Are there any modules for vector algebra (three dimensional vectors, vector addition, subtraction, multiplication [scalar and vector]. Could you give me a reference to such

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2011-04-25 Thread Jonathan Hartley
Changes by Jonathan Hartley tart...@tartley.com: -- nosy: +jonathan.hartley ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3561 ___ ___ Python-bugs

[issue9228] Make changes in the PATH and PATHEXT on installation

2011-04-22 Thread Jonathan Hartley
Changes by Jonathan Hartley tart...@tartley.com: -- nosy: +jonathan.hartley ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9228 ___ ___ Python-bugs

[issue11796] list and generator expressions in a class definition fail if expression condition refers to a class variable

2011-04-08 Thread Jonathan Hartley
Jonathan Hartley tart...@tartley.com added the comment: Is also exhibited by other class variable being used in the 'output' clause of the list comprehension: class C: ... x = 3 ... z = [z*x for z in range(4)] Traceback (most recent call last): File stdin, line 1, in module File

[issue11407] unittest.TestCase.run should return result

2011-03-14 Thread Jonathan Hartley
Jonathan Hartley tart...@tartley.com added the comment: Attached patch fixes this. TestCase.run now returns its TestResult object, regardless of whether it was passed in or created internally. Test assertions added for this. Invoking an instance of TestCase already returned the return value

Re: Efficient python 2-d arrays?

2011-01-18 Thread Jonathan Hartley
On Jan 17, 10:20 pm, Jake Biesinger jake.biesin...@gmail.com wrote: Hi all, Using numpy, I can create large 2-dimensional arrays quite easily. import numpy mylist = numpy.zeros((1,2), dtype=numpy.int32) Unfortunately, my target audience may not have numpy so I'd prefer not to use

Re: is py2exe still active ?

2010-12-08 Thread Jonathan Hartley
On Dec 8, 10:09 am, Octavian Rasnita orasn...@gmail.com wrote: Hi Steve, I may put some stupid questions because I am very new to Python, but... I heard about pypi/pip. Aren't all these Python libraries (like cxFreeze) provided on a central archive where we can get them and also report the

Re: is py2exe still active ?

2010-12-08 Thread Jonathan Hartley
On Dec 8, 10:09 am, Octavian Rasnita orasn...@gmail.com wrote: Hi Steve, I may put some stupid questions because I am very new to Python, but... I heard about pypi/pip. Aren't all these Python libraries (like cxFreeze) provided on a central archive where we can get them and also report the

Re: unittests with different parameters

2010-11-23 Thread Jonathan Hartley
On Nov 22, 11:38 am, Ulrich Eckhardt ulrich.eckha...@dominolaser.com wrote: Hi! I'm writing tests and I'm wondering how to achieve a few things most elegantly with Python's unittest module. Let's say I have two flags invert X and invert Y. Now, for testing these, I would write one test for

Re: Ways of accessing this mailing list?

2010-11-11 Thread Jonathan Hartley
On Nov 3, 9:27 pm, Ben Finney ben+pyt...@benfinney.id.au wrote: Grant Edwards inva...@invalid.invalid writes: On 2010-11-02, John Bond li...@asd-group.com wrote: My normal inbox is getting unmanageable, and I think I need to find a new way of following this and other lists. Point an

Re: playful coding problems for 10 year olds

2010-11-02 Thread Jonathan Hartley
On Nov 1, 8:31 pm, Daniel Fetchinson fetchin...@googlemail.com wrote: Hi folks, My niece is interested in programming and python looks like a good choice (she already wrote a couple of lines :)) She is 10 and I thought it would be good to have a bunch of playful coding problems for her,

Re: OO and game design questions

2010-10-21 Thread Jonathan Hartley
On Oct 20, 12:11 pm, dex josipmisko...@gmail.com wrote: On Oct 20, 12:25 pm, Jonathan Hartley tart...@tartley.com wrote: On Oct 18, 8:28 am, dex josipmisko...@gmail.com wrote: I'm building a turn based RPG game as a hobby. The design is becoming increasingly complicated and confusing

Re: OO and game design questions

2010-10-21 Thread Jonathan Hartley
On Oct 20, 12:11 pm, dex josipmisko...@gmail.com wrote: On Oct 20, 12:25 pm, Jonathan Hartley tart...@tartley.com wrote: On Oct 18, 8:28 am, dex josipmisko...@gmail.com wrote: I'm building a turn based RPG game as a hobby. The design is becoming increasingly complicated and confusing

Re: OO and game design questions

2010-10-21 Thread Jonathan Hartley
On Oct 20, 12:11 pm, dex josipmisko...@gmail.com wrote: On Oct 20, 12:25 pm, Jonathan Hartley tart...@tartley.com wrote: On Oct 18, 8:28 am, dex josipmisko...@gmail.com wrote: I'm building a turn based RPG game as a hobby. The design is becoming increasingly complicated and confusing

Re: OO and game design questions

2010-10-20 Thread Jonathan Hartley
On Oct 18, 8:28 am, dex josipmisko...@gmail.com wrote: I'm building a turn based RPG game as a hobby. The design is becoming increasingly complicated and confusing, and I think I may have tendency to over-engineer simple things. Can anybody please check my problems-solutions and point me to

Re: OO and game design questions

2010-10-20 Thread Jonathan Hartley
On Oct 20, 11:25 am, Jonathan Hartley tart...@tartley.com wrote: On Oct 18, 8:28 am, dex josipmisko...@gmail.com wrote: I'm building a turn based RPG game as a hobby. The design is becoming increasingly complicated and confusing, and I think I may have tendency to over-engineer simple

Re: Hide DOS console for .pyc file

2010-09-13 Thread Jonathan Hartley
On Sep 11, 11:32 am, Lawrence D'Oliveiro l...@geek- central.gen.new_zealand wrote: In message i6fivp$76v$0...@news.t-online.com, Peter Otten wrote: Lawrence D'Oliveiro wrote: In message 3a2d194c-9b34-4b84-8680-28bdfb53b...@y3g2000vbm.googlegroups.com, Muddy Coder wrote: For a quick

Re: Printing the name of a variable

2010-09-10 Thread Jonathan Hartley
On Sep 9, 9:11 pm, Albert Hopkins mar...@letterboxes.org wrote: On Thu, 2010-09-09 at 12:43 -0700, Stephen Boulet wrote: Does an arbitrary variable carry an attribute describing the text in its name? I'm looking for something along the lines of: x = 10 print x.name 'x' Perhaps the

Re: Why is there no platform independent way of clearing a terminal?

2010-07-28 Thread Jonathan Hartley
On Jul 28, 8:08 am, Ulrich Eckhardt eckha...@satorlaser.com wrote: Daniel Fetchinson wrote: After getting the technicalities out of the way, maybe I should have asked: Is it only me or others would find a platform independent python API to clear the terminal useful? There are two kinds

Re: Why is there no platform independent way of clearing a terminal?

2010-07-28 Thread Jonathan Hartley
On Jul 28, 8:08 am, Ulrich Eckhardt eckha...@satorlaser.com wrote: Daniel Fetchinson wrote: After getting the technicalities out of the way, maybe I should have asked: Is it only me or others would find a platform independent python API to clear the terminal useful? There are two kinds

Re: Why is there no platform independent way of clearing a terminal?

2010-07-28 Thread Jonathan Hartley
On Jul 28, 4:45 pm, Jonathan Hartley tart...@tartley.com wrote: On Jul 28, 8:08 am, Ulrich Eckhardt eckha...@satorlaser.com wrote: Daniel Fetchinson wrote: After getting the technicalities out of the way, maybe I should have asked: Is it only me or others would find a platform

Re: Why is there no platform independent way of clearing a terminal?

2010-07-28 Thread Jonathan Hartley
On Jul 28, 5:47 pm, Thomas Jollans tho...@jollans.com wrote: On 07/28/2010 06:01 PM, Jonathan Hartley wrote: Oh, plus, while we're on this subject: Am I right that curses in Python stdlib doesn't work on Windows, and there is currently no simple way to fix this? Also, is it crazy

Re: Download Microsoft C/C++ compiler for use with Python 2.6/2.7 ASAP

2010-07-07 Thread Jonathan Hartley
of their programs (i.e. they have to own a Visual Studio license to legally be able to redistribute the required C runtime) I don't understand enough to know why Visual Studio was chosen instead of MinGW. Can anyone shed any light on that decision? Many thanks Jonathan Hartley -- http://mail.python.org

Re: Download Microsoft C/C++ compiler for use with Python 2.6/2.7 ASAP

2010-07-07 Thread Jonathan Hartley
On Jul 7, 8:22 pm, Martin v. Loewis mar...@v.loewis.de wrote: I presume this problem would go away if future versions of Python itself were compiled on Windows with something like MinGW gcc. Also, this would solve the pain of Python developers attempting to redistribute py2exe versions of

Re: if, continuation and indentation

2010-05-28 Thread Jonathan Hartley
On May 27, 1:57 pm, Jean-Michel Pichavant jeanmic...@sequans.com wrote: HH wrote: I have a question about best practices when it comes to line wrapping/ continuation and indentation, specifically in the case of an if statement. When I write an if statement with many conditions, I prefer

Re: if, continuation and indentation

2010-05-28 Thread Jonathan Hartley
On 28/05/2010 11:34, Jean-Michel Pichavant wrote: Jonathan Hartley wrote: On May 27, 1:57 pm, Jean-Michel Pichavant jeanmic...@sequans.com wrote: HH wrote: I have a question about best practices when it comes to line wrapping/ continuation and indentation, specifically in the case

Re: cross-platform coloured text in terminal

2010-04-19 Thread Jonathan Hartley
On Apr 17, 11:52 am, Jonathan Hartley tart...@tartley.com wrote: On Apr 16, 5:59 pm, Lie Ryan lie.1...@gmail.com wrote: On 04/16/10 19:28, Jonathan Hartley wrote: I'm playing with ideas of what API to expose. My favourite one is to simply embed ANSI codes in the stream to be printed

Re: cross-platform coloured text in terminal

2010-04-17 Thread Jonathan Hartley
On Apr 16, 5:59 pm, Lie Ryan lie.1...@gmail.com wrote: On 04/16/10 19:28, Jonathan Hartley wrote: I'm playing with ideas of what API to expose. My favourite one is to simply embed ANSI codes in the stream to be printed. Then this will work as-is on Mac and *nix. To make it work on Windows

cross-platform coloured text in terminal

2010-04-16 Thread Jonathan Hartley
Hi, It irks me that I know of no simple cross-platform way to print colored terminal text from Python. As I understand it, printing ANSI escape codes (as wrapped nicely by module termcolor and others) works on Macs and *nix, but only works on Windows if one has installed the ANSI.SYS device

Re: cross-platform coloured text in terminal

2010-04-16 Thread Jonathan Hartley
On Apr 16, 10:28 am, Jonathan Hartley tart...@tartley.com wrote: Hi, It irks me that I know of no simple cross-platform way to print colored terminal text from Python. As I understand it, printing ANSI escape codes (as wrapped nicely by module termcolor and others) works on Macs and *nix

Re: missing dll follow-up

2010-04-15 Thread Jonathan Hartley
Alex Hall wrote: The vcredist_x86 was, I thought, supposed to give me the dll, but it does not seem to have done so. The installer puts the DLL in the directory C:\WINDOWS\WinSxS (or at least it does for me, on WinXP) I shall update the py2exe tutorial page to reflect this. Under that dir,

Re: missing dll follow-up

2010-04-15 Thread Jonathan Hartley
On Apr 15, 12:11 pm, Jonathan Hartley tart...@tartley.com wrote: Alex Hall wrote: The vcredist_x86 was, I thought, supposed to give me the dll, but it does not seem to have done so. The installer puts the DLL in the directory C:\WINDOWS\WinSxS (or at least it does for me, on WinXP) I shall

Re: missing dll follow-up

2010-04-15 Thread Jonathan Hartley
On Apr 15, 12:11 pm, Jonathan Hartley tart...@tartley.com wrote: The installer puts the DLL in the directory C:\WINDOWS\WinSxS (or at least it does for me, on WinXP) I shall update the py2exe tutorial page to reflect this. Done. Final para of section 5.2.2 now reads: The installer puts a copy

Re: Creating a standalone application

2010-04-14 Thread Jonathan Hartley
On Apr 13, 10:42 pm, Lawrence D'Oliveiro l...@geek- central.gen.new_zealand wrote: In message kz4xn.868$i8@news.indigo.ie, Luis Quesada wrote: I am getting an expected string without null bytes error when using cxfreeze for creating a standalone application (in Linux-Ubuntu). Why

Re: Classes as namespaces?

2010-03-27 Thread Jonathan Hartley
On Mar 26, 6:26 pm, Luis M. González luis...@gmail.com wrote: On 26 mar, 11:49, kj no.em...@please.post wrote: What's the word on using classes as namespaces?  E.g. class _cfg(object):     spam = 1     jambon = 3     huevos = 2 breakfast = (_cfg.spam, _cfg.jambon, _cfg.huevos) I

Re: python to exe

2010-03-14 Thread Jonathan Hartley
On Mar 13, 1:45 pm, pyt...@bdurham.com wrote: Robin, do you of an alternate compilter it doesn't work (py2exe) on my windows 7 box I can assure you that Py2exe does work on Windows 7 (my firm develops commercial Python applications packaged using Py2exe running on Windows 7), but it

Re: py2exe deal with python command line inside a program

2010-01-24 Thread Jonathan Hartley
On Jan 22, 7:35 pm, susan_kij...@yahoo.ca wrote: Hi, I need to create a python subprogress, like this: myProcess = subprocess.Popen([sys.executable, 'C:\myscript.py'],                                        env=env, stdin=subprocess.PIPE,                                        

Re: Is python not good enough?

2010-01-13 Thread Jonathan Hartley
On Jan 13, 9:06 am, ta...@mongo.net (tanix) wrote: Well, as soon as they restore the braces to identify the code blocks and provide the functionality of advanced statically type languages, such as threads, async processing, all synchronization primitives, garbage collection, events and GUI,

Re: Which version of MSVC?90.DLL's to distribute with Python 2.6 based Py2exe executables?

2010-01-01 Thread Jonathan Hartley
the method involves editing python26.dll in order to remove dependency references and then dropping msvcr90.dll in the same directory as the py2exe produced executable. Clever idea Waldemar, thanks for that, but for the moment, using the dll as a win32 assembly (ie. with a manifest file, as

Re: Any way to use cProfile in a multi-threaded program?

2009-12-30 Thread Jonathan Hartley
On Dec 30, 3:00 pm, mk mrk...@gmail.com wrote: I'm stumped; I read somewhere that one would have to modify Thread.run()   method but I have never modified Python methods nor would I really want to do it. Is there any way to start cProfile on each thread and then combine the stats? Regards,

Re: Which version of MSVC?90.DLL's to distribute with Python 2.6 based Py2exe executables?

2009-12-29 Thread Jonathan Hartley
On 27/12/2009 05:18, Stephen Hansen wrote: Jonathan Hartley tart...@tartley.com mailto:tart...@tartley.com writes: These are non-technical users, so I'd rather send them a single executable that 'just works', [break] rather than asking them to install Python

Re: Which version of MSVC?90.DLL's to distribute with Python 2.6 based Py2exe executables?

2009-12-29 Thread Jonathan Hartley
On Dec 27, 1:51 pm, pyt...@bdurham.com wrote: Hi Martin, You'll need to include Microsoft.VC90.CRT.manifest and msvcr90.dll. Thank you for your answers. From my research and testing on this topic: 1. Can I safely place these 2 files in the same folder as my Py2exe generated EXE file or do

Re: Which version of MSVC?90.DLL's to distribute with Python 2.6 based Py2exe executables?

2009-12-29 Thread Jonathan Hartley
On Dec 29, 2:24 pm, Jonathan Hartley tart...@tartley.com wrote: On Dec 27, 1:51 pm, pyt...@bdurham.com wrote: Hi Martin, You'll need to include Microsoft.VC90.CRT.manifest and msvcr90.dll. Thank you for your answers. From my research and testing on this topic: 1. Can I safely place

Re: Which version of MSVC?90.DLL's to distribute with Python 2.6 based Py2exe executables?

2009-12-29 Thread Jonathan Hartley
on. Thanks to everyone for their help on this, it's been plaguing me for ages. Jonathan Hartley Made of meat. http://tartley.com tart...@tartley.com +44 7737 062 225 twitter/skype: tartley -- http://mail.python.org/mailman/listinfo/python-list

Re: Which version of MSVC?90.DLL's to distribute with Python 2.6 based Py2exe executables?

2009-12-26 Thread Jonathan Hartley
On Dec 26, 3:14 pm, Ross Ridge rri...@csclub.uwaterloo.ca wrote: Jonathan Hartley  tart...@tartley.com wrote: Am I right to infer that if I want to distribute a py2exe'd application legally, and have half a chance of it working on a non- developer's machine, then I have to: a) Ask my users

Re: Which version of MSVC?90.DLL's to distribute with Python 2.6 based Py2exe executables?

2009-12-24 Thread Jonathan Hartley
On Dec 21, 2:56 pm, Ross Ridge rri...@csclub.uwaterloo.ca wrote: Jonathan Hartley  tart...@tartley.com wrote: Many thanks for that, but my issue is that my programs work fine for me on my computer - but then fail on other people's computers. I'd very strongly prefer for my users to not have

Re: Which version of MSVC?90.DLL's to distribute with Python 2.6 based Py2exe executables?

2009-12-21 Thread Jonathan Hartley
On Dec 17, 8:39 pm, Christian Heimes li...@cheimes.de wrote: Jonathan Hartley wrote: Only this week I sent a py2exe-derived executable to someone else (a non-developer) and it would not run on their WinXP machine ('The system cannot execute the specified program') - my current favourite

Re: Which version of MSVC?90.DLL's to distribute with Python 2.6 based Py2exe executables?

2009-12-21 Thread Jonathan Hartley
On Dec 17, 11:16 pm, Mark Hammond skippy.hamm...@gmail.com wrote: On 18/12/2009 7:44 AM, Ross Ridge wrote: The P DLL is for C++ and so the original poster may not actually need it.  I'm pretty sure Python itself doesn't need it, and py2exe shouldn't either, but wxPython, or more precisely

Re: Which version of MSVC?90.DLL's to distribute with Python 2.6 based Py2exe executables?

2009-12-17 Thread Jonathan Hartley
On Dec 17, 5:36 pm, Ross Ridge rri...@csclub.uwaterloo.ca wrote: pyt...@bdurham.com wrote: Does anyone have any recommendations on which version of the MSVC?90.DLL's need to be distributed with a Python 2.6.4 PY2EXE (0.6.9) based executable? (I assume I need just a matching pair of MSVCR90.DLL

Re: Python without wrapper script

2009-12-03 Thread Jonathan Hartley
On Dec 2, 4:12 pm, Ulrich Eckhardt eckha...@satorlaser.com wrote: eric.frederich wrote: Is there a way to set up environment variables in python itself without having a wrapper script. Yes, sure, you can set environment variables... The wrapper script is now something like

Re: Python without wrapper script

2009-12-03 Thread Jonathan Hartley
On Dec 3, 3:13 pm, Jonathan Hartley tart...@tartley.com wrote: On Dec 2, 4:12 pm, Ulrich Eckhardt eckha...@satorlaser.com wrote: eric.frederich wrote: Is there a way to set up environment variables in python itself without having a wrapper script. Yes, sure, you can set environment

Re: Anything equivalent to cassert in C++?

2009-11-27 Thread Jonathan Hartley
On Nov 26, 6:08 pm, Jean-Michel Pichavant jeanmic...@sequans.com wrote: Peng Yu wrote: There are some assertion code (testing if a condition is false, if it is false, raise an Error object) in my python, which is useful when I test my package.  But such case would never occur when in the

Re: IDE for python

2009-11-16 Thread Jonathan Hartley
On Nov 16, 5:09 am, sturlamolden sturlamol...@yahoo.no wrote: On 15 Nov, 18:09, Peng Yu pengyu...@gmail.com wrote: There had been some discussion on IDE. But I'm not sure what pros and cons of each choice. Current, I'm using vim and ctags. Could somebody give some advices on choosing the

Re: Vote on PyPI comments

2009-11-15 Thread Jonathan Hartley
a package before trying it. Or do comments and ratings only apply to a particular version of a package, and get removed from the package's 'front page' every time a new version is released? Thanks, Jonathan Hartley -- http://mail.python.org/mailman/listinfo/python-list

Re: bootstrapping on machines without Python

2009-11-14 Thread Jonathan Hartley
On Nov 13, 1:57 pm, Tim Golden m...@timgolden.me.uk wrote: Jonathan Hartley wrote: While examining py2exe et al of late, my thoughts keep returning to the idea of writing, in C or similar, a compiled stand-alone executable 'bootstrapper', which: 1) downloads and install a Python

Re: bootstrapping on machines without Python

2009-11-14 Thread Jonathan Hartley
On Nov 13, 10:25 pm, mma...@gmx.net wrote: On Fri, 13 Nov 2009 02:40:28 -0800 (PST) Jonathan Hartley tart...@tartley.com wrote: Even my very limited understanding of the issues is enough to see that the idea is far from trivial. Thanks heaps for the input from everyone. Martin Lemburg's

bootstrapping on machines without Python

2009-11-13 Thread Jonathan Hartley
While examining py2exe et al of late, my thoughts keep returning to the idea of writing, in C or similar, a compiled stand-alone executable 'bootstrapper', which: 1) downloads and install a Python interpreter if none exists 2) runs the application's Python source code using this interpreter. An

Re: comparing alternatives to py2exe

2009-11-12 Thread Jonathan Hartley
On Nov 10, 1:34 pm, Philip Semanchuk phi...@semanchuk.com wrote: On Nov 9, 2009, at 9:16 PM, Gabriel Genellina wrote: En Fri, 06 Nov 2009 17:00:17 -0300, Philip Semanchuk phi...@semanchuk.com escribió: On Nov 3, 2009, at 10:58 AM, Jonathan Hartley wrote: Recently I put together

comparing alternatives to py2exe

2009-11-03 Thread Jonathan Hartley
Hi, Recently I put together this incomplete comparison chart in an attempt to choose between the different alternatives to py2exe: http://spreadsheets.google.com/pub?key=tZ42hjaRunvkObFq0bKxVdgoutput=html Columns represent methods of deploying to end-users such that they don't have to worry

Re: file system iteration

2006-10-09 Thread Jonathan Hartley
by not doing anything to walked directories that '/proc' type entries cannot deal with. I think (no sarcasm intended) the point of offering a directory-like interface to '/proc' was so one can perform directory-like operations on it. -- Jonathan Hartley [EMAIL PROTECTED] +44 7737 062 225 -- http