Calling ImageMagick's convert

2008-12-22 Thread cmr.p...@gmail.com
Hello group! I'm a Python beginner. I'm trying to call ImageMagick's convert program from my code. My OS is Debian testing, and my version of Python is 2.5. I've just stumbled upon a problem: (1) subprocess.call('convert in.png -resize 640x480 out.png', shell = True) works, but none of the foll

Re: Calling ImageMagick's convert

2008-12-22 Thread Chris Rebert
On Mon, Dec 22, 2008 at 12:15 AM, cmr.p...@gmail.com wrote: > Hello group! > > I'm a Python beginner. I'm trying to call ImageMagick's convert > program from my code. > My OS is Debian testing, and my version of Python is 2.5. > > I've just stumbled upon a problem: > > (1) subprocess.call('convert

Re: How to represent a sequence of raw bytes

2008-12-22 Thread James Mills
On Mon, Dec 22, 2008 at 4:56 PM, Steven Woody wrote: > I thing "\x11\x22\x33" in python is not the {0x11, 0x22, 0x33} in C. > Since, a string in python is immutable, I can _not_ do something like: > b[1] = "\x55". > > And, how about char buf[200] in my original question? The intension > is to al

Re: HMAC with RIPEMD-160

2008-12-22 Thread Kless
On 21 dic, 23:53, "Chris Rebert" wrote: > On Sun, Dec 21, 2008 at 4:21 AM, Kless wrote: > > Is there any way of use HMAC with RIPEMD-160? > > > Since that to create a ripemd-160 hash there is to use: > >    h = hashlib.new('ripemd160') > > it looks that isn't possible > > > For HMAC-SHA256 would

Re: How to represent a sequence of raw bytes

2008-12-22 Thread Steven Woody
On Mon, Dec 22, 2008 at 4:35 PM, James Mills wrote: > On Mon, Dec 22, 2008 at 4:56 PM, Steven Woody wrote: >> I thing "\x11\x22\x33" in python is not the {0x11, 0x22, 0x33} in C. >> Since, a string in python is immutable, I can _not_ do something like: >> b[1] = "\x55". >> >> And, how about char

Re: Are python objects thread-safe?

2008-12-22 Thread Rhamphoryncus
On Dec 21, 11:51 am, RajNewbie wrote: > Say, I have two threads, updating the same dictionary object - but for > different parameters: > Please find an example below: > a = {file1Data : '', >        file2Data : ''} > > Now, I send it to two different threads, both of which are looping > infinitely

We are looking for boys and girls to have fun, orgie s, trios, and whatever. If you want a do it, don’t be shy and contact. That’s going to be great!

2008-12-22 Thread mare...@hotmail.com
We are looking for boys and girls to have fun, orgies, trios, and whatever. If you want a do it, don’t be shy and contact. That’s going to be great! By the way, we are bisexual and we don’t care about gender… Sign in to enjoy with us: http://xxxgente.chueca.com/sexocontacto/ http://galeon.com/sexoc

Re: New Python 3.0 string formatting - really necessary?

2008-12-22 Thread Aaron Brady
On Dec 21, 8:42 pm, MRAB wrote: > Aaron Brady wrote: > > On Dec 21, 6:14 pm, MRAB wrote: snip > >> Yes, I suggested that earlier, but it isn't needed because you can > >> create a format object with "Format(string)". However, most of the time > >> you won't bother to create a format object explic

Basic misunderstanding of generators

2008-12-22 Thread Barak, Ron
Hi All, I want to use generators to print lines taken from a gzipped file. I've never used generators, so probably my problem is basic misunderstanding of generators. In the below program, I expected the last line ("print line_") to print the first line of the sac.log.gz file. Instead, I get:

Re: Basic misunderstanding of generators

2008-12-22 Thread Chris Rebert
On Mon, Dec 22, 2008 at 1:47 AM, Barak, Ron wrote: > Hi All, > > I want to use generators to print lines taken from a gzipped file. > I've never used generators, so probably my problem is basic misunderstanding > of generators. > > In the below program, I expected the last line ("print line_") to

Re: How to represent a sequence of raw bytes

2008-12-22 Thread bieffe62
On 22 Dic, 03:23, "Steven Woody" wrote: > Hi, > > What's the right type to represent a sequence of raw bytes.  In C, we usually > do > > 1.  char buf[200]  or > 2.  char buf[] = {0x11, 0x22, 0x33, ... } > > What's the equivalent representation for above in Python? > > Thanks. > > - > narke Usual

using subprocess module in Python CGI

2008-12-22 Thread ANURAG BAGARIA
Hello, I am a Python Newbie and would like to call a short python script via browser using a CGI script, but initially I am trying to call the same python script directly through python command line. The script intends to perform a few command line in a pipe and I have written the script (a short

Re: [Help] The pywinauto Can't select the MDI's menu using the MenuItems() which return [].

2008-12-22 Thread Simon Brunning
2008/12/21 : > The code below opens the Choose Font dialog on my Spanish Windows version: > > py> from pywinauto.application import Application > py> app = Application.start("Notepad.exe") Notepad's menus are build with MFC. Word's menus are not. Trust me, give it up. For automating Word, COM (wi

Re: wxpython for python 3.0 ?

2008-12-22 Thread Vlastimil Brom
>> The wxpython web describes compatability with python 2.4 & 2.5 . >> Does it work with 3.0 ? If not, anyone have a clue as to when ? > > This question was asked a couple of times on the wxpython-users mailing > list. It's probably going to take a while. For now, I'd stick to python 2.x. > The n

Re: wxpython for python 3.0 ?

2008-12-22 Thread CM
On Dec 21, 4:42 pm, dlemper wrote: > The wxpython web describes compatability with python 2.4 & 2.5 . > Does it work with 3.0 ?   If not, anyone have a clue as to when ? Not yet. I think it will be a while until then. -- http://mail.python.org/mailman/listinfo/python-list

RE: Basic misunderstanding of generators - resolved

2008-12-22 Thread Barak, Ron
Hi Chris, Thanks for the super fast reply. I tried your fix (with a slight modification, namely, I changed your line to be: line_ = generator.next()) And I got the printout I expected. Many thanks, Ron. P.S.: My program looks like so, with your suggestion: $ cat LogManager_try.py #!/usr/bin/

no sign() function ?

2008-12-22 Thread Pierre-Alain Dorange
I don't find any sign(x) function in the math library (return the sign of the value). I've read that math module is a wrapper to C math lib and that C math lib has not sign(), so... I've implement my own sign function of course (it's easy) but a standard one in math would be better and could be fa

Re: How to represent a sequence of raw bytes

2008-12-22 Thread Steven D'Aprano
On Mon, 22 Dec 2008 14:56:45 +0800, Steven Woody wrote: > The intension is to allocate 200 undefined bytes in memory. You *want* undefined bytes? Out of curiosity, what do you intend to do with them? -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: no sign() function ?

2008-12-22 Thread Christian Heimes
Pierre-Alain Dorange schrieb: > I don't find any sign(x) function in the math library (return the sign > of the value). > I've read that math module is a wrapper to C math lib and that C math > lib has not sign(), so... Starting with Python 2.6 the math and cmath modules have a copysign function.

Re: no sign() function ?

2008-12-22 Thread Pierre-Alain Dorange
Christian Heimes wrote: > Pierre-Alain Dorange schrieb: > > I don't find any sign(x) function in the math library (return the sign > > of the value). > > I've read that math module is a wrapper to C math lib and that C math > > lib has not sign(), so... > > Starting with Python 2.6 the math and

Re: no sign() function ?

2008-12-22 Thread Robert Lehmann
On Mon, 22 Dec 2008 12:31:44 +0100, Pierre-Alain Dorange wrote: >> > I don't find any sign(x) function in the math library (return the >> > sign of the value). >> > I've read that math module is a wrapper to C math lib and that C math >> > lib has not sign(), so... [snip] > As my need is for a gam

Re: no sign() function ?

2008-12-22 Thread Stephen Thorne
On 2008-12-22, Pierre-Alain Dorange wrote: > def sign(x): > if x==0.0: > return 0.0 > elif x>0.0: > return 1.0 > else: > return -1.0 Isn't this approximately this? :: def sign(x): return float(cmp(x, 0)) Or if you don't want a float response::

excluding non-data files from distutils package_data

2008-12-22 Thread Robin Becker
Is there a convenient way in a distutils setup to determine which files will be included as part of the package setup. The need arises because I want to exclude those files from the package_data argument after doing a recursive sweep of the package folder to locate all files inclding .py etc et

pg_result_status

2008-12-22 Thread Qian Xu
Hi All, I am using the pg module (http://www.pygresql.org/pg.html) for database testing. I have got a problem now: I want to check the result status of postgresql database, which can be done in php by using pg_result_status (http://www.phpbuilder.com/manual/en/function.pg-result-status.php) How

Re: no sign() function ?

2008-12-22 Thread Pierre-Alain Dorange
Stephen Thorne wrote: > > def sign(x): > > if x==0.0: > > return 0.0 > > elif x>0.0: > > return 1.0 > > else: > > return -1.0 > > Isn't this approximately this? :: > > def sign(x): > return float(cmp(x, 0)) Yes cmp() is probably the closest funct

Re: no sign() function ?

2008-12-22 Thread Istvan Albert
> conclusions --- try testing on a large number of candidates that are all (or mostly) positive or all (or mostly) negative and you'll see performance numbers that are substantially different than the ones you report: candidates = range(1000) In general the func

Re: Are Django/Turbogears too specific?

2008-12-22 Thread Philip Semanchuk
On Dec 22, 2008, at 1:52 AM, Tino Wildenhain wrote: Philip Semanchuk wrote: ... I prefer Mako over the other template languages I've seen. From what I can tell Mako is nearly identical to all other template languages you might have seen (e.g. PHP style tags). Thats why I personally would not

Start Earning With Commission junction

2008-12-22 Thread work8home4...@gmail.com
Start Earning With Commission junction one of the biggest affiliate programes i.e running on internet in these days details on http://megalinesolutions.googlepages.com/cj_1 -- http://mail.python.org/mailman/listinfo/python-list

Re: How to represent a sequence of raw bytes

2008-12-22 Thread Steven Woody
On Mon, Dec 22, 2008 at 6:44 PM, Steven D'Aprano wrote: > On Mon, 22 Dec 2008 14:56:45 +0800, Steven Woody wrote: > >> The intension is to allocate 200 undefined bytes in memory. > > You *want* undefined bytes? Out of curiosity, what do you intend to do > with them? > to receive/send network pack

Re: Python is slow

2008-12-22 Thread Lou Pecora
In article , "James Mills" wrote: > In case anyone is not aware, Python is > also used for heavy scientific computational > problems, games such as Civilisation and > others, and I believe (correct me if I"m wrong) > it's also used by NASA. > > --JamesMills Python has become very popular in sc

Event Driven programming - Doubts

2008-12-22 Thread Kottiyath
Hi, I have been looking at Twisted and lately Circuits as examples for event driven programming in Python. Even though I understood how to implement the code in these and what is deferred etc, I have not yet understood the implementation of deferred. I went through a lot of tutorials, but I

Re: New Python 3.0 string formatting - really necessary?

2008-12-22 Thread walterbyrd
On Dec 21, 12:28 pm, Bruno Desthuilliers wrote: > Strange enough, > no one seems to complain about PHP or Ruby's performances... A few years back, there was a certain amount of chest thumping, when python/django easily beat ror in a benchmark test. Now that ruby is faster, I guess speed is no big

Re: Event Driven programming - Doubts

2008-12-22 Thread Jean-Paul Calderone
On Mon, 22 Dec 2008 06:57:55 -0800 (PST), Kottiyath wrote: Hi, I have been looking at Twisted and lately Circuits as examples for event driven programming in Python. [snip] My question is as follows: I have not understood how the callbacks are hit without (a) blocking the code or (b)

Python's popularity

2008-12-22 Thread walterbyrd
I have read that python is the world's 3rd most popular language, and that python has surpassed perl in popularity, but I am not seeing it. >From what I have seen: - in unix/linux sysadmin, perl is far more popular than python, windows sysadmins typically don't use either. - in web-development, p

join a samba domain

2008-12-22 Thread Toff
hi, I 'm trying to write a script to make my computer join a samba. domeone have any idea ?? thanks regards, * # -*- coding: iso-8859-1 *-* import win32com.client import os,sys import win32api import impers import socket

Re: Python's popularity

2008-12-22 Thread Kevin Kelley
Python has it's place, usually getting things done, rather than being flashy. For example, while Java is still the "Enterprise King", both the leading application servers (Weblogic and Websphere) adopted Jython as their internal scripting language last year (or was it 2006?). It's used heavily fo

Re: Basic misunderstanding of generators

2008-12-22 Thread David Stanek
On Mon, Dec 22, 2008 at 4:47 AM, Barak, Ron wrote: > > if __name__ == "__main__": > filename = "sac.log.gz" > log_stream = LogStream(filename) > line_ = log_stream.next_line(log_stream.input_file) > print line_ > > $ python LogManager_try.py > > A method or function containing a

Re: Python's popularity

2008-12-22 Thread Marco Mariani
walterbyrd wrote: I have read that python is the world's 3rd most popular language, and that python has surpassed perl in popularity, but I am not seeing it. In 20 days, you've gone from trying to import a module by using: > load "test.py" to questioning the popularity of python. You have

Re: Event Driven programming - Doubts

2008-12-22 Thread David Stanek
On Mon, Dec 22, 2008 at 9:57 AM, Kottiyath wrote: > > If so, Even though data locking etc is not a problem, are we not still > having threads? Will it not still cause scalability problems in high > traffic? > If not, could somebody let me know how it is done? This somewhat depends on the applicat

Re: How to represent a sequence of raw bytes

2008-12-22 Thread Grant Edwards
On 2008-12-22, Steven D'Aprano wrote: > On Mon, 22 Dec 2008 14:56:45 +0800, Steven Woody wrote: > >> The intension is to allocate 200 undefined bytes in memory. > > You *want* undefined bytes? Out of curiosity, what do you intend to do > with them? Predict the future, of course. -- Grant Edwar

Re: Python's popularity

2008-12-22 Thread skip
Walter> From what I have seen: Walter> - in unix/linux sysadmin, perl is far more popular than python, Walter> windows sysadmins typically don't use either. Walter> - in web-development, php is far more popular than python - it's not Walter> even close. Walter> - when I did

Re: join a samba domain

2008-12-22 Thread Tim Golden
Toff wrote: hi, I 'm trying to write a script to make my computer join a samba. domeone have any idea ?? Ummm. It's not clear if you're saying that your code doesn't work, or asking for general advice, or what? I'm not in a position to have my machine join a domain or workgroup, but you seem

Re: Beep

2008-12-22 Thread Tobias Andersson
Jeffrey Barish skrev: Chris Rebert wrote: Is the 'pcspkr' kernel module built and loaded? Yes. And I should have mentioned that I get sound from Ubuntu applications that produce sound. Also, is the terminal bell set to "visual"? If so chr(7) only produces a brief flash (or similar). -- ht

Re: Are python objects thread-safe?

2008-12-22 Thread Duncan Booth
RajNewbie wrote: > Say, I have two threads, updating the same dictionary object - but for > different parameters: > Please find an example below: > a = {file1Data : '', >file2Data : ''} > > Now, I send it to two different threads, both of which are looping > infinitely: > In thread1: > a

Re: Python's popularity

2008-12-22 Thread Alvin ONeal
I decided to start learning python for 2 reasons: #A The white-space is wonderful - you can't code unreadable code. #B I noticed that just about every application I use has extensions written in python. Although it isn't as "cool" as ruby, it certainly has been in widespread use longer. I think t

Re: New Python 3.0 string formatting - really necessary?

2008-12-22 Thread Michael Torrie
r wrote: > Steven, > Would you like to elaborate on -why- escaped backslashes are needed in > strings... i waiting??? Some character was needed. It just happens that backslashes have been used in this manner for composing nonprintable sequences, codes, etc. It's only in use because someone arbitr

Re: join a samba domain

2008-12-22 Thread Toff
On 22 déc, 17:02, Tim Golden wrote: > Toff wrote: > > hi, > > > I 'm trying to write a script to make my computer join a samba. > > > domeone have any idea ?? > > Ummm. It's not clear if you're saying that your code doesn't > work, or asking for general advice, or what? I'm not in a > position to

Re: Python's popularity

2008-12-22 Thread Richard Riley
Marco Mariani writes: > walterbyrd wrote: > >> I have read that python is the world's 3rd most popular language, and >> that python has surpassed perl in popularity, but I am not seeing it. > > > In 20 days, you've gone from trying to import a module by using: > >> load "test.py" > > > to questio

Re: no sign() function ?

2008-12-22 Thread Pierre-Alain Dorange
Istvan Albert wrote: > try testing on a large number of candidates that are all (or mostly) > positive or all (or mostly) negative and you'll see performance > numbers that are substantially different than the ones you report: > > candidates = range(1000) > > In general the function sign_1() is

Re: join a samba domain

2008-12-22 Thread Tim Golden
Toff wrote: On 22 déc, 17:02, Tim Golden wrote: Toff wrote: hi, I 'm trying to write a script to make my computer join a samba. domeone have any idea ?? Ummm. It's not clear if you're saying that your code doesn't work, or asking for general advice, or what? I'm not in a position to have my

Re: New Python 3.0 string formatting - really necessary?

2008-12-22 Thread Steve Holden
walterbyrd wrote: > On Dec 21, 12:28 pm, Bruno Desthuilliers > wrote: >> Strange enough, >> no one seems to complain about PHP or Ruby's performances... > > A few years back, there was a certain amount of chest thumping, when > python/django easily beat ror in a benchmark test. Now that ruby is >

Re: Python's popularity

2008-12-22 Thread Luis M . González
On Dec 22, 12:11 pm, walterbyrd wrote: > I have read that python is the world's 3rd most popular language, and > that python has surpassed perl in popularity, but I am not seeing it. > > From what I have seen: > > - in unix/linux sysadmin, perl is far more popular than python, > windows sysadmins

Re: join a samba domain

2008-12-22 Thread M�ta-MCI (MVP)
Hi! If you are under Vista, you must change the LSA parameter. See: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa LMCompatibilityLevel try with value 1 or 0 And use a Samba not too old. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/

Re: New Python 3.0 string formatting - really necessary?

2008-12-22 Thread Michael Torrie
r wrote: > Thanks MRAB, > except the float is not 2 decimal places, but its there > > Come on... They did this for the interpreter not us. It's easer to > parse this string with positional arguments and a dict of format > descriptions. Come on pydev, at least be honest about it! No. They did thi

Re: Python's popularity

2008-12-22 Thread Steve Holden
walterbyrd wrote: > I have read that python is the world's 3rd most popular language, and > that python has surpassed perl in popularity, but I am not seeing it. [rest of stuff adequately answered by other posters] The "Python has surpassed Perl" myth came from one month's results on the TIOBE ind

Re: Python's popularity

2008-12-22 Thread Marco Mariani
Richard Riley wrote: One does not have to by a language maestro to try and assess its popularity. While his numbers or his reading of the numbers might be open to some questions, to suggest that one needs to be totally familiar with a language to determine its popularity is, frankly, ridiculous.

Re: Python's popularity

2008-12-22 Thread r
I think when Python was first brought to this dark world by a genius named Guido van Rossum, it had complete dominance in it's niche, actually Python created a niche where none existed before. Since the advent of Ruby(Python closet competitor), Python's hold on this niche is slipping. A lot of Ruby

Re: join a samba domain

2008-12-22 Thread Toff
On 22 déc, 17:57, Tim Golden wrote: > Toff wrote: > > On 22 déc, 17:02, Tim Golden wrote: > >> Toff wrote: > >>> hi, > >>> I 'm trying to write a script to make my computer join a samba. > >>> domeone have any idea ?? > >> Ummm. It's not clear if you're saying that your code doesn't > >> work,

Re: stable algorithm with complexity O(n)

2008-12-22 Thread denisbz
On Dec 15, 10:00 pm, "cmdrrickhun...@yaho.com" wrote: > It can be proven that you cannot sort an arbitrarily large set of > numbers, given no extra information, faster than O(n log n). Cormen Leiserson and Rivest, "Algorithms", have a short clear chapter on "Sorting in linear time": " ... cou

Re: New Python 3.0 string formatting - really necessary?

2008-12-22 Thread MRAB
Michael Torrie wrote: r wrote: Steven, Would you like to elaborate on -why- escaped backslashes are needed in strings... i waiting??? Some character was needed. It just happens that backslashes have been used in this manner for composing nonprintable sequences, codes, etc. It's only in use be

Re: stable algorithm with complexity O(n)

2008-12-22 Thread Dan Upton
On Mon, Dec 22, 2008 at 12:29 PM, wrote: > On Dec 15, 10:00 pm, "cmdrrickhun...@yaho.com" > wrote: >> It can be proven that you cannot sort an arbitrarily large set of >> numbers, given no extra information, faster than O(n log n). > > Cormen Leiserson and Rivest, "Algorithms", have a short clea

Re: New Python 3.0 string formatting - really necessary?

2008-12-22 Thread r
On Dec 22, 8:58 am, walterbyrd wrote: > On Dec 21, 12:28 pm, Bruno Desthuilliers > > wrote: > > Strange enough, > > no one seems to complain about PHP or Ruby's performances... > > A few years back, there was a certain amount of chest thumping, when > python/django easily beat ror in a benchmark

Re: Python's popularity

2008-12-22 Thread walterbyrd
On Dec 22, 10:13 am, r wrote: > Since the > advent of Ruby(Python closet competitor), Python's hold on this niche > is slipping. About the only place I ever hear of ruby being used is web development with RoR. When it comes to web development, it seems to me that ruby (because of rails) is far mo

I always wonder ...

2008-12-22 Thread skip
... shouldn't people who spend all their time trolling be doing something else: studying, working, writing patches which solve the problems they perceive to exist in the troll subject? Is there some online troll game running where the players earn points for generating responses to their posts? -

Re: Python's popularity

2008-12-22 Thread Steve Holden
r wrote: > I think when Python was first brought to this dark world by a genius > named Guido van Rossum, it had complete dominance in it's niche, > actually Python created a niche where none existed before. Since the > advent of Ruby(Python closet competitor), Python's hold on this niche > is slip

64-bit / 128-bit data element type for array?

2008-12-22 Thread akineko
Hello everyone, I need to handle binary files that contain 64-bit (or 128-bit in the furture) unsigned int data. Python's array seems not supporting unsigned int type beyond 32-bit ('L'). I would like to use Python array as I need to make my program work on both big-endian machines as well as on l

Re: join a samba domain

2008-12-22 Thread Jens Henrik Leonhard Jensen
Toff wrote: d = c.Win32_ComputerSystem d.JoinDomainOrWorkGroup(None, 3, "mydom", "mydompw", r"admin\\mydom") Shouldn't r"admin\\mydom" be "admin\\mydom" or r"admin\mydom". Or maybe just "admin" /Jens Henrik -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's popularity

2008-12-22 Thread Tommy Grav
On Dec 22, 2008, at 12:48 PM, walterbyrd wrote: Now since Python *is not* the only language on it's block, we have to compete with our main nemesis(Ruby) for survival I think both python and ruby will "survive." I think python is also competing with perl in the sysadmin space - although I see

Re: Python's popularity

2008-12-22 Thread r
Walter, I just look at the stats for comp.lang.python, and i am 9th place for most post this month. That makes me completely sad. With just 50 post so far, i am showing up on the high count. Sad, very sad. Now i have much reason to believe that only 100 or so people follow this list :(. Python is s

Re: I always wonder ...

2008-12-22 Thread Martin P. Hellwig
s...@pobox.com wrote: Is there some online troll game running where the players earn points for generating responses to their posts? You just got 10 points ;-) -- mph -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's popularity

2008-12-22 Thread Francesco Guerrieri
On Mon, Dec 22, 2008 at 7:01 PM, r wrote: > Walter, > I just look at the stats for comp.lang.python, and i am 9th place for > most post this month. That makes me completely sad. With just 50 post > so far, i am showing up on the high count. Sad, very sad. Now i have > much reason to believe that

Re: Python's popularity

2008-12-22 Thread Krishnakant
hello hackers. Python is best at high level calculations and as an indication, Please note that I am leading a team on developing an accounting software which will be modular and would suit the economic conditions of developed and almost developed countries like India. I find that number crunching

Re: join a samba domain

2008-12-22 Thread Toff
On 22 déc, 18:59, Jens Henrik Leonhard Jensen wrote: > Toff wrote: > >    d = c.Win32_ComputerSystem > >    d.JoinDomainOrWorkGroup(None, 3, "mydom", "mydompw", r"admin\\mydom") > > Shouldn't r"admin\\mydom" be "admin\\mydom" or r"admin\mydom". > Or maybe just "admin" > > /Jens Henrik you ar

Re: Python-list Digest, Vol 63, Issue 420

2008-12-22 Thread wblusk1
Sent from my Verizon Wireless BlackBerry -Original Message- From: python-list-requ...@python.org Date: Mon, 22 Dec 2008 19:01:06 To: Subject: Python-list Digest, Vol 63, Issue 420 Send Python-list mailing list submissions to python-list@python.org To subscribe or unsubscribe

Re: Python is slow

2008-12-22 Thread cm_gui
On Dec 22, 6:51 am, Lou Pecora wrote: > In article , >  "James Mills" wrote: > > > In case anyone is not aware, Python is > > also used for heavy scientific computational > > problems, games such as Civilisation and > > others, and I believe (correct me if I"m wrong) > > it's also used by NASA. >

Re: Python's popularity

2008-12-22 Thread r
Steve Holden > What makes you assume this is a zero-sum game, and that Python won't > survive if any other language becomes popular. Every language borrows > from those that came before it. Terms like "outright plagiarism" don't > encourage rational debate, and make you seem like a troll who is mor

Re: Python's popularity

2008-12-22 Thread Richard Riley
Marco Mariani writes: > Richard Riley wrote: > >> One does not have to by a language maestro to try and assess its >> popularity. While his numbers or his reading of the numbers might be >> open to some questions, to suggest that one needs to be totally familiar >> with a language to determine it

RE: Python's popularity

2008-12-22 Thread Ellinghaus, Lance
> I just look at the stats for comp.lang.python, and i am 9th place for > most post this month. That makes me completely sad. With just 50 post > so far, i am showing up on the high count. Sad, very sad. Now i have > much reason to believe that only 100 or so people follow this list :(. > Python is

Re: I always wonder ...

2008-12-22 Thread Grant Edwards
On 2008-12-22, s...@pobox.com wrote: > ... shouldn't people who spend all their time trolling be > doing something else: studying, working, writing patches which > solve the problems they perceive to exist in the troll > subject? I think you misunderstand the point of trolling. The author of a

Re: I always wonder ...

2008-12-22 Thread Grant Edwards
On 2008-12-22, Martin P. Hellwig wrote: > s...@pobox.com wrote: >> Is there some online troll game running where the players earn >> points for generating responses to their posts? > > You just got 10 points ;-) We'll have to ask for an instant replay for the judges on that one. If his question

Re: Calling ImageMagick's convert

2008-12-22 Thread Андрей Парамонов
2008/12/22 Chris Rebert : > I think this needs to be: > > subprocess.call(['convert', 'in.png', '-resize', '640x480', 'out.png']) > > Otherwise, it gets '-resize 640x480' as a single escaped option when > it's really 2 options, which is the error message you're getting. > You have to split the argu

Re: I always wonder ...

2008-12-22 Thread Christian Heimes
s...@pobox.com schrieb: > shouldn't people who spend all their time trolling be doing something > else: studying, working, writing patches which solve the problems they > perceive to exist in the troll subject? Is there some online troll game > running where the players earn points for genera

Re: I always wonder ...

2008-12-22 Thread r
> You just got 10 points ;-) Fighting trolls begets a troll. Skip not you, i have so much respect for you :) What really is a troll? Someone who does not agree with you? Someone you don't like? Someone you do like? All good questions. I think this whole troll calling business has gotten out of h

Re: I always wonder ...

2008-12-22 Thread r
On Dec 22, 1:02 pm, Christian Heimes wrote: > Don't worry about the trolling, Skip. I'd be more worried if nobody > trolls about Python. It would mean Python loses popularity and our work > is all in vain. Christain, you are truly an open minded, intelligent Human being. Thanks for blessing use w

Re: Python's popularity

2008-12-22 Thread MRAB
r wrote: Steve Holden What makes you assume this is a zero-sum game, and that Python won't survive if any other language becomes popular. Every language borrows from those that came before it. Terms like "outright plagiarism" don't encourage rational debate, and make you seem like a troll who is

Re: 64-bit / 128-bit data element type for array?

2008-12-22 Thread bearophileHUGS
akineko: > I need to handle binary files that contain 64-bit (or 128-bit in the > furture) unsigned int data. > Python's array seems not supporting unsigned int type beyond 32-bit > ('L'). I agree that it can be useful for the built-in array module to grow signed/unsigned 64 bit numbers. Numpy su

Re: 64-bit / 128-bit data element type for array?

2008-12-22 Thread Robert Kern
akineko wrote: Hello everyone, I need to handle binary files that contain 64-bit (or 128-bit in the furture) unsigned int data. Python's array seems not supporting unsigned int type beyond 32-bit ('L'). I would like to use Python array as I need to make my program work on both big-endian machine

Re: Python's popularity

2008-12-22 Thread walterbyrd
On Dec 22, 11:42 am, "Ellinghaus, Lance" wrote: > Yes, Ruby has taken some of the popularity out of Python, but they are > also hitting different markets. Do you mean different markets within web development, or do you mean ruby is used mostly for web-dev, while python is used for other stuff? -

Re: Check file is

2008-12-22 Thread Colin J. Williams
gardsted wrote: Harish wrote: Hi Friends Is there any utility in python which will help me to read any pdf files? Regards Harish Not sure, what you're after exactly, but I tried googling 'python read pdf' and found this, so maybe 'reportlab' is what you're looking for: Re: Reading PDF files

Re: Python's popularity

2008-12-22 Thread r
On Dec 22, 1:10 pm, MRAB wrote: > r wrote: > > Steve Holden > >> What makes you assume this is a zero-sum game, and that Python won't > >> survive if any other language becomes popular. Every language borrows > >> from those that came before it. Terms like "outright plagiarism" don't > >> encourag

Re: New Python 3.0 string formatting - really necessary?

2008-12-22 Thread Bruno Desthuilliers
walterbyrd a écrit : On Dec 21, 12:28 pm, Bruno Desthuilliers wrote: Strange enough, no one seems to complain about PHP or Ruby's performances... A few years back, there was a certain amount of chest thumping, when python/django easily beat ror in a benchmark test. I don't remember it, and

Re: Python's popularity

2008-12-22 Thread Bruno Desthuilliers
walterbyrd a écrit : On Dec 22, 10:13 am, r wrote: Since the advent of Ruby(Python closet competitor), Python's hold on this niche is slipping. About the only place I ever hear of ruby being used is web development with RoR. When it comes to web development, it seems to me that ruby (because

Re: I always wonder ...

2008-12-22 Thread Christian Heimes
> you are truly an open minded, intelligent Human being. Thanks for > blessing use with your wisdom here. We need more like you. Every > thought, action, fact, must always be questioned, that is what makes > us human! *plonk* -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's popularity

2008-12-22 Thread Luis M . González
On Dec 22, 3:44 pm, r wrote: > Steve Holden > > > What makes you assume this is a zero-sum game, and that Python won't > > survive if any other language becomes popular. Every language borrows > > from those that came before it. Terms like "outright plagiarism" don't > > encourage rational debate,

Re: Python's popularity

2008-12-22 Thread r
OK je.s.t... whatever, We see where you stand. And also see that by removing your comments from the archive in 5 days, how small your acorns really are. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's popularity

2008-12-22 Thread r
On Dec 22, 1:50 pm, Luis M. González wrote: > On Dec 22, 3:44 pm, r wrote: > > > > > Steve Holden > > > > What makes you assume this is a zero-sum game, and that Python won't > > > survive if any other language becomes popular. Every language borrows > > > from those that came before it. Terms li

Re: I always wonder ...

2008-12-22 Thread r
On Dec 22, 1:54 pm, Christian Heimes wrote: > > you are truly an open minded, intelligent Human being. Thanks for > > blessing use with your wisdom here. We need more like you. Every > > thought, action, fact, must always be questioned, that is what makes > > us human! > > *plonk* so i was wrong

Re: Python is slow

2008-12-22 Thread Luis M . González
On Dec 22, 3:42 pm, cm_gui wrote: > Python is slow. Haven't you said that already? Well, you did it so many times that you convinced me... I'll tell the Google folks that they are a bunch of ignorant fools for choosing python. That's why their business is doing that bad. They will surely go to h

Re: I always wonder ...

2008-12-22 Thread Carl Banks
On Dec 22, 11:53 am, s...@pobox.com wrote: > ... shouldn't people who spend all their time trolling be doing something > else: studying, working, writing patches which solve the problems they > perceive to exist in the troll subject?  Is there some online troll game > running where the players earn

Re: I always wonder ...

2008-12-22 Thread Alvin ONeal
> > What really is a troll? > *troll* /v.,n./ [From the Usenet group *alt.folklore.urban *] To utter a posting on Usenetdesigned to attract predictable responses or flame s

  1   2   >