Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-17 Thread Stefan Behnel
Tim Harig, 17.01.2011 20:41: In comp.lang.python, I wrote: Tim Harig, 17.01.2011 13:25: If I didn't think Python was a good language, I wouldn't be here. Nevertheless, it isn't a good fit for many pieces of software where a systems language is better suited. Reasons include ease of distributio

Re: Need the list of XML parsers

2011-01-17 Thread Stefan Behnel
Venu Allipuram, 17.01.2011 21:01: lxml is a great one, but it is not simple to install libxml and libxslt on Linux using user permissions. Well, you have to build it, obviously. Just pass "--static-deps" to the build script and it will build and link libxml2 and libxslt automatically for you.

Re: Need the list of XML parsers

2011-01-17 Thread Stefan Behnel
Venu, 17.01.2011 21:34: Using cElementTree, would you be willing show to me how to find the nodes with certain attribute, ie search using attributes and attibute values. I did not see any example code from the cElementTree official website. Check out the documentation of ElementTree and lxml.e

Re: Tkinter: The good, the bad, and the ugly!

2011-01-17 Thread rantingrick
I have proposed this before and i shall propose it again. Most of the naysayers parrot off about how many people use Tkinter. Maybe they are right, and maybe they are wrong. Nobody, and i repeat NOBODY even GvR himself can offer reliable evidence as to how important moduleX *is* or *is not* to thi

Re: move to end, in Python 3.2 Really?

2011-01-17 Thread Raymond Hettinger
On Jan 17, 6:51 pm, nn wrote: > ...But the api on this baffles me a bit: > > >>> d = OrderedDict.fromkeys('abcde') > >>> d.move_to_end('b', last=False) > >>> ''.join(d.keys) > > 'bacde' > > I understand that "end" could potentially mean either end, but would > "move_to_end" and "move_to_beginning"

Re: move to end, in Python 3.2 Really?

2011-01-17 Thread Carl Banks
On Jan 17, 6:51 pm, nn wrote: > I somehow missed this before. I like most of the additions from > Raymond Hettinger. But the api on this baffles me a bit: > > >>> d = OrderedDict.fromkeys('abcde') > >>> d.move_to_end('b', last=False) > >>> ''.join(d.keys) > > 'bacde' > > I understand that "end" co

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-17 Thread Steven D'Aprano
On Mon, 17 Jan 2011 19:41:54 +, Tim Harig wrote: > One of the arguments for Python has always made is that you can optimize > it by writing the most important parts in C. Perhaps that is a crutch > that has held the communty back from seeking higher performance > solutions in the language its

Re: Tkinter: The good, the bad, and the ugly!

2011-01-17 Thread rantingrick
On Jan 17, 10:24 pm, rusi wrote: > The quality of ... systems will  decline unless they are rigorously > maintained and adapted to operational environment changes. This is both eloquent and frightening at the same time when applied to the current state of Python's stdlib. We have come so far and

Re: __pycache__, one more good reason to stck with Python 2?

2011-01-17 Thread Carl Banks
On Jan 17, 10:17 am, jmfauth wrote: > That's life, unfortunately. Also, an earlier version of the proposal was to create a *.pyr directory for each *.py file. That was a real mess; be thankful they worked on it and came up with a much cleaner method. Carl Banks -- http://mail.python.org/mailm

Re: __pycache__, one more good reason to stck with Python 2?

2011-01-17 Thread Terry Reedy
On 1/17/2011 10:57 PM, Ben Finney wrote: Terry Reedy writes: On 1/17/2011 8:59 PM, Flávio Lisbôa wrote: But that's me, i'm sure most of python users don't mind at all. Seems so. Complaints are rare. That conclusion isn't valid; the behaviour is (AIUI) only in Python 3.2 and later. You can

Re: __pycache__, one more good reason to stck with Python 2?

2011-01-17 Thread Carl Banks
On Jan 17, 10:17 am, jmfauth wrote: > > No, I'm sorry, they're not obvious at all. > > These reasons become obious as soon as you start working. > > Let's take a practical point view. It did not take a long time > to understand, that it is much simpler to delete the __pycache__ > directory everyti

Re: __pycache__, one more good reason to stck with Python 2?

2011-01-17 Thread Carl Banks
On Jan 17, 6:29 pm, Alice Bevan–McGregor wrote: >         find . -name \*.pyc -exec rm -f {} \; > > vs. > >         rm -rf __pycache__ > > I do not see how this is more difficult, but I may be missing something. Well the former deletes all the pyc files in the directory tree whereas the latter o

Re: Tkinter: The good, the bad, and the ugly!

2011-01-17 Thread rusi
On Jan 18, 4:13 am, rantingrick wrote: > On Jan 17, 4:47 pm, Terry Reedy wrote: > > > On 1/16/2011 11:20 PM, rantingrick wrote: > > > > Ok, try this... > > > >      http://juicereceiver.sourceforge.net/screenshots/index.php > > >      http://www.sensi.org/~ak/pyslsk/pyslsk6.png > > >      http://

Re: __pycache__, one more good reason to stck with Python 2?

2011-01-17 Thread Ben Finney
Terry Reedy writes: > On 1/17/2011 8:59 PM, Flávio Lisbôa wrote: > > But that's me, i'm sure most of python users don't mind at all. > > Seems so. Complaints are rare. That conclusion isn't valid; the behaviour is (AIUI) only in Python 3.2 and later. You can't presume that a lack of complaints m

Re: __pycache__, one more good reason to stck with Python 2?

2011-01-17 Thread Terry Reedy
On 1/17/2011 8:59 PM, Flávio Lisbôa wrote: That's why i disagree (and hate) the automatic compilation of code, my project directory becomes full of object files That is one point of stashing them all in a .__pycache__ directory. After reading some articles about it, I've come to think python

Re: move to end, in Python 3.2 Really?

2011-01-17 Thread rantingrick
On Jan 17, 8:51 pm, nn wrote: > I somehow missed this before. I like most of the additions from > Raymond Hettinger. But the api on this baffles me a bit: If we are not careful with all these "additions" we could end up with a language like ruby which has wasteful methods to clean your backside,

move to end, in Python 3.2 Really?

2011-01-17 Thread nn
I somehow missed this before. I like most of the additions from Raymond Hettinger. But the api on this baffles me a bit: >>> d = OrderedDict.fromkeys('abcde') >>> d.move_to_end('b', last=False) >>> ''.join(d.keys) 'bacde' I understand that "end" could potentially mean either end, but would "mov

Re: __pycache__, one more good reason to stck with Python 2?

2011-01-17 Thread Alice Bevan–McGregor
find . -name \*.pyc -exec rm -f {} \; vs. rm -rf __pycache__ I do not see how this is more difficult, but I may be missing something. — Alice. -- http://mail.python.org/mailman/listinfo/python-list

Re: Efficient python 2-d arrays?

2011-01-17 Thread Carl Banks
On Jan 17, 2:20 pm, Jake Biesinger wrote: > Is there a python standard library way of creating *efficient* 2-dimensional > lists/arrays, still allowing me to sort and append? Without using third party libraries, no not really. numpy has it covered so there's not really a lot of demand for it.

Re: __pycache__, one more good reason to stck with Python 2?

2011-01-17 Thread Flávio Lisbôa
That's why i disagree (and hate) the automatic compilation of code, my project directory becomes full of object files, and then i need to either delete everything manually or create a script to do the work (not in python, because it'll dirt things even more :). Sometimes i notice python doesn't rec

Re: Efficient python 2-d arrays?

2011-01-17 Thread Jake Biesinger
> IIUC (please confirm), you don't need a generic two-dimensional > array, but rather an Nx2 array, where N may be large (but the other > dimension will always have a magnitude of 2). Yes, that's right, Nx2 not NxM. > > Since I want to keep the two elements together during a sort > > I assume (p

Re: Efficient python 2-d arrays?

2011-01-17 Thread Jake Biesinger
On Monday, January 17, 2011 4:12:51 PM UTC-8, OAN wrote: > Hi, > > what about pytables? It's built for big data collections and it doesn't > clog up the memory. I thought PyTables depends on NumPy? Otherwise I would indeed use their carray module. Thanks! -- http://mail.python.org/mailman/li

Re: Efficient python 2-d arrays?

2011-01-17 Thread Martin v. Loewis
> Using numpy, I can create large 2-dimensional arrays quite easily. IIUC (please confirm), you don't need a generic two-dimensional array, but rather an Nx2 array, where N may be large (but the other dimension will always have a magnitude of 2). > Since I want to keep the two elements together d

Re: Efficient python 2-d arrays?

2011-01-17 Thread OAN
Hi, what about pytables? It's built for big data collections and it doesn't clog up the memory. Am 17.01.2011 23:54, schrieb Dan Stromberg: On Mon, Jan 17, 2011 at 2:20 PM, Jake Biesinger wrote: Hi all, Using numpy, I can create large 2-dimensional arrays quite easily. import numpy mylis

FW: Entry of Non-European (Unicode or UTF-8) characters

2011-01-17 Thread J Smithfield
From: jsmithfi...@hotmail.co.uk To: w...@python.org Subject: Entry of Non-European (Unicode or UTF-8) characters Date: Mon, 17 Jan 2011 18:26:36 + Hi there. I have difficulty entering directly non-European Unicode characters into Python 3.2's interpreter. When I do enter them, I ge

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-17 Thread Tim Harig
On 2011-01-17, geremy condra wrote: > On Mon, Jan 17, 2011 at 1:07 PM, Tim Harig wrote: >> On 2011-01-17, geremy condra wrote: >>> On Mon, Jan 17, 2011 at 1:12 AM, Tim Harig wrote: On 2011-01-16, geremy condra wrote: >> Go is every bit of a general purpose programming language.  It is use

Re: __pycache__, one more good reason to stck with Python 2?

2011-01-17 Thread Terry Reedy
No. The benefit of, for instance, not adding 200 .pyc files to a directory with 200 .py files is immediately obvious to most people. On 1/17/2011 1:17 PM, jmfauth wrote: No, I'm sorry, they're not obvious at all. These reasons become obious as soon as you start working. Let's take a practic

Re: Tkinter: The good, the bad, and the ugly!

2011-01-17 Thread rantingrick
On Jan 17, 4:47 pm, Terry Reedy wrote: > On 1/16/2011 11:20 PM, rantingrick wrote: > > > Ok, try this... > > >      http://juicereceiver.sourceforge.net/screenshots/index.php > >      http://www.sensi.org/~ak/pyslsk/pyslsk6.png > >      http://www.wxwidgets.org/about/screensh.htm > > Ok, wxwidgets

Re: UTF-8 question from Dive into Python 3

2011-01-17 Thread carlo
On 17 Gen, 23:34, Antoine Pitrou wrote: > On Mon, 17 Jan 2011 14:19:13 -0800 (PST) > > carlo wrote: > > Is it true UTF-8 does not have any "big-endian/little-endian" issue > > because of its encoding method? > > Yes. > > > And if it is true, why Mark (and > > everyone does) writes about UTF-8 wit

Re: Efficient python 2-d arrays?

2011-01-17 Thread Dan Stromberg
On Mon, Jan 17, 2011 at 2:20 PM, Jake Biesinger wrote: > Hi all, > > Using numpy, I can create large 2-dimensional arrays quite easily. import numpy mylist = numpy.zeros((1,2), dtype=numpy.int32) > > Unfortunately, my target audience may not have numpy so I'd prefer not to use >

Re: Tkinter: The good, the bad, and the ugly!

2011-01-17 Thread Terry Reedy
On 1/16/2011 11:20 PM, rantingrick wrote: Ok, try this... http://juicereceiver.sourceforge.net/screenshots/index.php http://www.sensi.org/~ak/pyslsk/pyslsk6.png http://www.wxwidgets.org/about/screensh.htm Ok, wxwidgets can look at least as good as tk. Agreed that wxpython migh

Re: UTF-8 question from Dive into Python 3

2011-01-17 Thread Antoine Pitrou
On Mon, 17 Jan 2011 14:19:13 -0800 (PST) carlo wrote: > Is it true UTF-8 does not have any "big-endian/little-endian" issue > because of its encoding method? Yes. > And if it is true, why Mark (and > everyone does) writes about UTF-8 with and without BOM some chapters > later? What would be the

Re: UTF-8 question from Dive into Python 3

2011-01-17 Thread Tim Harig
On 2011-01-17, carlo wrote: > Is it true UTF-8 does not have any "big-endian/little-endian" issue > because of its encoding method? And if it is true, why Mark (and > everyone does) writes about UTF-8 with and without BOM some chapters > later? What would be the BOM purpose then? Yes, it is true.

Re: UTF-8 question from Dive into Python 3

2011-01-17 Thread Alexander Kapps
On 17.01.2011 23:19, carlo wrote: Is it true UTF-8 does not have any "big-endian/little-endian" issue because of its encoding method? And if it is true, why Mark (and everyone does) writes about UTF-8 with and without BOM some chapters later? What would be the BOM purpose then? Can't answer yo

New to Jpype - TypeError .... class is not callable

2011-01-17 Thread plovet
Hello, I am trying to use jpype, but after several hours/days, I still cannot get it to work. I get a TypeError --- Package is not Callable error. (See below) I already have done a good workable chunk of code I wrote in Java that implements steam table calculations. After a few weeks of playin

Re: Should there be a 'core' python install? (was Re: Tkinter: The good, the bad, and the ugly!)

2011-01-17 Thread Martin P. Hellwig
On 01/17/11 22:00, rantingrick wrote: On Jan 17, 2:09 pm, "Martin P. Hellwig" wrote: fortunately it is not my call and I actually quite like Tkinter. Are you sure about that Martin? :))) From: "Martin P. Hellwig" Newsgroups: comp.lang.python Subject: Re: GUIs - A Modest Proposal Date: Fri,

Efficient python 2-d arrays?

2011-01-17 Thread Jake Biesinger
Hi all, Using numpy, I can create large 2-dimensional arrays quite easily. >>> import numpy >>> mylist = numpy.zeros((1,2), dtype=numpy.int32) Unfortunately, my target audience may not have numpy so I'd prefer not to use it. Similarly, a list-of-tuples using standard python syntax. >>>

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-17 Thread geremy condra
On Mon, Jan 17, 2011 at 1:07 PM, Tim Harig wrote: > On 2011-01-17, geremy condra wrote: >> On Mon, Jan 17, 2011 at 1:12 AM, Tim Harig wrote: >>> On 2011-01-16, geremy condra wrote: >>> I wouldn't say Go is narrowly targeted.  It's a systems language that can >>> compete in the same domain with

UTF-8 question from Dive into Python 3

2011-01-17 Thread carlo
Hi, recently I had to study *seriously* Unicode and encodings for one project in Python but I left with a couple of doubts arised after reading the unicode chapter of Dive into Python 3 book by Mark Pilgrim. 1- Mark says: "Also (and you’ll have to trust me on this, because I’m not going to show yo

Re: Should there be a 'core' python install? (was Re: Tkinter: The good, the bad, and the ugly!)

2011-01-17 Thread rantingrick
On Jan 17, 2:09 pm, "Martin P. Hellwig" wrote: > fortunately it is not my call and I actually > quite like Tkinter. Are you sure about that Martin? :))) > From: "Martin P. Hellwig" > Newsgroups: comp.lang.python > Subject: Re: GUIs - A Modest Proposal > Date: Fri, 11 Jun 2010 07:10:35 +0100 [

Re: [OT] Python like lanugages

2011-01-17 Thread Tim Harig
On 2011-01-17, John Nagle wrote: > That's been done once or twice. There's what are called "single > assignment languages". Each variable can only be assigned once. > The result looks like an imperative language but works like a functional > language. Look up "SISAL" for an example. This

Re: Tkinter: The good, the bad, and the ugly!

2011-01-17 Thread Alexander Kapps
On 17.01.2011 21:04, Octavian Rasnita wrote: I say probably not considering the availability of 3rd party downloads. What say you, Python community? Available as 3rd party downloads: XML,HTML,... HTTP,FTP,SMTP,POP,IMAP/... MD5,SHA,... zip,bzip,... and so on and so on and so on. Remove them a

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-17 Thread Tim Harig
On 2011-01-17, geremy condra wrote: > On Mon, Jan 17, 2011 at 1:12 AM, Tim Harig wrote: >> On 2011-01-16, geremy condra wrote: >> I wouldn't say Go is narrowly targeted.  It's a systems language that can >> compete in the same domain with scripting languages.  It is true that most >> languages h

Re: Tkinter: The good, the bad, and the ugly!

2011-01-17 Thread Adam Skutt
On Jan 17, 3:08 pm, "Octavian Rasnita" wrote: >> From: "Adam Skutt" >> And we're not discussing those languages, we're discussing Python, >> which has an explicit policy of "batteries included".  As such, >> criticism of the standard library is perfectly acceptable under the >> name "Python", whe

Re: [OT] Python like lanugages

2011-01-17 Thread John Nagle
On 1/17/2011 1:34 AM, Tim Harig wrote: On 2011-01-17, Paul Rubin wrote: geremy condra writes: Which is rather interesting because the OOP community had traditionally though of functional programming as a 1960's thing that didn't work out. Right. The big problem with functional p

Re: Need the list of XML parsers

2011-01-17 Thread Venu
Hi Stefan Using cElementTree, would you be willing show to me how to find the nodes with certain attribute, ie search using attributes and attibute values. I did not see any example code from the cElementTree official website. Regards, Venu -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2011-01-17 Thread Octavian Rasnita
From: "Adam Skutt" Subject: Re: Tkinter: The good, the bad, and the ugly! On Jan 17, 11:01 am, Steven D'Aprano wrote: > > I'm afraid that's precisely what I'm arguing you *can't* do -- there's > nothing reasonable about equating the standard library with the language. > Some languages don't eve

Re: Tkinter: The good, the bad, and the ugly!

2011-01-17 Thread Octavian Rasnita
From: "rantingrick" Sent: Monday, January 17, 2011 8:53 PM Subject: Re: Tkinter: The good, the bad, and the ugly! On Jan 17, 12:27 pm, "Octavian Rasnita" wrote: > And Python should also not include any editor because for > some programmers it is absolutely useless anyway. The > editor can be in

Should there be a 'core' python install? (was Re: Tkinter: The good, the bad, and the ugly!)

2011-01-17 Thread Martin P. Hellwig
On 01/17/11 19:39, rantingrick wrote: Q: If you could replace Tkinter with any module/library (THAT IS NOT A GUI OR IDE!!) what would you like to see fill its place? Some systems, like FreeBSD have Tkinter and IDLE as a separate package which is not installed by default. Purely because those

Re: 9 Month Python contract in Austin, TX

2011-01-17 Thread Antoine Pitrou
On Mon, 17 Jan 2011 11:08:52 -0800 (PST) AlexLBasso wrote: > I am recruiting for a 9 month contract (with contract extension > potential) for a company in North Austin. Please post on the job board instead: http://python.org/community/jobs/ Thank you Antoine. -- http://mail.python.org/mailma

Re: Need the list of XML parsers

2011-01-17 Thread Venu Allipuram
lxml is a great one, but it is not simple to install libxml and libxslt on Linux using user permissions. Also it is hard to package the scripts after the complete development for release. Did anybody try this, if so please let me know your thoughts on this. Thanks venu On Mon, Jan 17, 2011 at 11:

Re: Tkinter: The good, the bad, and the ugly!

2011-01-17 Thread rantingrick
On Jan 17, 1:26 pm, Adam Skutt wrote: > On Jan 17, 11:01 am, Steven D'Aprano > Nevertheless, you can do good, useful work > > with only a minimal widget set. Back when dinosaurs walked the earth, [...snip...] > And when a time machine warps all back to the 1980s, that argument > might have some

CodeFest - Online Coding Festival by Computer Engineering Society, IT-BHU

2011-01-17 Thread vishal kumar rai
Hello, We are delighted to inform you that CodeFest, the annual International online coding festival of Computer Engineering Society, IT-BHU, has been unveiled. CodeFest is a unique fest wherein concepts of mathematics, logic, artificial intelligence, algorithms, language syntax, etc. are requ

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-17 Thread Tim Harig
In comp.lang.python, you wrote: > Tim Harig, 17.01.2011 13:25: >> If I didn't think Python was a good language, I wouldn't be here. >> Nevertheless, it isn't a good fit for many pieces of software where a >> systems language is better suited. Reasons include ease of distribution >> without an inte

Re: Tkinter: The good, the bad, and the ugly!

2011-01-17 Thread rantingrick
Even more post thoughts on removing all GUI's from stlib... Q: If you could replace Tkinter with any module/library (THAT IS NOT A GUI OR IDE!!) what would you like to see fill its place? PS: And please make this decision from a *community* perspective and not pure selfishness. -- http://mail.p

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-17 Thread geremy condra
On Mon, Jan 17, 2011 at 1:12 AM, Tim Harig wrote: > On 2011-01-16, geremy condra wrote: >> On Sun, Jan 16, 2011 at 3:03 AM, Tim Harig wrote: >>> On 2011-01-16, Steven D'Aprano wrote: If the author thinks that Go is a "tried and true" (his words, not mine) language "where programmers c

Re: Tkinter: The good, the bad, and the ugly!

2011-01-17 Thread Adam Skutt
On Jan 17, 11:01 am, Steven D'Aprano wrote: > > I'm afraid that's precisely what I'm arguing you *can't* do -- there's > nothing reasonable about equating the standard library with the language. > Some languages don't even have a standard library, or for that matter a > standard implementation. A

Re: Tkinter: The good, the bad, and the ugly!

2011-01-17 Thread rantingrick
More post thoughts on removing all GUI's from stdlib... This change would not only affect Python in a positive way (lighting the proverbial load) it would also serve to speed the advancement of Tkinter because now Tkinter could advance at its own pace untethered by the release cycles of Python! Yo

9 Month Python contract in Austin, TX

2011-01-17 Thread AlexLBasso
I am recruiting for a 9 month contract (with contract extension potential) for a company in North Austin. I am seeking an Applications Developer very familiar with the JavaScript toolkit. The position requires specific experience with Python, Dojo, and JQuery. In this role, you would be developin

Re: Tkinter: The good, the bad, and the ugly!

2011-01-17 Thread rantingrick
On Jan 17, 12:27 pm, "Octavian Rasnita" wrote: > And Python should also not include any editor because for > some programmers it is absolutely useless anyway. The > editor can be installed separately very easy and the > programmers can choose the editor they like. The problem > is not that WxPyt

Re: Tkinter: The good, the bad, and the ugly!

2011-01-17 Thread Octavian Rasnita
From: "Steven D'Aprano" Subject: Re: Tkinter: The good, the bad, and the ugly! > On Sun, 16 Jan 2011 15:41:41 -0800, Adam Skutt wrote: > >> If you're going to expect me to be that pedantic, then pay me the >> courtesy of taking the time to find the necessary context. Nevertheless, >> it's not t

Re: __pycache__, one more good reason to stck with Python 2?

2011-01-17 Thread jmfauth
> No, I'm sorry, they're not obvious at all. These reasons become obious as soon as you start working. Let's take a practical point view. It did not take a long time to understand, that it is much simpler to delete the __pycache__ directory everytime I compile my scripts than to visit it just bec

Re: Need the list of XML parsers

2011-01-17 Thread Stefan Behnel
Venu, 17.01.2011 18:35: I am getting into serious Python programming for Electronic CAD tools, I am trying to find the best XML parser modules available. I need good searching capability for attributes, nodes and block of XML. I am looking for either a recommendation or previous forum links. Ca

Re: Need the list of XML parsers

2011-01-17 Thread hackingKK
Hi Venu, Use element tree module. This comes with Python itself and does all that you need with presision. I have already used it and it does a very very good job. Happy hacking. Krishnakant. On 17/01/11 23:05, Venu wrote: Hi, I am getting into serious Python programming for Electronic CAD tool

Re: Need the list of XML parsers

2011-01-17 Thread Sudheer Satyanarayana
On Monday 17 January 2011 11:05 PM, Venu wrote: Hi, I am getting into serious Python programming for Electronic CAD tools, I am trying to find the best XML parser modules available. I need good searching capability for attributes, nodes and block of XML. I am looking for either a recommendation

Need the list of XML parsers

2011-01-17 Thread Venu
Hi, I am getting into serious Python programming for Electronic CAD tools, I am trying to find the best XML parser modules available. I need good searching capability for attributes, nodes and block of XML. I am looking for either a recommendation or previous forum links. Thanks Venu -- http://m

Re: Career path - where next?

2011-01-17 Thread Alan Harris-Reid
Hi Fred, thanks for the reply. I have already contacted old clients (those that are still in business), but unfortunately they have either gone the 'off the shelf' route (ie. don't use bespoke software any more), or moved-over to .NET, which is a route which I don't want to follow. Still, at

Re: [OT] Python like lanugages

2011-01-17 Thread Robin Becker
On 17/01/2011 16:02, Stefan Behnel wrote: Sherm Pendley, 17.01.2011 16:47: I believe the widespread use of some functional techniques in JavaScript had a lot to do with that as well. I doubt that there's really "widespread use" of functional techniques in JavaScript. Such code may be widely de

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-17 Thread Stefan Behnel
Tim Harig, 17.01.2011 13:25: If I didn't think Python was a good language, I wouldn't be here. Nevertheless, it isn't a good fit for many pieces of software where a systems language is better suited. Reasons include ease of distribution without an interpeter, non-necessity of distributing source

Re: Tkinter: The good, the bad, and the ugly!

2011-01-17 Thread rantingrick
Everyone needs to jump off the troll wagon and come back to reality. We need to get back on topic and compare Tkinter and wxPython by nuts and bolts. We need to make a decision based on facts NOT misconceptions, based on merit NOT prejudice, and finally based on sanity NOT lunacy! ---

Re: Tkinter: The good, the bad, and the ugly!

2011-01-17 Thread Steven D'Aprano
On Sun, 16 Jan 2011 15:41:41 -0800, Adam Skutt wrote: > If you're going to expect me to be that pedantic, then pay me the > courtesy of taking the time to find the necessary context. Nevertheless, > it's not the least bit unreasonable to address deficiencies in the > standard library as deficienci

Re: [OT] Python like lanugages

2011-01-17 Thread Stefan Behnel
Sherm Pendley, 17.01.2011 16:47: I believe the widespread use of some functional techniques in JavaScript had a lot to do with that as well. I doubt that there's really "widespread use" of functional techniques in JavaScript. Such code may be widely deployed, but that doesn't tell anything ab

Re: __pycache__, one more good reason to stck with Python 2?

2011-01-17 Thread Steven D'Aprano
On Mon, 17 Jan 2011 06:31:00 -0800, jmfauth wrote: > As a scientist using computer tools, and not as a computer scientist, I > discovered Python long time ago (it was in its 1.5.6 version) and I > remain an happy user up to now date. Yesterday, I was happy to download > and test Python 3.2rc1. Pyt

Re: [OT] Python like lanugages

2011-01-17 Thread Sherm Pendley
Tim Harig writes: > Functional programming has been around a long time; but, it only regained > conciousness outside of academia because of its hyped abilities to > make threading easier. I believe the widespread use of some functional techniques in JavaScript had a lot to do with that as well.

Re: [Python-Dev] [python-committers] [RELEASED] Python 3.2 rc 1

2011-01-17 Thread R. David Murray
On Mon, 17 Jan 2011 08:33:42 +, Mark Summerfield wrote: > from ..Graphics import Xpm > SVG = 1 > > I can do the relative import with Python 3.0 and 3.1 but not with > 3.2rc1: What about 3.1.3? I wonder if it is related to this issue: http://bugs.python.org/issue7902 -- R. David Murra

Re: python 3 and Unicode line breaking

2011-01-17 Thread leoboiko
On Jan 14, 11:28 pm, Steven D'Aprano wrote: > Does this help? > > http://packages.python.org/kitchen/api-text-display.html Ooh, it doesn’t appear to be a full line-breaking implementation but it certainly helps for what I want to do in my project! Thanks much! (There’s also the alternative of us

Re: __pycache__, one more good reason to stck with Python 2?

2011-01-17 Thread Brian Curtin
On Mon, Jan 17, 2011 at 08:31, jmfauth wrote: > As a scientist using computer tools, and not as a computer > scientist, I discovered Python long time ago (it was in its > 1.5.6 version) and I remain an happy user up to now date. > Yesterday, I was happy to download and test Python 3.2rc1. > Pytho

__pycache__, one more good reason to stck with Python 2?

2011-01-17 Thread jmfauth
As a scientist using computer tools, and not as a computer scientist, I discovered Python long time ago (it was in its 1.5.6 version) and I remain an happy user up to now date. Yesterday, I was happy to download and test Python 3.2rc1. Python is still this powerful and pleasant language, but... I

Re: [Python-Dev] [python-committers] [RELEASED] Python 3.2 rc 1

2011-01-17 Thread Mark Summerfield
On Mon, 17 Jan 2011 09:23:39 -0500 "R. David Murray" wrote: > On Mon, 17 Jan 2011 08:33:42 +, Mark Summerfield > wrote: > > from ..Graphics import Xpm > > SVG = 1 > > > > I can do the relative import with Python 3.0 and 3.1 but not with > > 3.2rc1: > > What about 3.1.3? I wonder if it is r

Re: examples of realistic multiprocessing usage?

2011-01-17 Thread Adam Tauno Williams
On Mon, 2011-01-17 at 13:55 +, Albert van der Horst wrote: > In article , > Philip Semanchuk wrote: > > >I grepped through the code to see that it's using = > >multiprocessing.Listener. I didn't go any further than that because our = > >project is BSD licensed and the license for Gluino is

Re: Tkinter: The good, the bad, and the ugly!

2011-01-17 Thread Adam Skutt
On Jan 17, 8:30 am, Albert van der Horst wrote: > We are not talking about running applications, but about writing > applications. Someone has to write the applications I run... > I count 4000+ .py files in my /usr/share alone on Ubuntu. > Your set is totally unrepresentative for those scripts.

Re: examples of realistic multiprocessing usage?

2011-01-17 Thread Albert van der Horst
In article , Philip Semanchuk wrote: >I grepped through the code to see that it's using = >multiprocessing.Listener. I didn't go any further than that because our = >project is BSD licensed and the license for Gluino is unclear. Until I = >find out whether or not its under an equally permissiv

Re: Tkinter: The good, the bad, and the ugly!

2011-01-17 Thread Albert van der Horst
In article <4d337983$0$29983$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: >On Sun, 16 Jan 2011 07:18:16 -0800, Adam Skutt wrote: > >[...] > >I'm afraid I found most of your post hard to interpret, because you >didn't give sufficient context for me to understand it. You refer to "hi

Re: Tkinter: The good, the bad, and the ugly!

2011-01-17 Thread Albert van der Horst
In article , Adam Skutt wrote: >On Jan 14, 5:17=A0pm, Albert van der Horst >wrote: >> >> I really don't follow that. You need a tremendous set to write gimp. >> Obviously you won't write gimp in Python. >> > >You need a tremendous set to write /the majority of the applications >on your computer/

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-17 Thread Tim Harig
On 2011-01-17, Chris Rebert wrote: > On Mon, Jan 17, 2011 at 1:12 AM, Tim Harig wrote: >> On 2011-01-16, geremy condra wrote: >>> On Sun, Jan 16, 2011 at 3:03 AM, Tim Harig wrote: > Personally, I think the time is ripe for a language that bridges the gap between ease of use dynamic la

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-17 Thread Tim Harig
On 2011-01-17, Steven D'Aprano wrote: > On Mon, 17 Jan 2011 09:12:04 +, Tim Harig wrote: > >> Python has been widely used by people like us that happen to like the >> language and found ways to use it in our workplaces; but, most of the >> time it is an unofficial use that the company. You st

Re: Tkinter: Joking?

2011-01-17 Thread Adam Skutt
On Jan 17, 3:30 am, Steven Howe wrote: > Target your market. Design your software in the Model-View-Controller > format. It becomes easy to configure you frontend, your GUI, your web > page, if your code is written to separate the work from the glitz. > If there were some evidence MVC actually wo

ANN: M2Crypto 0.21.1

2011-01-17 Thread Heikki Toivonen
Announcing M2Crypto 0.21.1 Changes: 0.21.1 - 2011-01-15 --- - Distribution fix 0.21 - 2011-01-12 - - Support OpenSSL 1.0. Thanks to Miloslav Trmac for figuring out how to fix test_smime.py - Rename m2.engine_init to engine_init_error so that ENGINE_init and EN

Re: examples of realistic multiprocessing usage?

2011-01-17 Thread Adam Skutt
On Jan 17, 12:44 am, TomF wrote: > Thanks for your reply.  I can enqueue all the jobs before waiting for > the results, it's just that I want the parent to process the results as > they come back.  I don't want the parent to block until all results are > returned.  I was hoping the Pool module had

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-17 Thread Chris Rebert
On Mon, Jan 17, 2011 at 1:12 AM, Tim Harig wrote: > On 2011-01-16, geremy condra wrote: >> On Sun, Jan 16, 2011 at 3:03 AM, Tim Harig wrote: >>> Personally, I think the time is ripe for a language that bridges the >>> gap between ease of use dynamic languages with the performance and >>> distri

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-17 Thread Steven D'Aprano
On Mon, 17 Jan 2011 09:12:04 +, Tim Harig wrote: > Python has been widely used by people like us that happen to like the > language and found ways to use it in our workplaces; but, most of the > time it is an unofficial use that the company. You still don't see many > companies doing large sc

Re: [Python-Dev] [python-committers] [RELEASED] Python 3.2 rc 1

2011-01-17 Thread Senthil Kumaran
On Mon, Jan 17, 2011 at 2:03 PM, Mark Summerfield wrote: > Hi Georg, > > I can't be sure it is a bug, but there is a definite difference of > behavior between 3.0/3.1 and 3.2rc1. > > I can do the relative import with Python 3.0 and 3.1 but not with > 3.2rc1: Are you sure that the package that you

Re: Question on the Module Import

2011-01-17 Thread Chris Rebert
On Mon, Jan 17, 2011 at 2:01 AM, frank cui wrote: > Hi all, > > I'm quite a novice in doing python,and i wish to ask you guys a question on > the module import. > > Say we have a source file called module1.py. > > What's the difference between the " import module1 " and " from module1 > import * "

Re: [OT] Python like lanugages

2011-01-17 Thread Arndt Roger Schneider
Tim Harig schrieb: [snip] This isn't such a tragedy Erlang as it is for other managed VMs because Erlang/BEAM makes powerful usage of its VM for fault tolerance mechanisms. I don't know of any other VM that allows software upgrades on a running system. styx, the distributed operating system i

Question on the Module Import

2011-01-17 Thread frank cui
Hi all, I'm quite a novice in doing python,and i wish to ask you guys a question on the module import. Say we have a source file called module1.py. What's the difference between the " import module1 " and " from module1 import * " I know that conventionally by coding style, we dont use the seco

Re: [OT] Python like lanugages

2011-01-17 Thread Tim Harig
On 2011-01-17, Paul Rubin wrote: > geremy condra writes: >> I agree. That does not make Go that language, and many of the choices >> made during Go's development indicate that they don't think it's that >> language either. I'm speaking specifically of its non-object model, >> lack of exceptions,

Re: Is it possible to let a virtual file created by cStringIO have a filename so that functions can read it by its filename?

2011-01-17 Thread Cun Zhang
hi Chris, Thank you for your advice. I will use tmpfs as a temperory file system to detail with it. Cheers, Cun Zhang On Sat, Jan 15, 2011 at 4:51 AM, Chris Rebert wrote: > On Fri, Jan 14, 2011 at 7:52 AM, Cun Zhang wrote: > > Hi,all > > I hope use cStringIO to create virtual file, but my cus

Re: Elliptic Curve Prime factorisation

2011-01-17 Thread kost BebiX
14.01.2011, 21:52, "mukesh tiwari" : > Hello all , I have implemented Elliptic curve prime factorisation > using wikipedia [ > http://en.wikipedia.org/wiki/Lenstra_elliptic_curve_factorization]. > I think that this code is not optimised and posting for further > improvement. Feel free to comment a

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-17 Thread Tim Harig
On 2011-01-16, geremy condra wrote: > On Sun, Jan 16, 2011 at 3:03 AM, Tim Harig wrote: >> On 2011-01-16, Steven D'Aprano wrote: >>> If the author thinks that Go is a "tried and true" (his words, not mine) >>> language "where programmers can go to look for work", I think he's >>> fooling himself

Re: [python-committers] [RELEASED] Python 3.2 rc 1

2011-01-17 Thread Mark Summerfield
Hi Georg, I can't be sure it is a bug, but there is a definite difference of behavior between 3.0/3.1 and 3.2rc1. Given this directory layout: $ ls -R Graphics/ Graphics/: __init__.py Vector Xpm.py Graphics/Vector: __init__.py Svg.py And these files: $ cat Graphics/__init__.py __all__ = [

  1   2   >