Greetings folks,
I am very new to this usenet forum, and I am brand new to Python3...
so be gentle
The source tarball for Python3 compiled and installed (local install
for first experiments $HOME/local/) and runs very well in my terminal.
I am not able to run IDLE because the compile b
On Mon, 2011-03-28 at 12:58 +0100, Tim Wintle wrote:
> On Mon, 2011-03-28 at 12:42 +0200, Esben Nielsen wrote:
> > We are making a prototype program in Python. I discovered the output was
> > non-deterministic, i.e. I rerun the program on the same input files and
> > get different output files. We
On Mon, Mar 28, 2011 at 11:35:09AM +, Steven D'Aprano wrote:
> [...]
> > Forcing people to use a key-function, will produce cases where python
> > will ask for more memory and take longer to sort, than allowing to
> > provide a cmp function.
>
> More memory yes; take longer to sort, almost ce
Benjamin Kaplan writes:
> If you can figure out a good way to compile a language like Python,
> you'll be very rich. Yes, it is running the interpreter and then
> running the bytecode on the interpreter. It's the same way Java and
> .NET work.
Not exactly AIUI. .NET bytecodes do actually get co
On Mon, Mar 28, 2011 at 03:43:03PM +, Steven D'Aprano wrote:
> On Mon, 28 Mar 2011 14:39:04 +0200, Antoon Pardon wrote:
>
> > I tried to sort lists of 1 elemens. Each element a tuple two items
> > that was to be sorted first according to the first item in ascending
> > order, then accordin
ms.kalpana2...@rediffmail.com
--
http://mail.python.org/mailman/listinfo/python-list
Doug Hellmann (2011-03-24 14:58:30 +0100) wrote:
> Python Insider (http://blog.python.org/) is a new blog from the Python
> core development team. [...] There are a variety of ways to subscribe,
> including email and Twitter. [...]
Hi Doug, this is great news, thank you!
I've tried to subscribe
harrismh777 wrote:
> Greetings folks,
> I am very new to this usenet forum, and I am brand new to Python3...
Welcome.
> so be gentle
We don't eat children above the age of three ;)
> The source tarball for Python3 compiled and installed (local install
> for first experiments $HOME/loc
Railroad employers, opportunities in only on the site for government,
banking and data entry.
http://rojgars.webs.com/Railwayjobs.htm http://rojgars1.webs.com/gov.htm
Cash income in Management careers.
Globalize Management careers.
http://managementjobs.webs.com/mm.htm
http://jobshunter.webs.com
Dear Everybody!
We have a redmine server with linux.
I wrote some pythonic tool that backup the redmine (files and
database) and put to ftp server.
This was working fine.
But today I checked, and I saw this failed in the prior week.
As I checked more, I saw that part. is out of space.
I stored t
from collections import Counter
from itertools import product
print('\n'.join('*'*(c//2000) for _,c in sorted(Counter(map(sum,
product(range(6), repeat=8))).items(
almost-normally-yours,
Raymond
--
http://mail.python.org/mailman/listinfo/python-list
http://www.ideone.com/infch
^ Result of the below code
On 29 March 2011 19:50, Raymond Hettinger wrote:
> from collections import Counter
> from itertools import product
>
> print('\n'.join('*'*(c//2000) for _,c in sorted(Counter(map(sum,
> product(range(6), repeat=8))).items(
>
>
> almost-n
harrismh777 wrote:
Chris Rebert wrote:
Yes. py2exe is a tool which generates such Windows executables:
http://www.py2exe.org/
Interesting... but it can't possibly be creating .exe files
(compiling)...
Yes and no. The python program is not being compiled. The Python
system, along with all
Hi!
Sorry. The path was wrong! "backup_redmine <> redmine_backup"... :-(
Thanks:
dd
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
On Sun, Mar 20, 2011 at 06:59:46PM -0700, Justin
Ezequiel wrote:
> On Mar 20, 7:30 am, Alexander Gattin
> wrote:
> > You need to place 2 bytes into the circular buffer
> > to simulate key press. Lower byte is ASCII code,
> > higher byte is scan code (they are the same for
> > functional ke
On 2011-03-29, harrismh777 wrote:
> Chris Rebert wrote:
>> Yes. py2exe is a tool which generates such Windows executables:
>> http://www.py2exe.org/
>
> Interesting... but it can't possibly be creating .exe files
It is.
> (compiling)...
It isn't.
> I don't buy it...
Then don't.
> it has to b
i mean made with python only, not just a small part of python.
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Mar 30, 2011 at 1:32 AM, Neil Alt wrote:
> i mean made with python only, not just a small part of python.
> --
> http://mail.python.org/mailman/listinfo/python-list
>
You're using one right now. Mailman is written in Python, and it
manages countless mailing lists the world over. I have it
yeah nice example :) impressive.
On 3/29/11, Chris Angelico wrote:
> On Wed, Mar 30, 2011 at 1:32 AM, Neil Alt wrote:
>> i mean made with python only, not just a small part of python.
>> --
>> http://mail.python.org/mailman/listinfo/python-list
>>
>
> You're using one right now. Mailman is writt
On 03/29/2011 10:32 AM, Neil Alt wrote:
> i mean made with python only, not just a small part of python.
Civilisation 4 (the game) used Python for all of its scripting. As far
as I know almost all the game logic was in Python, and you could access
most parts of the game.
Blender also has a rather
http://123maza.com/65/agent409/
--
http://mail.python.org/mailman/listinfo/python-list
Alexander Gattin wrote:
> Another thing is that you may need to send key
> release after key press in order for the
> application to trigger the F5/F2/F7 event. I'm not
> sure what the scan codes for F5/F2/F7 releases
> are, but think that they may be:
>
> F5: 0xBF
> F2: 0xBC
> F7: 0xC1
True. The
Steven D'Aprano wrote:
On Fri, 25 Mar 2011 10:21:35 +0100, Antoon Pardon wrote:
On Thu, Mar 24, 2011 at 11:49:53PM +, Steven D'Aprano wrote:
On Thu, 24 Mar 2011 17:47:05 +0100, Antoon Pardon wrote:
However since that seems to be a problem for you I will be more
detailed. T
On Tue, Mar 29, 2011 at 1:46 AM, Antoon Pardon wrote:
> The double sort is useless if the actual sorting is done in a different
> module/function/method than the module/function/method where the order
> is implemented. It is even possible you didn't write the module
> where the sorting actually o
> it has to be reproducing the byte code
> interpreter in the code segment and the byte code in the data segment...
> so that each .exe file created by said process is actually loading an
> entire copy of at least the byte code interpreter with each program
> "compiled" ...
Yes, if you think of i
On Mar 29, 12:16 am, harrismh777 wrote:
> Chris Rebert wrote:
> > Yes. py2exe is a tool which generates such Windows executables:
> >http://www.py2exe.org/
>
> Interesting... but it can't possibly be creating .exe files
> (compiling)... I don't buy it... it has to be reproducing the byte code
> in
Hello all,
Does anyone know of software that might be of use in an attempt to animate an
object undergoing 6-DOF rigid body motions: surge, sway, heave, roll, pitch and
yaw?
Thanks so much,
Ben Racine
--
http://mail.python.org/mailman/listinfo/python-list
On 03/29/2011 01:17 PM, Benjamin J. Racine wrote:
> Hello all,
>
> Does anyone know of software that might be of use in an attempt to animate an
> object undergoing 6-DOF rigid body motions: surge, sway, heave, roll, pitch
> and yaw?
>
> Thanks so much,
> Ben Racine
>
Blender.
--
Corey Rich
Peter Otten wrote:
We don't eat children above the age of three;)
geez... that's good news :)
> work... but, I'm at a bit of a loss to know exactly what its looking
> for... libs, or libs and devel headers? or other?
Most likely the development headers. Try installing tk-dev.
>>> print('\n'.join('*'*(c//2000) for _,c in sorted(Counter(map(sum,
>>> product(range(6), repeat=8))).items(
*
***
*
**
*
*
**
On Tue, Mar 29, 2011 at 11:24 AM, Raymond Hettinger wrote:
print('\n'.join('*'*(c//2000) for _,c in sorted(Counter(map(sum,
product(range(6), repeat=8))).items(
>
>
>
>
>
>
>
>
> *
> ***
> *
>
>
> **
> *
> ***
On 29/03/2011 18:01, Dan Stromberg wrote:
On Tue, Mar 29, 2011 at 1:46 AM, Antoon Pardon
mailto:antoon.par...@rece.vub.ac.be>> wrote:
The double sort is useless if the actual sorting is done in a different
module/function/method than the module/function/method where the order
is imp
Raymond Hettinger wrote:
almost-normally-yours,
Raymond
thanks ... interesting
Seriously, these little one liners teach me more about the python
language in less time than *all* of the books I'm trying to digest right
now. The toughest part of learning python is learning about what's
avai
On Wed, Mar 30, 2011 at 5:57 AM, MRAB wrote:
> You would have to do more than that.
>
> For example, "" < "A", but if you "negate" both strings you get "" <
> "\xBE", not "" > "\xBE".
Strings effectively have an implicit character at the end that's less
than any other character. Easy fix: Append
For anyone interested, the tracker discussion on removing cmp is at
http://bugs.python.org/issue1771
There may have been more on the old py3k list and pydev list.
One point made there is that removing cmp= made list.sort consistent
with all the other comparision functions,
min/max/nsmallest/nla
On 3/29/2011 1:52 PM, harrismh777 wrote:
Thanks. You're right... I don't have tk-dev installed. duh. And I have
choices to make... it looks like setup.py is looking for 8.4 headers; I
3.2 (which you should definitely be starting with) should, I think, be
looking for 8.5, which I believe is ye
On Tue, Mar 29, 2011 at 1:08 PM, Chris Angelico wrote:
> On Wed, Mar 30, 2011 at 5:57 AM, MRAB wrote:
>> You would have to do more than that.
>>
>> For example, "" < "A", but if you "negate" both strings you get "" <
>> "\xBE", not "" > "\xBE".
>
> Strings effectively have an implicit character a
On 3/28/2011 3:42 AM, Esben Nielsen wrote:
Hi,
We are making a prototype program in Python. I discovered the output was
non-deterministic, i.e. I rerun the program on the same input files and
get different output files. We do not use any random calls, nor
threading.
One of us thought it could b
On 3/29/2011 5:50 AM, Raymond Hettinger wrote:
from collections import Counter
from itertools import product
print('\n'.join('*'*(c//2000) for _,c in sorted(Counter(map(sum,
product(range(6), repeat=8))).items(
The line break makes that hard to read; the axis is not labeled (and
labels he
Hi Loyd,
Having a decent front page might help to attract people:
Go to http://www.freesoftwareuni.com/
and try to get any useful information except (free / GPL / not
accredited / your email address)
With out signing in / without registering you don't even see what FSU
has to offer / plans
On Wed, Mar 30, 2011 at 6:48 AM, Ian Kelly wrote:
> Not to mention that it still has bugs:
>
> "" < "\0"
> "\xff" < "\xff\xff"
That's because \0 isn't less than any character, nor is \xff greater
than any. However, the latter is true if (for instance) your string is
in UTF-8; it may be possible t
On Tue, Mar 29, 2011 at 12:48 PM, Ian Kelly wrote:
> On Tue, Mar 29, 2011 at 1:08 PM, Chris Angelico wrote:
> > On Wed, Mar 30, 2011 at 5:57 AM, MRAB
> wrote:
> >> You would have to do more than that.
> >>
> >> For example, "" < "A", but if you "negate" both strings you get "" <
> >> "\xBE", no
Hi Loyd,
It wasn't me sending you the private email.
I'm just a little surprised about this: "if you don't post under your
real name you must be a bad person" - attitude.
On 03/27/2011 01:15 PM, Lloyd Hardy wrote:
> Secondly, if you do use various names and email addresses and play
> 'maybe thi
Hi 'News123',
The message which you seem to think was a reply to you, wasn't. It was
sent 2 days ago in reply to another message, not yours.
_03/27/2011_ 01:15 PM
Well, that is - as far as I know - I'm not sure if you're 'Noah Hall' or not..
maybe you are? That's the problem with having an
On May 8, 2004 I posted a note[1] here in comp.lang.python
with a subject line of Lost : Plot_Demo looking for
a small 2d plot program that I had seen, misplaced,
and which I thought came along as a demo with a PYTHON
installation
This morning after rooting about in an old JYT
On 29/03/2011 21:32, Dan Stromberg wrote:
On Tue, Mar 29, 2011 at 12:48 PM, Ian Kelly mailto:ian.g.ke...@gmail.com>> wrote:
On Tue, Mar 29, 2011 at 1:08 PM, Chris Angelico mailto:ros...@gmail.com>> wrote:
> On Wed, Mar 30, 2011 at 5:57 AM, MRAB mailto:pyt...@mrabarnett.plus.com>> wrote
On Tue, Mar 29, 2011 at 5:06 PM, MRAB wrote:
> I think I've found a solution:
>
> class NegStr:
> def __init__(self, value):
> self._value = value
> def __lt__(self, other):
> return self._value > other._value
IOW:
cmp_to_key(lambda x, y: -cmp(x, y))
This
On Monday, March 28, 2011 7:12:23 AM UTC-4, kalo...@gmail.com wrote:
>
> Does anybody know how to create a virtual
> printer with python (on both windows and linux)?
Here's some code I just put together showing how to use Python to create a
PostScript file printer on Windows, output raw text to
Ian Kelly writes:
> cmp_to_key(lambda x, y: -cmp(x, y))
cmp_to_key(lambda x, y: cmp(y, x))
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Mar 29, 2011 at 9:59 PM, Alexander Gattin wrote:
> I'm not sure regarding the ASCII part. I think it
> might need to be set to 0x00 for all functional
> keys instead of 0x3F/0x3C/0x41, but probably no
> application actually cares.
>
> Another thing is that you may need to send key
> releas
How do i delete a module namespace once it has been imported?
I use
import banner
Then i make a modification to banner.py. When i import it again,
the new changes are not reflected. Is there a global variable i can
modify?
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 29, 6:14 pm, monkeys paw wrote:
> How do i delete a module namespace once it has been imported?
. . .
> Then i make a modification to banner.py. When i import it again,
> the new changes are not reflected. Is there a global variable i can
> modify?
In Python2.x, you can use the reload() f
On 03/29/2011 08:14 PM, monkeys paw wrote:
How do i delete a module namespace once it has been imported?
I use
import banner
Then i make a modification to banner.py. When i import it again,
the new changes are not reflected. Is there a global variable i can
modify?
Delete it from sys.modules
I've tried both the multiprocessing included in the python2.6 Ubuntu
package (__version__ says 0.70a1) and the latest from PyPI (2.6.2.1).
In both cases I don't know how to use imap correctly - it causes the
entire interpreter to stop responding to ctrl-C's. Any hints? Thanks
in advance.
$ pytho
On Tue, Mar 29, 2011 at 6:44 PM, Yang Zhang wrote:
> I've tried both the multiprocessing included in the python2.6 Ubuntu
> package (__version__ says 0.70a1) and the latest from PyPI (2.6.2.1).
> In both cases I don't know how to use imap correctly - it causes the
> entire interpreter to stop resp
Terry Reedy wrote:
[python] 3.2 (which you should definitely be starting with) should, I think, be
looking for [dev-tk] 8.5, which I believe is years old now and required, I also
believe, for the tkinter.ttk module.
Thanks everyone for your patience, and certainly for your help. I pulled
down
On 3/29/2011 9:14 PM, monkeys paw wrote:
How do i delete a module namespace once it has been imported?
I use
import banner
Then i make a modification to banner.py. When i import it again,
the new changes are not reflected.
The best thing, if possible, is to restart the program.
If you develo
I'm using select.poll to do I/O polling. polling is placed in a
independent thread
from select import poll
_poller = poll()
def poll(timeout):
l = _poller.poll(timeout)
return l
In my code, in some context, the timeout value will be high ( like 1
hour ), but there is no I/O in _p
58 matches
Mail list logo