Re: [ANN] Falcon - powering innovation

2009-04-13 Thread Andrii V. Mishkovskyi
http://mail.python.org/mailman/listinfo/python-list > -- Wbr, Andrii V. Mishkovskyi. He's got a heart of a little child, and he keeps it in a jar on his desk. -- http://mail.python.org/mailman/listinfo/python-list

Re: Emulate a printf() C-statement in Python???

2009-03-19 Thread Andrii V. Mishkovskyi
of course gives > Index error: list index out of range > > How can I generalize the print call in the myprintf() function to do this? > > print arg[0] % (arg[1]) > print arg[0] % (arg[1], arg[2]) > print arg[0] % (arg[1], ..., arg[n]) It's quite simple: def print

Re: How to do this in Python? - A "gotcha"

2009-03-18 Thread Andrii V. Mishkovskyi
(o,sentinel) builtin does the > comparison itself, instead of being defined as iter(callable,callable) > where the second argument implements the termination test and returns a > boolean.  This would seem to add much more generality... is > it worthy of a PEP? Just before you start writing a

Re: Why gives "k = 09" a syntax error ?

2008-10-29 Thread Andrii V. Mishkovskyi
2008/10/29 Stef Mientki <[EMAIL PROTECTED]>: > hello, > > Why gives "k = 09" a syntax error ? Because leading zero means that the number is octal, and there is no 9 among octal digits. :) > > thanks, > Stef Mientki > -- > http://mail.python.org/mailman/listinfo/python-list > -- Wbr, Andrii M

Re: XML Processing

2008-09-18 Thread Andrii V. Mishkovskyi
2008/9/18 Robert Rawlins <[EMAIL PROTECTED]>: > Guys, > > > > I'm running python 2.5 and currently using ElementTree to perform my XML > parsing and creation. ElementTree really is a great package for doing this, > however, I've been tasked by our deployment guys to try and move away from > externa

Re: Returning the positions of a list that are non-zero

2008-07-09 Thread Andrii V. Mishkovskyi
2008/7/9 Benjamin Goudey <[EMAIL PROTECTED]>: > I have a very large list of integers representing data needed for a > histogram that I'm going to plot using pylab. However, most of these > values (85%-95%) are zero and I would like to remove them to reduce > the amount of memory I'm using and save

Re: IDE on the level of Eclipse or DEVc++?

2008-06-23 Thread Andrii V. Mishkovskyi
2008/6/23 cirfu <[EMAIL PROTECTED]>: > is there an IDE for python of the same quality as Eclipse or DEVC++? > > I am currently using the editor that coems iwth python and it is all > fine but for bigger projects it would be nice to have some way to > easier browse the projectfiles for example. Act

Re: How do I create user-defined warnings?

2008-06-18 Thread Andrii V. Mishkovskyi
2008/6/18 Clay Hobbs <[EMAIL PROTECTED]>: > I already know how to make user-defined exceptions, like this one: > >class MyException(Exception): >pass > > But for a module I'm making, I would like to make a warning (so it just > prints the warning to stderr and doesn't crash the

Re: bpython - fancy Python shell

2008-06-15 Thread Andrii V. Mishkovskyi
2008/6/15, Bob Farrell <[EMAIL PROTECTED]>: > > I released this a while ago but did some work recently to fix some bugs > so I thought I may as well post it here. To quickly summarise: > In-line syntax highlighting > Auto complete with suggestions as you type > Pastebin stuff, save to file > "Rewin

Re: Ideas for master's thesis

2008-06-03 Thread Andrii V. Mishkovskyi
2008/6/4 Larry Bugbee <[EMAIL PROTECTED]>: >> I would like to do something with this language, yet >> I don't know if there are any needs/science fields, that could be used >> as a basis for a thesis. > > Personally, I'd like to see *optional* data typing added to Python > perhaps along the lines o

Re: Python is slow

2008-05-23 Thread Andrii V. Mishkovskyi
2008/5/22 cm_gui <[EMAIL PROTECTED]>: > Python is slow.Almost all of the web applications written in > Python are slow. Zope/Plone is slow, sloow, so very slooow. Even > Google Apps is not faster. Neither is Youtube. > Facebook and Wikipedia (Mediawiki), written in PHP, are so much faster

Re: built in list generator?

2008-05-14 Thread Andrii V. Mishkovskyi
2008/5/14 Ethan Furman <[EMAIL PROTECTED]>: > > Ben Finney wrote: > > > Subject: Re: built in list generator? > > From: Ben Finney <[EMAIL PROTECTED]> > > Date: Wed, 14 May 2008 09:43:43 +1000 > > To: python-list@python.org > > To: python-list@python.org > > Newsgroups: comp.lang.python > > "Diez

Re: Python and Flaming Thunder

2008-05-13 Thread Andrii V. Mishkovskyi
You sound like a commercial. Is this your way of attracting costumers of FT? 2008/5/13 Dave Parker <[EMAIL PROTECTED]>: > > 5-10 times faster for what kind of code? > > Mostly numerical analysis and CGI scripting. All of Flaming Thunder's > library code is in assembly language, and Flaming Thun

Re: strftime() argument 1 must be str, not unicode

2008-05-08 Thread Andrii V. Mishkovskyi
2008/5/8 Tim Roberts <[EMAIL PROTECTED]>: > "Andrii V. Mishkovskyi" <[EMAIL PROTECTED]> wrote: > > >2008/5/7 Alexandr N Zamaraev <[EMAIL PROTECTED]>: > > >> Subj is bag? > >> > >> Python 2.5.2 (r252:60911, Feb 21 2008,

Re: strftime() argument 1 must be str, not unicode

2008-05-07 Thread Andrii V. Mishkovskyi
2008/5/7 Alexandr N Zamaraev <[EMAIL PROTECTED]>: > Subj is bag? > > Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit > (Intel)] on win32 > Type "help", "copyright", "credits" or "license" for more information. > >>> from datetime import datetime > >>> datetime.today().strfti

Re: from __future__ import print

2008-04-10 Thread Andrii V. Mishkovskyi
2008/4/10, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Am I the only one that thinks this would be useful? :) > > I'd really like to be able to use python 3.0's print statement in > 2.x. Is this at least being considered as an option for 2.6? It > seems like it would be helpful with transitionin

Re: @x.setter property implementation

2008-04-07 Thread Andrii V. Mishkovskyi
2008/4/7, Floris Bruynooghe <[EMAIL PROTECTED]>: > > Have been grepping all over the place and failed to find it. I found > the test module for them, but that doesn't get me very far... > I think you should take a look at 'descrobject.c' file in 'Objects' directory. -- Wbr, Andrii Mishkovskyi

Re: A JEW hacker in California admits distributing malware that let him steal usernames and passwords for Paypal accounts.

2007-11-13 Thread Andrii V. Mishkovskyi
2007/11/14, ChairmanOfTheBored <[EMAIL PROTECTED]>: > On Tue, 13 Nov 2007 16:18:58 +0100, Richard G Riley > <[EMAIL PROTECTED]> wrote: > > >Your ascii art, while pretty, convinces no one ... > > > It's pretty goddamned retarded, actually... as was the post itself. > -- > http://mail.python.org/mai

Re: shouldn't 'string'.find('ugh') return 0, not -1 ?

2007-10-31 Thread Andrii V. Mishkovskyi
2007/10/31, jelle <[EMAIL PROTECTED]>: > the subject pretty much says it all. > if I check a string for for a substring, and this substring isn't found, > should't the .find method return 0 rather than -1? > this breaks the > > if check.find('something'): > do(somethingElse) > > idiom, which is

Fwd: Namespace question

2007-10-31 Thread Andrii V. Mishkovskyi
2007/10/31, Frank Aune <[EMAIL PROTECTED]>: > Hello, > > Is it possible writing custom modules named the same as modules in the > standard library, which in turn use the same module from the standard > library? > > Say I want my application to have a random.py module, which in turn must > import th

Re: Off Topic: Gmail hates newsgroups!!!

2007-10-08 Thread Andrii V. Mishkovskyi
2007/10/4, Robert Dailey <[EMAIL PROTECTED]>: > I don't know how many other people subscribe to the python mailing list and > use the mailing list using the web-based interface for Gmail, but I do. I > use it mainly because Gmail doesn't support IMAP and I use my email from > multiple locations. Gm