Re: re-importing modules

2007-04-30 Thread John Nagle
Graham Dumpleton wrote: > On May 1, 3:51 pm, Paul Rubin wrote: > >>Graham Dumpleton <[EMAIL PROTECTED]> writes: >> >>>That it doesn't reload a parent when a child changes may be fine in an >>>interactive debugger, but can cause problems if not done where >>>automatic rel

Want to build a binary header block

2007-04-30 Thread Bob Greschke
This is the idea Block = pack("240s", "") Block[0:4] = pack(">H", W) Block[4:8] = pack(">H", X) Block[8:12] = pack(">B", Y) Block[12:16] = pack(">H", Z)) but, of course, Block, a str, can't be sliced. The real use of this is a bit more complicated such that I can't just fill in a

Re: re-importing modules

2007-04-30 Thread Graham Dumpleton
On May 1, 3:51 pm, Paul Rubin wrote: > Graham Dumpleton <[EMAIL PROTECTED]> writes: > > That it doesn't reload a parent when a child changes may be fine in an > > interactive debugger, but can cause problems if not done where > > automatic reloading is being done in a lon

Re: Problem with PyQt4

2007-04-30 Thread [EMAIL PROTECTED]
I rebuild them from source now. Hope this can help me. -- http://mail.python.org/mailman/listinfo/python-list

Re: re-importing modules

2007-04-30 Thread Paul Rubin
Graham Dumpleton <[EMAIL PROTECTED]> writes: > That it doesn't reload a parent when a child changes may be fine in an > interactive debugger, but can cause problems if not done where > automatic reloading is being done in a long running web application > where you want to avoid server restarts. O

Re: sqlite for mac?

2007-04-30 Thread Alex Martelli
7stud <[EMAIL PROTECTED]> wrote: > Does sqlite come in a mac version? Sure, and it's part of the Python 2.5 for the Mac that you can download from python.org. Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: re-importing modules

2007-04-30 Thread Graham Dumpleton
On May 1, 2:17 pm, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Tue, 01 May 2007 00:32:20 +, John Nagle wrote: > > [EMAIL PROTECTED] wrote: > > >>>In addition to the warning that reload() does not recursively reload > >>>modules that the reloaded module depends on, be warned that reloading a

Re: re-importing modules

2007-04-30 Thread John Nagle
Steven D'Aprano wrote: > I'd hate for reload to disappear, it is great for interactive > development/debugging, at least under some circumstances. (If you have > complex and tangled class hierarchies, it might not be powerful enough.) > > As for the semantics being awful, I disagree. reload() does

Re: Free Windows Vista Download

2007-04-30 Thread johannes
Spin Dryer wrote: > > On Sun, 29 Apr 2007 20:23:22 -0400, ["Alvin Bruney [MVP]" without an email address>] said :- > > >That's a misleading post, you should indicate that this is an evaluation > >copy. > > You did it again Sonny, making yourself look a total fool. > > Will you stop top posti

sqlite for mac?

2007-04-30 Thread 7stud
Does sqlite come in a mac version? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: re-importing modules

2007-04-30 Thread Steven D'Aprano
On Tue, 01 May 2007 00:32:20 +, John Nagle wrote: > [EMAIL PROTECTED] wrote: > >>>In addition to the warning that reload() does not recursively reload >>>modules that the reloaded module depends on, be warned that reloading a >>>module does not magically affect any functions or objects from t

Re: Video: Professor of Physics Phd at Cal Tech says: 911 Inside Job

2007-04-30 Thread [EMAIL PROTECTED]
On Apr 24, 10:13 pm, [EMAIL PROTECTED] wrote: > Cal Tech is the ELITE of ELITE in physics. > > If Feynman were alive, he would point his finger straight at the 911 > criminal operators, the yank bastards themselves ... If Feynmann alive were he would be wrighting review crap for PBS.. Si

Re: if __name__ == 'main': & passing an arg to a class object

2007-04-30 Thread Steven D'Aprano
On Sun, 29 Apr 2007 07:32:44 -0400, Bart Willems wrote: > gtb wrote: >> appear at the end of many examples I see. Is this to cause a .class >> file to be generated? > This might be obvious, but no one else mentioned it: the Python > interpreter cannot execute code that it hasn't compiled yet, whi

Re: re-importing modules

2007-04-30 Thread John Nagle
Gabriel Genellina wrote: > En Mon, 30 Apr 2007 21:32:20 -0300, John Nagle <[EMAIL PROTECTED]> > escribió: > >> [EMAIL PROTECTED] wrote: >> In addition to the warning that reload() does not recursively reload modules that the reloaded module depends on, be warned that reloading a m

Re: Is it possible to merge xrange and slice?

2007-04-30 Thread Steven D'Aprano
On Mon, 30 Apr 2007 21:00:15 +, BJörn Lindqvist wrote: > On 30 Apr 2007 11:02:19 -0700, Bas <[EMAIL PROTECTED]> wrote: >> stupid question, but would it be possible to somehow merge xrange >> (which is supposed to replace range in py3k) and slice? Both have very >> similar start, stop and step

Re: Master's Thesis Help Needed

2007-04-30 Thread James Stroud
RobJ wrote: > On Apr 30, 12:00 am, [EMAIL PROTECTED] (Alex Martelli) wrote: > >>RobJ <[EMAIL PROTECTED]> wrote: >> >>>http://pyschool.robj.webfactional.com/ >> >>Things start on a pretty bad note when I'm asked to select my OS: >>Ubuntu Linux >>Windows XP >> >>I'm running MacOSX. What now? Why i

RE: Dict Copy & Compare

2007-04-30 Thread Steven D'Aprano
On Mon, 30 Apr 2007 12:50:58 -0500, Hamilton, William wrote: >> On quick question, how can I order a dict by the 'values' (not keys) >> before >> looping? Is that possible? >> > > The easiest way I can think of is to create a new dict that's reversed. > > reverseDict = {} > for key in dict1: >

Re: relative import broken?

2007-04-30 Thread Alex Martelli
Alan Isaac <[EMAIL PROTECTED]> wrote: > "Alex Martelli" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > To me, it makes sense: if a module is top-level, and thus not part of a > > package (and __main__ in particular is always in that state), then > > saying "import from the curre

Re: Video: Professor of Physics Phd at Cal Tech says: 911 Inside Job

2007-04-30 Thread Major Quaternion Dirt Quantum
the towers collapsed into a subway that most of the employees probably used to get to work, with all sorts of ancilliary services (parking, paintball facilities etc.) -- it was huge. so, shouldn't there have been some secondary effects, such as structural damage to bldg. 7, that also set it on fir

Re: Video: Professor of Physics Phd at Cal Tech says: 911 Inside Job

2007-04-30 Thread Major Quaternion Dirt Quantum
Jones' report seems to support this idea, that there was molten metal under the pile, some where. there is another thing, documented with multiple photos, that seems to be related, although they weren't *still* molten. > > how is it that the metal was still molten, > > after weeks? > I say it's

Antigen Notification: Antigen found a message matching a filter

2007-04-30 Thread Antigen_VITORIA
Microsoft Antigen for Exchange found a message matching a filter. The message is currently Detected. Message: "Python_list Digest_ Vol 44_ Issue 2" Filter name: "KEYWORD= spam: xxx " Sent from: "[EMAIL PROTECTED]" Folder: "SMTP Messages\Inbound And Outbound" Location: "ITURAN/First Administrative

Re: module name available in 'from ... import ...' statement

2007-04-30 Thread kwatch
Thanks Carsten and Gabriel, the answer is 'sys.modules'. import sys, os from path import sep# ImportError: No module named path sys.modules['path'] = os.path from path import sep# (no error) --

Re: re-importing modules

2007-04-30 Thread Gabriel Genellina
En Mon, 30 Apr 2007 21:32:20 -0300, John Nagle <[EMAIL PROTECTED]> escribió: > [EMAIL PROTECTED] wrote: > >>> In addition to the warning that reload() does not recursively reload >>> modules that the reloaded module depends on, be warned that reloading a >>> module does not magically affect any

Re: logging SMTPHandler and Authentication

2007-04-30 Thread Gabriel Genellina
En Mon, 30 Apr 2007 21:08:34 -0300, <[EMAIL PROTECTED]> escribió: > I'm new to Python, but I've been thrown into coding a pretty > complicated regression testing script. I need to email the log of the > daily test to the code owners. I thought I could use SMTPHandler for > this, but our email sy

Re: [Q] module name available in 'from ... import ...' statement

2007-04-30 Thread Gabriel Genellina
En Mon, 30 Apr 2007 20:19:54 -0300, kwatch <[EMAIL PROTECTED]> escribió: > Could you teach me the condition of module name which is available > in 'from ... import ...' statement? > > The goal what I want to do is to create a module by 'new' module > and specify that module name in 'from ...' stat

Re: [Q] module name available in 'from ... import ...' statement

2007-04-30 Thread Carsten Haese
On Mon, 2007-04-30 at 16:19 -0700, kwatch wrote: > [...] > The goal what I want to do is to create a module by 'new' module > and specify that module name in 'from ...' statement. > > > # create a module > import new > foo = new.module('foo'

Re: Launching an independent Python program in a cross-platform way (including mac)

2007-04-30 Thread André
As promised, here's the solution I came up with for launching an external python script. The function below has been edited (read simplified slightly) from the original one used in Crunchy. Note that while the original has been tested, the following has not- but it should provide a good start *if

Re: socket module - recv() method

2007-04-30 Thread Gabriel Genellina
En Mon, 30 Apr 2007 11:22:23 -0300, <[EMAIL PROTECTED]> escribió: > All of the client apps on which this technique is employed are very > predictable in the sense that the client apps always know in advance > the value of endOfMessageText. > > Questions: > 1) is it theoretically possible that a c

Re: re-importing modules

2007-04-30 Thread John Nagle
[EMAIL PROTECTED] wrote: >>In addition to the warning that reload() does not recursively reload >>modules that the reloaded module depends on, be warned that reloading a >>module does not magically affect any functions or objects from the old >>version that you may be holding on to. Maybe rel

logging SMTPHandler and Authentication

2007-04-30 Thread james . p . news
I'm new to Python, but I've been thrown into coding a pretty complicated regression testing script. I need to email the log of the daily test to the code owners. I thought I could use SMTPHandler for this, but our email system requires authentication. I have not been able to figure out how to lo

Re: regular expression problem

2007-04-30 Thread Gabriel Genellina
En Mon, 30 Apr 2007 19:16:58 -0300, John Davis <[EMAIL PROTECTED]> escribió: > Hi all, > I have a large logged string "str". I would like to strip down "str" so > that > it contains only the lines that have "ERROR" in them. Could somebody > give me > and indication of how to do this? Forget

Re: python TK scrollbar problem

2007-04-30 Thread James Stroud
Ray wrote: > Hi, > > would someone tell me how to make scrollbar work under grid? > I think I'm missing something to connect scrollbar with the grid. > following is some sample code. it shows the scrollbar, but it do not work. > > Thanks a lot for the help! > > Ray > > #code begin >

Re: Master's Thesis Help Needed

2007-04-30 Thread Grant Edwards
On 2007-04-30, RobJ <[EMAIL PROTECTED]> wrote: >> Things start on a pretty bad note when I'm asked to select my >> OS: Ubuntu Linux Windows XP >> >> I'm running MacOSX. What now? Why is there no choice "none >> of the above"...?! > Sorry about that. I'll add on to the front page what 2 OSs are

Re: [ANN] Update to Python Quick Reference Card (for Python 2.4) (v0.67)

2007-04-30 Thread Stef Mientki
hi Laurent, this is really a work of Art, thank you very much !! Oh, wouldn't it be nice to have reference cards of all library packages ;-) cheers Stef Mientki Laurent Pointal wrote: > PQRC (Python Quick Reference Card) is a condensed documentation for > Python and its main libraries, targett

Re: Master's Thesis Help Needed

2007-04-30 Thread RobJ
On Apr 30, 12:00 am, [EMAIL PROTECTED] (Alex Martelli) wrote: > RobJ <[EMAIL PROTECTED]> wrote: > >http://pyschool.robj.webfactional.com/ > > Things start on a pretty bad note when I'm asked to select my OS: > Ubuntu Linux > Windows XP > > I'm running MacOSX. What now? Why is there no choice "non

[Q] module name available in 'from ... import ...' statement

2007-04-30 Thread kwatch
What is the condition of module name which is available in 'from .. import ..' statement ? import os print os.path # from posixpath import sep # (no errors) from os.path import sep# (no errors, wow!) path = os.path

Re: Python-URL! - weekly Python news and links (Apr 30)

2007-04-30 Thread Roger Upole
"Cameron Laird" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In article <[EMAIL PROTECTED]>, > Roger Upole <[EMAIL PROTECTED]> wrote: >>Cameron Laird wrote: >>> QOTW: "That is just as feasible as passing a cruise ship through a phone >>> line." - Carsten Haese, on transporting a

python TK scrollbar problem

2007-04-30 Thread Ray
Hi, would someone tell me how to make scrollbar work under grid? I think I'm missing something to connect scrollbar with the grid. following is some sample code. it shows the scrollbar, but it do not work. Thanks a lot for the help! Ray #code begin from Tkinter import * def mygrid(t

Re: Interop between C# and Python

2007-04-30 Thread Joshua J. Kugler
On Friday 27 April 2007 17:09, urielka wrote: > i need a easy way to write a Python Service(be it SOAP or JSONRPC or > whatever) but i need to easily access it from C#,i created a web > service in ZSI(which is really easy) like this: You might want to take a look at Thrift too: http://developers.

Re: regexp match string with word1 and not word2

2007-04-30 Thread MRAB
On Apr 30, 6:49 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > In <[EMAIL PROTECTED]>, Flyzone wrote: > > for y in range(0, len(skip_lst) ): > > if (re.search(skip_lst[y], line)): > > skip=1 > >break > > Pleas

regular expression problem

2007-04-30 Thread John Davis
Hi all, I have a large logged string "str". I would like to strip down "str" so that it contains only the lines that have "ERROR" in them. Could somebody give me and indication of how to do this? Thx John. = -- http://mail.python.org/mailman/listinfo/python-list

Re: re-importing modules

2007-04-30 Thread kyosohma
On Apr 30, 3:00 pm, Carsten Haese <[EMAIL PROTECTED]> wrote: > On Mon, 2007-04-30 at 12:44 -0700, [EMAIL PROTECTED] wrote: > > On Apr 30, 12:49 pm, "T. Crane" <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > When troubleshooting code that's saved in a text file, I often find that I > > > want to make a

Re: Python-URL! - weekly Python news and links (Apr 30)

2007-04-30 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Roger Upole <[EMAIL PROTECTED]> wrote: >Cameron Laird wrote: >> QOTW: "That is just as feasible as passing a cruise ship through a phone >> line." - Carsten Haese, on transporting a COM object across a network. >> Less vividly but more formally, as he notes, "A COM

removing module

2007-04-30 Thread Bart
I have static linked module in application plugin. Thirst thing how to remove this module from memory after Py_Finalize(); Because there is segfault after - deactivate,activate this plugin. PyImport_AppendInittab("module_name",init_module_name); Py_Initialize(); How to check what provides this m

Re: Is it possible to merge xrange and slice?

2007-04-30 Thread BJörn Lindqvist
On 30 Apr 2007 11:02:19 -0700, Bas <[EMAIL PROTECTED]> wrote: > stupid question, but would it be possible to somehow merge xrange > (which is supposed to replace range in py3k) and slice? Both have very > similar start, stop and step arguments and both are lightweight > objects to indicate a range.

zipfile: grabbing whole directories

2007-04-30 Thread Dan Thomas-Paquin
Hi, The built in zipfile.write doesn't seem to like taking a directory instead of a filename. for example: for each in listofdir: archive.write(each) blows up when one of the items listed in listofdir is a subdirectory. File "/usr/local/lib/python2.4/zipfile.py", line 405,

Re: Python-URL! - weekly Python news and links (Apr 30)

2007-04-30 Thread Roger Upole
Cameron Laird wrote: > QOTW: "That is just as feasible as passing a cruise ship through a phone > line." - Carsten Haese, on transporting a COM object across a network. > Less vividly but more formally, as he notes, "A COM object represents a > connection to a service or executable that is running

Re: Is it possible to merge xrange and slice?

2007-04-30 Thread Matimus
> Which problems am I overlooking that prevent this? 1. Generators and slices serve two distinctly different tasks. 2. They may have the similar interfaces, but are implemented differently. Each optimized for its specific task. You are essentially asking "Why not do it?", to which I respond "Why

Re: re-importing modules

2007-04-30 Thread Carsten Haese
On Mon, 2007-04-30 at 12:44 -0700, [EMAIL PROTECTED] wrote: > On Apr 30, 12:49 pm, "T. Crane" <[EMAIL PROTECTED]> wrote: > > Hi, > > > > When troubleshooting code that's saved in a text file, I often find that I > > want to make a change to it, re-save it, then reimport it. However, just > > typin

Re: re-importing modules

2007-04-30 Thread kyosohma
On Apr 30, 12:49 pm, "T. Crane" <[EMAIL PROTECTED]> wrote: > Hi, > > When troubleshooting code that's saved in a text file, I often find that I > want to make a change to it, re-save it, then reimport it. However, just > typing > > import myTestCode > > doesn't always seem to import the newer vers

re-importing modules

2007-04-30 Thread T. Crane
Hi, When troubleshooting code that's saved in a text file, I often find that I want to make a change to it, re-save it, then reimport it. However, just typing import myTestCode doesn't always seem to import the newer version. Is it supposed to? I find that right now I often have to close my i

Online Mafia Kills 13 drive by shootings

2007-04-30 Thread Leisure . 206
http://duhmafia.blogspot.com/ - Does the online Mafia Exist? -- http://mail.python.org/mailman/listinfo/python-list

Re: Re-running script from Tk shell

2007-04-30 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, gtb <[EMAIL PROTECTED]> wrote: > I am testing a simple script by running it in the Tk shell. It imports > a class from another module. I edit and save the file from which I > import. When I want to re-run I delete the Tk window and run the > module from the Edit w

Re: Any Good tools to create CSV Files?

2007-04-30 Thread Aahz
In article <[EMAIL PROTECTED]>, Bart Willems <[EMAIL PROTECTED]> wrote: >Aahz wrote: >> >> In all fairness, the csv module is new in Python 2.3, and I'm sure I'm >> not the only person still using Python 2.2 for production. > >That is true, on the other hand, Reportlab is made for at least Python

Re: How to pass in argument to timeit.Timer

2007-04-30 Thread [EMAIL PROTECTED]
On Apr 30, 1:24 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Apr 28, 3:37 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > wrote: > > > > > En Sat, 28 Apr 2007 15:48:11 -0300, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> escribió: > > > > I have a function in my python like this: > > > def cal

Re: How to convert float to sortable integer in Python

2007-04-30 Thread John Machin
On Apr 30, 11:23 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > DEAR SIR, > > I SAW YOUR INTERNET QUESTION AND I HAVE THE SAME TROUBLE. > > CUOLD YOU HELP ME TO MAKE A FLOAT TO INTEGER CONVERTION? > > DO YOU HAVE ANY EXEL FILE THAT CAN DO THAT? > > REGARDS AND THANKS A LO

Re: How to pass in argument to timeit.Timer

2007-04-30 Thread [EMAIL PROTECTED]
On Apr 28, 3:37 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sat, 28 Apr 2007 15:48:11 -0300, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> escribió: > > > I have a function in my python like this: > > def callFunc(line, no): > > # some code > > > And I want to do a performance test like

Re: Python ODBC

2007-04-30 Thread Harry George
[EMAIL PROTECTED] writes: > On Apr 29, 11:34 am, Harlin Seritt <[EMAIL PROTECTED]> wrote: > > Is there a Python odbc module that will work on Linux? I have a jdbc > > connection to a DB2 server. I am looking hopefully for an open source > > solution and not a commercial one. > > > > Thanks, > > >

Re: Restricting the alphabet of a string

2007-04-30 Thread John Machin
On Apr 30, 9:53 pm, "Nathan Harmston" <[EMAIL PROTECTED]> wrote: > Hi, > > I ve being thinking about playing around with bit strings but use in > some encoding problems I m considering and was trying to decide how to > implement a bit string class. Is there a library out there for doing > basic thi

Is it possible to merge xrange and slice?

2007-04-30 Thread Bas
Hi, stupid question, but would it be possible to somehow merge xrange (which is supposed to replace range in py3k) and slice? Both have very similar start, stop and step arguments and both are lightweight objects to indicate a range. But you can't do a[xrange(10,20)] and 'for i in slice(10,20)'. T

Re: regexp match string with word1 and not word2

2007-04-30 Thread Steven Bethard
Flyzone wrote: > On 30 Apr, 17:11, Steven Bethard <[EMAIL PROTECTED]> wrote: > >> You don't need a regexp:; > > I need a regexp.i'm parsing a file with a rule-file that contains > also regexp and strings too Well then it seems like you might want to rethink this rule-file approach since

RE: Dict Copy & Compare

2007-04-30 Thread Hamilton, William
> -Original Message- > From: [EMAIL PROTECTED] [mailto:python- > [EMAIL PROTECTED] On Behalf Of Robert Rawlins - > Think Blue > Sent: Monday, April 30, 2007 6:09 AM > To: 'Tim Golden' > Cc: python-list@python.org > Subject: RE: Dict Copy & Compare > > On quick question, how can I order a d

Re: regexp match string with word1 and not word2

2007-04-30 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Flyzone wrote: > for y in range(0, len(skip_lst) ): > if (re.search(skip_lst[y], line)): > skip=1 >break Please try to avoid unnecessary indexes:: for regexp in skip_list: if re.sea

Re: Re-running script from Tk shell

2007-04-30 Thread kyosohma
On Apr 30, 9:51 am, gtb <[EMAIL PROTECTED]> wrote: > I am testing a simple script by running it in the Tk shell. It imports > a class from another module. I edit and save the file from which I > import. When I want to re-run I delete the Tk window and run the > module from the Edit window (F5 - Ru

Re: Cgi File Upload without Form

2007-04-30 Thread Jarek Zgoda
[EMAIL PROTECTED] napisał(a): >> Could you explain this statement? When I want to move data to a >> server in a CGI environment, a form post is the easiest way I can >> think of. What are the specific restrictions making forms a problem? > what I was thinking was: a form post is meant to be used

Re: Launching an independent Python program in a cross-platform way (including mac)

2007-04-30 Thread kyosohma
On Apr 30, 11:29 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I would like to see this as a command along with something to open web > pages.. Just one command instead of trying to figure out all the > different op systems. look forward to seeing your code > > https://sourceforge.net/proj

Re: Cgi File Upload without Form

2007-04-30 Thread Karsten . G . Weinert
OK, I think I have a simple solution now. I am going to use FTP in my VBA-Client (it's possible) and don't need to do any server-side programming. Kind regards, Karsten. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tracebacks for `exec`ed code?

2007-04-30 Thread brzrkr0
On Apr 29, 2:40 am, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Adam Atlas schrieb: > > > Is it possible to make more traceback information available for > > exceptions code dynamically run via `exec`? Normally it just says > > things like "File '', line 3, in ?", which is not very > > helpful.

OT somewhat: Do you telecommute? What do you wish the boss understood about it?

2007-04-30 Thread estherschindler
For a lot of IT people -- everyone from software developers to tech writers to network support folks -- telecommuting is the best personal option. They get a flexible schedule, they aren't bothered by noisy cube-mates, they can code during whichever hours work for them (with the help of IM and emai

fix an example of wxwindows listed on rentacoder.com

2007-04-30 Thread [EMAIL PROTECTED]
The code in question is at https://sourceforge.net/projects/dex-tracker I am trying to get rid of the part of the example where you have to use run.py. since I am stuck and it is driving me nuts I have put it up for bid at http://www.rentacoder.com/RentACoder/misc/BidRequests/ShowBidRequest.

Re: Launching an independent Python program in a cross-platform way (including mac)

2007-04-30 Thread [EMAIL PROTECTED]
I would like to see this as a command along with something to open web pages.. Just one command instead of trying to figure out all the different op systems. look forward to seeing your code https://sourceforge.net/projects/dex-tracker On Apr 30, 9:40 am, André <[EMAIL PROTECTED]> wrote: > On

Re: Can python find HW/SW installed on my PC - like Belarc?

2007-04-30 Thread kyosohma
On Apr 30, 10:47 am, walterbyrd <[EMAIL PROTECTED]> wrote: > Lets suppose, I want a listing of what hardware and software is > installed on my > windows box. Can I do that with Python? Yes, it is possible for Windows. I don't know how to grab the info for other OS's though. There is a caveat that

Re: Reading Data From an Excel Sheet

2007-04-30 Thread [EMAIL PROTECTED]
On Apr 30, 3:35 am, sagar <[EMAIL PROTECTED]> wrote: > Hi all, >I want a python script which takes in input an EXCEL sheet > and then reads the data in it. > Any code snippets will be fine and this i want this in windows > XP . > >Thanks in Advance > Sagar Meesala have yo

Can python find HW/SW installed on my PC - like Belarc?

2007-04-30 Thread walterbyrd
Lets suppose, I want a listing of what hardware and software is installed on my windows box. Can I do that with Python? -- http://mail.python.org/mailman/listinfo/python-list

RE: import structures

2007-04-30 Thread Hamilton, William
> -Original Message- > From: [EMAIL PROTECTED] [mailto:python- > [EMAIL PROTECTED] On Behalf Of spohle > Sent: Monday, April 30, 2007 10:25 AM > To: python-list@python.org > Subject: Re: import structures > > On Apr 30, 8:16 am, "Hamilton, William " <[EMAIL PROTECTED]> wrote: > > > > If y

Re: import structures

2007-04-30 Thread Duncan Booth
spohle <[EMAIL PROTECTED]> wrote: > as of now i have a __init__.py file in the directory with: > from pkgutil import extend_path > __path__ = extend_path(__path__, __name__) > > but i still have to import each class by it's own. im really looking > for something like import wx > and then get all

Re: regexp match string with word1 and not word2

2007-04-30 Thread Carsten Haese
On Mon, 2007-04-30 at 08:22 -0700, Flyzone wrote: > On 30 Apr, 17:11, Steven Bethard <[EMAIL PROTECTED]> wrote: > > > You don't need a regexp:; > > I need a regexp.i'm parsing a file with a rule-file that contains > also regexp and strings too That was not at all evident from your origin

Re: import structures

2007-04-30 Thread spohle
On Apr 30, 8:16 am, "Hamilton, William " <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: [EMAIL PROTECTED] > [mailto:python- > > [EMAIL PROTECTED] On Behalf Of spohle > > Sent: Monday, April 30, 2007 10:03 AM > > To: [EMAIL PROTECTED] > > Subject: Re: import structures > > > On

Re: regexp match string with word1 and not word2

2007-04-30 Thread Flyzone
On 30 Apr, 17:11, Steven Bethard <[EMAIL PROTECTED]> wrote: > You don't need a regexp:; I need a regexp.i'm parsing a file with a rule-file that contains also regexp and strings too Read my post to James Stroud. -- http://mail.python.org/mailman/listinfo/python-list

Re: regexp match string with word1 and not word2

2007-04-30 Thread Flyzone
James Stroud ha scritto: > The P.S: suggests homework, but this can't be homework because python > regex won't do this, so your teacher gets an F if its homework. You Not a homework, but a "workwork" :-) I'm writing a script to parse logfiles, and I have began to study python for this (bash was t

RE: import structures

2007-04-30 Thread Hamilton, William
> -Original Message- > From: [EMAIL PROTECTED] [mailto:python- > [EMAIL PROTECTED] On Behalf Of spohle > Sent: Monday, April 30, 2007 10:03 AM > To: python-list@python.org > Subject: Re: import structures > > On Apr 30, 8:00 am, Paul McGuire <[EMAIL PROTECTED]> wrote: > > On Apr 30, 9:56 a

Re: regexp match string with word1 and not word2

2007-04-30 Thread Steven Bethard
Flyzone wrote: > Hello, > i have again problem with regexp :-P > I need to match all lines that contain one word but not contain > another. > Like to do "grep one | grep -v two:" You don't need a regexp:; if 'one' in line and 'two:' not in line: ... do something... STeVe -- http:/

Re: import structures

2007-04-30 Thread spohle
On Apr 30, 8:00 am, Paul McGuire <[EMAIL PROTECTED]> wrote: > On Apr 30, 9:56 am, spohle <[EMAIL PROTECTED]> wrote: > > > > > hi, > > > i have written a small project for myself all in seperate classes and > > each of the classes lives in a seperate file. now i am looking for an > > import structur

Re: import structures

2007-04-30 Thread Paul McGuire
On Apr 30, 9:56 am, spohle <[EMAIL PROTECTED]> wrote: > hi, > > i have written a small project for myself all in seperate classes and > each of the classes lives in a seperate file. now i am looking for an > import structure something like import wx, and then have access to all > my classes just li

import structures

2007-04-30 Thread spohle
hi, i have written a small project for myself all in seperate classes and each of the classes lives in a seperate file. now i am looking for an import structure something like import wx, and then have access to all my classes just like wx.Button or wx.BoxSizer etc. as of now i have a __init__.py

Re: While we're talking about annoyances

2007-04-30 Thread Alex Martelli
Michael Hoffman <[EMAIL PROTECTED]> wrote: ... > >> Well, counting the index() function that is called in both cases, the > >> original rank() had one sort, but my version has two sorts. > > > > That doesn't affet the big-O behavior -- O(N log N) holds whether you > > have one sort, or three, o

Re-running script from Tk shell

2007-04-30 Thread gtb
I am testing a simple script by running it in the Tk shell. It imports a class from another module. I edit and save the file from which I import. When I want to re-run I delete the Tk window and run the module from the Edit window (F5 - Run Module). The script that does the importing does not see

Re: Update to Python Quick Reference Card (for Python 2.4) (v0.67)

2007-04-30 Thread kyosohma
On Apr 30, 7:42 am, Laurent Pointal <[EMAIL PROTECTED]> wrote: > PQRC (Python Quick Reference Card) is a condensed documentation for > Python and its main libraries, targetting production of printed quick > reference cards. > Its available as OpenDocument .odt files and as A4 and USLetter > formatt

Re: Launching an independent Python program in a cross-platform way (including mac)

2007-04-30 Thread André
On Apr 30, 10:59 am, Kevin Walzer <[EMAIL PROTECTED]> wrote: [snip] > > There are extension modules on the Mac for integrating Python and > AppleScript (the best one is appscript). However, if you want to limit > yourself to core Python, your best best is osascript, a system > command-tool that let

Re: Restricting the alphabet of a string

2007-04-30 Thread Paul McGuire
On Apr 30, 9:00 am, 7stud <[EMAIL PROTECTED]> wrote: > On Apr 30, 5:53 am, "Nathan Harmston" <[EMAIL PROTECTED]> > wrote: > > > > > > > Hi, > > > I ve being thinking about playing around with bit strings but use in > > some encoding problems I m considering and was trying to decide how to > > imple

Problem with PyQt4

2007-04-30 Thread [EMAIL PROTECTED]
Hi, I am having some serious problems with PyQT4, when i run pyqt script, I always get 'Segmentation fault'. the script is simple: == %less qttest.py from PyQt4 import QtGui, QtCore import sys if __name__ == '__main__': app = QtGui.QApplication(sys.argv) w = Q

Re: Cgi File Upload without Form

2007-04-30 Thread Karsten . G . Weinert
On 30 Apr., 15:51, "Dave Borne" <[EMAIL PROTECTED]> wrote: > > Since I want to upload the data programmatically, a form based > > solution is not good. > > Karsten, > Could you explain this statement? When I want to move data to a > server in a CGI environment, a form post is the easiest way I can

socket module - recv() method

2007-04-30 Thread mirandacascade
Currently using the following technique in serveral client applications to send a request message and receive a response: import socket bufferSize = 50 connectionHandle = socket.socket(socket.AF_INET, socket.SOCK_STREAM) connectionHandle.connect(sa) connectionHandle.sendall(requestMessage) ful

Re: relative import broken?

2007-04-30 Thread Alan Isaac
"Alex Martelli" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > To me, it makes sense: if a module is top-level, and thus not part of a > package (and __main__ in particular is always in that state), then > saying "import from the current package" has no well defined meaning, > becaus

Re: tkinter undo

2007-04-30 Thread kyosohma
On Apr 28, 8:50 am, Gigs_ <[EMAIL PROTECTED]> wrote: > Hi > > I dont have idea how to write tkinter undo/redo function form my text editor > and > my paint program. > Could someone help? I'm not asking for code, just for some guidelines to get > me > in the right way. > > thanks >From what I've

Re: Python ODBC

2007-04-30 Thread kyosohma
On Apr 29, 11:34 am, Harlin Seritt <[EMAIL PROTECTED]> wrote: > Is there a Python odbc module that will work on Linux? I have a jdbc > connection to a DB2 server. I am looking hopefully for an open source > solution and not a commercial one. > > Thanks, > > Harlin I would think the odbc module wou

Re: Restricting the alphabet of a string

2007-04-30 Thread 7stud
On Apr 30, 5:53 am, "Nathan Harmston" <[EMAIL PROTECTED]> wrote: > Hi, > > I ve being thinking about playing around with bit strings but use in > some encoding problems I m considering and was trying to decide how to > implement a bit string class. Is there a library out there for doing > basic thi

Re: Launching an independent Python program in a cross-platform way (including mac)

2007-04-30 Thread Kevin Walzer
Prateek wrote: > On Apr 30, 4:32 am, André <[EMAIL PROTECTED]> wrote: >> I would like to find out how I can launch an independent Python >> program from existing one in a cross-platform way. The result I am >> after is that a new terminal window should open (for io independent of >> the original s

Re: My python annoyances so far

2007-04-30 Thread Sion Arrowsmith
7stud <[EMAIL PROTECTED]> wrote: >I know what you mean. I always write: > >someStringVar.len > >and then I backspace and retype: > >len(someString). > >But then again, I can never remember whether length is a member or a >method in other languages. ... or whether it's called length, size, count

Re: Cgi File Upload without Form

2007-04-30 Thread Dave Borne
> Since I want to upload the data programmatically, a form based > solution is not good. Karsten, Could you explain this statement? When I want to move data to a server in a CGI environment, a form post is the easiest way I can think of. What are the specific restrictions making forms a problem?

  1   2   >