Re: How to read/write a field in MariaDB already managed/encrypted by PHP script.

2020-01-25 Thread I
on 2020-01-25 at 12:08 user ^Bart wrote: Hy guys, I'm doing a software with a login/register area by Python 3 and PHP 7.3, i followed this guide https://www.9lessons.info/2016/04/php-login-system-with-pdo-connection.html and it store the password in encrypted mode but now I ne

Re: Ruby/Python/REXX as a MUCK scripting language

2006-11-26 Thread i
Tony Belding skrev: > I'm interested in using an off-the-shelf interpreted language as a > user-accessible scripting language for a MUCK. I'm just not sure if I > can find one that does everything I need. The MUCK must be able to > call the interpreter and execute sc

A computer programmer, web developer and network admin resume

2013-05-21 Thread i...@databaseprograms.biz
A computer programmer, web developer and network administrator resume. For a resume in HTML or .Doc format click on: www.DatabasePrograms.Biz<http://www.databaseprograms.biz/> If you would like this in text format instead, please let me know. Daniel Rapaport 1-949-307-

see the link

2011-04-08 Thread ramalingam i
webpage : http://123maza.com/65/hand741/ -- http://mail.python.org/mailman/listinfo/python-list

Main threads waits indefinitely on futures if single future calls condition.wait()

2019-10-31 Thread i...@dantalion.nl
Hello, Recently I have been trying to use a reantrant read write lock in my project but discovered several problems when writing test cases. All the relevant material can be found on the following locations https://stackoverflow.com/questions/58410610/calling-condition-wait-inside-thread-causes

Llearn a Little About Artificial Neural Networks and TKinter

2005-04-29 Thread I. Myself
The VizANN package is a free download from annevolve.sf.net. It contains a python program that graphically demonstrates a recurrent binary neural network. There is also an explanatory text file. Mitchell Timin -- "In theory, there is no difference between theory and practice. In practice, the

Re: Figuring out what dependencies are needed

2013-12-11 Thread sal i
On Thursday, December 12, 2013 1:48:42 PM UTC+8, alex23 wrote: > On 11/12/2013 10:44 PM, s...@nearlocal.com wrote: > > > I'm a Python beginner. I want to use it for stats work, so I downloaded > > Anaconda which has several of the popular libraries already pac

TALK.ORIGINS CENSORS THE TRUTH

2014-03-12 Thread I THRINAXODON
://thrinaxodon.wordpress.com/ === THRINAXODON ONLY HAD THIS TO SAY: "I..I...I...Can't believe it. This completely disproved Darwinian orthodoxy." === THE BASTARDS AT THE SMITHSONIAN, AND THE LEAKEY FOUNDATION ARE ER

Question about XMLRPC

2013-08-29 Thread i . sheeha
Hello, I should write a python script(s) that listens to an existing XMLRPC service on my company's dev server.My utility should take some data from that XMLRPC, send it to an online xml service provider(it's something about hotel accomodation, where they have xml patterns for

Re: invert or reverse a string... warning this is a rant

2006-10-20 Thread I V
On Fri, 20 Oct 2006 09:04:07 +1000, Steven D'Aprano wrote: > I agree -- the reversed() function appears to be an obvious case of purity > overriding practicality :( > >>>> str(reversed("some string")) > '' >>>> repr(reversed(&quo

Re: Beginner Programmer Question

2006-06-26 Thread I V
On Mon, 26 Jun 2006 10:47:58 -0700, [EMAIL PROTECTED] wrote: > whats the difference between raw input and input? 'input' is used to ask the user to input a python expression, which is then run, and 'input' returns the result of executing that expression. For example: (define a function which pri

Re: Replace Whole Object Through Object Method

2006-06-27 Thread I V
On Mon, 26 Jun 2006 19:40:52 -0700, digitalorganics wrote: > A misuse of inheritance eh? Inheritance, like other language features, > is merely a tool. I happen to be using this tool to have my virtual > persons change roles at different points in their lifetime, as many > real peopl

Re: merits of Lisp vs Python

2006-12-12 Thread I V
On Mon, 11 Dec 2006 23:24:07 -0500, Ken Tilton wrote: > Also, Python does not support a functional style of programming so the > line is the only meaningful textual entity. In this sense the > primitiveness of Python makes editing easier. Why do you say that? Wouldn't a block in python be a "mea

Re: merits of Lisp vs Python

2006-12-12 Thread I V
talking to the interpreter instead of saying what you want to achieve. > You're having to repeat things because that's what the language asks > of you, instead of describing in a higher-level way what you're > actually doing. To be a little provocative, I wonder if the idea tha

Re: Making dir's

2006-01-22 Thread I V
Klaus Alexander Seistrup wrote: > Or os.makedirs(): Although that may or may not do what the OP wants. I was assuming she was trying to produce a directory structure like: /dir/C/ /dir/ASM/ /dir/Python/ os.makedirs() produces a directory hierarchy, like: /dir/C/ASM/Python/ -- h

Re: A simple question string.replace

2006-01-30 Thread I V
Haibao Tang wrote: > Is it possible to substitue all '1.1' to some value else without using > re. You could try: import sys values = sys.stdin.readline().split() while values: results = [] for value in values: if value != '1.1': results.append(value) else:

Re: OO conventions

2006-02-03 Thread I V
Nicola Musatti wrote: > I don't think this is all there is to it. Even though a class such as > Image might not have a sensible default, initial state it still might > not be reasonable to burden it with the ability to collect the > information needed to reach such an initial st

Re: How to *Search* with google from inside my programme and get the search result?

2006-02-14 Thread I V
Frank Potter wrote: > Does google supply some webservice to programmers? I did see Googling for "google api" gets you to: http://www.google.com/apis/ It appears to be a SOAP API, which you can access with python, but I think you'll need a third-party library. Googling for &quo

Re: ls files --> list packer

2006-02-23 Thread I V
kpp9c wrote: > Namely i have organized a bunch of folders that have soundfiles in them > and would like Python to slurp up all the .aif/.aiff (or .wav whatever) > files in a given set of directories. My friend hacked up this is perl: > > $files = `ls /snd/Public/*.aiff`;

Re: PEP 354: Enumerations in Python

2006-02-27 Thread I V
Paul Rubin wrote: > Hmm, I also see the PEP doesn't specify what's supposed to happen with > > Weekdays = enum('sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat') > Solar_system = enum('sun',

Re: Like Christ PBBUH Prayed

2005-05-17 Thread I Know
oh, just shut the fuck up -- http://mail.python.org/mailman/listinfo/python-list

Re: Goto

2007-06-17 Thread Tina I
Daniel Nogradi wrote: >> How does one effect a goto in python? I only want to use it for debug. >> I dasn't slap an "if" clause around the portion to dummy out, the >> indentation police will nab me. > > > http://entrian.com/goto/ LOL!! * major fla

Re: python extra

2007-07-11 Thread Tina I
[EMAIL PROTECTED] wrote: > On Jul 8, 12:59?pm, Neal Becker <[EMAIL PROTECTED]> wrote: >> Just a little python humor: >> >> http://www.amazon.com/Vitamin-Shoppe-Python-Extra-tablets/dp/B00012NJ... > > Aren't there any female Python programmers? > No, of course not. Oh, and guys: If you take those

Re: Beginner: Formatting text output (PyQt4)

2007-04-18 Thread Tina I
Glen wrote: >> Hello again, I don't blame anyone for not answering my last post, > since >> I obviously hadn't spent much time researching, but I've come a little >> ways and have another question. >> >> How can I better format text output to a QT

Catching a specific IO error

2007-04-24 Thread Tina I
Hi group :) I have this standard line: export = open(self.exportFileName , 'w') 'exportFileName' is a full path given by the user. If the user gives an illegal path or filename the following exception is raised: "IOError: [Errno 2] No such file or directory: /s

Re: Catching a specific IO error

2007-04-25 Thread Tina I
uot;No such file or directory" error > # calling an error handling method. > > See http://docs.python.org/lib/module-exceptions.html > > --Gabriel Genellina Perfect! Just what I was looking for. Thank you! :) Tina -- http://mail.python.org/mailman/listinfo/python-list

Re: lowercase class names, eg., qtgui ? (PyQt4)

2007-04-26 Thread Tina I
Glen wrote: > Hello, > > In the file generated by pyuic4 from Designer's .ui file I noticed the use > of lower case class names (I'm assuming these are the names of classes, > not modules). For example: > > It imports thusly: > > from PyQt4 im

Re: how update a qListView in backgroud

2007-05-02 Thread Tina I
Reinaldo Carvalho wrote: > Hi, > > I programming with qt module and i have a qWidgetTab with a qListView > inside, and i need update the qListView every 5 seconds, how do this > on transparent mode to user. I do a function to update, but i dont > know call then. > > I wil

Re: Init style output with python?

2007-05-05 Thread Tina I
Maxim Veksler wrote: > Is there are frame work or something in python that would allow me to > do this (quickly) ? > If not, ideas how I should I be getting this boring task of: > 1. get screen width You can look into the 'curses' module and do something like: scre

Distributing programs depending on third party modules.

2007-05-15 Thread Tina I
Hi list, Is there a preferred way to distribute programs that depends on third party modules like PyQt, Beautifulsoup etc? I have used setuptools and just having the setup script check for the existence of the required modules. If they're not found I have it exit with a message that it

Re: Distributing programs depending on third party modules.

2007-05-15 Thread Tina I
ager handle these dependencies. And yes, it is > frustrating for end users. I mainly write apps for Linux although some are in theory cross platform (but I don't have Windows to test on so I don't really care about that part). Of course catering to every concievable package manageme

Re: Distributing programs depending on third party modules.

2007-05-16 Thread Tina I
David Boddie wrote: > On May 16, 7:44 am, Tina I <[EMAIL PROTECTED]> wrote: > >> A binary would be ideal. I'll look into the freeze modules and >> Pyinstaller. Even if they don't handle huge things like Qt it would be a >> step in the right direction

Re: Distributing programs depending on third party modules.

2007-05-16 Thread Tina I
Kevin Walzer wrote: > Tina I wrote: >> Kevin Walzer wrote: > > >> And maybe the smartest thing to do would be to dump PyQt and just go >> for tkinter, however ugly it is :/ > > Tkinter doesn't have to be ugly. > > I sell a proprietary

Re: CP4E revival

2007-05-24 Thread I V
On Thu, 24 May 2007 20:03:29 +1000, Richard Jones wrote: > Hoop-jumping implemented to prevent just this kind of direct linking (and > thus not saving of the PDF to local disk to view, and thus increasing the > load on the server). I'm not sure I see the connection - if you'r

Re: Unsubscribing from the mailing list

2007-05-28 Thread Tina I
[EMAIL PROTECTED] wrote: > Hi All, > > I do not know if this is the correct group to ask this question. But > since mailman is python-based I thought i would ask here. > > I had subscribed to a mailing list called [EMAIL PROTECTED] > adventitiously. I then wanted to rever

Re: split on NO-BREAK SPACE

2007-07-22 Thread I V
On Sun, 22 Jul 2007 21:13:02 +0200, Peter Kleiweg wrote: > Here is another "space": > > >>> u'\uFEFF'.isspace() > False > > isspace() is inconsistent Well, U+00A0 is in the category "Separator, Space" while U+FEFF is in the category "Other, Format", so it doesn't seem unreasonable that one i

Re: Submit form, open result in a browser

2007-07-27 Thread Tina I
theju wrote: >> Is there a way to submit a form and then open the resulting page in the >> default browser? (Writing the form submission code is not a problem by >> the way) > > There is a library called "Client Form" that does this for you. > wwwsearch.sourceforge.net/ClientForm/ > > After the f

Submit form, open result in a browser

2007-07-27 Thread Tina I
Hi, Is there a way to submit a form and then open the resulting page in the default browser? (Writing the form submission code is not a problem by the way) I guess what I'm asking is how I can get the resulting URL and feed it to the webbrowser module. I need to do it this way because the

Re: Wikicodia - The code snippets wiki

2007-07-28 Thread Tina I
Wikicodia Admin wrote: > Dears, > > Wikicodia is a wiki based project for sharing code snippets. We're > collecting large number of code snippets for all code-based > programming languages, scripts, shells and consoles. We wish you could > help us. We're still BETA. Your suggestions, ideas and cri

Re: Newbie question about a web server

2007-08-20 Thread I V
c that when the client request > something it is a "GET", and when the client sends something it is in > our case a POST. Some basic responce codes like 200 is OK for GET, and > 404 is file not found, 301 is OK for a Post." [...] > I googled for 'http response code 30

Re: IDE for Python

2007-08-21 Thread I V
On Tue, 21 Aug 2007 21:23:25 -0300, Ricardo Aráoz wrote: > Do you know if for in-house development a GPL license applies? (Qt4 > and/or Eric4). (I'm not sure if I've understood your question right) If you distribute an app that _uses_ PyQT, you have to comply with the GPL (or buy a license

Re: PyQt4: Clickable links in QLabel?

2007-03-07 Thread Tina I
David Boddie wrote: > On Thursday 01 March 2007 09:00, Tina I wrote: > >> A short and sweet question: Is it possible to put a clickable link in a >> QLabel that will open in the systems default browser? > > Yes. > >> I tried to put in some HTML but it did (of co

Re: getting user id (from an arbitrary sys user)

2007-03-14 Thread Tina I
Gerardo Herzig wrote: > hi all. What i need to know is if there is some function like > os.getuid(), but taking an argument (the username, off course), so i can > do getuid('myuser') > > Thanks you dudes! > > Gerardo How about simply: import commands use

Re: difference between urllib2.urlopen and firefox view 'page source'?

2007-03-19 Thread Tina I
cjl wrote: > Hi. > > I am trying to screen scrape some stock data from yahoo, so I am > trying to use urllib2 to retrieve the html and beautiful soup for the > parsing. > > Maybe (most likely) I am doing something wrong, but when I use > urllib2.urlopen to fetch a pag

Re: Need help to learn Python

2007-03-23 Thread Tina I
PythonBiter wrote: > Hi everyone, > > I'm very new in this Group as well Python language. I want to learn > Python. So could you please advice me, and guide me how can i become > master in Python ! > > > Thanks, > Partha > Lots of great resources for begi

__init__.py

2007-03-25 Thread Tina I
When looking at other peoples code (to learn from it) I keep seeing an empty file named "__init__.py". What's the purpose of this? Thanks Tina -- http://mail.python.org/mailman/listinfo/python-list

Re: __init__.py

2007-03-25 Thread Tina I
Tina I wrote: > When looking at other peoples code (to learn from it) I keep seeing an > empty file named "__init__.py". What's the purpose of this? > > Thanks > Tina Duh! Never mind... found it. Kinda neat actually :) T -- http://mail.python.org/mailman/listinfo/python-list

Re: __init__.py

2007-03-27 Thread Tina I
Jorgen Grahn wrote: > On Mon, 26 Mar 2007 08:27:19 +0200, Tina I <[EMAIL PROTECTED]> wrote: >> Tina I wrote: >>> When looking at other peoples code (to learn from it) I keep seeing an >>> empty file named "__init__.py". What's the purpose of

Append data to a list within a dict

2007-04-13 Thread Tina I
Hello group, Say I have the following dictionary: ListDict = { 'one' : ['oneone' , 'onetwo' , 'onethree'], 'two' : ['twoone' , 'twotwo', 'twothree'], 'three' : ['threeone' , 'threetwo',

Re: Append data to a list within a dict

2007-04-13 Thread Tina I
Paul Rubin wrote: > Tina I <[EMAIL PROTECTED]> writes: >> ListDict = { >> 'one' : ['oneone' , 'onetwo' , 'onethree'], >> 'two' : ['twoone' , 'twotwo', 'twothree'], >> 'three'

Re: Append data to a list within a dict

2007-04-13 Thread Tina I
Michael Bentley wrote: > > On Apr 14, 2007, at 12:39 AM, Tina I wrote: > >> Say I have the following dictionary: >> >> ListDict = { >> 'one' : ['oneone' , 'onetwo' , 'onethree'], >> 'two' : ['twoone&#

Re: Append data to a list within a dict

2007-04-15 Thread Tina I
Alex Martelli wrote: > Tina I <[EMAIL PROTECTED]> wrote: >... >> He he... at the age of 40 I'm well beyond school work ;) > > Why would that be? My wife's over 40, yet she's a student (currently at > Stanford -- they were overjoyed to admit her

Re: What makes an iterator an iterator?

2007-04-17 Thread I V
On Wed, 18 Apr 2007 15:39:22 +1000, Steven D'Aprano wrote: > I thought that an iterator was any object that follows the iterator > protocol, that is, it has a next() method and an __iter__() method. ... > class Parrot(object): ... > def __init__(self): > se

Re: Coming from Perl - SOLVED

2007-09-14 Thread I V
On Thu, 13 Sep 2007 23:49:32 -0400, Amer Neely wrote: > In trying to track down why this script would not run on my host, it has > to come to light that Python is installed, however the Apache module is > not. So, short story is - I was flogging a dead horse. Which Apache module? You d

Re: find and remove "\" character from string

2007-09-15 Thread I V
On Sat, 15 Sep 2007 19:34:45 +0300, Konstantinos Pachopoulos wrote: > Hi, > i have the following string s and the following code, which doesn't > successfully remove the "\", but sucessfully removes the "\\". There is no \\ in the string; there's one \ , whi

PyQt: QListviewItemIterator

2007-01-16 Thread Tina I
Hi, I'm fairly new to both Python and Qt so please bare with me. I have a QListView with a number of columns. In order to filter the output I iterate using QListViewItemIterator looking for the string entered by the user (filterString). Currently I do it this way: it = QListViewItemIte

Re: PyQt: QListviewItemIterator

2007-01-16 Thread Tina I
David Boddie wrote: > > When it.current() returns None. You can rewrite what you already > have like this: > > it = QListViewItemIterator(self.authListView) > while it.current(): > item = it.current() > if item.text(0).contains(filterString) or \ > item.text(1).contains(filter

PyQt4 strangeness

2007-01-23 Thread Tina I
I'm trying to 'convert' my self from Qt3 to Qt4 (it rocks!) and one thing seem strange: With Qt3 I usually did "from qt import *", but this does not seem to work with Qt4. I have to use "from PyQt4 import QtGui , QtCore" and also have to use "QtCore.so

Re: PyQt4 strangeness

2007-01-23 Thread Tina I
ide in the same site-packages directory. > > The style of import statement you use is up to you. All of the PyQt4 examples > adopt the style you describe, but you can achieve the equivalent of your > current practice by doing the following instead... > > from PyQt4.Qt impor

Prefered install method?

2007-01-25 Thread Tina I
Another noob question: I have written my first linux application that might actually be of interest to others. Just for fun I also wrote an install script that put the files in the common directories for my distro (Debian). That is in /usr/local/. (This particular program can be run directly

Re: Prefered install method?

2007-01-26 Thread Tina I
u have versioning support. > > If you plan to release the app publically, it will also handle the > upload to the PyPI, the python package index - also known(?) as cheeseshop. > > Diez Great! Obviously exactly what I'm looking for. I already had it installed even, and it

Re: emulate a serial port in windows (create a virtual 'com' port)

2007-01-31 Thread Bas-i
On Jan 30, 7:34 am, Pom <[EMAIL PROTECTED]> wrote: > how can I emulate a serial port in windows? Google for ComEmulDrv3 This may do what you want. -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling J from Python

2007-02-07 Thread Tina I
Gosi wrote: > On Feb 7, 3:46 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: >> In <[EMAIL PROTECTED]>, Gosi wrote: >>> I like to use J for many things and I think that combining Python and >>> J is a hell of a good mixture. >> I w

Re: Calling J from Python

2007-02-08 Thread Tina I
Hendrik van Rooyen wrote: > > I am under the impression that Loki had a daughter called Hel ... > > - Hendrik > Yes. And Hel was the queen of the underworld which was also called 'Hel' (Which of course is 'hell', in modern Norwegian : "helvete")

Re: Newbie Question

2007-02-08 Thread Tina I
azrael wrote: > but look out for pyqt. there is one thing in the eula i don't like. > there is written that if you use qtWidgets and they like the > aplication, you have to give up all your rights of the aplication. > patent, idea, money everything is gone. i know this is open so

Re: interacting with shell - another newbie question

2007-02-10 Thread Tina I
James wrote: > Hello, > > I work in this annoying company where I have to autheticate myself to > the company firewall every 30-50 minutes in order to access the > internet. (I think it's a checkpoint fw). > > I have to run "telnet what.ever.ip.address 259&qu

Re: Hacking in python

2007-02-10 Thread Tina I
zefciu wrote: > enes naci wrote: >> i would like to know about hacking in python too whether its illegal or >> not is not the point and anyway it doesn't mean i'm gong to use it. >> > > If you mean hacking as modyfying the code of interpreter of libraries -

irclib problems

2007-02-11 Thread Tina I
and sits there 'forever'... However, I want to use it in a PyQt application and have done the following. I have created a module named 'irclibtest.py' that looks like this: ### irclibtest start ### import irclib irclib.DEBUG = True class Conn: def __init__(se

Re: Pep 3105: the end of print?

2007-02-22 Thread I V
On Tue, 20 Feb 2007 10:46:31 -0800, Beliavsky wrote: > I think the C and C++ committees also take backwards compatibility > seriously, in part because they know > that working programmers will ignore them if they break too much old > code. While that's true, C++ compiler ven

HTML to dictionary

2007-02-27 Thread Tina I
Hi everyone, I have a small, probably trivial even, problem. I have the following HTML: > > METAR: > > ENBR 270920Z 0KT FEW018 02/M01 Q1004 NOSIG > > > short-TAF: > > ENBR 270800Z 270918 VRB05KT FEW020 SCT040 > > > long-TAF: > &

Re: HTML to dictionary

2007-02-27 Thread Tina I
Tina I wrote: > Hi everyone, > > I have a small, probably trivial even, problem. I have the following HTML: >> >> METAR: >> >> ENBR 270920Z 0KT FEW018 02/M01 Q1004 NOSIG >> >> >> short-TAF: >> >> ENBR 270800Z 2709

Re: HTML to dictionary

2007-02-27 Thread Tina I
Thanks people, I learned a lot!! :) I went for Herbert's solution in my application but I explored, and learned from, all of them. Tina -- http://mail.python.org/mailman/listinfo/python-list

PyQt4: Clickable links in QLabel?

2007-03-01 Thread Tina I
Hi everyone, A short and sweet question: Is it possible to put a clickable link in a QLabel that will open in the systems default browser? I tried to put in some HTML but it did (of course?) simply display the code instead of a link. I also tried to set openExternalLinks 'true' but t

Re: eof

2007-11-21 Thread I V
On Wed, 21 Nov 2007 17:06:15 -0800, braver wrote: > Why do I have to count sizes of lines read and compare it to some > filesize or do other weird tricks just to see, in a way not changing my > input stream, whether it's at the, well, EOF? Because you can't, generally, te

Re: [OT] minimalist web server

2007-12-02 Thread I V
On Sat, 01 Dec 2007 19:02:41 -0800, Daniel Fetchinson wrote: > The reason I need this is that my current best strategy to avoid ads in > web pages is putting all ad server names into /etc/hosts and stick my > local ip number next to them (127.0.0.1) so every ad request goes to my > ma

Re: a Python person's experience with Ruby

2007-12-08 Thread I V
On Sat, 08 Dec 2007 11:23:57 -0800, MonkeeSage wrote: >> > The equivalent python idiom is something like: >> >> > class A: >> > __a = "foo" >> > def __init__(self): >> > self.a = A.__a [...] >> > Which roughly translates to this in ruby: >> >> > class A >> > attr_accessor :a >> > def in

Re: a Python person's experience with Ruby

2007-12-09 Thread I V
scope of the class, and adds a > new attribute accessible from the instance (_a). Either I'm not understanding you, or you're not understanding what A.__a means in python. A.__a is a class attribute, not an instance attribute - it's equivalent to @@a in ruby, not @a. If I

Re: Loops and things

2007-12-14 Thread i . pantusa
On Dec 14, 5:01 pm, Neil Cerutti <[EMAIL PROTECTED]> wrote: > On 2007-12-14, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > I was wondering how and if it's possible to write a loop in python > > which updates two or more variables at a time. F

Re: Immutable Geometry Types

2007-12-16 Thread I V
On Sun, 16 Dec 2007 18:13:47 -0800, [EMAIL PROTECTED] wrote: > I am learning python, having learnt most of my object orientation with > java, and decided to port some of my geometry classes over. I haven't > used immutability in python before, so thought this would be an > inte

Re: Missing interfaces in Python...

2006-04-17 Thread I V
[EMAIL PROTECTED] wrote: > I see that Python is missing "interfaces". The concept of an interface > is a key to good programming design in Java, but I've read that they > aren't really necessary in Python. I am wondering what technique I can > use in Python to ge

Re: Missing interfaces in Python...

2006-04-17 Thread I V
Jonathan Daugherty wrote: > Except when you need to handle exceptions when those methods don't > exist. I think interfaces can definitely be useful. I think I see what you mean, but that's an odd way to put it. Typically, you aren't going to handle the exceptions produc

Re: best way to determine sequence ordering?

2006-04-28 Thread I V
On Fri, 28 Apr 2006 14:27:00 -0700, nikie wrote: > Steven Bethard wrote: > >> >>> L = ['C', 'A', 'D', 'B'] >> >>> positions = dict((item, i) for i, item in enumerate(L)) Do you need the generator expression here?

Re: best way to determine sequence ordering?

2006-04-28 Thread I V
On Fri, 28 Apr 2006 16:39:33 -0700, nikie wrote: > I V wrote: >> Do you need the generator expression here? dict(enumerate(L)) should be >> equivalent, no? > > I think the generator is needed to swap the item and the index. > dict(enumerate(L)) would yield a dict like {

Why does bufsize=1 not work in subprocess.Popen ?

2006-04-29 Thread I. Myself
I read in the docs that "bufsize=1" causes line buffering. (for subprocess.Popen) The following tiny program launches an executable file and then receives its output. That works, but I want to receive each line as it is ouput, not all of the lines at termination, which is what is

Re: Why does bufsize=1 not work in subprocess.Popen ?

2006-04-29 Thread I. Myself
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, I. Myself wrote: > > >> I read in the docs that "bufsize=1" causes line buffering. (for >> subprocess.Popen) >> >> The following tiny program launches an executable file a

How can I implement a timeout with subprocess.Popen()?

2006-04-30 Thread I. Myself
I want my Python program to invoke a compiled C program, and capture the text output. Here's a fragment from a program that works, using subprocess.Popen: p = Popen(execName, stdout=PIPE) while(1): line = p.stdout.readline() # get next line outfile.write

Can Python kill a child process that keeps on running?

2006-05-01 Thread I. Myself
working pretty well, but I would like to be able to handle this run-on condition. I'm using Windows 2000, but I want my program to be portable to linux. Thanks Mitchell Timin -- I'm proud of http://ANNEvolve.sourceforge.net. If you want to write software, or articles, or d

Re: Can Python kill a child process that keeps on running?

2006-05-01 Thread I. Myself
Serge Orlov wrote: > I. Myself wrote: > >> Suppose we spawn a child process with Popen. I'm thinking of an >> executable file, like a compiled C program. >> Suppose it is supposed to run for one minute, but it just keeps going >> and going. Does Python hav

Re: Can Python kill a child process that keeps on running?

2006-05-02 Thread I. Myself
Steve Holden wrote: > I. Myself wrote: >> Serge Orlov wrote: >> >>> I. Myself wrote: >>> >>> >>>> Suppose we spawn a child process with Popen. I'm thinking of an >>>> executable file, like a compiled C program. >>>

Re: Can Python kill a child process that keeps on running?

2006-05-03 Thread I. Myself
Dennis Lee Bieber wrote: > On Tue, 02 May 2006 17:00:42 GMT, "I. Myself" <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > >> I'm an intermediate Python programmer. Can you explain to me how ctypes >> will let me kill a child p

Re: A critic of Guido's blog on Python's lambda

2006-05-05 Thread I V
On Fri, 05 May 2006 17:26:26 -0700, Xah Lee wrote: > Regarding the lambda in Python situation... conceivably you are right > that Python lambda is perhaps at best left as it is crippled, or even > eliminated. However, this is what i want: I want Python literatures, > and also in W

Re: A critic of Guido's blog on Python's lambda

2006-05-06 Thread I V
sible_ to use > named functions, but in this case its functionality is so simple that > it's clearer to simply type it in place. Why is this expressiveness a > bad thing, aside from its power to wreck an indentation-significant > language? Well, you can do that with python's current, non-

Re: A critic of Guido's blog on Python's lambda

2006-05-07 Thread I V
oducing unnamed functions? Monads are one of those parts of functional programming I've never really got my head around, but as I understand them, they're a way of transforming what looks like a sequence of imperative programming statements that operate on a global state into a sequence of fun

Re: why _import__ only works from interactive interpreter?

2006-05-07 Thread I V
On Sun, 07 May 2006 16:21:01 -0700, [EMAIL PROTECTED] wrote: > So, if this is right, I need to put the .py file to be imported inside > sys.path!! And the relative path will be usedto find the module. > > Can I __import__ providing the absolute path? >>> import sys >>

Re: printing out elements in list

2006-05-08 Thread I V
On Mon, 08 May 2006 00:44:39 -0700, micklee74 wrote: > i have a list with contents like this > alist = ['>QWER' , 'askfhs', '>REWR' ,'sfsdf' , '>FGDG', > 'sdfsdgffdgfdg' ] > > how can i "convert"

SciPy - I need an example of use of linalg.lstsq()

2006-05-09 Thread I. Myself
And it has to run on Windows, so it can't use xplt. I would prefer that it use the simplest multi-dimensional model, z = k + a*x1 + b*x2 + c*x3 + d*x4 Anyone have such a thing? Thanks, Mitchell Timin -- I'm proud of http://ANNEvolve.sourceforge.net. If you want to write so

Re: SciPy - I need an example of use of linalg.lstsq()

2006-05-10 Thread I. Myself
Robert Kern wrote: > I. Myself wrote: > >> And it has to run on Windows, so it can't use xplt. >> > > Huh? > > A. xplt runs on Windows, too. > B. xplt has nothing to do with linalg.lstsq(). > C. xplt has been removed from scipy. > Thank you.

Internet

2008-01-16 Thread i . shoba3
Internet You are using internet http://padmagirl.blogspot.com % -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems getting Python scripts to run on server

2008-01-23 Thread I V
On Wed, 23 Jan 2008 19:41:17 -0800, Yansky wrote: > Hi, I'm having a lot of problems getting any Python scripts to run on my > website. I have put them in the cgi-bin directory and chmodded both the > directory and files to 755. But when I try to access the script, I get a >

Re: how to make format operator % work with unicode as expected

2008-01-26 Thread I V
On Sun, 27 Jan 2008 05:32:40 +, Peter Pei wrote: > Yes, it is true that %s already support unicode, and I did not > contradict that. But it counts the number of bytes instead of > characters, and makes things like %-20s out of alignment. If you don't > understand my assert

  1   2   >