py-dom-xpath is a pure Python implementation of XPath 1.0. It supports
almost all XPath 1.0, and works well with xml.dom.minidom.
http://code.google.com/p/py-dom-xpath/
py-dom-xpath requires Python 2.5 or greater. It is unlikely to set
any speed records, but may be of use in situations where
On Feb 22, 9:02 pm, venutaurus...@gmail.com
venutaurus...@gmail.com wrote:
On Feb 23, 9:25 am, MRAB goo...@mrabarnett.plus.com wrote:
venutaurus...@gmail.com wrote:
Hello all,
I am writing an application where I need to open a shared
file on a remote machine using python
On Sun, Feb 22, 2009 at 9:02 PM, venutaurus...@gmail.com
venutaurus...@gmail.com wrote:
On Feb 23, 9:25 am, MRAB goo...@mrabarnett.plus.com wrote:
venutaurus...@gmail.com wrote:
Hello all,
I am writing an application where I need to open a shared
file on a remote machine using
On Mon, Feb 23, 2009 at 5:09 AM, Steven D'Aprano
ste...@remove.this.cybersource.com.au wrote:
On Sun, 22 Feb 2009 13:37:27 -0300, andrew cooke wrote:
as far as i understand things, the best model is:
1 - everything is an object
2 - everything is passed by reference
Except that is wrong. If
On Feb 23, 2:56 pm, Chris Cormie ccor...@aussiemail.com.au wrote:
Hi,
I've been Googling around on a moderately common Windows Python problem:
a mismatch between the symbols a python extension thinks are available
and the contents of the associated DLL. Python users running into this
problem
Hi,
I am trying to write a small program for my final for school, everytime i
run my program it gives me a return outside function error (after i fixed
all the indentation errors it throws at me), i am not very good at
programing with python atm, so any help would be appreiciated. and if im
On Sun, Feb 22, 2009 at 10:51 PM, Tony sternbrightbl...@gmail.com wrote:
Hi,
I am trying to write a small program for my final for school, everytime i
run my program it gives me a return outside function error (after i fixed
all the indentation errors it throws at me), i am not very good at
On 20 Ún, 16:27, Steve Holden st...@holdenweb.com wrote:
Kom2 wrote:
Hello,
I'm trying to convert my project from python 2.5 to python 3.0 and I
have the following problem. My project is PYD library written in C++.
So I have this PyInit_ModuleName function containing PyModule_Create
On Feb 23, 2:13 am, Torsten Mohr tm...@s.netic.de wrote:
Hi,
how is the rule in Python, if i pass objects to a function, when is this
done by reference and when is it by value?
def f1(a):
a = 7
b = 3
f1(b)
print b
= 3
Integers are obviously passed by value, lists and dicts by
André Thieme wrote:
(map #(map (fn [s] (Integer/parseInt s)) (.split % \\s)) (line-seq
(reader blob.txt)))
An error results:
java.lang.Exception: Unable to resolve symbol: reader in this context
This works:
(map #(map (fn [s] (Integer/parseInt s)) (.split % \\s))
(.split (slurp junk)
Paul Rubin http://phr...@nospam.invalid wrote:
The cost of messing with the multiprocessing module instead of having
threads work properly, and the overhead of serializing Python data
structures to send to another process by IPC, instead of using the
same object in two threads. Also, one way
Christian Heimes liss.de wrote:
John Nagle wrote
If bytes, a new keyword, works differently in 2.6 and 3.0, that was
really
dumb. There's no old code using bytes. So converting code to 2.6 means
it has to be converted AGAIN for 3.0. That's a good reason to ignore
2.6 as
On Feb 21, 10:44 pm, Ethan Furman et...@stoneleaf.us wrote:
-- midnight = datetime.time(0,0,0)
-- bool(midnight)
False
I'd call this a bug.
Mark
--
http://mail.python.org/mailman/listinfo/python-list
Hi Chris,
-Original Message-
From: ch...@rebertia.com [mailto:ch...@rebertia.com] On
Behalf Of Chris Rebert
Sent: Thursday, February 19, 2009 22:58
To: Barak, Ron
Cc: python-list@python.org; wxpython-us...@lists.wxwidgets.org
Subject: Re: metaclass conflict error: where is
On Sun, Feb 22, 2009 at 1:37 AM, Barak, Ron ron.ba...@lsi.com wrote:
Hi Chris,
-Original Message-
From: ch...@rebertia.com [
mailto:ch...@rebertia.com] On
Behalf Of Chris Rebert
Sent: Thursday, February 19, 2009 22:58
To: Barak, Ron
Cc: python-list@python.org;
On Feb 22, 9:18 am, Mark Dickinson dicki...@gmail.com wrote:
On Feb 21, 10:44 pm, Ethan Furman et...@stoneleaf.us wrote:
-- midnight = datetime.time(0,0,0)
-- bool(midnight)
False
I'd call this a bug.
...although looking at the source (see the function
time_nonzero in
The only python library that I am aware of that supports ftp + TLS is ftpslib,
which is also included with M2Crypto. However, as stated in the README, there
is one major caveat. Quote:
The end-of-file marker for binary data transfers is sent by closing the
connection. Many FTP servers close
Dear Community
Now I'm standing here, having this great idea for a brand new rocking app...
But where do I start? I want it to be multi-platform (Linux, Mac OS X,
Windows). It should be easy to install and upgrade. It should be
self-contained, independent of an already installed Python. And of
Hendrik van Rooyen m...@microcorp.co.za writes:
Christian Heimes liss.de wrote:
on the surface JN has a point - If you have to go through two
conversions, then 2.6 does not achieve what it appears to set out to
do. So the issue is simple:
- do you have to convert twice?
- If yes - why?
Dear Community
Now I'm standing here, having this great idea for a brand new rocking
app...
But where do I start? I want it to be multi-platform (Linux, Mac OS X,
Windows). It should be easy to install and upgrade. It should be self-
contained, independent of an already installed Python. And of
Hi Chris,
-Original Message-
From: Chris Rebert [mailto:c...@rebertia.com]
Sent: Sunday, February 22, 2009 11:48
To: Barak, Ron
Cc: python-list@python.org; wxpython-us...@lists.wxwidgets.org
Subject: Re: metaclass conflict error: where is noconflict ?
On Sun, Feb 22, 2009 at
On Sun, Feb 22, 2009 at 3:31 AM, Barak, Ron ron.ba...@lsi.com wrote:
snip
Applying your suggestion:
class ListControlMeta(type(wx.Frame), type(CopyAndPaste)):
pass
class ListControl(wx.Frame, CopyAndPaste):
def __init__(self, parent, id, title, list, max_list_width,
Gabriel Genellina said:
That's very short-lived; cmp is gone in 3.0.1 (should not have existed in 3.0
in the first place).
Try with:
choices.sort(key=str.lower)
Gabriel,
That's worked fine - thank you. I think I now have a version of
easygui.py that works with Python 3, probably needs a bit
Barak, Ron ron.ba...@lsi.com writes:
class CopyAndPaste():
CopyAndPaste is an old-style class. Make it a new-style class, and
you'll probably be able to inherit from it and wx.Frame without
explicitly creating a new metaclass.
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 21 Feb 2009 09:42:02 -0800, Aahz wrote:
In article aac004f8-2077-4e53-a865-47c24f7f5...@t3g2000yqa.googlegroups.com,
Alia K alia_kho...@yahoo.com wrote:
Nevertheless, I remain curious about whether once can use the
contextmanager in python to achieve the full power of ruby's blocks...
On Sat, Feb 21, 2009 at 10:06 PM, Sebastian Bassi
sba...@clubdelarazon.org wrote:
I don't understand what is wrong when I try to install ReportLab. This
is under Ubuntu and all build packages are installed.
Here is what I get when trying to install it: (I could install it with
apt-get, but I
Hi Chris,
-Original Message-
From: ch...@rebertia.com [mailto:ch...@rebertia.com] On
Behalf Of Chris Rebert
Sent: Sunday, February 22, 2009 13:57
To: Barak, Ron
Cc: python-list@python.org
Subject: Re: metaclass conflict error: where is noconflict ?
On Sun, Feb 22, 2009 at 3:31
re: You should never have to rely on the default encoding. You should
explicitly decode and encode data.
What is the best practice for 1) doing this in Python and 2) for
unicode support ?
I want to standardize on unicode and want to put into place best
Python practice so that we don't have to
Hi Michele,
I tried understanding how to avoid the metaclasses clashing, and I did read the
link you referred to below,
as well as the relevant O'Reilly cookbook chapter (Recipe 20.17. Solving
Metaclass Conflicts), but seems I do not understand the correct syntax to use,
as I either get
$
Hi Hrvoje,
I tried also as follows:
#!/usr/bin/env python
import wx
class CopyAndPaste(object):
def __init__(self):
pass
def set_copy_and_paste(self):
...
and CopyAndPaste is being called with:
...
class ListControlMeta(wx.Frame, CopyAndPaste):
pass
class
hello,
I often get an error message like this
self.Brick.Par [ self.EP[2] ]['FileName'] = filename
IndexError: list index out of range
Now it would be very welcome,
if the error message specified which index is out of range,
in this case e.g.,
- specifying the length of self.EP
- specifying
Gabriel Genellina wrote:
En Sat, 21 Feb 2009 14:51:40 -0200, rdmur...@bitdance.com escribió:
Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
En Fri, 20 Feb 2009 20:44:21 -0200, Aaron Scott
aaron.hildebra...@gmail.com escribi=F3:
So, the problem lies with how Python cached the modules in
Ethan Furman wrote:
Greetings, List!
I was curious if anyone knew the rationale behind making midnight False?
-- import datetime
-- midnight = datetime.time(0,0,0)
-- bool(midnight)
False
To my way of thinking, midnight does actually exist so it should be
true. If datetime.time was
Marcel Luethi wrote:
Dear Community
Now I'm standing here, having this great idea for a brand new rocking
app...
But where do I start? I want it to be multi-platform (Linux, Mac OS X,
Windows). It should be easy to install and upgrade. It should be self-
contained, independent of an
On Sun, Feb 22, 2009 at 1:39 AM, Ross Ridge rri...@csclub.uwaterloo.ca wrote:
Ross Ridge (Sat, 21 Feb 2009 18:06:35 -0500)
I understand what Unicode and MIME are for and why they exist. Neither
their merits nor your insults change the fact that the only current
standard governing the content
Hi Stef,
You can do something like (not tested):
try:
self.Brick.Par [ self.EP[2] ]['FileName'] = filename
except IndexError,e:
msg = %s: '%s %s %s %d %
(e.strerror,e.filename,self.EP,self.EP[2],len(self.Brick.Par))
print msg
Bye,
Ron.
On Sun, 22 Feb 2009 05:20:31 -0200
Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
En Sat, 21 Feb 2009 21:55:23 -0200, MRAB goo...@mrabarnett.plus.com
escribió:
I think it's because midnight is to the time of day what zero is to
integers, or an empty string is to strings, or an empty
Barak, Ron wrote:
Hi Stef,
You can do something like (not tested):
try:
self.Brick.Par [ self.EP[2] ]['FileName'] = filename
except IndexError,e:
msg = %s: '%s %s %s %d %
(e.strerror,e.filename,self.EP,self.EP[2],len(self.Brick.Par))
print msg
Hendrik van Rooyen wrote:
Christian Heimes liss.de wrote:
John Nagle wrote
If bytes, a new keyword, works differently in 2.6 and 3.0, that was
really
dumb. There's no old code using bytes. So converting code to 2.6 means
it has to be converted AGAIN for 3.0. That's a good reason
Hi,
how is the rule in Python, if i pass objects to a function, when is this
done by reference and when is it by value?
def f1(a):
a = 7
b = 3
f1(b)
print b
= 3
Integers are obviously passed by value, lists and dicts by reference.
Is there a general rule? Some common formulation?
Torsten Mohr schrieb:
Hi,
how is the rule in Python, if i pass objects to a function, when is this
done by reference and when is it by value?
def f1(a):
a = 7
b = 3
f1(b)
print b
= 3
Integers are obviously passed by value, lists and dicts by reference.
Is there a general
Spacebar265 spacebar...@gmail.com wrote in
news:c86cd530-cee5-4de6-8e19-304c664c9...@c12g2000yqj.googlegroups.c
om:
On Feb 11, 1:06 am, Duncan Booth duncan.bo...@invalid.invalid
wrote:
[...]
re.split((\w+), The quick brown fox jumps, and falls
over.)[1::2]
['The', 'quick', 'brown',
For internal distribution purposes, I was wondering if there was an
already established process/program for installing Python on Windows
machines without using an msi file or compiling from source. Basically
I need the standard distribution installed by either a batch file or
python script through
Torsten Mohr tm...@s.netic.de wrote:
how is the rule in Python, if i pass objects to a function, when is this
done by reference and when is it by value?
def f1(a):
a = 7
b = 3
f1(b)
print b
= 3
Integers are obviously passed by value, lists and dicts by reference.
Is there a
Gabriel Genellina wrote:
En Sat, 21 Feb 2009 21:55:23 -0200, MRAB goo...@mrabarnett.plus.com
escribió:
Ethan Furman wrote:
Greetings, List!
I was curious if anyone knew the rationale behind making midnight
False?
-- import datetime
-- midnight = datetime.time(0,0,0)
-- bool(midnight)
Torsten Mohr wrote:
Hi,
how is the rule in Python, if i pass objects to a function, when is this
done by reference and when is it by value?
def f1(a):
a = 7
b = 3
f1(b)
print b
= 3
Integers are obviously passed by value, lists and dicts by reference.
Is there a general rule? Some
I've been using PySerial on Windows (Win2000, amusingly) to drive
a Baudot teletype at 45.45 baud. Input and output work, but there's
a delay of about 1 second (!) on the input side between receiving a
character and reporting it to the program.
I'm using the latest supports 1.5 stop bits
as far as i understand things, the best model is:
1 - everything is an object
2 - everything is passed by reference
3 - some objects are immutable
4 - some (immutable?) objects are cached/reused by the system
andrew
Torsten Mohr wrote:
Hi,
how is the rule in Python, if i pass objects to a
J Kenneth King schrieb:
I recently started a project called TracShell
(http://code.google.com/p/tracshell) where I make heavy use of the
xmlrpclib core module.
When the number of RPC calls was small, wrapping each call in try/except
was acceptable. However, this obviously will duplicate code
On 2009-02-22, John Nagle na...@animats.com wrote:
I've been using PySerial on Windows (Win2000, amusingly) to
drive a Baudot teletype at 45.45 baud. Input and output work,
but there's a delay of about 1 second (!) on the input side
between receiving a character and reporting it to the
2009/2/22 Mark Dickinson dicki...@gmail.com:
On Feb 21, 10:44 pm, Ethan Furman et...@stoneleaf.us wrote:
-- midnight = datetime.time(0,0,0)
-- bool(midnight)
False
I'd call this a bug.
No more so than zero being false. Zero exists too (check my bank
balance). Once you've accepted
Hi Steve
I really appreciate your feedback!
Certainly I'm no expert for the many differences in package formats and
install requirements between the different platforms.
But let me explain a bit more:
I don't have the idea that the multi-platform client should handle all the
different package
Barak, Ron ron.ba...@lsi.com writes:
import wx
class CopyAndPaste(object):
def __init__(self):
pass
def set_copy_and_paste(self):
...
and CopyAndPaste is being called with:
...
class ListControlMeta(wx.Frame, CopyAndPaste):
pass
You don't need ListControlMeta at all; just
Grant Edwards wrote:
On 2009-02-22, John Nagle na...@animats.com wrote:
I've been using PySerial on Windows (Win2000, amusingly) to
drive a Baudot teletype at 45.45 baud. Input and output work,
but there's a delay of about 1 second (!) on the input side
between receiving a character and
Sparky wrote:
For internal distribution purposes, I was wondering if there was an
already established process/program for installing Python on Windows
machines without using an msi file or compiling from source. Basically
I need the standard distribution installed by either a batch file or
Please don't call something dumb that you don't fully understand. It's
offenses the people who have spent lots of time developing Python --
personal, unpaid and voluntary time!
Crying out; Please do not criticise me, I am doing it for free! does
not justify delivering sub standard work -
andrew cooke and...@acooke.org wrote in message
news:mailman.464.1235320654.11746.python-l...@python.org...
as far as i understand things, the best model is:
1 - everything is an object
2 - everything is passed by reference
3 - some objects are immutable
4 - some (immutable?) objects are
intellimi...@gmail.com wrote:
Ummm, I didn't know about the dbm databases. It seems there are many
different
modules for this kind of tasks: gdbm, berkeley db, cdb, etc. I'm
needing to implement
a constant hashtable with a large number of keys, but only a small
fraction of them
will be
The following code didn't work:
class X(object):
def f(self, **kwds):
print kwds
try:
print kwds['i'] * 2
except KeyError:
print unknown keyword argument
self.g(string, **kwds)
On Sun, 2009-02-22 at 11:44 -0800, Ravi wrote:
The following code didn't work:
snip
def g(self, s, kwds):
print s
print kwds
This expects the function g to be called with the parameters s and
kwds
snip
def g(self, s, **kwds):
I am sorry about the typo mistake, well the code snippets are as:
# Non Working:
class X(object):
def f(self, **kwds):
print kwds
try:
print kwds['i'] * 2
except KeyError:
print unknown keyword argument
self.g(string, kwds)
def g(self, s, **kwds):
print s
print
On Sun, 2009-02-22 at 11:44 -0800, Ravi wrote:
The following code didn't work:
class X(object):
def f(self, **kwds):
print kwds
try:
print kwds['i'] * 2
except KeyError:
print unknown
On Sun, Feb 22, 2009 at 5:14 AM, Barak, Ron ron.ba...@lsi.com wrote:
Hi Chris,
snip
Is there a way to ask a class what its metaclasses are ?
(e.g., how to ask wx.Frame what it's metaclass is)
Of course. A metaclass is the type of a class, so it's just type(wx.Frame).
Cheers,
Chris
--
Follow
On Feb 22, 11:15 am, Martin v. Löwis mar...@v.loewis.de wrote:
Sparky wrote:
For internal distribution purposes, I was wondering if there was an
already established process/program for installing Python on Windows
machines without using an msi file or compiling from source. Basically
I
intellimi...@gmail.com wrote:
Is there a limit to the size or number of entries that a single
dictionary can possess?
On a 32-bit system, the dictionary can have up to 2**31 slots,
meaning that the maximum number of keys is slightly smaller
(about 2**30).
As others have pointed out, Python's
On Sun, 2009-02-22 at 12:09 -0800, Ravi wrote:
I am sorry about the typo mistake, well the code snippets are as:
# Non Working:
class X(object):
def f(self, **kwds):
print kwds
try:
print kwds['i'] * 2
except KeyError:
print unknown keyword argument
self.g(string,
Hi,
In the following code, (in Python 2.5)
I was expecting to get in b variable the values b: [[0, 0], [0, 1],[0,
2], [0, 3],[0, 4], [1, 0],[1, 1], [1, 2], .]
But I get only the last value [4,4], b: b: [[4, 4], [4, 4], [4, 4], ... ]
My code:
a = [,]
b = []
for i in range (0,5):
for j
On Feb 20, 10:12 am, ssd c...@d.com wrote:
Hi,
In the following code, (in Python 2.5)
I was expecting to get in b variable the values b: [[0, 0], [0, 1],[0,
2], [0, 3],[0, 4], [1, 0],[1, 1], [1, 2], .]
But I get only the last value [4,4], b: b: [[4, 4], [4, 4], [4, 4], ... ]
My code:
D'Arcy J.M. Cain da...@druid.net writes:
On Sun, 22 Feb 2009 05:20:31 -0200
Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
En Sat, 21 Feb 2009 21:55:23 -0200, MRAB goo...@mrabarnett.plus.com
escribió:
I think it's because midnight is to the time of day what zero is to
integers, or
On Fri, Feb 20, 2009 at 8:12 AM, ssd c...@d.com wrote:
Hi,
In the following code, (in Python 2.5)
I was expecting to get in b variable the values b: [[0, 0], [0, 1],[0,
2], [0, 3],[0, 4], [1, 0],[1, 1], [1, 2], .]
But I get only the last value [4,4], b: b: [[4, 4], [4, 4], [4, 4], ...
Peter Anderson wrote:
Gabriel Genellina said:
That's very short-lived; cmp is gone in 3.0.1 (should not have existed
in 3.0 in the first place).
Try with:
choices.sort(key=str.lower)
Gabriel,
That's worked fine - thank you. I think I now have a version of
easygui.py that works with Python
Chris Rebert wrote:
On Sat, Feb 21, 2009 at 8:46 PM, Peter Anderson
peter.ander...@internode.on.net wrote:
I have just installed Python 3. I have been using Tkinter and easygui (with
Python 2.5.4) for any GUI needs. I have just started to port some of my
existing scripts to Python 3 and
On Feb 20, 8:12 am, ssd c...@d.com wrote:
Hi,
In the following code, (in Python 2.5)
I was expecting to get in b variable the values b: [[0, 0], [0, 1],[0,
2], [0, 3],[0, 4], [1, 0],[1, 1], [1, 2], .]
But I get only the last value [4,4], b: b: [[4, 4], [4, 4], [4, 4], ... ]
My code:
Tim Rowe wrote:
2009/2/22 Mark Dickinson dicki...@gmail.com:
On Feb 21, 10:44 pm, Ethan Furman et...@stoneleaf.us wrote:
-- midnight = datetime.time(0,0,0)
-- bool(midnight)
False
I'd call this a bug.
No more so than zero being false. Zero exists too (check my bank
Ravi wrote:
The following code didn't work:
In the future, explain didn't work.
Wrong output? give actual (copy and paste) and expected.
Error message? give traceback (copy and paste).
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, Feb 22, 2009 at 1:20 PM, Terry Reedy tjre...@udel.edu wrote:
Chris Rebert wrote:
On Sat, Feb 21, 2009 at 8:46 PM, Peter Anderson
peter.ander...@internode.on.net wrote:
I have just installed Python 3. I have been using Tkinter and easygui
(with
Python 2.5.4) for any GUI needs. I
Does anyone have experience of working with Python and very large text
files ( 10Gb) on 64-bit Windows Vista?
The problem is that my Python program - to perform simple data
processing on the 10Gb file - never completes and ends with an error.
When I reduce the size of the file ( 5Gb) the program
On Feb 23, 8:18 am, Terry Reedy tjre...@udel.edu wrote:
Peter Anderson wrote:
Gabriel Genellina said:
That's very short-lived; cmp is gone in 3.0.1 (should not have existed
in 3.0 in the first place).
Try with:
choices.sort(key=str.lower)
Gabriel,
That's worked fine - thank you.
2009/2/21 Gabriel Genellina gagsl-...@yahoo.com.ar:
Use packages. Make act1 and act2 packages by creating __init__.py files.
That's how I'd do it too. The code would be also more easy to
understand and maintain:
import act1
import act2
act1.story()
act2.story()
Alternative solution would be
I'm a high school game development teacher and I have recently
discovered Python to be a great way to introduce computer
programming. I intend to study Python on my own but I can get
professional development credit at my job for taking a Python course.
So I'm looking for an online class that I
John Machin said:
Has the OP tried to contact the author/maintainer of easygui [the
usually-recommended approach to problems with not-widely-used third-
party modules]?
Don't you think the author/maintainer might like to be consulted
before you incite an OP to claim-jump his package name on
Terry,
I have not used PyPI before and feel a little uneasy about putting this
modified script into such a public place. I have previously contacted
Steve Ferg (the original developer of EasyGui) but have not had a reply.
Clearly the bulk of the work is his still where as the modifications
On Feb 23, 9:17 am, Peter Anderson peter.ander...@internode.on.net
wrote:
John Machin said:
Has the OP tried to contact the author/maintainer of easygui [the
usually-recommended approach to problems with not-widely-used third-
party modules]?
Don't you think the author/maintainer might like
I've been using irclib to write a simple irc bot, and I was running into
some difficulties with pickle. Upon some experimentation with pdb, I found
that pickle.load() doesn't load *all* of the data the _first_ time it's
called.
For instance, I have this dictionary pickled:
{'xiong_chiamiov':
Denis Kasak denis.ka...@gmail.com writes:
Python assumes ASCII and if the decodes/encoded text doesn't
fit that encoding it refuses to guess.
Which is reasonable given that Python is programming language where it's
better to have more conservative assumption about encodings so errors
On Sun, Feb 22, 2009 at 10:07 AM, Garrett Cooper yaneg...@gmail.com wrote:
It's not building lib_renderPM_libart properly, or it's a typo
that supposed to be librenderPM_libart, or bad LDFLAGS...
More details need to be provided like an ls of your site-packages
directory and a partial
John Machin said:*
*... the knowledge that you had attempted to contact Steve Ferg and
have not yet had a response was not available on c.l.py and in any case
is not a justification for incitement to hijack.
John, I resent the implication that I am trying to hijack Steve's
project. This was
Joshua Judson Rosen roz...@geekspace.com writes:
If you have to make an assumption, I'd really think that it'd be
better to use whatever the host OS's default is, if the host OS has
such a thing--using an assumption of ISO 8859-1 works only in select
regions on unix systems, and may fail even
Ethan Furman et...@stoneleaf.us writes:
[...]partly because midnight is in fact a time of day, and not a lack of
a time of day, I do indeed expect it to be True.
While it's not a lack of `time of day', it /is/ a lack of /elapsed/
time in the day ;)
Just as if you were using a plain integer or
On Sun, 2009-02-22 at 16:15 -0800, James Pearson wrote:
I've been using irclib to write a simple irc bot, and I was running
into some difficulties with pickle. Upon some experimentation with
pdb, I found that pickle.load() doesn't load *all* of the data the
_first_ time it's called.
For
On Feb 23, 11:46 am, Joshua Judson Rosen roz...@geekspace.com wrote:
Denis Kasak denis.ka...@gmail.com writes:
Python assumes ASCII and if the decodes/encoded text doesn't
fit that encoding it refuses to guess.
Which is reasonable given that Python is programming language where it's
On Feb 23, 11:55 am, Peter Anderson peter.ander...@internode.on.net
wrote:
John Machin said:*
*... the knowledge that you had attempted to contact Steve Ferg and
have not yet had a response was not available on c.l.py and in any case
is not a justification for incitement to hijack.
John, I
On Sun, 22 Feb 2009 16:13:02 +0100, Torsten Mohr wrote:
Hi,
how is the rule in Python, if i pass objects to a function, when is this
done by reference and when is it by value?
Never, and never.
Integers are obviously passed by value, lists and dicts by reference.
Your error is assuming
Ah, thank you, you explained that quite well and opened my eyes to some
things I very much need to improve in my code. I'll keep those
list-etiquette things in mind next time.
On Sun, Feb 22, 2009 at 5:10 PM, Albert Hopkins mar...@letterboxes.orgwrote:
On Sun, 2009-02-22 at 16:15 -0800, James
Hi,
I've been Googling around on a moderately common Windows Python problem:
a mismatch between the symbols a python extension thinks are available
and the contents of the associated DLL. Python users running into this
problem are greeted with:
import somemodule
ImportError: DLL load
On Sun, 22 Feb 2009 13:37:27 -0300, andrew cooke wrote:
as far as i understand things, the best model is:
1 - everything is an object
2 - everything is passed by reference
Except that is wrong. If it were true, you could do this:
def swap(x, y):
y, x = x, y
a = 1
b = 2
swap(a, b)
Hello all,
I am writing an application where I need to open a shared
file on a remote machine using python script. I tried using the
following function:
f = urllib.open(\\remote_machine\\folder1\\file1.doc)
I also tried using
class urllib.FancyURLopener(...)
but
On Sun, Feb 22, 2009 at 8:13 PM, venutaurus...@gmail.com
venutaurus...@gmail.com wrote:
Hello all,
I am writing an application where I need to open a shared
file on a remote machine using python script. I tried using the
following function:
f =
venutaurus...@gmail.com wrote:
Hello all,
I am writing an application where I need to open a shared
file on a remote machine using python script. I tried using the
following function:
f = urllib.open(\\remote_machine\\folder1\\file1.doc)
I also tried using
class
On Sun, Feb 22, 2009 at 2:29 PM, Barak, Ron ron.ba...@lsi.com wrote:
Hi Michele,
I tried understanding how to avoid the metaclasses clashing, and I did read
the link you referred to below,
as well as the relevant O'Reilly cookbook chapter (Recipe 20.17. Solving
Metaclass Conflicts), but
1 - 100 of 133 matches
Mail list logo