ANN: posix_ipc 0.7.0 available

2010-02-22 Thread Philip Semanchuk
posix_ipc 0.7.0 is now available. This is the first version to include Python 3 support. http://semanchuk.com/philip/posix_ipc/ Enjoy Philip -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation:

Re: Reading a large bz2 textfile exits early

2010-02-22 Thread Steven D'Aprano
On Mon, 22 Feb 2010 07:49:51 +0100, Norman Rieß wrote: This is the actual code: source_file = bz2.BZ2File(file, r) for line in source_file: print line.strip() print Exiting print I used file: + file Have you verified that the bz file is good by opening it in another

Re: Reading a large bz2 textfile exits early

2010-02-22 Thread Norman Rieß
Am 02/22/10 09:02, schrieb Steven D'Aprano: On Mon, 22 Feb 2010 07:49:51 +0100, Norman Rieß wrote: This is the actual code: source_file = bz2.BZ2File(file, r) for line in source_file: print line.strip() print Exiting print I used file: + file Have you verified that the bz

Re: Shared web host good citizenship question

2010-02-22 Thread Gnarlodious
I would say like this: If your processes are serving up straight pages, let them timeout after a while. If your processes are handling eCommerce or persistent data, keep the connection open as long as possible. -- Gnarlie -- http://mail.python.org/mailman/listinfo/python-list

Re: The Disappearing Program? (py2exe, graphics)

2010-02-22 Thread W. eWatson
This apparently is not quite as easy as the py2exe tutorial suggests when MPL is involved. See http://www.py2exe.org/index.cgi/MatPlotLib. It looks like I have some reading and work to do. -- http://mail.python.org/mailman/listinfo/python-list

%%% Anuksha navel smootched by the Hero V----? %%%

2010-02-22 Thread jasmin sweety
%%% Anuksha navel smootched by the Hero V? %%% http://sites.google.com/site/hifiprofile/ http://sites.google.com/site/hifiprofile/ http://sites.google.com/site/hifiprofile/ http://sites.google.com/site/hifiprofile/ -- http://mail.python.org/mailman/listinfo/python-list

Re: MODULE FOR I, P FRAME

2010-02-22 Thread DANNY
On Feb 21, 1:54 am, Tim Roberts t...@probo.com wrote: DANNY danijel.gv...@gmail.com wrote: If I want to have a MPEG-4/10 coded video and stream it through the network and than have the same video on the client side, what should I use and of course I don't want to have raw MPEG data, because

Re: What happened to pyjamas?

2010-02-22 Thread lkcl
On Feb 19, 2:43 pm, John Pinner funth...@gmail.com wrote: It appears that, in trying to cut down spm, somone chahnged a DNS entry and screwed it up : it shouldbe back before long. yep. i've now got access to the web interface for the dns whois records. they got poo'd up (only one entry) and

Re: look at the google code

2010-02-22 Thread lkcl
On Feb 19, 10:41 am, Allison Vollmann allisonv...@yahoo.com.br wrote: http://code.google.com/p/pyjamas/ Last update from yesterday, is the same project? only the tarballs are maintained on there, and the wiki and the issue tracker. we couldn't get control of that site for quite some time so

insurance, life insurance, home insurance and their benefits www.autoinsurance-2010.blogspot.com

2010-02-22 Thread karthiga madhan
insurance, life insurance, home insurance and their benefits www.autoinsurance-2010.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Reading a large bz2 textfile exits early

2010-02-22 Thread Lie Ryan
On 02/22/10 19:43, Norman Rieß wrote: Am 02/22/10 09:02, schrieb Steven D'Aprano: On Mon, 22 Feb 2010 07:49:51 +0100, Norman Rieß wrote: This is the actual code: source_file = bz2.BZ2File(file, r) for line in source_file: print line.strip() print Exiting print I used file: +

Re: Modifying Class Object

2010-02-22 Thread Albert van der Horst
In article mailman.2343.1265860271.28905.python-l...@python.org, Steve Holden st...@holdenweb.com wrote: Alf P. Steinbach wrote: * Steve Holden: Alf P. Steinbach wrote: [snip] Since in the quoting above no reference to definition of pointer remains: pointer refers to a copyable reference

Re: Re: Problem with __init__.py in Python3.1

2010-02-22 Thread hidura
For finnished the subject i resolve the problem using the PEP-328, i was using the old kind of imports :s On Feb 4, 2010 10:10pm, Hidura hid...@gmail.com wrote: Thanks i middle resolve the problem, and i going to read the PEP-366 i've been read the 328, i will kept informed of the

ANN: Python-SIMPL v2.0.0 released

2010-02-22 Thread bobicanprogram
The SIMPL project (http://www.icanprogram.com/simpl) aims to bring the Send/Receive/Reply messaging (first popularized by QNX) to the open source Linux world. Since its inception more that 10 years ago, the SIMPL toolkit has grown steadily in functionality. Through the use of surrogates,

What's Going on between Python and win7?

2010-02-22 Thread W. eWatson
Last night I copied a program from folder A to folder B. It inspects the contents of files in a folder. When I ran it in B, it gave the results for A! Out of frustration I changed the name in A, and fired up the program in B. Win7 went into search mode for the file. I looked at properties for

Re: Reading a large bz2 textfile exits early

2010-02-22 Thread Norman Rieß
Am 02/22/10 14:29, schrieb Lie Ryan: On 02/22/10 19:43, Norman Rieß wrote: Am 02/22/10 09:02, schrieb Steven D'Aprano: On Mon, 22 Feb 2010 07:49:51 +0100, Norman Rieß wrote: This is the actual code: source_file = bz2.BZ2File(file, r) for line in source_file: print

Re: What's Going on between Python and win7?

2010-02-22 Thread Krister Svanlund
On Mon, Feb 22, 2010 at 4:22 PM, W. eWatson wolftra...@invalid.com wrote: Last night I copied a program from folder A to folder B. It inspects the contents of files in a folder. When I ran it in B, it gave the results for A! Out of frustration I changed the name in A, and fired up the program

Re: What's Going on between Python and win7?

2010-02-22 Thread MRAB
W. eWatson wrote: Last night I copied a program from folder A to folder B. It inspects the contents of files in a folder. When I ran it in B, it gave the results for A! Out of frustration I changed the name in A, and fired up the program in B. Win7 went into search mode for the file. I looked

Re: A tool for find dependencies relationships behind Python projects

2010-02-22 Thread Hellmut Weber
Hi Victor, I would be intereseted to use your tool ;-) My system is Sabayon-5.1 on Lenovo T61. Trying for the first time easy_install I get the following error: r...@sylvester ~ # easy_install gluttony Searching for gluttony Reading http://pypi.python.org/simple/gluttony/

Re: What's Going on between Python and win7?

2010-02-22 Thread Grant Edwards
On 2010-02-22, W. eWatson wolftra...@invalid.com wrote: Last night I copied a program from folder A to folder B. [tail of various windows breakages elided] Comments? Switch to Linux? Or at least install Cygwin? -- Grant Edwards grante Yow! Maybe I should have

Efficiently building ordered dict

2010-02-22 Thread Bryan
I am looping through a list and creating a regular dictionary. From that dict, I create an ordered dict. I can't think of a way to build the ordered dict while going through the original loop. Is there a way I can avoid creating the first unordered dict just to get the ordered dict? Also, I am

Re: A tool for find dependencies relationships behind Python projects

2010-02-22 Thread Shashwat Anand
Same issue here, easy_install fails here is traceback, Shashwat-Anands-MacBook-Pro:Downloads l0nwlf$ easy_install gluttony Searching for gluttony Reading http://pypi.python.org/simple/gluttony/ Reading http://code.google.com/p/python-gluttony/ Best match: Gluttony 0.3 Downloading

Re: What's Going on between Python and win7?

2010-02-22 Thread Shashwat Anand
Programming is most fruiful in *nix environment. On Mon, Feb 22, 2010 at 9:59 PM, Grant Edwards inva...@invalid.invalidwrote: On 2010-02-22, W. eWatson wolftra...@invalid.com wrote: Last night I copied a program from folder A to folder B. [tail of various windows breakages elided]

Files required for porting python

2010-02-22 Thread KIRAN
Hi ALL, I am newbie to python and wanted to port python on to some RTOS. The RTOS I am trying to port python is not posix compliant. First, I decided to port python on to windows and later I will port the same to my target system. [ This is just to minimize the effort being put port, debug and to

Re: Efficiently building ordered dict

2010-02-22 Thread Shashwat Anand
OrderedDict is a class in collection module in python 2.7a3+. Perhaps you can use it from there. dir(collections) ['Callable', 'Container', 'Counter', 'Hashable', 'ItemsView', 'Iterable', 'Iterator', 'KeysView', 'Mapping', 'MappingView', 'MutableMapping', 'MutableSequence', 'MutableSet',

Re: Files required for porting python

2010-02-22 Thread Shashwat Anand
what do you exactly mean by port python on to windows ? Are you talking about your application or python itself :-/ ~l0nwlf On Mon, Feb 22, 2010 at 10:23 PM, KIRAN kira...@gmail.com wrote: Hi ALL, I am newbie to python and wanted to port python on to some RTOS. The RTOS I am trying to port

Re: Efficiently building ordered dict

2010-02-22 Thread Daniel Stutzbach
On Mon, Feb 22, 2010 at 10:32 AM, Bryan bryanv...@gmail.com wrote: unorderedDict = {} for thing in unorderedList: if thing.id in unorderedDict: UpdateExistingValue(unorderedDict[thing.id]) else: CreateNewValue(unorderedDict[thing.id])

Can I make sqlite3 or shelve work reliably on any Win/Linux/Mac?

2010-02-22 Thread Alex Quinn
Is there a way to have some kind of database (i.e. sqlite3, bsddb, dbm, etc.) that works out of the box on any Win/Linux/Mac machine with Python 2.6+ or 3.x? It's okay if the file format is different between machines, but I want my script to work without having to install anything. Problems

Re: Files required for porting python

2010-02-22 Thread Kiran K
I will try to provide the API's on windows that my RTOS provides ex. If my RTOS has fosCreateSemaphore to create a semaphore I will implement the same API [ same function prototype] on windows using win32 CreateSemaphore. Similarly I will write a wrapper functions for accesing file system, task

Re: Reading a large bz2 textfile exits early

2010-02-22 Thread Stefan Behnel
Lie Ryan, 22.02.2010 14:29: On 02/22/10 19:43, Norman Rieß wrote: Am 02/22/10 09:02, schrieb Steven D'Aprano: On Mon, 22 Feb 2010 07:49:51 +0100, Norman Rieß wrote: This is the actual code: source_file = bz2.BZ2File(file, r) for line in source_file: print line.strip() print

Re: Efficiently building ordered dict

2010-02-22 Thread MRAB
Bryan wrote: I am looping through a list and creating a regular dictionary. From that dict, I create an ordered dict. I can't think of a way to build the ordered dict while going through the original loop. Is there a way I can avoid creating the first unordered dict just to get the ordered

Starting with Classes - basic problem

2010-02-22 Thread barryjogorman
HAVE THE FOLLOWING VERY BASIC PROGRAM: class Person: def _init_(self,name, job=None, pay=0): self.name=name self.job=job self.pay=pay bob = Person('Bob Smith') sue = Person('Sue Jones', job='dev', pay = 10) print(bob.name, bob.pay) print(sue.name, sue.pay) I am

Re: Efficiently building ordered dict

2010-02-22 Thread Bryan
On Feb 22, 9:19 am, MRAB pyt...@mrabarnett.plus.com wrote: Bryan wrote: I am looping through a list and creating a regular dictionary.  From that dict, I create an ordered dict.  I can't think of a way to build the ordered dict while going through the original loop.  Is there a way I can

Re: How to measure elapsed time under Windows?

2010-02-22 Thread Albert van der Horst
In article 87404349-5d3a-4396-aeff-60edc14a5...@f8g2000yqn.googlegroups.com, Paul McGuire pt...@austin.rr.com wrote: On Feb 10, 2:24=A0am, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Tue, 9 Feb 2010 21:45:38 + (UTC), Grant Edwards inva...@invalid.invalid declaimed the following in

Re: Starting with Classes - basic problem

2010-02-22 Thread Bernard Czenkusz
On Mon, 22 Feb 2010 09:26:18 -0800, barryjogorman wrote: HAVE THE FOLLOWING VERY BASIC PROGRAM: class Person: def _init_(self,name, job=None, pay=0): self.name=name self.job=job self.pay=pay bob = Person('Bob Smith') sue = Person('Sue Jones', job='dev', pay

Re: Starting with Classes - basic problem

2010-02-22 Thread alex goretoy
you need to define init with two underscores, I've made that mistake myself long long time ago :) def __init__ not def _init_ -Alex Goretoy -- http://mail.python.org/mailman/listinfo/python-list

Re: Starting with Classes - basic problem

2010-02-22 Thread MRAB
barryjogorman wrote: HAVE THE FOLLOWING VERY BASIC PROGRAM: class Person: def _init_(self,name, job=None, pay=0): self.name=name self.job=job self.pay=pay bob = Person('Bob Smith') sue = Person('Sue Jones', job='dev', pay = 10) print(bob.name, bob.pay)

Re: How to measure elapsed time under Windows?

2010-02-22 Thread Grant Edwards
On 2010-02-22, Albert van der Horst alb...@spenarnc.xs4all.nl wrote: In article 87404349-5d3a-4396-aeff-60edc14a5...@f8g2000yqn.googlegroups.com, Gabriel Genellina reports that time.clock() uses Windows' QueryPerformanceCounter() API, which has much higher resolution than the task switcher's

Re: Starting with Classes - basic problem

2010-02-22 Thread barryjogorman
On Feb 22, 5:33 pm, Bernard Czenkusz edi...@pythonrag.org wrote: On Mon, 22 Feb 2010 09:26:18 -0800, barryjogorman wrote: HAVE THE FOLLOWING VERY BASIC PROGRAM: class Person:    def _init_(self,name, job=None, pay=0):        self.name=name        self.job=job        self.pay=pay bob

Re: Efficiently building ordered dict

2010-02-22 Thread MRAB
Bryan wrote: On Feb 22, 9:19 am, MRAB pyt...@mrabarnett.plus.com wrote: Bryan wrote: I am looping through a list and creating a regular dictionary. From that dict, I create an ordered dict. I can't think of a way to build the ordered dict while going through the original loop. Is there a

Re: Efficiently building ordered dict

2010-02-22 Thread Arnaud Delobelle
Bryan bryanv...@gmail.com writes: I am looping through a list and creating a regular dictionary. From that dict, I create an ordered dict. I can't think of a way to build the ordered dict while going through the original loop. Is there a way I can avoid creating the first unordered dict

Re: Efficiently building ordered dict

2010-02-22 Thread Mark Lawrence
Bryan wrote: On Feb 22, 9:19 am, MRAB pyt...@mrabarnett.plus.com wrote: Bryan wrote: I am looping through a list and creating a regular dictionary. From that dict, I create an ordered dict. I can't think of a way to build the ordered dict while going through the original loop. Is there a

Re: What's Going on between Python and win7?

2010-02-22 Thread W. eWatson
On 2/22/2010 8:29 AM, Grant Edwards wrote: On 2010-02-22, W. eWatsonwolftra...@invalid.com wrote: Last night I copied a program from folder A to folder B. [tail of various windows breakages elided] Comments? Switch to Linux? Or at least install Cygwin? Yes, definitely not related, but

Re: Python won't run

2010-02-22 Thread Sridhar Ratnakumar
Have you tried using http://dependencywalker.com/ ? -srid On 2010-02-18, at 1:00 PM, Nardin, Cory L. wrote: Quickly, I have a Mac Intel with Windows XP installed. Tried installing Python 2.6.4 from the binary and also ActivePython 2.6.4.10. Both installations acted the same. There

Re: Efficiently building ordered dict

2010-02-22 Thread Alf P. Steinbach
* Bryan: I am looping through a list and creating a regular dictionary. From that dict, I create an ordered dict. I can't think of a way to build the ordered dict while going through the original loop. Is there a way I can avoid creating the first unordered dict just to get the ordered dict?

Re: formatting a number as percentage

2010-02-22 Thread Hans Mulder
Günther Dietrich wrote: vsoler vicente.so...@gmail.com wrote: I'm trying to print .7 as 70% I've tried: print format(.7,'%%') .7.format('%%') but neither works. I don't know what the syntax is... Did you try this: print('%d%%' % (0.7 * 100)) 70% That method will always round down;

Re: Can I make sqlite3 or shelve work reliably on any Win/Linux/Mac?

2010-02-22 Thread Jonathan Gardner
On Mon, Feb 22, 2010 at 9:10 AM, Alex Quinn alexanderjqu...@yahoo.com wrote: * Sqlite3 should fill the void now.  However, in my experience, nearly every Linux Python install I encounter has a broken sqlite3 module (ImportError: No module named _sqlite3). It's a well-documented issue, but it

Re: Use eval() safely?

2010-02-22 Thread Jonathan Gardner
On Sun, Feb 21, 2010 at 1:25 PM, W. Martin Borgert deba...@debian.org wrote: I know that this issue has been discussed before, but most of the time using only one argument to eval(). Is it possible to use the following code, e.g. run as part of a web application, to break in and if so, how?

Re: Interesting talk on Python vs. Ruby and how he would like Python to have just a bit more syntactic flexibility.

2010-02-22 Thread Jonathan Gardner
On Sun, Feb 21, 2010 at 10:22 AM, John Bokma j...@castleamber.com wrote: Jonathan Gardner jgard...@jonathangardner.net writes: On Fri, Feb 19, 2010 at 11:16 PM, Lie Ryan lie.1...@gmail.com wrote: Now, why don't we start a PEP to make python a fully-functional language then? Because people

GUI app on Windows for WMI digging

2010-02-22 Thread Ravi Kumar
Hi, I am working on an application, which retrieves Windows system info (Hardware / Software / Drivers / OS) and write to an xml. For the GUI, I selected PyQT4, and for system info using WMI, I am using WMI Package (http://timgolden.me.uk/python/wmi/index.html) and popular pywin32. To package the

Re: What's Going on between Python and win7?

2010-02-22 Thread Gib Bogle
MRAB wrote: W. eWatson wrote: Last night I copied a program from folder A to folder B. It inspects the contents of files in a folder. When I ran it in B, it gave the results for A! Out of frustration I changed the name in A, and fired up the program in B. Win7 went into search mode for the

Re: Interesting talk on Python vs. Ruby and how he would like Python to have just a bit more syntactic flexibility.

2010-02-22 Thread Paul Rubin
Jonathan Gardner jgard...@jonathangardner.net writes: I won't deny that really smart people enjoy the challenge of programming in a functional style, and some even find it easier to work with. However, when it comes to readability and maintenance, I appreciate the statement-based programming

Re: Interesting talk on Python vs. Ruby and how he would like Python to have just a bit more syntactic flexibility.

2010-02-22 Thread John Bokma
Jonathan Gardner jgard...@jonathangardner.net writes: On Sun, Feb 21, 2010 at 10:22 AM, John Bokma j...@castleamber.com wrote: Jonathan Gardner jgard...@jonathangardner.net writes: On Fri, Feb 19, 2010 at 11:16 PM, Lie Ryan lie.1...@gmail.com wrote: Now, why don't we start a PEP to make

Re: What's Going on between Python and win7?

2010-02-22 Thread John Bokma
Gib Bogle g.bo...@auckland.no.spam.ac.nz writes: MRAB wrote: W. eWatson wrote: Last night I copied a program from folder A to folder B. It inspects the contents of files in a folder. When I ran it in B, it gave the results for A! Out of frustration I changed the name in A, and fired up the

Re: ANN: Python-SIMPL v2.0.0 released

2010-02-22 Thread bobicanprogram
On Feb 22, 9:40 am, bobicanprogram ican...@gmail.com wrote: The SIMPL project (http://www.icanprogram.com/simpl) aims to bring the Send/Receive/Reply messaging (first popularized by QNX) to the open source Linux world. Since its inception more that 10 years ago, the SIMPL toolkit has grown

Re: What's Going on between Python and win7?

2010-02-22 Thread Grant Edwards
On 2010-02-22, John Bokma j...@castleamber.com wrote: Gib Bogle g.bo...@auckland.no.spam.ac.nz writes: MRAB wrote: W. eWatson wrote: Last night I copied a program from folder A to folder B. It inspects the contents of files in a folder. When I ran it in B, it gave the results for A! Out of

Re: Efficiently building ordered dict

2010-02-22 Thread Bryan
On Feb 22, 10:57 am, Alf P. Steinbach al...@start.no wrote: * Bryan: I am looping through a list and creating a regular dictionary.  From that dict, I create an ordered dict.  I can't think of a way to build the ordered dict while going through the original loop.  Is there a way I can

When will Python go mainstream like Java?

2010-02-22 Thread AON LAZIO
That will be superb -- Passion is my style -- http://mail.python.org/mailman/listinfo/python-list

Re: What's Going on between Python and win7?

2010-02-22 Thread John Bokma
Grant Edwards inva...@invalid.invalid writes: On 2010-02-22, John Bokma j...@castleamber.com wrote: Gib Bogle g.bo...@auckland.no.spam.ac.nz writes: MRAB wrote: W. eWatson wrote: Last night I copied a program from folder A to folder B. It inspects the contents of files in a folder. When I

Re: Efficiently building ordered dict

2010-02-22 Thread Arnaud Delobelle
On 22 Feb, 21:29, Bryan bryanv...@gmail.com wrote: Sorry about the sorted != ordered mix up.  I want to end up with a *sorted* dict from an unordered list.  *Sorting the list is not practical in this case.*  I am using python 2.5, with an ActiveState recipe for an OrderedDict. Why does the

Re: What's Going on between Python and win7?

2010-02-22 Thread Gib Bogle
John Bokma wrote: Gib Bogle g.bo...@auckland.no.spam.ac.nz writes: MRAB wrote: W. eWatson wrote: Last night I copied a program from folder A to folder B. It inspects the contents of files in a folder. When I ran it in B, it gave the results for A! Out of frustration I changed the name in A,

Re: Efficiently building ordered dict

2010-02-22 Thread Diez B. Roggisch
Am 22.02.10 22:29, schrieb Bryan: On Feb 22, 10:57 am, Alf P. Steinbachal...@start.no wrote: * Bryan: I am looping through a list and creating a regular dictionary. From that dict, I create an ordered dict. I can't think of a way to build the ordered dict while going through the original

Re: What's Going on between Python and win7?

2010-02-22 Thread Grant Edwards
On 2010-02-22, John Bokma j...@castleamber.com wrote: Grant Edwards inva...@invalid.invalid writes: Windows 7 has symbolic links? Symbolic links are designed to aid in migration and application compatibility with UNIX operating systems. Microsoft has implemented its symbolic links

Re: Efficiently building ordered dict

2010-02-22 Thread Bryan
On Feb 22, 2:16 pm, Diez B. Roggisch de...@nospam.web.de wrote: Am 22.02.10 22:29, schrieb Bryan: On Feb 22, 10:57 am, Alf P. Steinbachal...@start.no  wrote: * Bryan: I am looping through a list and creating a regular dictionary.  From that dict, I create an ordered dict.  I can't

Re: Efficiently building ordered dict

2010-02-22 Thread Diez B. Roggisch
Am 22.02.10 23:48, schrieb Bryan: On Feb 22, 2:16 pm, Diez B. Roggischde...@nospam.web.de wrote: Am 22.02.10 22:29, schrieb Bryan: On Feb 22, 10:57 am, Alf P. Steinbachal...@start.nowrote: * Bryan: I am looping through a list and creating a regular dictionary. From that dict, I

Re: Interesting talk on Python vs. Ruby and how he would like Python to have just a bit more syntactic flexibility.

2010-02-22 Thread Lawrence D'Oliveiro
In message 1ecc71bf-54ab-45e6-a38a-d1861f092...@v25g2000yqk.googlegroups.com, sjdevn...@yahoo.com wrote: On Feb 20, 1:30 am, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message op.u8at0suda8n...@gnudebst, Rhodri James wrote: In classic Pascal, a procedure was distinct

Re: What's Going on between Python and win7?

2010-02-22 Thread Lawrence D'Oliveiro
In message mailman.60.1266854492.4577.python-l...@python.org, MRAB wrote: Not Python-related. Seems to be pretty common with Windows-related complaints in this group. -- http://mail.python.org/mailman/listinfo/python-list

Re: Efficiently building ordered dict

2010-02-22 Thread MRAB
Bryan wrote: On Feb 22, 2:16 pm, Diez B. Roggisch de...@nospam.web.de wrote: Am 22.02.10 22:29, schrieb Bryan: On Feb 22, 10:57 am, Alf P. Steinbachal...@start.no wrote: * Bryan: I am looping through a list and creating a regular dictionary. From that dict, I create an ordered dict. I

Re: When will Python go mainstream like Java?

2010-02-22 Thread Krister Svanlund
On Mon, Feb 22, 2010 at 10:56 PM, AON LAZIO aonla...@gmail.com wrote: That will be superb -- Passion is my style And when will insert random band be as famous as the beatles? -- http://mail.python.org/mailman/listinfo/python-list

Re: Efficiently building ordered dict

2010-02-22 Thread Bryan
On Feb 22, 3:00 pm, Diez B. Roggisch de...@nospam.web.de wrote: Am 22.02.10 23:48, schrieb Bryan: On Feb 22, 2:16 pm, Diez B. Roggischde...@nospam.web.de  wrote: Am 22.02.10 22:29, schrieb Bryan: On Feb 22, 10:57 am, Alf P. Steinbachal...@start.no    wrote: * Bryan: I am looping

Re: Efficiently building ordered dict

2010-02-22 Thread John Posner
On 2/22/2010 4:29 PM, Bryan wrote: Sorry about the sorted != ordered mix up. I want to end up with a *sorted* dict from an unordered list. *Sorting the list is not practical in this case.* I am using python 2.5, with an ActiveState recipe for an OrderedDict. Have you looked at this:

Re: Interesting talk on Python vs. Ruby and how he would like Python to have just a bit more syntactic flexibility.

2010-02-22 Thread Paul Rubin
John Bokma j...@castleamber.com writes: In my class there where basically 2 groups of people: the ones who got functional programming and the ones who had a hard time with it. The latter group consisted mostly of people who had been programming in languages like C and Pascal for years; they

Re: What's Going on between Python and win7?

2010-02-22 Thread Lawrence D'Oliveiro
In message 873a0tszco@castleamber.com, John Bokma wrote: According to http://msdn.microsoft.com/en-us/library/aa365006(VS.85).aspx There are three types of file links supported in the NTFS file system: hard links, junctions, and symbolic links. This topic is an overview of

Re: When will Python go mainstream like Java?

2010-02-22 Thread Phlip
On Feb 22, 3:27 pm, Krister Svanlund krister.svanl...@gmail.com wrote: And when will insert random band be as famous as the Beatles? And when will insert random non-schmaltzoid singer) be as famous as Phil Collins? -- http://mail.python.org/mailman/listinfo/python-list

Re: Can I make sqlite3 or shelve work reliably on any Win/Linux/Mac?

2010-02-22 Thread Alex Quinn
Thanks for the reply, Jonathan, but I was hoping to find a workaround. I don't have root access for these machines so I can't repair the install. Among the 6 Linux servers at 3 separately managed organizations where I do work, the sqlite3 module was broken 100% of the time. It seems to be a

Re: When will Python go mainstream like Java?

2010-02-22 Thread Edward A. Falk
You mean it's not? -- -Ed Falk, f...@despams.r.us.com http://thespamdiaries.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: MODULE FOR I, P FRAME

2010-02-22 Thread Rhodri James
On Mon, 22 Feb 2010 10:48:55 -, DANNY danijel.gv...@gmail.com wrote: On Feb 21, 1:54 am, Tim Roberts t...@probo.com wrote: DANNY danijel.gv...@gmail.com wrote: If I want to have a MPEG-4/10 coded video and stream it through the network and than have the same video on the client side, what

Re: What's Going on between Python and win7?

2010-02-22 Thread W. eWatson
So what's the bottom line? This link notion is completely at odds with XP, and produces what I would call something of a mess to the unwary Python/W7 user. Is there a simple solution? How do I get out of this pickle? I just want to duplicate the program in another folder, and not link to an

Re: When will Python go mainstream like Java?

2010-02-22 Thread Shawn Milochik
When will Java be popular enough to replace other languages in their own environments, the way Python has done to Java (Jython) and .NET (IronPython)? Shawn -- http://mail.python.org/mailman/listinfo/python-list

How to transmit a crash report ?

2010-02-22 Thread Stef Mientki
hello, in my python desktop applications, I'ld like to implement a crash reporter. By redirecting the sys.excepthook, I can detect a crash and collect the necessary data. Now I want that my users sends this information to me, and I can't find a good way of doing this. The following solutions

Re: The future of frozen types as the number of CPU cores increases

2010-02-22 Thread John Nagle
sjdevn...@yahoo.com wrote: On Feb 20, 9:58 pm, John Nagle na...@animats.com wrote: sjdevn...@yahoo.com wrote: On Feb 18, 2:58 pm, John Nagle na...@animats.com wrote: Multiple processes are not the answer. That means loading multiple copies of the same code into different areas of memory.

Writing an assembler in Python

2010-02-22 Thread Giorgos Tzampanakis
I'm implementing a CPU that will run on an FPGA. I want to have a (dead) simple assembler that will generate the machine code for me. I want to use Python for that. Are there any libraries that can help me with the parsing of the assembly code? --

Re: How to transmit a crash report ?

2010-02-22 Thread MRAB
Stef Mientki wrote: hello, in my python desktop applications, I'ld like to implement a crash reporter. By redirecting the sys.excepthook, I can detect a crash and collect the necessary data. Now I want that my users sends this information to me, and I can't find a good way of doing this. The

Re: What's Going on between Python and win7?

2010-02-22 Thread David Robinow
On Mon, Feb 22, 2010 at 8:25 PM, W. eWatson wolftra...@invalid.com wrote: How do I get out of this pickle? I just want to duplicate the  program in another folder, and not link to an ancestor. Ask in an appropriate forum. I'm not sure where that is but you might try http://www.sevenforums.com/

Re: Writing an assembler in Python

2010-02-22 Thread Paul Rubin
Giorgos Tzampanakis g...@hw.ac.uk writes: I'm implementing a CPU that will run on an FPGA. I want to have a (dead) simple assembler that will generate the machine code for me. I want to use Python for that. Are there any libraries that can help me with the parsing of the assembly code?

Re: Writing an assembler in Python

2010-02-22 Thread Lawrence D'Oliveiro
In message xns9d28186af890cfdnbgui7uhu5h8hrn...@127.0.0.1, Giorgos Tzampanakis wrote: I'm implementing a CPU that will run on an FPGA. I want to have a (dead) simple assembler that will generate the machine code for me. Let me suggest an alternative approach: use Python itself as the

Re: Interesting talk on Python vs. Ruby and how he would like Python to have just a bit more syntactic flexibility.

2010-02-22 Thread Lawrence D'Oliveiro
In message 3aa0205f-1e98-4376-92e4-607f96f13...@k19g2000yqc.googlegroups.com, Michael Sparks wrote: [1] This is perhaps more appropriate because '(a b c) is equivalent to (quote a b c), and quote a b c can be viewed as close to python's expression lambda: a b c You got to be

Re: Writing an assembler in Python

2010-02-22 Thread Ed Keith
Subject: Re: Writing an assembler in Python Giorgos Tzampanakis wrote: I'm implementing a CPU that will run on an FPGA. I want to have a (dead) simple assembler that will generate the machine code for me. Let me suggest an alternative approach: use Python itself as the assembler.

How to get memory and CPU status of a particular process

2010-02-22 Thread R. P. Janaka
Hi all, Is there a way to get system memory consumption and CPU consumption in a platform independent way, using python...? Basically my requirement is, get the memory status and CPU status of a particular process. If there is a way to get memory info and CPU info by just giving the process ID,

Re: What's Going on between Python and win7?

2010-02-22 Thread W. eWatson
On 2/22/2010 6:39 PM, David Robinow wrote: On Mon, Feb 22, 2010 at 8:25 PM, W. eWatsonwolftra...@invalid.com wrote: How do I get out of this pickle? I just want to duplicate the program in another folder, and not link to an ancestor. Ask in an appropriate forum. I'm not sure where that is

Re: Problem creating executable, with PyQwt

2010-02-22 Thread Gib Bogle
David Boddie wrote: I have previously referred people with py2exe/PyQt issues to this page on the PyQt Wiki: http://www.py2exe.org/index.cgi/Py2exeAndPyQt If you can somehow convince py2exe to include the QtSvg module (and presumably the libQtSvg library as well) then perhaps that will

Re: Interesting talk on Python vs. Ruby and how he would like Python to have just a bit more syntactic flexibility.

2010-02-22 Thread Jonathan Gardner
On Mon, Feb 22, 2010 at 12:31 PM, John Bokma j...@castleamber.com wrote: In my class there where basically 2 groups of people: the ones who got functional programming and the ones who had a hard time with it. The latter group consisted mostly of people who had been programming in languages

Re: When will Python go mainstream like Java?

2010-02-22 Thread Jonathan Gardner
On Mon, Feb 22, 2010 at 1:56 PM, AON LAZIO aonla...@gmail.com wrote: That will be superb It already has. -- Jonathan Gardner jgard...@jonathangardner.net -- http://mail.python.org/mailman/listinfo/python-list

Re: What's Going on between Python and win7?

2010-02-22 Thread Alf P. Steinbach
* W. eWatson: So what's the bottom line? This link notion is completely at odds with XP, Well, Windows NT has always had *hardlinks*. g I found it a bit baffling that that functionality is documented as not implemented for Windows in the Python standard library. But OK, it was non-trivial

Re: What's Going on between Python and win7?

2010-02-22 Thread W. eWatson
On 2/22/2010 8:50 PM, Alf P. Steinbach wrote: * W. eWatson: So what's the bottom line? This link notion is completely at odds with XP, Well, Windows NT has always had *hardlinks*. g I found it a bit baffling that that functionality is documented as not implemented for Windows in the Python

Re: What's Going on between Python and win7?

2010-02-22 Thread W. eWatson
On 2/22/2010 8:50 PM, Alf P. Steinbach wrote: * W. eWatson: So what's the bottom line? This link notion is completely at odds with XP, Well, Windows NT has always had *hardlinks*. g I found it a bit baffling that that functionality is documented as not implemented for Windows in the Python

Re: MODULE FOR I, P FRAME

2010-02-22 Thread Tim Roberts
DANNY danijel.gv...@gmail.com wrote: Yes, well beside bieng time-consuming, that is also inappropriate for me, because I want to have clip that would be streamed across the network and have the same GoP on the client side as the original-because I want to see what is the effect of errors on

Re: Interesting talk on Python vs. Ruby and how he would like Python to have just a bit more syntactic flexibility.

2010-02-22 Thread Steve Howell
On Feb 22, 8:35 pm, Jonathan Gardner jgard...@jonathangardner.net wrote: On Mon, Feb 22, 2010 at 12:31 PM, John Bokma j...@castleamber.com wrote: In my class there where basically 2 groups of people: the ones who got functional programming and the ones who had a hard time with it. The

Re: What's Going on between (Verify) Python and win7?

2010-02-22 Thread W. eWatson
Maybe someone could verify my result? open file read file line print line close file data 1234 Execute it in a folder Create another folder and copy the program to it. put in a new data file as data 4567 Execute the copied program Does it give data1234? --

Re: Interesting talk on Python vs. Ruby and how he would like Python to have just a bit more syntactic flexibility.

2010-02-22 Thread Paul Rubin
Steve Howell showel...@yahoo.com writes: My gut instinct is that functional programming works well for lots of medium sized problems and it is worth learning. I think it's worth learning because it will make you a better programmer even if you never use it for anything beyond academic

  1   2   3   >