Tolga wrote:
> Let's suppose that I have written a Python program and, of course, want
> to show it to the world ;-)
>
> So, do I have to distrubute my source code? Or is there a way to hide
> my code?
Why? Is there a problem with your source code? Are you
ashamed of it? Or trying to hide secre
I created a simple test file called "tester.py":
def dostuff(obj):
print "Doing stuff with %s now..." % obj
return len(str(obj))
x = "things"
if __name__ == "__main__":
print dostuff(x)
imported it into Python, then exited the current Python
session. Then I compared the results
Brian van den Broek has answered this in the topic
newbie-one more example of difficulty in van Rossum's tutorial
--
http://mail.python.org/mailman/listinfo/python-list
Thanks Brian, now I get it. BTW there is no fuzzuness in your
explanaition it is crystal clear.
Bob
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
You can make exe code. The process is much more elaborate than C/C++
compilation.
Get the full information at http://www.py2exe.org/. also read the
Programing FAQ at python.org
--
http://mail.python.org/mailman/listinfo/python-list
Hmm... Can't find any word to say...
--
http://mail.python.org/mailman/listinfo/python-list
"Tolga" <[EMAIL PROTECTED]> writes:
> Let's suppose that I have written a Python program and, of course, want
> to show it to the world ;-)
>
> So, do I have to distrubute my source code? Or is there a way to hide
> my code?
You're not really showing it to the world, if you hide the source.
--
h
Let's suppose that I have written a Python program and, of course, want
to show it to the world ;-)
So, do I have to distrubute my source code? Or is there a way to hide
my code?
--
http://mail.python.org/mailman/listinfo/python-list
In van Rossum's tutorial there is a paragraph in chapter 9.6 which says
"Notice that code passed to exec, eval() or evalfile() does not
consider the classname of the invoking class to be the current class;
this is similar to the effect of the global statement, the effect of
which is likewise restr
<[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> F. GEIGER wrote:
>> I've def'ed a handler for EVT_IDLE in the app's main frame. There I'd
>> like
>> to call the nanothreads' __iter__ method, somehow.
>>
>> When I copy the __iter__ method into a, say, runOnce() method and call
[EMAIL PROTECTED] (Alex Martelli) writes:
> Try Interface Builder on a Mac: it builds interfaces as _data_ files,
> not "generated code". You can then use the same UI from Objective C,
> Java, Python (w/PyObjC), AppleScript... interface-painters which
> generate code are a really bad idea.
Glade
[EMAIL PROTECTED] said unto the world upon 2005-12-13 15:44:
> This is from 9.6 (Private variables). I quote
>
> - "Notice that code passed to exec, eval() or evalfile() does not
> consider the classname of the invoking class to be the current class;
> this is similar to the effect of the global s
Michael McGarry <[EMAIL PROTECTED]> wrote:
> I am using the marshal module in python to save a data structure to a
> file. It does not appear to be portable. The data is saved on a Linux
> machine. Loading that same data on a Mac gives me the bad marshal data
> message.
If you're using identical
gene tani <[EMAIL PROTECTED]> wrote:
...
> the slashdot (200+k lines of perl). What i suggested to a friend who
> recently asked the same thing is to pull up tags like "rails python" in
> del.icious, furl and digg, see what other people like. That's a pretty
> good way to measure buzz, actuall
Yeah, I have a system like that on my product. It's a data file loaded
at code startup time, which results in a UI - no need to cut code to
change the interface. It's saved me a lot of time.
I also have a problem with 'designers'. If the GUI designer is as easy
as making an interface was in VB6, I
Michael McGarry <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am running a Python/Qt app I developed that runs flawlessly in Linux
> on my Mac. It is unfortunate not running properly on the Mac OS X. The
> window will not come into focus and is grayed out.
>
> Does anyone have any ideas?
Use pythonw,
[EMAIL PROTECTED] wrote:
> Hi all,
>
> 1) Am working on windows XP, and is there any way i can get the whole
> name as "windows Xp" using python script?
>
>i have tried with
> "os.sys.platform" but it just gives me as "win32", but can
> i get the whole OS name as "windows Xp".
>
If you have Pywin32 installed, you can use WMI to get all these details.
The WMI classes to look at are win32_networkadapter and
win32_operatingsystem.
Roger
--
"Ask the ToeCutter - HE knows who I am !"
<[EMAIL PROTECTED]> wrote:
> Hi all,
>
> 1) Am working on windows XP, and is
Jérôme Laheurte <[EMAIL PROTECTED]> wrote:
...
> Sorry for the harsh tone, I just think GUI builders are *evil*. Except
> maybe for QT Designer, which has a nice model where you implement
> callbacks by subclassing the generated classes. At least you don't have to
> look at the generated code.
Bengt Richter wrote:
> On 12 Dec 2005 21:38:23 -0800, "Jacob Rael" <[EMAIL PROTECTED]> wrote:
>
>> Hello,
>>
>> I would like write a function that I can pass an expression and a
>> dictionary with values. The function would return a function that
>> evaluates the expression on an input. For exampl
Peter Decker <[EMAIL PROTECTED]> writes:
>> > A GUI builder is more pleasant to work with, at least
>> > with a good one like Delphi or Qt designer.
>> That is your opinion, and I'm sure it's true for you. It isn't true
>> for me.
> Why, then, do you disparage those who like to do things differentl
Hello,
I have to implement a mail server type program for a project using
python. I have already implemented smtp and pop3 protocol to send and
retrieve mail at the client side. I used an existing mail server
account to test the code. Now, I need to write the functionality of the
mail server end. M
Patch / Bug Summary
___
Patches : 383 open (+11) / 2990 closed (+10) / 3373 total (+21)
Bugs: 927 open (+19) / 5415 closed (+20) / 6342 total (+39)
RFE : 204 open ( +4) / 192 closed ( +1) / 396 total ( +5)
New / Reopened Patches
__
use PyOS_
On 12/13/05, Mike Meyer <[EMAIL PROTECTED]> wrote:
> > A GUI builder is more pleasant to work with, at least
> > with a good one like Delphi or Qt designer.
>
> That is your opinion, and I'm sure it's true for you. It isn't true
> for me.
Why, then, do you disparage those who like to do things di
Hi,
I am running a Python/Qt app I developed that runs flawlessly in Linux
on my Mac. It is unfortunate not running properly on the Mac OS X. The
window will not come into focus and is grayed out.
Does anyone have any ideas?
Thanks,
Michael
--
http://mail.python.org/mailman/listinfo/python-li
Mike Meyer wrote:
>>A GUI builder is more pleasant to work with, at least
>>with a good one like Delphi or Qt designer.
>
> That is your opinion, and I'm sure it's true for you. It isn't true
> for me.
Not trying to start a war here, but I consider this discussion something
like using regular e
On 12 Dec 2005 21:38:23 -0800, "Jacob Rael" <[EMAIL PROTECTED]> wrote:
>Hello,
>
>I would like write a function that I can pass an expression and a
>dictionary with values. The function would return a function that
>evaluates the expression on an input. For example:
>
>fun = genFun("A*x+off", {'A'
Paul Rubin wrote:
> Claudio Grondi <[EMAIL PROTECTED]> writes:
>
>>Currently Ubuntu is my favorite, because it seems to be at the moment
>>the only Linux distribution supporting already Python 2.4.2 out of the
>>box,
>
>
> Are you seriously saying that whatever distro came out most recently
> (a
François Pinard <[EMAIL PROTECTED]> writes:
> Would someone know where I could find a confirmation that comparing
> dictionaries with `==' has the meaning one would expect (even this is
> debatable!), that is, same set of keys, and for each key, same values?
It may not exist, so you'll have to go
Hi all,
1) Am working on windows XP, and is there any way i can get the whole
name as "windows Xp" using python script?
i have tried with
"os.sys.platform" but it just gives me as "win32", but can
i get the whole OS name as "windows Xp".
If this is not possible, atleast i have
[Peter Hansen]
>> it only says "Comparison operations are supported by all objects"
>> [...]
>I'm not checking the 2.3.5 version, but that latest one is fairly clear
>on what comparisons on mappings do:
>http://docs.python.org/ref/comparisons.html
Yes, indeed. Thanks a lot!
--
François Pin
François Pinard wrote:
> As for:
>
>http://www.python.org/doc/2.3.5/lib/comparisons.html
>
> it only says "Comparison operations are supported by all objects", which
> is a little vague, and no promise that comparisons are meaningful (for
> example, one might wonder what would exactly mean
[François Pinard]
...
> Would someone know where I could find a confirmation that comparing
> dictionaries with `==' has the meaning one would expect (even this is
> debatable!), that is, same set of keys, and for each key, same values?
Yes, look here : it has the meaning you expect, provided tha
Carl J. Van Arsdall wrote:
> Hi everyone, I'm trying to use the threading module with python 2.2 and
> I have some questions regarding python's threading.
My answers are meant to supplement Aahz' from another reply.
> 3. Is there a way to which thread is running?
"A way to" what? "See"? The
Peter Maas <[EMAIL PROTECTED]> writes:
> Mike Meyer schrieb:
>> I agree. I've tried a number of different gui builders. I find it much
>> faster to type something like:
>> ui.add_button("New", self.new)
>> ui.add_button("Open", self.open)
>> ui.add_button("Save", self.save)
>> ui.ad
(I apologize if this posts twice. My AVG is being fussy.)
From what I've read, MouseWheel is a very tricky event. I have
replaced my Python tcl84.dll and tk84.dll files with those in the
ActiveTcl distribution to fix the crashes caused by the event. Then, I
managed to see that my test script
Mozilla is growing python support:
http://weblogs.mozillazine.org/roadmap/archives/008865.html
Using Pywin32, Python can also be registered as an ActiveScript
language so that it can be used in Internet Explorer.
Roger
--
"Ask the ToeCutter - HE knows who I am !"
"Steve M" <[
On 12/13/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I also believe this is a bug.Here's an even shorter demonstration of the behavior:
>>> u"\\".encode("unicode_escape").decode("unicode_escape")Traceback (most recent call last): File "", line 1, in ?UnicodeDecodeError: 'unicodeescape' codec
Martin v. Löwis wrote:
> Not only that (but also). In addition, it also contains modules that
> were previously implemented as separate .pyd files (_csv, _sre,
> _symtable, _winreg, datetime, mmap, parser).
>
[snip]
>
> I previously said that I would do such a thing if somebody provided a
> spe
Laszlo Zsolt Nagy wrote:
>>
> I need to send Python objects too. They are too elaborate to convert
> them to XML. (They are using cyclic weak references and other Python
> specific stuff.) I can be sure that on both sides, there are Python
> programs. Is there any advantage in using XML if I al
Hi, people.
I noticed today that dictionaries seem to support `==' comparison.
(Retrospectively, it is strange that I never needed it before! :-)
Yet, before relying on this, I seeked for confirmation in the Python
manuals, and did not succeed in finding it. In particular:
http://www.pytho
Steven D'Aprano <[EMAIL PROTECTED]> writes:
> But neither is it call by reference. If it were call by reference, I could
> write something like this:
>
> def increment(n):
> """Add one to the argument changing it in place."""
> # In Pascal, I would need the var keyword to get this behaviour
In article <[EMAIL PROTECTED]>,
Carl J. Van Arsdall <[EMAIL PROTECTED]> wrote:
>
>I have some questions regarding python's threading.
These answers assume you're using CPython; Jython and IronPython have
different answers.
>1. Who schedules which threads run and when? Is this something left up
Gabriel Genellina wrote:
> Hi
>
> I'm using Python 2.4.2 on Windows 98 SE.
>
> In a program with several threads, sometimes (I cant determine exactly
> when or why) one thread dies with the following traceback:
>
> 12/13/05 02:17:47 (WatchDog ) Unhandled thread exception
> Traceback (most
I also believe this is a bug.
Here's an even shorter demonstration of the behavior:
>>> u"\\".encode("unicode_escape").decode("unicode_escape")
Traceback (most recent call last):
File "", line 1, in ?
UnicodeDecodeError: 'unicodeescape' codec can't decode byte 0x5c in
position 0: \ at end of str
Doru-Catalin Togea wrote:
> AttributeError: 'module' object has no attribute 'create_document'
> bash-2.03$
>
> Any ideas what is going on?
I would say it's a problem with the Amara installation on Solaris. I've
never used it, but maybe it's a package from another source which acts a
bit differen
Hi everyone, I'm trying to use the threading module with python 2.2 and
I have some questions regarding python's threading.
1. Who schedules which threads run and when? Is this something left up
to the operating system or does python provide a mechanism for this?
2. I've read that python thr
Ok, ok, i over-reacted. When first reading it seemed as an attack and i
quickly put up a defense because i dont like being attacked for no
reason. I was actually quite obnoxious and i apoligize.
And again, thx James for pointing that out.
Once again, i apoligize for my actions and words and i will
Jacob Kroon wrote:
> I'm writing a block-diagram editor, and could use some tips about
> writing/reading
> diagrams to/from an xml file format. The basic layout of my code :
>
> class Diagram {
> Blocks blocks[]
> }
>
> class Block {
> int x, y
> }
>
> class Square(Block) {
> int width,
Hi,
The new version of SPE 0.8.1.b (Python IDE) supports this. On the
toolbar press the "run/stop with winpdb button" button ('gear with bug
in it' icon) and when you want to find out, press the debug button (bug
icon), then the debugger will break your script and you are even able
to alter values
Ivan Voras wrote:
> Maybe the OP really wants a GUI builder.
>
> More than 5 years ago, i programmed in Visual Basic and Delphi and I
> still miss the wonderful ease of graphically creating the user interface
> in WYSIWYG mode. If you haven't tried it, you don't know what you're
> missing :)
>
I just wanted to mention that, according to the latest news from
Ironpython's mailing list, an Ironpython plug-in for Visual Studio is
on the works. Read on:
Aaron Marten wrote:
> Hi Giles,
> I'm on the Visual Studio SDK team here at Microsoft. In
> co-operation with the IronPython team, we'
Mike Meyer schrieb:
> I agree. I've tried a number of different gui builders. I find it much
> faster to type something like:
>
> ui.add_button("New", self.new)
> ui.add_button("Open", self.open)
> ui.add_button("Save", self.save)
> ui.add_button("Save As", self.save_as)
>
> Than
Django is the closest one.
[EMAIL PROTECTED] wrote:
> I'm interested in knowing which Python web framework is most like Ruby
> on Rails.
>
> I've heard of Subway and Django.
>
>
> Are there other Rails clones in Python land I don't know about?
>
> Which one has largest community/buzz about it?
BartlebyScrivener wrote:
> Even without the marker, can't you do:
>
> sentence = "the fabric is red"
> colors = ["red", "white", "blue"]
>
> for color in colors:
> if (sentence.find(color) > 0):
> print color, sentence.find(color)
>
That depends on whether you're only looking for who
Thanks for the suggestions but I have all of the MFC dll's. In fact I
have Visual Studio 2003 installed on the box. However my mfc42.dll is
different than the size stated on that link. In fact the download is a
different size that what is stated on the link.
--
http://mail.python.org/mailman/l
On Tue, 13 Dec 2005 23:21:02 +0100, Xavier Morel wrote:
> Steven D'Aprano wrote:
>> name = "spam spam spam spam"
>>
>> the value of the variable "name" is a pointer, and not a string. Riiight.
>>
> Yes, it's a reference to an object of type string holding the value
>
The underlying C implemen
Xavier Morel wrote:
> Now use a mutable type instead of an immutable int and you'll notice a
> pass-by-reference behavior.
python passes a reference to the value, not a reference to the variable.
call-by-reference usually refers to the latter. see e.g.
http://foldoc.org/?call-by-reference
headspin wrote:
> I know how to switch a label from text to an image; simply config the
> image property to an existing image.
>
> But how do you do the opposite? Once a label displays an image, how do
> you switch it back to displaying text? Setting the image property to
> None doesn't seem to do
Jérôme Laheurte <[EMAIL PROTECTED]> writes:
> On Tue, 13 Dec 2005 17:35:40 +0100, Ivan Voras wrote:
>> Maybe the OP really wants a GUI builder.
>> More than 5 years ago, i programmed in Visual Basic and Delphi and I
>> still miss the wonderful ease of graphically creating the user interface
>> in
chuck wrote:
> Sticking with 2.4.2 I reverted to win32 ext 204 and problems were the
> same or worse. Then I uninstalled both, removed the dangling py*24.dll
> and then installed "ActivePython 2.3.5.236". All the problems went
> away.
>
> I hate to go back to 2.3 cause there are some nice update
I'm looking for a RPC library in Python that can keep its TCP connection
alive for the duration of a user's login session. The reason is, each
user login to the application server will impose a single dedicated
database connection, and a TCP disconnect will indiciate application
server to then
Steve wrote:
> I have been trying to find documentation on the behavior
the behaviour of what ?
> Can anyone tell me why the first example works and the second doesn't
> and where I can read about it in the language reference?
the os.path.join documentation (in the library reference) says
Hi,
I'm relatively new to Xlib programming, and I ran into a little problem.
I'm trying to insert keypress events into a X window. The following code
works:
--8<
#!/usr/bin/python
import Xlib.display
import Xlib.X
import Xlib.XK
impo
Hi,
I have a program which somewhere gets into infinite look and take 100%
of CPU. How can attach to it with the debugger to find out where it
takes place?
A.
--
http://mail.python.org/mailman/listinfo/python-list
PatPoul wrote:
> I want to do the same thing as
>
>
> but with a python script :
>
>
> ==
> if xxx.py :
> def mytest():
> alert("test")
> window.document.write('test')
> ==
> and test.html :
>
>
>
>
> mytest()
>
>
Shouldn't have hit the "send" button so fast...
Addendum: the script element doesn't have any language attribute, the
attribute you're supposed to use is "type" and it takes the MIME type of
your script as a value.
s/language="javascript"/type="text/javascript"/
--
http://mail.python.org/mailm
> Javascript is specifically designed for client-side scripting
Actually, Javascript's client-side implementation is specifically
designed for client-side scripting. It has originally been envisioned
by Netscape for both server and sclient side scripting.
Berislav
--
http://mail.python.org/mail
"""Derived from _Python Programming on Win32_ by Mark Hammond and Andy
Robinson"""
import win32com.client
import win32com.client.dynamic
class Excel:
def __init__(self, filename=None):
self.xlApp =
win32com.client.dynamic.Dispatch('Excel.Application')
if filename:
Steven D'Aprano wrote:
> name = "spam spam spam spam"
>
> the value of the variable "name" is a pointer, and not a string. Riiight.
>
Yes, it's a reference to an object of type string holding the value
> def increment(n):
> """Add one to the argument changing it in place."""
> # In Pas
Man, I don't even know where to start. There is no way this will work
if you don't have a web browser that can interpret Python. I don't know
of one, and I don't think anybody wants one because using a browser
that would execute arbitrary Python code provided by the server would
be an obscene secur
In article <[EMAIL PROTECTED]>,
Dan M <[EMAIL PROTECTED]> wrote:
(quoting someone)
> > 4. If you only have one argument, you don't need a tuple
> > for string formatting.
> > 5. "(dateYest)" is not a tuple anyway--the parentheses are
> > superfluous 6. Single item tuples can be created with "(ani
I have been trying to find documentation on the behavior
Can anyone tell me why the first example works and the second doesn't
and where I can read about it in the language reference?
Steve
print os.path.join(os.path.dirname(os.tmpnam()),*("a","b","c"))
#works
OUTPUT:/var/tmp/a/b/c
and
print os
"Jacob Rael" <[EMAIL PROTECTED]> writes:
> In CppSim, classes are defined that allow various functions to be
> defined, like amplifiers. In some cases they are linear:
>
> y = A*x
>
> some have offsets:
>
> y = A*x + off
>
> some are non-linear
>
> y = A*x - C*x**3
>
> The coefficients and the func
Hi!
I have ActiveState Python 2.4.1 on Win XP Pro, with Amara 1.1.6. I have a
script which works fine.
I am trying to run the same script on a Solaris machine, with Python 2.4.2
and Amara 1.1.6. It gives me this error:
bash-2.03$ python generateXML.py
Traceback (most recent call last):
File
Look at eric3. Has the QtDesigner. In my view Qt beats anything.
http://www.die-offenbachs.de/detlev/eric3.html
--
http://mail.python.org/mailman/listinfo/python-list
I want to do the same thing as
but with a python script :
==
if xxx.py :
def mytest():
alert("test")
window.document.write('test')
==
and test.html :
mytest()
==
I always got
[EMAIL PROTECTED] wrote:
> Utf-8 is the same as Unicode?
No, UTF-8 is one (of several) possible encodings for expressing Unicode
as a stream of bytes.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Exercise
Antoon Pardon <[EMAIL PROTECTED]> writes:
> Op 2005-12-11, Steven D'Aprano schreef <[EMAIL PROTECTED]>:
>> On Sat, 10 Dec 2005 15:46:35 +, Antoon Pardon wrote:
>> Do you really think that my class and some other class written by
>> another person will have the same API?
> If both writers try to
[EMAIL PROTECTED] wrote:
> I am getting somewhat random UnicodeDecodeError messages in my program.
>
> It is random in that I will be going through a pysqlite database of
> records, manipulate
> the results, and it will throw UnicodeDecodeError apparently without
> regard
> as to what data is bein
Django might be the answer.
--
http://mail.python.org/mailman/listinfo/python-list
Good example Brian
It shows clearly the special role that two underscores play in a class
definition.
Thanks Bob
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 13 Dec 2005 15:28:32 +, Tom Anderson wrote:
> On Tue, 13 Dec 2005, Steven D'Aprano wrote:
>
>> On Mon, 12 Dec 2005 18:51:36 -0600, Larry Bates wrote:
>>
>> [snippidy-doo-dah]
>>
>>> I had the same thought, but reread the post. He asks "if a given
>>> variable is a character or a num
[EMAIL PROTECTED] wrote:
> ... partway through the database results I get something like this:
> for item in list:
> UnicodeDecodeError : 'utf8' codec can't decode bytes in position 26-28:
> invalid data
It is quite likely that the position is not what you think it is.
For one of the bad string
This is from 9.6 (Private variables). I quote
- "Notice that code passed to exec, eval() or evalfile() does not
consider the classname of the invoking class to be the current class;
this is similar to the effect of the global statement, the effect of
which is likewise restricted to code that is by
Lawrence Oluyede ha scritto:
> Il 2005-12-13, ivan.dm <[EMAIL PROTECTED]> ha scritto:
>
>>Hi all.
>>
>>in this sentence:
>>self.area = gtk.DrawingArea()
>>self.style = self.area.get_style()
>>self.gc = self.style.fg_gc[gtk.STATE_NORMAL]
>>
>>where can I find about style and its property?
>
>
> I
Thanks Diez,
Everything becomes very clear from this example
Bob
--
http://mail.python.org/mailman/listinfo/python-list
> You're poorly informed. Komodo, for instance, does indeed offer a GUI
> designer for tkinter.
You're right. Sorry... I guess I exagerated a little bit :-)
I tried Komodo and WingIDE some time ago, but it was just a quick look.
I had the impression that they didn't offer much more than other fre
[EMAIL PROTECTED] said unto the world upon 2005-12-13 15:05:
> I'm reading van Rossum's tutorial. Mostly it is well written and
> examples are given. However sometimes I get lost in a text, when it
> doesn't give any examples and no clues. There are several examples of
> this in chapter 9 about cla
I know how to switch a label from text to an image; simply config the
image property to an existing image.
But how do you do the opposite? Once a label displays an image, how do
you switch it back to displaying text? Setting the image property to
None doesn't seem to do the trick.
By the way, I i
> Few points points:
>
> 1. Generally: I would try to minimize system calls. They make your code less
> portable.
Excellent point. In this case the app will never live anywhere other than
one specific FreeBSD machine, but I do appreciate the value of the advice
anyway. Therefore...
> 2. Look
On Tue, 13 Dec 2005 09:46:30 +, Steve Holden wrote:
> Paul Rubin wrote:
>> Steve Holden <[EMAIL PROTECTED]> writes:
>>
>>>The really interesting question your post raises, though, is "Why do
>>>you feel it's necessary to test to see whether a variable is a
>>>Boolean?".
>>
>>
>> What's the
>
> Could someone provide an example of the above or direct me to a page
> where it is used.
class MangledMembers:
def __init__(self):
self.__mangled_propertyname = "fooo"
mm = MangledMembers()
try:
print mm.__mangled_propertyname
except AttributeError:
print "It's pr
Hello
I am getting somewhat random UnicodeDecodeError messages in my program.
It is random in that I will be going through a pysqlite database of
records, manipulate
the results, and it will throw UnicodeDecodeError apparently without
regard
as to what data is being used.
For example I am readin
Another thread touched on the dangers of doing this, if other
applications depend on the older version of Python.
http://groups.google.com/group/comp.lang.python/browse_frm/thread/51c8fba4098879ad/734b6bdac1d74b89?lnk=st&q=&rnum=10#734b6bdac1d74b89
--
http://mail.python.org/mailman/listinfo/pyth
[EMAIL PROTECTED] writes:
> Hi Everybody
>
>
> Here i have a query for you, that is
>
> How can I refresh the windows desktop using the python script?
>
> Thanks in advance for having given a thought on my query.
>
> Regards
> yogi
>
SPI_SETDESKWALLPAPER = 20
ctypes.windll.user32.SystemParamete
I'm reading van Rossum's tutorial. Mostly it is well written and
examples are given. However sometimes I get lost in a text, when it
doesn't give any examples and no clues. There are several examples of
this in chapter 9 about classes. Here's one from 9.6 (Private
Variables). I quote
"There is lim
Steven Bethard <[EMAIL PROTECTED]> once said:
> Nathan Gilbert wrote:
>> Has there been any work done lately on the Python Graph API?
>
> Well there doesn't really seem to be a standard one. The wiki was last
> updated in August.
>
> http://wiki.python.org/moin/PythonGraphApi
>
> STeVe
Y
Hi!
I had few modif. your code :
import time
from win32com.client import Dispatch
xlApp = Dispatch("Excel.Application")
xlApp.Visible=True
xlWb = xlApp.Workbooks.Open("Read.xls")
print "D3:",xlWb.ActiveSheet.Cells(3,4).Value
time.sleep(2)
xlWb.Close(SaveChanges=0)
xlApp.Quit()
This run OK on my
"Michael McGarry" <[EMAIL PROTECTED]> writes:
> Marshal should save the data in a readable text format, but I guess it
> does not.
>
> Any help would be appreciated,
RTFM. Marshal is not intended for what you're doing. Use Pickle,
which is.
--
http://mail.python.org/mailman/listinfo/python-lis
1 - 100 of 237 matches
Mail list logo