pop langs website ranking

2008-04-22 Thread [EMAIL PROTECTED]
flagging, alternative web ranking site is http://ww.quantcast.com/ . I'll be doing some research sometimes soon on this. Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ ☄ -- http://mail.python.org/mailman/listinfo/python-list

Re: about python

2008-04-22 Thread [EMAIL PROTECTED]
On Apr 22, 10:50 pm, [EMAIL PROTECTED] wrote: > How can python execute in browser? > > Mukul Depends on the browser and which compilers/postprocessors you're willing to use. The Grail browser supports python natively, there are python plugins for some other browsers, and there are

Python development tools

2008-04-23 Thread [EMAIL PROTECTED]
Are there any completely free developent tools for python scripts like IDLE. I have used IDLE , but I want to try out others also. I saw stuff like PyCrust, but I don't see that it can run the script as well. Thanks, RR -- http://mail.python.org/mailman/listinfo/python-list

Re: Python development tools

2008-04-23 Thread [EMAIL PROTECTED]
On 23 avr, 19:39, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Are there any completely free developent tools for python scripts like > IDLE. I have used IDLE , but I want to try out others also. I saw > stuff like PyCrust, but I don't see that it can run the scri

Re: dynamically importing a module and function

2008-04-23 Thread [EMAIL PROTECTED]
On Mon, Apr 21, 2008 at 4:47 PM, John Machin <[EMAIL PROTECTED]> wrote: > > > saved = sys.path > > > sys.path = data['cwd'] > > > module = __import__(data['module']) > > > sys.path = saved > > > > > >

Re: function that accepts any amount of arguments?

2008-04-24 Thread [EMAIL PROTECTED]
On 24 avr, 14:28, malkarouri <[EMAIL PROTECTED]> wrote: > On Apr 24, 12:43 pm, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > > [...] > > > Not quite sure what's the best thing to do in the second case - raise a > > ValueError if args is empty, or silentl

Can you recommend a book?

2008-04-25 Thread [EMAIL PROTECTED]
Hello all, I learned Python with the book "Programming Python" by John Zelle. But today this book is a little bit old. My Python is some kind old. I need a book that will help me brush my style and keep me up to date. I would like one with practical examples. Can you recommend one? -- http://mail.

problem with unicode

2008-04-25 Thread [EMAIL PROTECTED]
Hi everybody, I'm using the win32 console and have the following short program excerpt # media is a binary string (mysql escaped zipped file) >> print media xワユロ[ヨ... (works) >> print unicode(media) UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(12

display monochromatic images wxPython

2008-04-25 Thread [EMAIL PROTECTED]
Dear All, I want to write a GUI program with wxPython displaying an image. But the image I have is monochromatic. When I retrieve the data from the image I end up with a list of integer. Starting from a list of integer and knowing the width and height of the image, how do I display such an image on

nntplib retrieve news://FULL_URL

2008-04-25 Thread [EMAIL PROTECTED]
So I have established a connection to an nntp server and I am retrieving articles to other articles on the server such as news://newsclip.ap.org/[EMAIL PROTECTED] Now I am wondering how I query for that article based off of the url? I assume D8L4MFAG0 is an id of some sort but when I try and

new user

2008-04-25 Thread [EMAIL PROTECTED]
Hi ! This is my first message . I new here . I like python , blender 3d and opengl and is a hobby for me. I have a site www.catalinfest.xhost.ro where i write about me and python , blender ... I hope learning more on this group . Have a nice day ! -- http://mail.python.org/mailman/listinfo/pyth

Re: How do I say "Is this a function"?

2008-04-26 Thread [EMAIL PROTECTED]
callable(func) returns whether something is callable(will return true for classes, functions, and objects with __call__ methods). On Apr 26, 6:25 pm, Dan Bishop <[EMAIL PROTECTED]> wrote: > On Apr 26, 6:17 pm, John Henry <[EMAIL PROTECTED]> wrote: > > > > > How

Re: Question regarding Queue object

2008-04-28 Thread [EMAIL PROTECTED]
I've never used it myself but you may find candygram interesting; http://candygram.sourceforge.net, which AFAIK implements Erlang-style message queues in Python. -- http://mail.python.org/mailman/listinfo/python-list

QA-Test Jobs at Cisco-IronPort

2008-04-29 Thread [EMAIL PROTECTED]
, HTTP, FTP, Telnet, RDBMS, IMAP, POP and/or tested servers. These job openings are in San Bruno. Please contact me directly if you are interested in getting more information. Regards, Brent [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

QA-Test Jobs at Cisco-IronPort

2008-04-29 Thread [EMAIL PROTECTED]
, HTTP, FTP, Telnet, RDBMS, IMAP, POP and/or tested servers. These job openings are in San Bruno. Please contact me directly if you are interested in getting more information. Regards, Brent [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: pop langs website ranking

2008-04-30 Thread [EMAIL PROTECTED]
s about 10 times more visitors than php.net. Quantcast's data on these 3 sites is more bewilding. For example, it estimates that java.com has 5 million unique visitors per month, while giving sun.com 1.5 M only, and php only 78 k. I think quantcast's data here is quite fuckd. Xah [EMAI

Symposium “Image Processing and Analysis” within the ICCES'09 Thailand - Announce & Call for Papers

2008-05-01 Thread [EMAIL PROTECTED]
ract selection. If you intend to submit your work please notify as soon as possible the main organizer of your intention ([EMAIL PROTECTED]); Instructions for authors are available at: http://icces.org/cgi-bin/ices09/pages/guide. With kind regards, Yours sincerely, The Organizers, João Ma

Re: where do I begin with web programming in python?

2008-05-02 Thread [EMAIL PROTECTED]
On May 2, 10:07 am, bvidinli <[EMAIL PROTECTED]> wrote: > i also asked same question in this list last week. > i foundhttp://www.cherrypy.org/to be most suitable for me. > it is basic, easy, pure... > it contains its own webserver, very easy to start. > > others have ma

Phyton module for Windows Event Viewer?

2008-05-03 Thread [EMAIL PROTECTED]
Hi all, Can someone point me in the right direction? I'm looking for a module to monitor the Windows Event Viewer. Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems replacing \ with \\

2008-05-03 Thread [EMAIL PROTECTED]
data into the new postgresql database. This seems to be a reasonable way to do it, because all I have to do is double my 's and my \s (I hope). Thanks On Apr 21, 7:12 pm, Michael Torrie <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hi... > > > Here

Re: confused about self, why not a reserved word?

2008-05-05 Thread [EMAIL PROTECTED]
> the class-thing seems inside out somehow in python. if im doing > foo.Hello() im already saying that im using the class foo because i > did foo=Foo() before and then still when calling Hello() i am > invisibly passing the class itself a s a parameter by default? > just seems backwards and weird.

Re: generator functions in another language

2008-05-05 Thread [EMAIL PROTECTED]
On May 4, 1:11 pm, [EMAIL PROTECTED] wrote: > There is no such thing as a 'frame' per se in C; byte code is > integral. As there is no such thing as suspended state without > frames, and no such thing as generators without suspended state. Well, for implementing generators the

Re: Browser + local Python-based web server vs. wxPython

2008-05-05 Thread [EMAIL PROTECTED]
On 5 mai, 16:22, [EMAIL PROTECTED] wrote: > I'm looking at rewriting some legacy VB applications and am pondering > which of the following techniques to use: > > 1. Browser based GUI with local web server (Browser + > wsgiref.simple_server) (I'm assuming that simple_se

Re: Colors for Rows

2008-05-05 Thread [EMAIL PROTECTED]
> On Tue, 29 Apr 2008 09:33:32 -0500 > "Victor Subervi" <[EMAIL PROTECTED]> wrote: > print '' % bg You'd better learn to use css instead. -- http://mail.python.org/mailman/listinfo/python-list

Bad form to access a *private variable* like _foo?

2008-05-05 Thread [EMAIL PROTECTED]
Bad form to access a *private variable* like _foo? The reason I'm asking is that TurboGears/SQLObject mobel objects have an attribute called "_connection" that must be used to manually commit database stuff e.g. MyObject._connection.commit() It bugs me. I don't know if it is a stylistic fa

What is the purpose of ptyhon in Windows

2008-05-07 Thread [EMAIL PROTECTED]
hi All, I have no idea why I need to learn a new scripting language, nothing much to the sytnax, I need to understand what could be the prupose of another scripting language Cna you please help me with this, Is there a possibilty to work on bigger projects with Python -- http://mail.python.org/mai

Re: Bad form to access a *private variable* like _foo?

2008-05-07 Thread [EMAIL PROTECTED]
On May 6, 3:27 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > There are other ways. For example, > > sqlobject.sqlhub.threadingLocal.connection > > if your system is using multiple threads correctly. Generally speaking, > sqlhub could/should be used. Th

Re: Am I missing something with Python not having interfaces?

2008-05-07 Thread [EMAIL PROTECTED]
On 7 mai, 18:05, Bjoern Schliessmann wrote: > jmDesktop wrote: > > Studying OOP and noticed that Python does not have Interfaces. > > By "OOP", you mean "Java", right? 8) > > > Is that correct? Is my schooling for nought on these OOP concepts > > if I use Python. Am I losing something if I don't

Re: PHP + TinyButStrong Python replacement

2008-05-07 Thread [EMAIL PROTECTED]
On 7 mai, 16:17, pistacchio <[EMAIL PROTECTED]> wrote: > George Sakkis ha scritto: (snip) > > What does it matter if it's a single file or a dozen under a package ? > > "Installation" for pure Python packages can be as simple as copying > > the pack

Re: Idea for P3K

2008-05-07 Thread [EMAIL PROTECTED]
On 7 mai, 21:41, Gary Herron <[EMAIL PROTECTED]> wrote: > Méta-MCI (MVP) wrote: > > Hi! > > >> I don't often feel like using this word > > > Look at languages like OCAML or F # > > > @-salutations > > Well of course, we're all well a

Re: letter frequency counter / your thoughts..

2008-05-07 Thread [EMAIL PROTECTED]
On 7 mai, 18:39, [EMAIL PROTECTED] wrote: > Hello, > > Here is my code for a letter frequency counter. It seems bloated to > me and any suggestions of what would be a better way (keep in my mind > I'm a beginner) would be greatly appreciated.. > > def valsort(x): >

Re: Am I missing something with Python not having interfaces?

2008-05-07 Thread [EMAIL PROTECTED]
On 7 mai, 21:19, Daniel Marcel Eichler <[EMAIL PROTECTED]> wrote: > Am Dienstag 06 Mai 2008 16:07:01 schrieb Mike Driscoll: > > > If so, then it looks like an Interface is a generic class with method > > stubs. You can do that with Python just as easily by creating empty &

Re: letter frequency counter / your thoughts..

2008-05-07 Thread [EMAIL PROTECTED]
On 7 mai, 23:50, Paul Rubin <http://[EMAIL PROTECTED]> wrote: (snip) > Someone else suggested the heapq module, which is a good approach > though it might be considered a little bit high-tech. If you > want to use sorting (conceptually simpler), you could use the > sorted funct

Re: letter frequency counter / your thoughts..

2008-05-07 Thread [EMAIL PROTECTED]
On 7 mai, 23:51, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: (snip) Small improvement thanks to Paul Rubin: from collections import defaultdict from operator import itemgetter def get_letters_frequency(source): letters_count = defaultdict(int) for

Re: explain this function to me, lambda confusion

2008-05-07 Thread [EMAIL PROTECTED]
On 7 mai, 23:38, globalrev <[EMAIL PROTECTED]> wrote: > i have a rough understanding of lambda but so far only have found use > for it once(in tkinter when passing lambda as an argument i could > circumvent some tricky stuff). > what is the point of the following functi

Re: Idea for P3K

2008-05-07 Thread [EMAIL PROTECTED]
On 7 mai, 23:20, John Roth <[EMAIL PROTECTED]> wrote: > On May 7, 3:03 pm, "[EMAIL PROTECTED]" > > > > <[EMAIL PROTECTED]> wrote: > > On 7 mai, 21:41, Gary Herron <[EMAIL PROTECTED]> wrote: > > > > Méta-MCI (MVP) wrote: > > > &

The Importance of Terminology's Quality

2008-05-07 Thread [EMAIL PROTECTED]
• Math Terminology and Naming of Things http://xahlee.org/cmaci/notation/math_namings.html Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ ☄ -- http://mail.python.org/mailman/listinfo/python-list

Re: slicing lists

2008-05-07 Thread [EMAIL PROTECTED]
On May 7, 6:13 pm, Miles <[EMAIL PROTECTED]> wrote: (snipped) > I think Yves meant to return [1, 3, 4, 5, 6], as in Perl's list slicing: > > my @x = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10); > return @x[0, 2..6]; // returns (1, 3, 4, 5, 6) > > This isn't incredib

Re: What is the purpose of ptyhon in Windows

2008-05-08 Thread [EMAIL PROTECTED]
On May 7, 9:35 pm, Max Erickson <[EMAIL PROTECTED]> wrote: > WolfgangZ <[EMAIL PROTECTED]> wrote: > > [EMAIL PROTECTED] schrieb: > >> hi All, > >>http://mail.python.org/mailman/listinfo/python-list > > > At least I'm living in a free country

Special Track “Computational Bioimaging and Visual ization” within the ISVC08 USA - Announce & Call for Papers

2008-05-09 Thread [EMAIL PROTECTED]
o Bellotti, Italy Sabina Tangaro, Italy Samrat Goswami, USA Sónia I. Gonçalves-Verheij, The Netherlands Valentin Brimkov, USA Yongjie Zhan, USA Xavier Roca Marvà, Spain With kind regards, João Manuel R. S. Tavares - University of Porto, Portugal ([EMAIL PROTECTED]) Renato Natal Jorge - Universit

implementation for Parsing Expression Grammar?

2008-05-09 Thread [EMAIL PROTECTED]
it's already in Perl6, and there's also a implementation in Haskell. Is the perl6 PEG is in a usable state? Thanks. Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ ☄ -- http://mail.python.org/mailman/listinfo/python-list

urldecode function?

2008-08-14 Thread [EMAIL PROTECTED]
hi is there a function that does the opposite of urllib.urlencode? for example urldecode('Cat=1&by=down&start=1827') returns a dictionary with {'Cat':1, 'by':'down','start':1827) thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: The python not starting under cmd.exe

2008-08-15 Thread [EMAIL PROTECTED]
Hi! nntpman68 írta: Did you try start test.py from the command line? Normally this tries to behave as if you clicked on the file from the explorer? bye The associations, filetypes are good: H:\Dev\ImgOrder>ASSOC .py .py=Python.File H:\Dev\ImgOrder>ftype python.file python.file="C:\Py

EARN MONEY $1500-$5000 PER MONTH

2008-08-15 Thread [EMAIL PROTECTED]
EARN MONEY $1500-$5000 PER MONTH SIMPLE ONLINE SURVEY CREATE UR ACCOUNT AND EARN IMMEDIATLY * http://www.AWSurveys.com/HomeMain.cfm?RefID=sangeetha777 * -- http://

IMAP

2008-08-15 Thread [EMAIL PROTECTED]
Hi, I am new to python and I need to use it to implement for my dissertation. The idea behind is used to send the message to mail server and look for it's respond time (Microseconds measurement). How to write the response time and throughput in Imap? Thanks ahead of time. -- http://mail.python.org/

ANN: bbfreeze 0.96.3

2008-08-18 Thread [EMAIL PROTECTED]
temexit.de/repo/bbfreeze I've also setup a google group for discussion: It's homepage is http://groups.google.com/group/bbfreeze-users. You can subscribe by sending email to bbfreeze-users- [EMAIL PROTECTED] or ask questions by sending email to [EMAIL PROTECTED] Regards, - Ralf -- http:

ANN: Resolver One 1.2 released

2008-08-19 Thread [EMAIL PROTECTED]
it from our website: <http://www.resolversystems.com/get-it/> (registration no longer required). Best regards, Giles -- Giles Thomas MD & CTO, Resolver Systems Ltd. [EMAIL PROTECTED] +44 (0) 20 7253 6372 Try out Resolver One! <http://www.resolversystems.com/get-it/> 17a Clerkenwell Road, L

Re: exception handling in complex Python programs

2008-08-19 Thread [EMAIL PROTECTED]
On Aug 19, 10:19 am, eliben <[EMAIL PROTECTED]> wrote: > P.S. There's a common case where a method is passed a filename, to do > something with a file (say, read data). Should the method catch the > errors possibly thrown by open(), or leave it to the caller ? You want to l

Python is not stupid the man is it

2008-08-20 Thread [EMAIL PROTECTED]
I see on this link "# Python is Stupid" http://schlake.livejournal.com/809567.html Code is #!/usr/bin/env python for flour in range( 50, 1000 + 1, 5): # Python is Stupid print '%.2f %.2f %.2f' % ( (flour), (flour * 0.6), (flour * 0.02) ) Output is corect :D -- http://mail.python.org/mailma

[tarfile] Difficultis catching an exception

2008-08-20 Thread [EMAIL PROTECTED]
Hello, I'm trying to catch an "EOFError" exception that occurs when reading truncated tarfile. Here's my routine, and below that the callback trace. Note that although I'm trying to catch all TarFile exceptions, the tarfile.EOFError ecxeption, and the global EOFError exception, the program still f

TRying to read sercah results from googles web page

2008-08-20 Thread [EMAIL PROTECTED]
Hi, I am trying to write a BOT to read the search results from Google. When I read from the www.google.com, the code works fine, loads in the web page. When I try to load in a url with the search results, http://www.google.com/search?hl=en&q=ted', I get a web page that says I do not have permiss

>>>>>>>>FREE MONEY LINKS <<<<<<<<<<

2008-08-20 Thread [EMAIL PROTECTED]
LINK <<< LINK >>> LINK <<< LINK >>$ FREE MONEY RIGISTERED $<<< FREE Registered On Site http://rex.boobslove.info/voyngojchngogua/vegas/girl/sex/videos/ http://www.unregisteredlookup.com/refunded_domains/2007/march/17/com/com_march_17_2007

Re: exception handling in complex Python programs

2008-08-20 Thread [EMAIL PROTECTED]
On Aug 19, 4:12 pm, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Tue, 19 Aug 2008 11:07:39 -0700, [EMAIL PROTECTED] wrote: > >   def do_something(filename): > >     if not os.access(filename,os.R_OK): > >       return err(...) > >     f =

Re: exception handling in complex Python programs

2008-08-20 Thread [EMAIL PROTECTED]
On Aug 20, 10:59 am, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > Oh goodie. Another programmer who goes out of his way to make it hard for > other programmers, by destroying duck-typing. Remember kids: personal attacks are cruise control for cool. So this was

Re: exception handling in complex Python programs

2008-08-21 Thread [EMAIL PROTECTED]
On Aug 20, 10:13 pm, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > It might not be enjoyable to have a sarcastic remark directed your way, > but it isn't a personal attack. Just because a comment is about something > you do doesn't make it a persona

Re: running exe file

2008-08-22 Thread [EMAIL PROTECTED]
On Aug 22, 12:12 am, Saurabh Sharma <[EMAIL PROTECTED]> wrote: > How can I run .exe file from my python script? import os os.startfile('file.exe') The downside is that it doesn't work on the mac.. but it does work on stuff like os.startfile('notepad.txt'

need help using enumerate ??

2008-08-22 Thread [EMAIL PROTECTED]
I am trying to take some data in file that looks like this command colnum_1 columnum_2 and look for the command and then cange the value in the collum(word) number indicated. I am under the impression I need enumerate but I am not sure what to do with it any help would be nice. import sys pa

I am trying to install the mechanize lib so I can use python to do webbrowseing

2008-08-22 Thread [EMAIL PROTECTED]
Hi, I am trying to install the mechanize lib so I can use python to do webbrowseing. First I set up easy_install When I ran the script, it download the files ok, then I got these error messages sun is not reganized as a internal command I did a sercah on sun.* and the sercah came up empty, am I m

Trouble importing modules in IDLE (Win32)

2008-08-22 Thread [EMAIL PROTECTED]
Hello, I wrote aprogram that imports odbc and dbi. Originally I used PyWin, but now I prefer IDLE for working in Windows. Anyway, when I start my program from IDLE, it can't import the odbc and dbi modules. However, when I restart the shell and type "import odbc" at the prompt by, I don't get an e

Re: Usual practice: running/testing modules in a package

2008-08-22 Thread [EMAIL PROTECTED]
On 18 ago, 08:28, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > A package is a library, meant to be imported by some other code. Your main > script (or the testing code) is a program, it uses (i.e. imports) the library. You are right that a module is a library and

Re: need help using enumerate ??

2008-08-22 Thread [EMAIL PROTECTED]
On Aug 22, 7:56 am, Chris <[EMAIL PROTECTED]> wrote: > On Aug 22, 1:14 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > > > I am trying to take some data in   file that looks like this > > > command colnum_1 columnum_2 > &g

Re: problems debugging python script on server

2008-08-23 Thread [EMAIL PROTECTED]
> cgitb.enable() to try to find the error, but with no success. I'm > really at a loss as to why it's generating this error. Apache's error_log and access_log are your friends. In this particular case your script breaks something http-server related: premature end of headers, incorrect permissio

tax is importent life in after we family

2008-08-24 Thread [EMAIL PROTECTED]
http://www.moneymaking4.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Hai you looking Real Esate Agents India

2008-08-24 Thread [EMAIL PROTECTED]
http://www.moneymaking4.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

get more info for your bright future

2008-08-24 Thread [EMAIL PROTECTED]
http://www.moneymaking4.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

get more info for your bright future

2008-08-24 Thread [EMAIL PROTECTED]
http://www.moneymaking4.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

you play football games click here

2008-08-24 Thread [EMAIL PROTECTED]
http://www.moneymaking4.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

heavanly place

2008-08-24 Thread [EMAIL PROTECTED]
http://www.moneymaking4.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

gender beutiful clever

2008-08-24 Thread [EMAIL PROTECTED]
http://www.moneymaking4.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

so many model click here

2008-08-24 Thread [EMAIL PROTECTED]
http://www.moneymaking4.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Filling in Degrees in a Circle (Astronomy)

2008-08-24 Thread [EMAIL PROTECTED]
On Aug 23, 10:11 am, Scott David Daniels <[EMAIL PROTECTED]> wrote: > W. eWatson wrote: > > ... > > I'm working on this now, but my knowledge of python needs refreshing. > > Right now I have a file of all the az,el data I've collected, and I'd >

Re: Trouble importing modules in IDLE (Win32)

2008-08-25 Thread [EMAIL PROTECTED]
On Aug 22, 2:45 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] schrieb: > > > > > Hello, > > > I wrote aprogram that imports odbc and dbi. Originally I used PyWin, > > but now I prefer IDLE for working in Windows. Anyway

Re: Trouble importing modules in IDLE (Win32)

2008-08-25 Thread [EMAIL PROTECTED]
On Aug 22, 10:43 pm, Terry Reedy <[EMAIL PROTECTED]> wrote: > Diez B. Roggisch wrote: > By shell, he means the IDLE shell. But this is the direction to look > first. In the IDLE shell (3.0) those two lines give me the Python > directory, the same as the command line interprete

python multitask

2008-08-26 Thread [EMAIL PROTECTED]
Hi ! I want use many comands in same python script . I want to use openoffice and pyuno . I try this >>> cmdoo="openoffice.org -accept='socket,host=localhost,port=2002;urp;'" >>> subprocess.call(cmdoo, shell=True) but i need to execute another comand and need to stop subprocess Thank you ! -- http:

How can this script fail?

2008-08-27 Thread [EMAIL PROTECTED]
Hello, it's still me, being unable to load certain modules (for instance, odbc) in scripts that run though IDLE. I've now written a self- containing script that illustrates the whole problem: -- import sys, os # find odbc module in Python distribution tree: for ro

Re: How can this script fail?

2008-08-27 Thread [EMAIL PROTECTED]
On Aug 27, 1:08 pm, "M.-A. Lemburg" <[EMAIL PROTECTED]> wrote: > I don't think this is related to IDLE or your setup. The odbc > module is very old and unmaintained, so it's possible that Windows > doesn't find some system DLLs needed for it to work. Ple

Getting references to obect instances into a list

2008-08-27 Thread [EMAIL PROTECTED]
Hi, I would like to get the references to objets to put in a huge data structure (like a list or a heap for example). My objective is to use as less memory as possible as I have to manage huge amount of entries in my data structure and need to use the same elsewhere. If I were coding in C++, it w

Re: Getting references to obect instances into a list

2008-08-27 Thread [EMAIL PROTECTED]
Thanks for your reply Simon. I will read the article you told me to but first, please, have a look at this snippet: >>> m = [2,3,4] >>> p = ['a','b','c'] >>> q = [m,p] >>> q [[2, 3, 4, 'a', 'b', 'c'], ['a', 'b', 'c']] >>> del p >>> q [[2, 3, 4, 'a', 'b', 'c'], ['a', 'b', 'c']] >>> How come q is

Re: Getting references to obect instances into a list

2008-08-27 Thread [EMAIL PROTECTED]
Ok then, my mistake: I thought 'del' was deleting the object AND releasing the name for later user. Sorry! This is what I should have tried in the first place: >>> m = [2,3,4] >>> p = ['a','b','c'] >>> l = [m,p] >>> l [[2, 3, 4], ['a', 'b', 'c']] >>> p.append('w') >>> p ['a', 'b', 'c', 'w'] >>> l

[Q] How to ignore the first line of the text read from a file

2008-08-27 Thread [EMAIL PROTECTED]
Hello, I am new to Python and have one simple question to which I cannot find a satisfactory solution. I want to read text line-by-line from a text file, but want to ignore only the first line. I know how to do it in Java (Java has been my primary language for the last couple of years) and followi

PyImport_ImportModule deadlocks

2008-08-28 Thread [EMAIL PROTECTED]
Hey all, I have an embedded Python shell and everything works fine, however, in my stdout catcher (in C to grab tracebacks) for some reason when I do a : PyImport_ImportModule( "sys" ) It deadlocks the process, is there a need for me to acquire locks inside of my stdout catching function before

Checking if the file is a symlink fails

2008-08-28 Thread [EMAIL PROTECTED]
check if file is a symlink Here is a small piece of code: import os from stat import * filePath = "/home/xyz/symLinkTest" mode = os.stat(filePath)[ST_MODE] print 'Find using os.path : ',os.path.islink(filePath) print 'Find using mode :', S_ISLNK(mode) print 'Is this a regular file : ' S_ISREG(

Re: Checking if the file is a symlink fails

2008-08-28 Thread [EMAIL PROTECTED]
On Aug 28, 3:11 pm, Christian Heimes <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > File symLinkTest is a symbolic link. > > > Why S_ISLNK(mode) returns False and S_ISREG(mode) returns True ? > > Because you are using os.stat() instead of os.lstat(). >

Re: Fastest way to write huge files

2008-08-28 Thread [EMAIL PROTECTED]
On Aug 28, 5:35 pm, "Mohamed Yousef" <[EMAIL PROTECTED]> wrote: > Hello , > > let's say , I'm moving large files through network between devices > what is the fastest way to do this ? > what i came up with :- > > 1) using regular file operations wit

Re: Checking if the file is a symlink fails

2008-08-29 Thread [EMAIL PROTECTED]
On Aug 28, 10:20 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Do you mean the following is deprecated ? > >http://docs.python.org/lib/module-stat.html > > >>From the documentation - > > > S_ISLNK( mode) > >     Ret

Re: problem with plotting

2008-08-29 Thread [EMAIL PROTECTED]
On Aug 29, 6:01 am, Anish Chapagain <[EMAIL PROTECTED]> wrote: > hi, > I'm getting problem with the code below which after displaying graph > plotted in external window, doesnot closes itself, even after closing > the window of plotting the main python window shows proce

Re: __stack_chk_fail_local

2008-08-30 Thread [EMAIL PROTECTED]
Thanks! I've resolved the problem with libraries but... I've still error with this message: ImportError: ./_python_grass6.so: undefined symbol: __stack_chk_fail_local exuse me, I'm not a guru. Gianluca -- Initial Header --- >From : "Marco Bizzarr

sys.stdin on windows

2008-09-03 Thread [EMAIL PROTECTED]
I often grep particular patterns out of large logfiles and then pipeline the output to sort and uniq -c I thought today to knock up a script to do the counting in a python dict. This seems work in linux $ cat count.py #!/usr/bin/env python import sys from collections import defaultdict accumulato

Re: sys.stdin on windows

2008-09-03 Thread [EMAIL PROTECTED]
On Sep 3, 11:16 pm, Tim Golden <[EMAIL PROTECTED]> wrote: > Gabriel Genellina wrote: > > En Wed, 03 Sep 2008 06:16:03 -0300, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> escribi : > > >> I often grep particular patterns out of large logfiles and then >

Download movies

2008-09-03 Thread [EMAIL PROTECTED]
Download movies http://gpirate.com http://www.gpirate.com/search?hl=en&q=naruto+shippuden&btnG=Search -- http://mail.python.org/mailman/listinfo/python-list

[ANN] The Python Papers, Volume 3 Issue 2

2008-09-04 Thread [EMAIL PROTECTED]
Hi everyone After a long wait of nearly 5 month, we are back in business to bring the latest edition of The Python Papers - Volume 3 Issue 2 (http:// ojs.pythonpapers.org/index.php/tpp/issue/current). >From this issue onwards, we will be having only 3 issues per year instead of 4. This is in comp

[ANN] The Python Papers Vol 3 Iss 2 in one PDF

2008-09-07 Thread [EMAIL PROTECTED]
Hi everyone Our original release of TPP Volume 3 Issue 2 is in the form of one PDF per article. A number of readers had kindly requested for a parallel release for the entire issue in a single PDF for easy transport. Despite prevalent "industrial standards" for one PDF per article such as IEEE an

Updating python dictionary

2008-09-07 Thread [EMAIL PROTECTED]
Hello... I have a dict of key/values and I want to change the keys in it, based on another mapping dictionary. An example follows: MAPPING_DICT = { 'a': 'A', 'b': 'B', } my_dict = { 'a': '1', 'b': '2' } I want the finished my_dict to look like: my_dict = { 'A': '1', 'B'

Hey guys!

2008-09-08 Thread [EMAIL PROTECTED]
hey guys! I have this site www.drachensee.info and i keep posting on the ubuntu, the latest open soruce buzz.. i post on stuff like editing the grub menu and other linux related stuff.. so drop in and drop ur comments ;-] -- http://mail.python.org/mailman/listinfo/python-list

Trying to make a spider using mechanize

2008-09-08 Thread [EMAIL PROTECTED]
Hi, I can read the home page using the mechanize lib. Is there a way to load in web pages using filename.html instad of servername/ filename.html. Lots of time the links just have the file name. I'm trying to read in the links name and then vsit those pages. here is the sample code I am ussing

Re: Updating python dictionary

2008-09-08 Thread [EMAIL PROTECTED]
On Sep 8, 10:20 am, John Machin <[EMAIL PROTECTED]> wrote: > On Sep 8, 10:47 am, MK Bernard <[EMAIL PROTECTED]> wrote: > > > > > On Sep 7, 3:37 pm, John Machin <[EMAIL PROTECTED]> wrote: > > > > On Sep 8, 7:51 am, "[EMAIL PROTECTED]" <[E

Re: F2PY ?? Has anyone worked with the F2PY generator?

2008-09-08 Thread [EMAIL PROTECTED]
On Sep 8, 7:19 pm, "Blubaugh, David A." <[EMAIL PROTECTED]> wrote: > Pauli, > > Yes,  I am utilizing the windows environment.  I cannot install f2py.   > > I obtain the following error when I try to execute the setup.py file > within the f2py folder located wi

Re: Problems downloading and installing win32api

2008-09-08 Thread [EMAIL PROTECTED]
On Sep 8, 2:41 pm, Emile van Sebille <[EMAIL PROTECTED]> wrote: > brianrpsgt1 wrote: > > I have attempted downloading and installing several different version > > of the win32api from Source Forge, > > Whe win32 tools come bundled with ActiveState's python distribu

Generator functions and user interfaces

2008-09-10 Thread [EMAIL PROTECTED]
I'm trying to implement an interactive graph visualisation tool using matplotlib. I want to use a spring layout, where nodes repulse each other and edges act as springs to pull connected nodes together. Usually, this algorithm runs through a number of iterations of attraction/repulsion to allow th

Python platform.

2008-09-11 Thread [EMAIL PROTECTED]
Hello all; I wonder if there is a platform written in python. The equivalent of the Netbeans platform http://platform.netbeans.org/ in the Python world. Do you know such a thing? Thanks a lot. Jonathan. -- http://mail.python.org/mailman/listinfo/python-list

<    42   43   44   45   46   47   48   49   50   >