I'm sure someone else has posted a similar problem but I can't find it,
nor the solution...
I have a python script which accepts a command line argument.
E.g.
python.exe myscript.py -n Foo
I build this as part of a package using distutils with the
bdist_wininst option on a Windows 2K (SP4)
I'm using getopt. I doubt getopt recognises \x96 as a command line
parameter prefix. I suppose I could iterate over sys.argv doing a
replace but that seems messy. I'd rather understand the problem.
That said, and me not understanding code pages that much, I chcp'd the
machines it works on both
This was discovered after consultation with a colleague who shall
remain nameless but, well, nailed it basically.
The answer appears to be:
An example command line for running the script was written in a word
document. The Autocorrect (sic) feature in word replaces a normal
dash at least as I know
On 4 Dec, 23:18, Rod Person [EMAIL PROTECTED] wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I've been doing python programming for about 2 years as a hobby and now
I'm finally able to use it at work in an enterprise environment. Since
I will be creating the base classes and libraries
On 19 Dec, 05:24, Gabriel Genellina [EMAIL PROTECTED] wrote:
En Tue, 18 Dec 2007 09:15:12 -0300, English, Mark [EMAIL PROTECTED]
escribió:
try: set
except NameError: from sets import Set as set
class myset_fails(set): pass
class myset_works(set):
def __getitem__(self): pass
s
On 19 Dec, 10:03, MarkE [EMAIL PROTECTED] wrote:
No, sets aren't sequences, as they have no order. Same as dicts, which
aren't sequences either.
Oops. I was under the misapprehension that they were sequences
I realise now that this is even explicitly documented:
http://docs.python.org/lib
Kevac Marko [EMAIL PROTECTED] writes:
When changing default value, is there any way to change class
attribute and all referenced attributes too?
class M:
name = uMarko
a, b = M(), M()
a.name = uKevac
print M.name, a.name, b.name
- Marko Kevac Marko
Is there any way to get
Ithon
--
http://mail.python.org/mailman/listinfo/python-list
I'm just getting started on Boost Python and may have missed this
obvious looking problem somewhere.
Given a c-extension testext written using Boost Python containing a
base class Base, a derived class Derived, and a function
doSomething which expects a Derived parameter, if I pass it a
Base