Re: Numeric literals in other than base 10 - was Annoying octal notation

2009-08-23 Thread greg
J. Cliff Dyer wrote: What happens if you use a literal like 0x10f 304? To me the obvious thing to do is concatenate them textually and then treat the whole thing as a single numeric literal. Anything else wouldn't be sane, IMO. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: What is the recommended library for xml parsing?

2009-08-23 Thread bot
voodoorai2000 on gmail.com has asked me for the current status of our votation.. so here you go: +1 => 1 vote -1 => 0 votes Time Line: -- (2009-08-24 01:25:11) Raimond Garcia: +1 Visit the fancy votation page: * http://letsdecide.us/4130bc4e0051016cb377d3436f4e8e683ed820ed -- http://ma

Re: Python/Fortran interoperability

2009-08-23 Thread Richard Maine
sturlamolden wrote: > Does anyone use OOP in Fortran anyway? Presumably not many people yet because... > And Fortran 2003 compilers are not ubiquitous. I'd not only agree, I'd say that was quite a bit understated. Last time I checked, the number of Fortran 2003 compilers available on the most

Re: Is Python what I need?

2009-08-23 Thread Dave Angel
newbie wrote: Hi all I'm interested in developing computer based, interactive programs for students in a special school who have an aversion to pen and paper. I've searched the net to find ready made software that will meet my needs but it is either written to a level much higher than these stude

Re: IOError: [Errno 22] invalid mode ('wb') or filename: in windows xp while making tarfile

2009-08-23 Thread John Machin
Dave Angel ieee.org> writes: > John Machin wrote: > > Erik Max Francis alcyone.com> writes: > I also suspect the "pipe" symbol. I don't know if it's an invalid > character to Windows, but it's certainly a bad idea. The '|' character > means something special to the shell. The "pipe" cha

Re: Is python faster than java?

2009-08-23 Thread sturlamolden
On 23 Aug, 21:59, Emile van Sebille wrote: > Speed of what? Development? User interaction? Responsiveness to queries? My personal view on the 'Is Python faster than Java' question: - Coding? Yes, if you program 'pythonic'. - String handling? Often. - I/O and networking? Often. - Iteration?

Re: Numeric literals in other than base 10 - was Annoying octal notation

2009-08-23 Thread Ben Finney
Max Erickson writes: > At some point, abandoning direct support for literals and just > having a function that can handle different bases starts to make a > lot of sense to me: > > >>> int('100', 8) > 64 > >>> int('100', 10) > 100 > >>> int('100', 16) > 256 > >>> int('100', 2) > 4 > >>> int('10

Re: __import__(x) VS __import__(x, {}, {}, [''])

2009-08-23 Thread greg
Phil wrote: I am trying to understand the difference between __import__(x) and __import__(x, {}, {}, ['']). The documentations wording was a bit weird for me to understand: "The standard implementation does not use its locals argument at all, and uses its globals only to determine the package co

Literal concatenation, strings vs. numbers (was: Numeric literals in other than base 10 - was Annoying octal notation)

2009-08-23 Thread Ben Finney
greg writes: > J. Cliff Dyer wrote: > > > What happens if you use a literal like 0x10f 304? > > To me the obvious thing to do is concatenate them textually and then > treat the whole thing as a single numeric literal. Anything else > wouldn't be sane, IMO. Yet, as was pointed out, that behaviour

Re: __import__(x) VS __import__(x, {}, {}, [''])

2009-08-23 Thread Phil
"If you call it without a value for 'globals', it uses the current value of globals()." Thanks, this is what I was trying to ask. I typed my question up way too fast before dinner. You've been great help. -- http://mail.python.org/mailman/listinfo/python-list

Re: Most "active" coroutine library project?

2009-08-23 Thread Doron Tal
On Sun, Aug 23, 2009 at 6:02 PM, Phillip B Oldham wrote: > I've been taking a look at the multitude of coroutine libraries > available for Python, but from the looks of the projects they all seem > to be rather "quiet". I'd like to pick one up to use on a current > project but can't deduce which i

sgmllib.py

2009-08-23 Thread elsa
Hi all, I'm new to both this forum and Python, and I've got a bit stuck trying to learn how to parse HTML here is my problem I'm using a textbook that uses sgmllib.py for all its examples. I'm aware that sgmllib is not in the current release, however I want to get it to work, as I have python

Re: Need cleanup advice for multiline string

2009-08-23 Thread Mensanator
On Aug 23, 2:25�pm, Stefan Behnel wrote: > Mensanator wrote: > > asking how many Jews you can fit into a Volswagen. > > None, because it's already full. A spelling error does not make it any less offensive. > > (or "voll" as those who design Volkswagens would put it...) > > Stefan -- http://ma

Re: Is Python what I need?

2009-08-23 Thread c
> I'm interested in developing computer based, interactive programs That is so open-ended it could mean anything. If you give a much more specified idea of what you are imagining creating, people could be helpful. > for students in a special school who have an aversion to pen and paper. Aversi

Re: basic thread question

2009-08-23 Thread John Nagle
Jan Kaliszewski wrote: 18-08-2009 o 22:10:15 Derek Martin wrote: I have some simple threaded code... If I run this with an arg of 1 (start one thread), it pegs one cpu, as I would expect. If I run it with an arg of 2 (start 2 threads), it uses both CPUs, but utilization of both is less than

Re: web frameworks that support Python 3

2009-08-23 Thread Graham Dumpleton
On Aug 24, 6:34 am, Sebastian Wiesner wrote: > At Sunday 23 August 2009 22:13:16 you wrote:> I use Chinese and therefore > Unicode very heavily, and so Python 3 is > > an unavoidable choice for me. > > Python 2.x supports Unicode just as well as Python 3.  Every common web > framework works perfe

<    1   2