On Oct 4, 4:12 am, Kushal Kumaran
wrote:
> Is virtualenv what you need?
>
> http://pypi.python.org/pypi/virtualenv
>
> >
>
> --
> regards,
> kushal
Not quite. It basically amounts to a UNIX version of xcopy'ing an
existing Python installation.
... install Python X.Y by any means
python vir
Having STFW and come up empty, I'm wondering if anyone knows if there
is an analogue to the Ruby Version Manager in the Python world? rvm is essentially a
tool that can install several Ruby implementations side by side and
easily hot swap them in your shell session. Check a few pages of their
webs
On Apr 27, 11:09 pm, "Martin v. Loewis" wrote:
> > I'm curious to know exactly the differences between the c/c++ compilers
> > you get with various versions of VS and those you get with the (command
> > line only) Windows SDK (formerly called the platform SDK).
>
> > The windows sdk is a free down
For the most part keeping new code compatible with both Python 2.6 and
3.1 isn't a challenge, the most noticeable issue is with string data.
The obvious downside is if the code has to run on an interp that
doesn't understand the modern 'except ClassName as varname:' thing.
--
http://mail.python.or
I've generally found it wise to grab the ISO images for the express
editions collection, and save it somewhere in cold storage.
Never have needed to compile Python on Windows, but some modules only
support older versions (e.g. 2.4 or 2.5), which is irksome. So it's a
good idea to have stuff setup
On Apr 23, 4:47 pm, JTimoty wrote:
> Hi,
>
> I've got a weird problem, apparently related to the way python
> searches for DLLs on Windows.
>
> I compiled PyQt4 (no errors) but scripts that use it fail with "DLL
> load failed: Invalid access to memory location."
> If I play with loading the module
In my experience (FreeBSD), compiling vim with Python, Perl, or Ruby
support (etc), generally requires recompiling vim after upgrading the
corresponding language.
Note also that (if like me) you manage vim installations `by hand` on
all systems, rather then use the systems package management syst
On Nov 16, 4:54 pm, Steve Ferg wrote:
> This is a question for the language mavens that I know hang out here.
> It is not Python related, except that recent comparisons of Python to
> Google's new Go language brought it to mind.
>
> NOTE that this is *not* a suggestion to change Python. I like Py
If it's such a big hairy deal, just recompile a copy of the C Pre
Processor to use something other then #, and hook it up to your python
scripts in a pipe line from a shell wrapper.
Personally, I'd rather have Lisps lambda or perls sub then Cs
preprocessor, and even in those cases, Python suffices
On Nov 2, 2:27 pm, Collin D wrote:
> Hey everyone.
>
> I am writing a game in python, and it includes a text console somewhat
> like the one in WoW and Runescape. I want to be able to include "/"
> commands, like IRC, and was wondering what the best module would be to
> parse these.
>
> Thanks a l
For me a language is a language for the most part, doesn't matter...
Python is a language I choose for any of several reasons:
0.) It is easy to setup dependent packages on both BSD, Linux, and
Windows
1.) Most important things already have a Python binding somewhere
2.) Working in Pyt
The best IDE for git and python is bash :-P.
I use a mixture of FreeBSD, rxvt-unicode, GNU screen, zsh, vim, git,
Python, and Exuberant Ctags.
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 26, 10:00 am, Anthra Norell wrote:
> The function "os.system
> ('copy file_name directory_name')" turns out doesn't do anything except
> flashing a DOS command window for half a second. So my question is: How
> can one copy files on the OS level?
Under a Windows system the built in command
On Oct 26, 11:57 am, Girish wrote:
> Hello, Which is the best software to create GUI other then Boa.
>
> Thanks,
> Girish.
Any editor can be used to create a "GUI" program in Python. Beyond
that it depends on what you are using; since you stated Boa, I assume
WxPython - so take a look at WxGlade.
be fairly easy for you to comprehend how
to do it in Python.
--
TerryP
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 20, 4:30 pm, Nobody wrote:
> One language's "eval" isn't the same as another's. E.g. there's a big
> difference between Lisp's "eval" (which takes an s-expression as an
> argument) and an "eval" which takes a string as an argument.
>
> The former is fine; the latter should be prohibited by
On Oct 18, 12:35 pm, mattia wrote:
> Yes, reading the doc I've come up with
> s = "%(0)03.02f%(1)s done" % {"0": 100.0-100.0*(size/tot), "1": "%"}
> but to it is not a good idea to use a dict here..
Also look at the new str.format()
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 16, 9:04 pm, mattia wrote:
> Is there a way to print to an unbuffered output (like stdout)? I've seen
> that something like sys.stdout.write("hello") works but it also prints
> the number of characters!
http://docs.python.org/3.1/library/functions.html#print
a suitable object passed that
On Oct 16, 8:15 pm, D wrote:
> Hello,
>
> I would like to be able to spawn a new CMD window (specifing size,
> color and placement of the window), and write to it separately.
> Specifically, I have a backup program that displays each file backed
> up in the main window, and I would like to spawn
On Oct 15, 10:36 pm, a...@pythoncraft.com (Aahz) wrote:
> Why do you think that would be wise? If library writers haven't upgraded
> their libraries to 3.1, shouldn't that be a message to you?
To me, it generally sends this kind of message:
if lib.has_lots_of_users:
try:
avoid.as_long_as_p
On Oct 15, 8:52 pm, Jeremy wrote:
> On Oct 15, 2:15 pm, TerryP wrote:
> > If you want simple sequenceal execution of external programs, use a
> > suitable blocking function to execute them (like system) combined with
> > a simple loop over the sequence of commands to
On Oct 15, 7:42 pm, Jeremy wrote:
> I need to write a Python script that will call some command line
> programs (using os.system). I will have many such calls, but I want
> to control when the calls are made. I won't know in advance how long
> each program will run and I don't want to have 10 pr
On Oct 14, 9:48 pm, Kazimir Majorinc wrote:
> Do you think
> it would be better if I asked that? That result would
> be significantly different?
>
Not really. The eval, exec, and compile builtins are more or less
related and serve similar purposes, but don't seem to be highly used
in Python. Ther
ith a for (i=0; i < count; i++) versus for (i=0; i < count;
i--) discussion. By that, I mean:
Fruitful conversation but there is no one spoon for every bowl.
--
TerryP.
Just Another Programmer.
--
http://mail.python.org/mailman/listinfo/python-list
Mensanator, thank goodness that was generated :-P
--
http://mail.python.org/mailman/listinfo/python-list
to avoid mixing bash and Python code in one
file.
If maintainability is not a factor in what you are writing, then you
should probably not be writing code in any language unless it is the
language of Mathematics (and even then, maintainability is a wise
consideration).
--
TerryP.
Just Another Programmer.
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 12, 10:15 am, Bjorn wrote:
> Hi, I woul like to start a program from within python (under linux):
> This works fine:
>
> import os
> path = 'tclsh AppMain.tcl hej.gb'
> os.system(path)
>
> The file AppMain.tcl is the executable and the file hej.gb is a
> textfile in the same directory.
> Th
n to reply except for the trolling aspect?
>
> good day!
See the above.
Also note this: I never said I would _n_e_v_e_r_ use Tkinter.
Evaluating Tk interfaces under several languages, has been on my todo
list for a very long time. There are however other libraries with a
more pressing need to be evaluated before they are cycled into
projects.
--
TerryP.
Just Another Programmer
--
http://mail.python.org/mailman/listinfo/python-list
ing software around graphical user interfaces, unless you count
a love for the `cat f1 f2 f3 | sort | uniq | mail -s "subject"
u...@cli.users.org` school of software design.
Tk is probably an excellent toolkit for people to use at first (I've
never used it) but good documentation and an API that's light on brain
damage is the *best* thing to follow up with, next to mind reading ;).
--
TerryP.
Just Another Programmer
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 11, 9:43 pm, Steven D'Aprano wrote:
> On Sun, 11 Oct 2009 11:15:06 -0700, TerryP wrote:
> > I might take flak here, for writing something like 'dict[key]
> > (func_args)' instead of something more Pythonic,
>
> Looking up a first-class function in a dict
On Oct 9, 5:59 pm, Joshua Kugler wrote:
> ryniek90 wrote:
> > So maybe someone, someday decide to
> > put in Python an alternative, really great implementation ofscanf() ?
>
> My idea of a "greatscanf() function" would be a clever combination of
> re.match(), int(), and float().
>
> j
Actually, t
s more of the work, then the
maintenance programmer. In a more Object-Oriented light, you could
also fetch a member of an object at run time, and use that in place of
a dictionary. Take a look how the standard 'cmd' module dispatches
stuff.
I might take flak here, for writing somethi
On Oct 11, 7:07 am, Erik Max Francis wrote:
> Because that's uglier. `or` means something completely unrelated in
> expressions. Variations of `else if` in `if ... else if ...` chains is
> routine in computer languages. Choosing a deliberately different syntax
> just for the sake it of is obtus
On Oct 10, 6:13 pm, Chris Jones wrote:
> Hmm.. On *nix systems, decent applications understand the $EDITOR
> environment variable - don't know about gnome & friends, though.
>
I tend to write programs that understand EDITOR, BROWSER, etc; wish
the rest of the world did.
> So what does the inter
know it, ircII is a really freaking old Internet
Rely Chat client ;)
--
TerryP
--
http://mail.python.org/mailman/listinfo/python-list
> But in actual practice you use a space cadets editor like Vim.
>
> Ross Ridge
Actually by space cadets editor, I meant needing one of these:
http://en.wikipedia.org/wiki/Space_cadet_keyboard
--
TerryP.
--
http://mail.python.org/mailman/listin
On Oct 8, 3:29 am, Chris Jones wrote:
> I do have a question:
>
> You mentioned Vim's clientserver mode.
>
> What's it good for?
It's most valuable for sending data to an existing instance of vim, by
name. Both files and keystrokes can be sent fwiw.
vim basically organizes it self into buffers,
to
speed things up and save on wrist strain. Before I read a tutorial
about vi, I used XEmacs very happily---vi just lines up better with
how my brain works.
--
It is also general consensus that I am nuts ;)
TerryP.
--
http://mail.python.org/mailman/listinfo/python-list
In the last 4 years, I have never missed functions like .*scanf() or
atoi().
It's probably a greeaaat thing that Python provides nether as built
ins (per se).
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 4, 10:05 pm, Manowar wrote:
> I am new to pyton and have asked this question several times the
> answer is always not sure.
> Here is my question sekeltal animation ( bone animation) is it
> possible with python? What i want to develop is an aquarium in
> realtime, skeletal animation, all t
On Oct 3, 4:29 pm, Bernie wrote:
> Hi, no -its just put on the website. Unless there's a method you can
> suggest?
Not to butt in, but off the top of my head, you could probably set up
a mailing list and post the link to the file every cycle - simple but
effective.
--
http://mail.python.org/mai
>
> A GUI tool that allows me to enter descriptions, arguments, return
> values etc, for each function, class, etc. in some forms and then
> generates and inserts the correct comment syntax, so pydoc can generate
> the documentation HTML. (preferrably for windows)
>
Maybe I am a bastard, but pers
Honestly, the only performance data involving Java, that would ever
surprise me: is when a Java program takes less time to startup and get
going, then the computer it is being run from did ;).
When planning-ahead for a project, I look at what performance the
language implementations offer, in the
On Sep 30, 1:49 pm, Piet van Oostrum wrote:
> I don't know what print_r does, but in your example above
>
> print [x.L for x in t.M] would work.
>
> Probably you would split this into two methods in X and Y.
> --
> Piet van Oostrum
> WWW:http://pietvanoostrum.com/
> PGP key: [8DAE142BE17999C4]
P
inay Sajip
As long as people can dig up an old version, everything should be
fine.
It's not like you're asking people to port over a quarter million
lines of working code to the latest and untested :-)
--
TerryP.
--
http://mail.python.org/mailman/listinfo/python-list
Maybe you should try reading the source?
--
http://mail.python.org/mailman/listinfo/python-list
Pierre-Alain Dorange wrote:
> Sorry, it was not clear.
> But i want to know if i can make the package smaller, because the total
> package weight 59.4 MB just for a small arcade game.
>
You would need to skip or strip out any unneeded components that are
being packed. Either by playing with how
are suitable for the task. Profiling can be
very important.
--
TerryP
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 18, 9:28 pm, pdora...@pas-de-pub-merci.mac.com (Pierre-Alain
Dorange) wrote:
> I used py2app on Mac to build a package of my game (using pygame).
> It works fine (better than py2exe, i can'tmake work at tht time).
>
> But the package is very big.
> The biggest "thing" is numpy lib : 19 MB !
ring
information, down to writing dictionaries out to a file for later
slupin' & eval() recovery, which is a method that I have occasionally
thrown my hands up at I don't even want to mention some of the
commercial products I've bumped into!
--
TerryP.
--
http://mail.python.org/mailman/listinfo/python-list
Gabriel Genellina wrote:
> And even after it's
> gone, being a pure Python module it's easy to keep the previous version
> around.
> So, I wouldn't worry about that.
Yeah, I'm sure that is the same kind of thinking that caused 16-bit MS-
DOS applications to remain a part of Windows NT so long.
Read this thread:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/445ffc93b0e6a460
and you will likely get the idea.
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 15, 7:20 pm, Grant Edwards wrote:
> Does anybody have any idea why Active State Python 2.5 works
> fine from a normal Cygwin shell window, but hangs when I try to
> start it when I'm ssh'd into the machine?
>
Mixing normal Windows and Cygwin programs can sometimes yield odd
results. The on
Under unix and cygwin, it's also possible to use GNU Screen, along
with a much larger then default defscrollback value.
--
http://mail.python.org/mailman/listinfo/python-list
t;> def foo(x, y):
... print(x+y)
...
>>> inspect.getsource(foo)
(throws IOError: could not get source code)
Perhaps someone else has more experience on the matter.
--
TerryP.
--
http://mail.python.org/mailman/listinfo/python-list
>
> Not to be omega-rude and disrespectful either but if you think
> tradeoffs made in designing a language, such as the choice of
> indents or braces to denote blocks, are simple and obvious
> ones, then you are either a very stupid person, or are trying
> to vent your anger from the safety of a r
On Sep 13, 10:12 pm, Peng Yu wrote:
> Hi,
>
> I want to understand why python use indentation to denote block of
> code. What are the advantages of it? Is there a style in python to
> denote a block of code the same as that of C++ (with '{}')?
>
> One disadvantage of using indentation to denote a
Importing models from a file, obviously always raises the question,
what kind of model formats :-P.
You should probably take a look at something like Python-Ogre or
Pygame for a starting point. Doing raw OpenGL is a bit more tricky and
even more dependent on format.
--
http://mail.python.org/ma
Thanks for the link, was a nice read.
"Have specialized needs better served by other languages that you already
know. For example, if you want to do a lot of text processing and you have
a basement full of Perl programmers, there's no compelling reason to
switch."
Now that really hits the sweet
[EMAIL PROTECTED] wrote:
> what would be the best python GUI toolkit, it must be cross platform.
>
> i have tried gtk, but it interface are real bad and its coding was
> difficult so i dropped it,
>
> the only remaining are qt4 and wx, i would like to know if one of these or
> any other toolkit
Tomek Paczkowski wrote:
> You can try to put your code through pylint. It will give you some
> automatic critique.
>
There is a pylint !?
That one is defiantly making my workstation later just for fun hehe.
--
There seems no plan because it is all plan.
-- C.S. Lewis
--
http:/
61 matches
Mail list logo