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/
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
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
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
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
A task like this is more suited to bash than Python:
find . -name '*.pyc' -exec rm '{}' ';'
--
http://mail.python.org/mailman/listinfo/python-list
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
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
Fair points Steven. Thanks for further refining my initial refinement. :-)
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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
}' 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
://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
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
Changes by Jonathan Hartley tart...@tartley.com:
--
nosy: +jonathan.hartley
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3561
___
___
Python-bugs
Changes by Jonathan Hartley tart...@tartley.com:
--
nosy: +jonathan.hartley
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9228
___
___
Python-bugs
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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,
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,
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
79 matches
Mail list logo