PyInstaller: Need some hints (perhaps a good example?)

2008-01-02 Thread Thin Myrna
I gave PyInstaller a shot and was pleased by the results so far. The usual problems occurred with missing data and icon files (the latter for splash screens only). However, it's a bit hard for me to overcome them. I tried COLLECT but the files don't seem to be added to the install. The reason i

Re: Choosing a new language

2008-01-02 Thread Tim Roberts
Joachim Durchholz <[EMAIL PROTECTED]> wrote: >> Xah Lee <[EMAIL PROTECTED]> wrote: >>> [...] PHP and Perl are practically identical in their >>> high-levelness or expressiveness or field of application (and >>> syntax), > >That must have been a very, very distant point of view with narrowly >squi

Re: Choosing a new language

2008-01-02 Thread Tim Roberts
kevin cline <[EMAIL PROTECTED]> wrote: > >As if there were such a thing as an 'Ada programmer'. Any decent >programmer should be productive in Ada long before their security >clearance is approved. That's only true because the security clearance process has become so complicated. Ada is not a

Manually installing PIL

2008-01-02 Thread Jose Ignacio Gisbert
Hello All, Does somebody install PIL manually??, I mean, copy directories manually without executing setup.py. I saw an identical message from Guirai, but I didn't see any response. Thanks in advance! Best Regards, Naxo -- http://mail.python.org/mailman/listinfo/python-list

sending commands in body of HTTP with urllib2

2008-01-02 Thread Astan Chee
Hi, Im trying to implement the logic from http://www.hypothetic.org/docs/msn/general/http_connections.php to a simple python code using urllib2 and some parts of urllib. Im behind a http proxy that requires authentication that is why Im using urllib2. Im asking for help on how to send commands

How To Yell At Employees

2008-01-02 Thread bs866806
Dallas, TX - Madmanager.com, officially launches its web based management advice site, featuring expert management help on topics such as "How To Yell At Employees?" Solutions cost as little as $1.00 and feature results oriented answers to tough management questions. Situations madmanager can help

Re: Python CGI - Presenting a zip file to user

2008-01-02 Thread Justin Ezequiel
On Jan 3, 1:35 pm, jwwest <[EMAIL PROTECTED]> wrote: > Thanks! That worked like an absolute charm. > > Just a question though. I'm curious as to why you have to use the > msvcrt bit on Windows. If I were to port my app to *NIX, would I need > to do anything similar? > > - James not needed for *NIX

Re: Python CGI - Presenting a zip file to user

2008-01-02 Thread jwwest
On Jan 2, 8:56 pm, Justin Ezequiel <[EMAIL PROTECTED]> wrote: > On Jan 3, 7:50 am, jwwest <[EMAIL PROTECTED]> wrote: > > > > > Hi all, > > > I'm working on a cgi script that zips up files and presents the zip > > file to the user for download. It works fine except for the fact that > > I have to ov

Re: cloud computing (and python)?

2008-01-02 Thread Aahz
In article <[EMAIL PROTECTED]>, Aaron Watters <[EMAIL PROTECTED]> wrote: > >Ok, so if we include yahoo mail and gmail in "cloud computing" then I >guess usenet is also cloud computing. Usenet actually is a good example of cloud computing, but only at the article distribution level. Netnews clien

Re: cloud computing (and python)?

2008-01-02 Thread Aahz
In article <[EMAIL PROTECTED]>, Terry Reedy <[EMAIL PROTECTED]> wrote: > >2. yes, cost. University mainframes cost $s/minute. I remember >blowing about $200 due to a misplaced comma or something in a >statistical analysis setup. So it was cost-effective (and rather >liberating) to spend $1 o

Re: Two candies

2008-01-02 Thread Aahz
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: > >2) When I use MatchObjects I have to look at the docs to remember the >difference between group() and groups() etc. So I suggest to add a >__getitem__ method to MatchObject, so this: > >mo[3] > >Equals to: > >mo.group(3) Patches are wo

Cloning Environments

2008-01-02 Thread gamename
Hi, I have several machines running Linux (mostly fedora6) and Windows (mostly XP). I'm thinking of using easy_install to create as uniform an environment as possible for all of them. Cloning the environment, to put it another way. Is there a good example somewhere showing how to do this? I'm ne

Re: Python CGI - Presenting a zip file to user

2008-01-02 Thread Justin Ezequiel
On Jan 3, 7:50 am, jwwest <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm working on a cgi script that zips up files and presents the zip > file to the user for download. It works fine except for the fact that > I have to overwrite the file using the same filename because I'm > unable to delete it aft

Re: Information about including module?

2008-01-02 Thread bukzor
On Jan 2, 4:52 pm, bukzor <[EMAIL PROTECTED]> wrote: > Is there any way to print the docstring of the including module? I'd > like to be able to do something like the following > > file one.py: > > "some docstring" > include two > > file two.py: > from magicmodule import getincluder > print getincl

ide for shedskin python to c compiler

2008-01-02 Thread [EMAIL PROTECTED]
I have a beta ide that I stold for shed skin and bcx basic available. currently it is set up to compile just from one directory.. It is available http://dexrow.blogspot.com/2008/01/bcx-with-cr-editor.html It could use a much better script and I would be glad to hear suggestions. -- http://mail.py

Re: Pivot Table/Groupby/Sum question

2008-01-02 Thread petr . jakes . tpc
> So the data comes in as a long list. I'm dealing with some > information on various countries with 6 pieces of information to > pivot. Just to make it simple it's like a video store database. The > data is like [Country, Category, Sub Category, Film Title, Director, > Number of Copies]. data

A problem of twisted and dbus

2008-01-02 Thread huisan . wang
Hello everyone, I am writing a program with twisted and dbus and got a such problem. If i run the code as $python local_proxy.py There is an error like this: Traceback (most recent call last): File "local_proxy.py", line 608, in reactor.listenTCP(143, factory) File "/usr/lib/python2.5/si

Re: Two candies

2008-01-02 Thread bearophileHUGS
Raymond: >though you have to be very careful about what you measure, how you measure it, >that the system state hasn't changed between measurements, and how your >interpret the results).< Right. This is part of the list of things they teach you to care of when you want to make experiments in bi

Re: Two candies

2008-01-02 Thread Terry Jones
> "Raymond" == Raymond Hettinger <[EMAIL PROTECTED]> writes: Raymond> * in most apps (except for sparse arrays), the initialization time Raymond> for an array is dominated by the time spent actually doing Raymond> something useful with the array (iow, this is an odd place to be Raymond> optimiz

Information about including module?

2008-01-02 Thread bukzor
Is there any way to print the docstring of the including module? I'd like to be able to do something like the following file one.py: "some docstring" include two file two.py: from magicmodule import getincluder print getincluder().__doc__ Running one.py would print the docstring. Thanks! Bu

Re: Two candies

2008-01-02 Thread Raymond Hettinger
[Raymond] > >#3 is a fine choice. It is memory efficient -- the repeat() itertool > >takes-up only a few bytes. It doesn't need psyco, you already have to fast > >C routines talking to each other without having to go through the > >interpreter loop.< [bearophile] > In my code I have found oth

Python CGI - Presenting a zip file to user

2008-01-02 Thread jwwest
Hi all, I'm working on a cgi script that zips up files and presents the zip file to the user for download. It works fine except for the fact that I have to overwrite the file using the same filename because I'm unable to delete it after it's downloaded. The reason for this is because after sending

Re: database query - logic question

2008-01-02 Thread Tim Chase
Israel Carr wrote: > Thanks for anyone who takes the time to read this. If I posted to the > wrong list, I apologize and you can disregard. > > I need help with a script to pull data from a postgres database. I'm ok > with the database connection just not sure how to parse the data to get > the

Re: urllib2 disable proxy

2008-01-02 Thread Rob Wolfe
Dimitrios Apostolou <[EMAIL PROTECTED]> writes: > Hello list, > > I've been looking for a way to explicitly disable the use of proxies with > urllib2, no matter what the environment dictates. Unfortunately I can't find > a way in the documentation, and reading the source leads me to believe tha

Re: Two candies

2008-01-02 Thread bearophileHUGS
First of all, thank you Raymond for your answer, and a happy new year to you and to all the Python group :-) Raymond: >#3 is a fine choice. It is memory efficient -- the repeat() itertool takes-up >only a few bytes. It doesn't need psyco, you already have to fast C routines >talking to each ot

urllib2 disable proxy

2008-01-02 Thread Dimitrios Apostolou
Hello list, I've been looking for a way to explicitly disable the use of proxies with urllib2, no matter what the environment dictates. Unfortunately I can't find a way in the documentation, and reading the source leads me to believe that something like the following does the job: req.set_pr

Insert to a clob field using cx_Oracle via a stored procedure

2008-01-02 Thread hinds . ja
Hello, Does anyone have experience using cx_Oracle to call a stored procedure that inserts to a clob field? We have done this successfully via straight SQL, but we are at a loss on how to do the same insert using a stored procedure call. Any assistance would be much appreciated. Thanks. Jason -

Re: XML-XSD Processing/Creation.

2008-01-02 Thread paul
xkenneth schrieb: > Hi All, > > So i'm working with the WITSML standard, which is a pretty > massive standard defined in XML for the transfer of oilfield data. > There are a ton of XSD files for defining and checking all data in the > WITSML format. I'd like to be able to easily create XML b

Re: different encodings for unicode() and u''.encode(), bug?

2008-01-02 Thread Martin v. Löwis
> Do not know what the implications of encoding according to "ANSI > codepage (CP_ACP)" are. Windows only seems clear, but why does it only > complain when decoding a non-empty string (or when encoding the empty > unicode string) ? It has no implications for this issue here. CP_ACP is a Microsoft

Re: unicode(s, enc).encode(enc) == s ?

2008-01-02 Thread Martin v. Löwis
> Thanks a lot Martin and Marc for the really great explanations! I was > wondering if it would be reasonable to imagine a utility that will > determine whether, for a given encoding, two byte strings would be > equivalent. But that is much easier to answer: s1.decode(enc) == s2.decode(enc) A

Re: cloud computing (and python)?

2008-01-02 Thread Terry Reedy
"PatrickMinnesota" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | I would say that the biggest difference between what people have been | doing | for decades and what is now being referred to as 'cloud computing' is | the applications. Having welcomed the shift from timeshare to d

database query - logic question

2008-01-02 Thread Israel Carr
Thanks for anyone who takes the time to read this. If I posted to the wrong list, I apologize and you can disregard. I need help with a script to pull data from a postgres database. I'm ok with the database connection just not sure how to parse the data to get the results I need. I'm running Py

Re: os.tmpfile()

2008-01-02 Thread Erik Max Francis
[EMAIL PROTECTED] wrote: > Erik, I am going to be displaying sections of text in the Terminal Window on > OS X. > I wanted to format the text in a specific way and thought it might be quicker > to > output all the text to a temporary file that I could quickly read sections > from instead >

Re: Re: PyCairo, PIL and StringIO

2008-01-02 Thread Jair Trejo
> > De: Fredrik Lundh <[EMAIL PROTECTED]> > A: python-list@python.org > Fecha: Wed, 02 Jan 2008 15:39:11 +0100 > Asunto: Re: PyCairo, PIL and StringIO > > Jair Trejo wrote: > > > I'm doing some image processing in PIL, and I want > to > > display the results in a GTK window using PyCairo, > so >

Re: Python-list Digest, Vol 52, Issue 19

2008-01-02 Thread Jair Trejo
> > De: Fredrik Lundh <[EMAIL PROTECTED]> > A: python-list@python.org > Fecha: Wed, 02 Jan 2008 15:39:11 +0100 > Asunto: Re: PyCairo, PIL and StringIO > > Jair Trejo wrote: > > > I'm doing some image processing in PIL, and I want > to > > display the results in a GTK window using PyCairo, > so >

Re: cloud computing (and python)?

2008-01-02 Thread PatrickMinnesota
On Jan 2, 9:33 am, Aaron Watters <[EMAIL PROTECTED]> wrote: > > I must admit I feel a hint of amusement though at your comment above, when > > it's sent from precisely the sort of setup you appear bemused by - since > > you appear to have already bought into it without realising ! :-D > > Ok, so if

Re: Extracting files from an ISO image?

2008-01-02 Thread Rob Williscroft
Ant wrote in news:34a84caa-5387-40a2-a808- [EMAIL PROTECTED] in comp.lang.python: [snip] > > So I have two questions really: > > 1) Is there a module out there for extracting files from an ISO? There are command line programs that can do this: http://cdrecord.berlios.de/old/private/cdrecord

Pickle problem

2008-01-02 Thread Daniel Cuschieri
Hi, I used code similar to the one at http://www.onlamp.com/pub/a/python/2006/02/09/ai_decision_trees.html in order to build an ID3 decision tree using python. I obviously do not want to rebuild this tree every time i need to use it! so i tried to save it using pickle, after building it: >from cP

Re: unicode(s, enc).encode(enc) == s ?

2008-01-02 Thread mario
Thanks a lot Martin and Marc for the really great explanations! I was wondering if it would be reasonable to imagine a utility that will determine whether, for a given encoding, two byte strings would be equivalent. But I think such a utility will require *extensive* knowledge about many bizarritie

Re: ElementTree should parse string and file in the same way

2008-01-02 Thread Chris Mellon
On Jan 2, 2008 8:56 AM, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Steven D'Aprano wrote: > > > Fredrik, if you're reading this, I'm curious what your reason is. I don't > > have an opinion on whether you should or shouldn't treat files and > > strings the same way. Over to you... > > as Diez shows

Re: XML-XSD Processing/Creation.

2008-01-02 Thread Jeroen Ruigrok van der Werven
-On [20080102 18:21], xkenneth ([EMAIL PROTECTED]) wrote: > So i'm working with the WITSML standard, which is a pretty >massive standard defined in XML for the transfer of oilfield data. I cannot answer (yet) the question of generating XML data from an XSD. But for writing out

XML-XSD Processing/Creation.

2008-01-02 Thread xkenneth
Hi All, So i'm working with the WITSML standard, which is a pretty massive standard defined in XML for the transfer of oilfield data. There are a ton of XSD files for defining and checking all data in the WITSML format. I'd like to be able to easily create XML based on the types defined by t

Re: Two candies

2008-01-02 Thread Raymond Hettinger
[bearophileH] > > 1) A fast and memory efficient way to create an array.array at a > certain size. > At the moment I can see some ways to do it: > > from array import array > from itertools import repeat > a = array("l", repeat(0, n)) #3 . . . > - #3 interacts badly with Psyco (Psyco doesn't diges

Re: Skill Resume Achievements, What Good Goes Here?

2008-01-02 Thread kyosohma
On Jan 2, 9:59 am, vbgunz <[EMAIL PROTECTED]> wrote: > I spent some time working on a skill resume, the kind of resume > college students put together and realized, I am not in college and > everything I learned was self-taught. Of course I would like some real > world achievements but don't consid

Skill Resume Achievements, What Good Goes Here?

2008-01-02 Thread vbgunz
I spent some time working on a skill resume, the kind of resume college students put together and realized, I am not in college and everything I learned was self-taught. Of course I would like some real world achievements but don't consider throw-away code an achievement and am failing to really se

Re: how to get playtime ( playback time ) of movie files?

2008-01-02 Thread kyosohma
On Jan 2, 6:39 am, "Geon." <[EMAIL PROTECTED]> wrote: > hi.. i want get playtime of movie files ( avi , mpeg , wav , mov > etc... ) > > how to get ?? > > please help me .. Take a look at PyMedia: http://pymedia.org/ Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Extracting files from an ISO image?

2008-01-02 Thread Grant Edwards
On 2008-01-02, Ant <[EMAIL PROTECTED]> wrote: > I've downloaded a utility (Daemon Tools) which allows me to mount and > unmount virtual CD drives onto an ISO image. [...] > 1) Is there a module out there for extracting files from an ISO? Why not just mount them and then use the normal OS file o

Re: cloud computing (and python)?

2008-01-02 Thread Aaron Watters
> I must admit I feel a hint of amusement though at your comment above, when > it's sent from precisely the sort of setup you appear bemused by - since > you appear to have already bought into it without realising ! :-D Ok, so if we include yahoo mail and gmail in "cloud computing" then I guess u

Re: Network-Packets

2008-01-02 Thread Jeroen Ruigrok van der Werven
-On [20080102 16:00], Sunil Ghai ([EMAIL PROTECTED]) wrote: >I know this is not the right place for asking about this but i am sure some of >you must have an idea about this. The networking community would be more appropriate, methinks. >I would like to know what do we actuall

Re: cloud computing (and python)?

2008-01-02 Thread Michael Sparks
Aaron Watters wrote: (from a gmail account) > So cloud computing is java diskless workstations warmed over but less > flexible? > > I'm having trouble understanding why people would want > to buy in to this. Why do you like gmail - since you appear to use it? (I can think of several possibilities

Network-Packets

2008-01-02 Thread Sunil Ghai
Hello guys, I know this is not the right place for asking about this but i am sure some of you must have an idea about this. I have a bit knowledge about networking and protocols. I would like to know what do we actually mean by "Bandwidth". As in if a person is allowed to download stuff of about 4

Re: ElementTree should parse string and file in the same way

2008-01-02 Thread Fredrik Lundh
Steven D'Aprano wrote: > Fredrik, if you're reading this, I'm curious what your reason is. I don't > have an opinion on whether you should or shouldn't treat files and > strings the same way. Over to you... as Diez shows, it's all about use cases. and as anyone who's used my libraries or read

Logging Help

2008-01-02 Thread Robert Rawlins - Think Blue
Hello Guys, I'm having a little trouble modifying my logging so that the log files are rotated. I'm using the standard python logging module and can find some decent documentation on how to create and add a rotatingFileHandler to my logger but I've been unable to find out how to disable the sta

Re: PyCairo, PIL and StringIO

2008-01-02 Thread Fredrik Lundh
Jair Trejo wrote: > I'm doing some image processing in PIL, and I want to > display the results in a GTK window using PyCairo, so > I create a Cairo image surface from the PIL Image like > this: > data > mfile = StringIO.StringIO() > final.save(mfile, format="PNG") > ima =

Re: Bind mouse over event for panel (or Static text) wxPython

2008-01-02 Thread kyosohma
On Jan 2, 6:55 am, SMALLp <[EMAIL PROTECTED]> wrote: > How to? > > I couldn't find anything except EVT_ENTER_WINDOW that didn't work. I use wx.EVT_MOTION, which you would have found had you googled for "wxpython mouse events". The first result is: http://www.wxpython.org/docs/api/wx.MouseEvent-cl

Re: Pivot Table/Groupby/Sum question

2008-01-02 Thread patrick . waldo
Sorry for the delay in my response. New Year's Eve and moving apartment > - Where the data come from (I mean: are your data in Excel already > when you get them)? > - If your primary source of data is the Excel file, how do you read > data from the Excel file to Python (I mean did you solve this

Re: wxpython application ( problem ? )

2008-01-02 Thread kyosohma
On Jan 2, 5:24 am, [EMAIL PROTECTED] wrote: > Hello, > > Here is sample of my simple script with wxpython and modules: > subprocess,threading, directpython... > > Code sample: > > import wx > import wx.aui > app=wx.App() > frame=wx.Frame(None,title="New project") > > #There is also part with wx

RE: os.tmpfile()

2008-01-02 Thread jyoung79
> It's a file. You read strings from it and write strings to it. It > isn't a string itself. Given that what you're trying to do doesn't make > any sense, it's hard to know where to begin to identify what's confusing > you. > -- > Erik Max Francis Erik, I am going to be displaying sections

Re: cloud computing (and python)?

2008-01-02 Thread Nikolas Karalis
I read a few things about this on the web, and i still don't get the difference between cloud computing and grid computing... It looks like the same. Nikolas On Jan 2, 2008 3:46 AM, PatrickMinnesota <[EMAIL PROTECTED]> wrote: > On Jan 1, 7:12 pm, Neil Hodgson <[EMAIL PROTECTED]> wrote: > > C

Re: Tab indentions on different platforms?

2008-01-02 Thread Ben Finney
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Wed, 02 Jan 2008 15:17:54 +1100, Ben Finney wrote: > > > Torsten Bronger <[EMAIL PROTECTED]> writes: > > > >> [...] the width of a tab is nowhere defined. It really is a matter of > >> the editor's settings. > > > > RFC 678 "Standard File Formats

Re: different encodings for unicode() and u''.encode(), bug?

2008-01-02 Thread Piet van Oostrum
> mario <[EMAIL PROTECTED]> (M) wrote: >M> $ python >M> Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04) >M> [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin >M> Type "help", "copyright", "credits" or "license" for more information. > unicode('', 'mbcs') >M> u'' > unicode('abc',

Re: wxpython application ( problem ? )

2008-01-02 Thread Bjoern Schliessmann
[EMAIL PROTECTED] wrote: > yes, so what's the problem? http://wxwidgets.org/manuals/stable/wx_wxthreadoverview.html | If you do decide to use threads in your application, it is | strongly recommended that no more than one thread calls GUI | functions. The thread sample shows that it is possible f

Re: Python events, panel with text

2008-01-02 Thread SMALLp
SMALLp wrote: > Hy! > > I have many small panels with text and I want do bind wx.EVT_LEFT_DOWN > when clicked on panel, but i need to bind that in parent class. So I > have instance of that small panel and when i bind it efects only part of > small panel where is no text. > > > > import wx >

Bind mouse over event for panel (or Static text) wxPython

2008-01-02 Thread SMALLp
How to? I couldn't find anything except EVT_ENTER_WINDOW that didn't work. -- http://mail.python.org/mailman/listinfo/python-list

Re: dbus-python for windows

2008-01-02 Thread est
I am not going to compile anything like that :) and I only need Windows library for dbus-python ps Windows source code is here https://windbus.svn.sourceforge.net/svnroot/windbus/trunk/ On Jan 2, 8:44 pm, Jeroen Ruigrok van der Werven <[EMAIL PROTECTED] nomine.org> wrote: > -On [20080

Re: wxpython application ( problem ? )

2008-01-02 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > On 2 sij, 12:29, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: >> On Wed, 02 Jan 2008 03:24:56 -0800, vedrandekovic wrote: >> > Here is sample of my simple script with wxpython and modules: >> > subprocess,threading, directpython... >> >> Are you accessing the

Re: dbus-python for windows

2008-01-02 Thread Jeroen Ruigrok van der Werven
-On [20080102 13:41], est ([EMAIL PROTECTED]) wrote: >I am trying to port Scribes to Windows, but I could not find a package >named dbus-python for windows. There is a windbus sourceforge.net/projects/windbus/> but it not for Python, so how could >I install dbus module for Window

Re: Extracting files from an ISO image?

2008-01-02 Thread Jeroen Ruigrok van der Werven
-On [20080102 13:11], Ant ([EMAIL PROTECTED]) wrote: >2) Is there a module out there for extracting icons from a Windows >exe? This might be a good start: http://groups.google.com/group/comp.lang.python/browse_thread/thread/be829b454c945a89 -- Jeroen Ruigrok van der Werven / asmodai

how to get playtime ( playback time ) of movie files?

2008-01-02 Thread Geon.
hi.. i want get playtime of movie files ( avi , mpeg , wav , mov etc... ) how to get ?? please help me .. -- http://mail.python.org/mailman/listinfo/python-list

Two candies

2008-01-02 Thread bearophileHUGS
Two little things I may like added. 1) A fast and memory efficient way to create an array.array at a certain size. At the moment I can see some ways to do it: from array import array from itertools import repeat a = array("l", xrange(n)) #1 a = array("l", [0]*n)) #2 a = array("l", repeat(0, n)) #

dbus-python for windows

2008-01-02 Thread est
Hi all I am trying to port Scribes to Windows, but I could not find a package named dbus-python for windows. There is a windbus but it not for Python, so how could I install dbus module for Windows Python 2.5 ? ps Is there anyone trying to port Scribes to Windows? -- http://mail.python.org/mail

Re: different encodings for unicode() and u''.encode(), bug?

2008-01-02 Thread mario
On Jan 2, 12:28 pm, John Machin <[EMAIL PROTECTED]> wrote: > On Jan 2, 9:57 pm, mario <[EMAIL PROTECTED]> wrote: > > > Do not know what the implications of encoding according to "ANSI > > codepage (CP_ACP)" are. > > Neither do I. YAGNI (especially on darwin) so don't lose any sleep > over it. > > >

Extracting files from an ISO image?

2008-01-02 Thread Ant
Hi all, My kids have a bunch of games that have to be run from CD (on Windows XP). Now they're not very careful with them, and so I have a plan. I've downloaded a utility (Daemon Tools) which allows me to mount and unmount virtual CD drives onto an ISO image. This works well, but I want to wrap th

Re: wxpython application ( problem ? )

2008-01-02 Thread vedrandekovic
On 2 sij, 12:29, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Wed, 02 Jan 2008 03:24:56 -0800, vedrandekovic wrote: > > Here is sample of my simple script with wxpython and modules: > > subprocess,threading, directpython... > > Are you accessing the GUI from threads? > > Ciao, >

Re: wxpython application ( problem ? )

2008-01-02 Thread Marc 'BlackJack' Rintsch
On Wed, 02 Jan 2008 03:24:56 -0800, vedrandekovic wrote: > Here is sample of my simple script with wxpython and modules: > subprocess,threading, directpython... Are you accessing the GUI from threads? Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-l

Re: different encodings for unicode() and u''.encode(), bug?

2008-01-02 Thread John Machin
On Jan 2, 9:57 pm, mario <[EMAIL PROTECTED]> wrote: > On Jan 2, 10:44 am, John Machin <[EMAIL PROTECTED]> wrote: > > > > > Two things for you to do: > > > (1) Try these at the Python interactive prompt: > > > unicode('', 'latin1') > > unicode('', 'mbcs') > > unicode('', 'raboof') > > unicode('abc',

wxpython application ( problem ? )

2008-01-02 Thread vedrandekovic
Hello, Here is sample of my simple script with wxpython and modules: subprocess,threading, directpython... Code sample: import wx import wx.aui app=wx.App() frame=wx.Frame(None,title="New project") #There is also part with wx.aui frame.Show() app.MainLoop() After a few minutes wx applica

Re: pdf library.

2008-01-02 Thread Shriphani
On Jan 1, 5:38 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Tue, 01 Jan 2008 04:21:29 -0800,Shriphaniwrote: > > On Jan 1, 4:28 pm, Piet van Oostrum <[EMAIL PROTECTED]> wrote: > >> >Shriphani<[EMAIL PROTECTED]> (S) wrote: > >> >S> I tried pyPdf for this and decided to get the pag

Re: different encodings for unicode() and u''.encode(), bug?

2008-01-02 Thread mario
On Jan 2, 10:44 am, John Machin <[EMAIL PROTECTED]> wrote: > > Two things for you to do: > > (1) Try these at the Python interactive prompt: > > unicode('', 'latin1') > unicode('', 'mbcs') > unicode('', 'raboof') > unicode('abc', 'latin1') > unicode('abc', 'mbcs') > unicode('abc', 'raboof') $ pyth

Re: Bizarre behavior with mutable default arguments

2008-01-02 Thread Ali
On Dec 30 2007, 12:27 am, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > In the absence of a better solution, I'm very comfortable with keeping > the behaviour as is. Unfortunately, there's no good solution in Python to > providing functions with local storage that persists across

Re: using super

2008-01-02 Thread iu2
On Jan 1, 8:12 pm, Scott David Daniels <[EMAIL PROTECTED]> wrote: > We accept this seems natural to you. You don't seem to understand why > others might not think so. I fear this is the kind of thing that > separates programmers into two classes: the smart ones that can set up > the chains, and

Re: different encodings for unicode() and u''.encode(), bug?

2008-01-02 Thread John Machin
On Jan 2, 8:44 pm, John Machin <[EMAIL PROTECTED]> wrote: > (1) Try these at the Python interactive prompt: > > unicode('', 'latin1') Also use those 6 cases to check out the difference in behaviour between unicode(x, y) and x.decode(y) -- http://mail.python.org/mailman/listinfo/python-list

M'I-5,Persecution , h arassment at work

2008-01-02 Thread eievemiei
-=-=-=-=-=-=-=-=-=-=-=-= -=. harassment at work -= -=-=-=-=-=-=-=-=-=-=-=-= Once I stopped watching television and listening to the radio. at the end of 1990, "they" had to find other ways of committing abuses. So. they took what must be for them a tried and tested route; they get at. you by subve

Re: Python Trajectory Module?

2008-01-02 Thread km
Hi have a look at these demos (includes trajectory etc) with VPython http://showmedo.com/videos/series?name=pythonThompsonVPythonSeries best wishes, KM -- On Jan 2, 2008 5:3

Re: different encodings for unicode() and u''.encode(), bug?

2008-01-02 Thread John Machin
On Jan 2, 7:45 pm, mario <[EMAIL PROTECTED]> wrote: > On Jan 2, 9:30 am, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > > Use "mbcs" in the second call, not "mcbs". > > Ooops, sorry about that, when i switched to test it in the interpreter > I mistyped "mbcs" with "mcbs". But remark I did it cons

Re: Problem with parsing email message with extraneous MIMEinformation

2008-01-02 Thread Steven Allport
Thanks for the response. The section of the email is an actual message fragment. The first blank line that appears in the message is immediately after the 1st ' boundary="m.182DA3C.BE6A21A3"' There are no blank line prior to this in the message. In the example that was snipped from

Re: Tab indentions on different platforms?

2008-01-02 Thread Steven D'Aprano
On Wed, 02 Jan 2008 15:17:54 +1100, Ben Finney wrote: > Torsten Bronger <[EMAIL PROTECTED]> writes: > >> [...] the width of a tab is nowhere defined. It really is a matter of >> the editor's settings. > > RFC 678 "Standard File Formats" > http://www.ietf.org/rfc/rfc678.txt>: Dated 19 December

Re: pyparsing question

2008-01-02 Thread Paul McGuire
On Jan 1, 5:32 pm, hubritic <[EMAIL PROTECTED]> wrote: > I am trying to parse data that looks like this: > > IDENTIFIER    TIMESTAMP   T  C   RESOURCE_NAME   DESCRIPTION > 2BFA76F6     1208230607   T   S   SYSPROC                    SYSTEM > SHUTDOWN BY USER > A6D1BD62   1215230807     I > H      

Re: different encodings for unicode() and u''.encode(), bug?

2008-01-02 Thread mario
On Jan 2, 9:30 am, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Use "mbcs" in the second call, not "mcbs". Ooops, sorry about that, when i switched to test it in the interpreter I mistyped "mbcs" with "mcbs". But remark I did it consistently ;-) I.e. it was still teh same encoding, even if mayb

Re: os.tmpfile()

2008-01-02 Thread Christian Heimes
[EMAIL PROTECTED] wrote: > Can anyone elaborate on how 'os.tmpfile()' works? I was thinking it would > create some sort of temporary file I could quickly add text too and then when > I was finished would automatically get rid of it. Here's my questions: Please don't use os.tmpfile(). It's not

Re: pyparsing question

2008-01-02 Thread hubritic
On Jan 1, 4:18 pm, John Machin <[EMAIL PROTECTED]> wrote: > On Jan 2, 10:32 am, hubritic <[EMAIL PROTECTED]> wrote: > > > The data I have has a fixed number of characters per field, so I could > > split it up that way, but wouldn't that defeat the purpose of using a > > parser? > > The purpose of a

Re: different encodings for unicode() and u''.encode(), bug?

2008-01-02 Thread Martin v. Löwis
> i stumbled on this situation, that is if I decode some string, below > just the empty string, using the mcbs encoding, it succeeds, but if I > try to encode it back with the same encoding it surprisingly fails > with a LookupError. This seems like something to be corrected? Indeed - in your code

different encodings for unicode() and u''.encode(), bug?

2008-01-02 Thread mario
Hello! i stumbled on this situation, that is if I decode some string, below just the empty string, using the mcbs encoding, it succeeds, but if I try to encode it back with the same encoding it surprisingly fails with a LookupError. This seems like something to be corrected? $ python Python 2.5.1