[EMAIL PROTECTED] writes:
> def izip4(*iterables, **kw):
> """kw:fill. An element that will pad the shorter iterable
> kw:infinite. Number of non-terminating iterators """
That's a really kludgy API. I'm not sure what to propose instead:
maybe some way of distinguishing which iterabl
Hi!
Example:
import Image
Image.open('Titi.jpg').show()
@-salutations
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
"Michael Spencer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> > Bengt Richter wrote:
> ...
> >> >>> from itertools import repeat, chain, izip
> >> >>> it = iter(lambda z=izip(chain([3,5,8],repeat("Bye")),
> >> chain([11,22],repeat("Bye"))):z.next(), ("Bye","Bye"))
> >> >>>
"ccc" <[EMAIL PROTECTED]> said:
>I *am* a Perl fan, but after having looked at scripts someone else
>wrote (who is no longer with us) with a view toward updating them, I
>have concluded that a quick and dirty scripting language in someone
>else's idiom isn't a very good choice institutionally. Whic
I would like to display a JPEG image from Python on a Windows machine.
I Googled 'python jpeg display' and have not found what I am looking
for, which is code I can call directly and pass the image. I see the
PIL library lets me do all sorts of image manipulation, but is there a
convenient way
[EMAIL PROTECTED] wrote:
> For me, it (pdb) is mostly useful for understanding flow of
> control and how objects change as that happens. I
> find it easier than constantly modifying the source code.
Do take a look at Komodo, in that case. Idle does a bit of a
job in this direction, and (for me)
Paul Rubin wrote:
> Michael Spencer <[EMAIL PROTECTED]> writes:
>> for i in range(10):
>> result = []
>> ...
>
> Do you mean "while True: ..."?
>
oops, yes!
so, this should have been:
from itertools import repeat
def izip2(*iterables, **kw):
"""kw:fill. An element t
[EMAIL PROTECTED] wrote:
> Mike> I don't use pdb a lot either - and I write a *lot* of Python.
>
> Ditto. I frequently just insert prints or enable cgitb. Sometimes I enable
> line tracing for a specific function and the functions it calls using a
> tracing decorator. There are lots of things t
EP wrote:
> Luis M. González wrote:
>
> >Will Microsoft hurt Python?
> >
> >
> I think it is naive to ignore the fact that Microsoft could hurt Python,
> though there may be nothing anyone can do.
>
> >How?
> >
> - create a more prevalent version of "Python" that is less Pythonic or
> undermines s
Mike Meyer <[EMAIL PROTECTED]> writes:
> [EMAIL PROTECTED] writes:
> Actually, you're not talking about changing the paradigm. You're
> talking about minor tweaks to the command set.
I am sorry if this was a bit of an exaggeration. Whatever.
> I don't use pdb a lot either - and I write a *lot* o
EP wrote:
> - create a more prevalent version of "Python" that is less Pythonic or
> undermines some of the principles of the language, basically usurping
> Python as we conceive it in the process...
I understand all the concerns, the evil empire and all that..
But I think nothing of this will hap
[EMAIL PROTECTED] writes:
> I was disappointed not to see any replies to this.
> I use pdb a lot because most of my debugging needs
> are simple, and I don't need/want the overhead or
> complications of a heavy duty gui debugger.
>
> I used ddd only little many many years ago, but
> compatibility
On Fri, 06 Jan 2006 12:01:09 +1100
"Steven D'Aprano" <[EMAIL PROTECTED]> wrote:
> On Wed, 04 Jan 2006 22:51:03 -0500, Mike Meyer wrote:
>
> >> And if you only ever passed immutable objects around,
> >you would > think Python was call by value.
> >
> > You might. Then again, you might also unders
Mike> I don't use pdb a lot either - and I write a *lot* of Python.
Ditto. I frequently just insert prints or enable cgitb. Sometimes I enable
line tracing for a specific function and the functions it calls using a
tracing decorator. There are lots of things that are easier than breaking
Michael Spencer <[EMAIL PROTECTED]> writes:
> for i in range(10):
> result = []
> ...
Do you mean "while True: ..."?
> def izip2(*iterables, **kw):
> """kw:fill. An element that will pad the shorter iterable"""
> fill = repeat(kw.get("fill"))
Yet another attempt
Fernando Perez <[EMAIL PROTECTED]> suggests:
> You may want to try out ipython (the current release candidate from
> http://ipython.scipy.org/dist/testing/, which has many improvements on this
> front). The %pdb magic will trigger automatic activation of pdb at any
> uncaught exception, and '%run
Luis M. González wrote:
>Will Microsoft hurt Python?
>
>
I think it is naive to ignore the fact that Microsoft could hurt Python,
though there may be nothing anyone can do.
>How?
>
- create a more prevalent version of "Python" that is less Pythonic or
undermines some of the principles of the
Steven D'Aprano <[EMAIL PROTECTED]> writes:
> On Thu, 05 Jan 2006 11:17:44 -0500, Mike Meyer wrote:
>> While telling them that "You can't do call by reference because Python
>> is call by object" may be correct,
> Good to see you finally concede it.
I'm not conceeding anything, because I never sa
> Bengt Richter wrote:
...
>> >>> from itertools import repeat, chain, izip
>> >>> it = iter(lambda z=izip(chain([3,5,8],repeat("Bye")),
>> chain([11,22],repeat("Bye"))):z.next(), ("Bye","Bye"))
>> >>> for t in it: print t
>> ...
>> (3, 11)
>> (5, 22)
>> (8, 'Bye')
>>
>> (Feel free to gene
In article <[EMAIL PROTECTED]>,
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Tony Nelson wrote:
> > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> >
> > > My goal is to make my conf files into a decent drop-in so you just put
> > > them in your .vim directory and go, and post them next wee
Bengt Richter wrote:
...
>
> This could be achieved by a custom import function that would capture the AST
> and e.g. recognize a declaration like __inline__ = foo, bar followed by defs
> of foo and bar, and extracting that from the AST and modifying the rest of the
> AST wherever foo and bar call
Harlin Seritt wrote:
> I am trying to pull data from a web page at https://localhost/wps.
> While this would work if the url was http://localhost/wps, it doesn't
> work with 'https.'
>
> I can do this:
>
> import urllib
> data = urllib.urlopen('http://localhost/wps').read()
>
> But not with http
Steven D'Aprano <[EMAIL PROTECTED]> writes:
> Thinking about Python's behaviour ("it always passes references to
> objects") will invoke misleading frames in many programmers' minds. The
> word "reference" is misleading and should be avoided, because what the
> average non-Python programmer underst
On Thu, 05 Jan 2006 11:17:44 -0500, Mike Meyer wrote:
> While telling them that "You can't do call by reference because Python
> is call by object" may be correct,
Good to see you finally concede it.
> it leaves out the critical information.
As does "call by reference" or "call by value". No t
[EMAIL PROTECTED] writes:
> "R. Bernstein" <[EMAIL PROTECTED]> wrote:
>> So what I am suggesting is that it would be helpful to just follow an
>> existing debugger paradigm (or follow more closely) so folks don't
>> have to learn yet another interface.
Actually, you're not talking about changing t
In article <[EMAIL PROTECTED]>, Scott David Daniels
<[EMAIL PROTECTED]> wrote:
> You generally want to avoid mutation of anything in more than one
> thread, and prefer to only share reading between threads. The only
> time you can do more than that is when you _know_ the modification
> is "atomic
On Thu, 05 Jan 2006 07:42:25 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote:
>On 4 Jan 2006 15:20:43 -0800, "Raymond Hettinger" <[EMAIL PROTECTED]> wrote:
>
[ ... 5 options enumerated ... ]
>>
>>
>6. Could modify izip so that one could write
>
>from itertools import izip
>zipit = izip(*seqs)
In article <[EMAIL PROTECTED]>,
Steven D'Aprano <[EMAIL PROTECTED]> wrote:
...
> We know that this will happen because it has happened time and time again
> in the past. Are we incapable of learning from experience? Are we
> intelligent sentient beings or do we just parrot what was said in the
> p
I need python 2.3. I have freebsd 4.10-releng. when configuring python I
received the following:
./configure --prefix=/home/webenv > config-results
configure: WARNING: curses.h: present but cannot be compiled
configure: WARNING: curses.h: check for missing prerequisite headers?
configure: WARN
On Wed, 04 Jan 2006 22:51:03 -0500, Mike Meyer wrote:
>> And if you only ever passed immutable objects around, you would
>> think Python was call by value.
>
> You might. Then again, you might also understand the concepts well
> enough to realize that there isn't any difference between CBR and CB
On Thu, 05 Jan 2006 05:21:24 +, Bryan Olson wrote:
> Steven D'Aprano wrote:
>> Mike Meyer wrote:
> [...]
>>> Correct. What's stored in a list is a reference.
>>
>> Nonsense. What is stored in the list is an object.
>
> According to the Python Language Reference:
>
> Some objects contai
Frank Niessink wrote:
> Scott David Daniels wrote:
>> Frank Niessink wrote:
>>> - What is the easiest/most pythonic (preferably build-in) way of
>>> checking a unicode string for control characters and weeding those
>>> characters out?
>> drop_controls = [None] * 0x20
>> for c in '\t\r\
Koncept wrote:
> Hi. I am fairly new to Python programming and am having some trouble
> wrapping my head around threading.
Threading sounds simpler than it is.
Here is a classic Pythonic solution related to yours:
> What I would like to learn from this example is how to use threads to
> call on o
Andreas> Does anyone know of a Python module that is able to sniff the
Andreas> encoding of text?
I have such a beast. Search here:
http://orca.mojam.com/~skip/python/
for "decode".
Skip
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> I hope some of the other problems with it get
> addressed some day:
> - There is no way (I know of) to start a python script
> from the command line with the debugger active;
> I always have to modify the source to insert a
> pdb.set_trace(). I would like somethi
Nick Craig-Wood schrieb:
> Robert Kern <[EMAIL PROTECTED]> wrote:
>
>> As of this time, the Debian wxPython packages are only provided for
>> Python 2.3. I couldn't tell you why. Try looking at the bug list
>> for python-wxgtk2.6. I'm sure there's a bug filed against it asking
>> for a Python 2.4
Hi Fletch,
...
>>> How do I tell Python to treat '-' as a normal character but not part
>>> of an expression?
>>>
>>
>> By changing the parser :-)
>>
>>
> Oh, you py-py guys, always thinking you have to re-implement Python ;)
Well, in the given context, assuming keywords are supposed
to be
On Thu, 05 Jan 2006 17:15:20 -0500, Koncept <[EMAIL PROTECTED]> wrote:
>
>Hi. I am fairly new to Python programming and am having some trouble
>wrapping my head around threading.
>
It's pretty much the standard threading model.
>This is a very basic example of what I am trying to do, and would
>g
On Sun, 25 Dec 2005 13:23:34 +0100, David Murmann
<[EMAIL PROTECTED]> wrote:
>hi all!
>
>i just built revision 41809 under winxp using a rather uncommon
>setup (at least i think so). since i have no visual studio here,
>i only used freely available tools: cygwin to get the source, the
>microsoft c
"R. Bernstein" <[EMAIL PROTECTED]> wrote:
> Okay, a bit of an exaggeration.
>
> Recently, I've been using Python more seriously, and in using the
> debugger I think one of the first things I noticed was that there is
> no "restart" ("R" in perldb) or "run" (gdb) command.
>
> I was pleasantly pleas
Thanks for your responses. I guess the foo(**{'x-y':3}) is ugly but will do the trick Cheers,Khoa On 1/5/06, Mike C. Fletcher <
[EMAIL PROTECTED]> wrote:Christian Tismer wrote:>Khoa Nguyen wrote:
I would like to pass some keyword with special character to a>>foo(**kwargs) function, but it doesn
Bengt Richter wrote:
> On 5 Jan 2006 15:48:26 GMT, Antoon Pardon <[EMAIL PROTECTED]> wrote:
>
> >On 2006-01-04, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >><[EMAIL PROTECTED]> wrote:
> >>> But here is my real question...
> >>> Why isn't something like this in itertools, or why shouldn't
> >>>
Hi. I am fairly new to Python programming and am having some trouble
wrapping my head around threading.
This is a very basic example of what I am trying to do, and would
greatly appreciate having this code hacked to pieces so that I can
learn from you folks with experience.
What I would like to
On 5 Jan 2006 15:48:26 GMT, Antoon Pardon <[EMAIL PROTECTED]> wrote:
>On 2006-01-04, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>><[EMAIL PROTECTED]> wrote:
>>> But here is my real question...
>>> Why isn't something like this in itertools, or why shouldn't
>>> it go into itertools?
>>
>>
>> 4
[EMAIL PROTECTED] schrieb:
> Diez B. Roggisch <[EMAIL PROTECTED]> wrote:
>
>>>print try_encodings(text, ['ascii', 'utf-8', 'iso8859_1', 'cp1252',
>>>'macroman']
>>
>>I've fallen into that trap before - it won't work after the iso8859_1.
>>The reason is that an eight-bit encoding have all 256 cod
On Thu, 05 Jan 2006 09:47:02 -0600, Robert Kern <[EMAIL PROTECTED]> wrote:
>Bengt Richter wrote:
>> On 4 Jan 2006 12:46:47 -0800, "Raven" <[EMAIL PROTECTED]> wrote:
>
>>>The problem with Stirling's approximation is that I need to calculate
>>>the hypergeometric hence the factorial for numbers with
Scott David Daniels wrote:
> Frank Niessink wrote:
>
>>- What is the easiest/most pythonic (preferably build-in) way of
>>checking a unicode string for control characters and weeding those
>>characters out?
>
>
> drop_controls = [None] * 0x20
> for c in '\t\r\n':
> drop_cont
Greg Ewing (using news.cis.dfn.de) wrote:
> Alternatively, you can substitute things from a
> dictionary instead of a tuple:
>
>vars = {'ROOTDIR': '/usr/lib'}
>CLASSPATH = \
> "%{ROOTDIR}s/a/a.jar:%{ROOTDIR}s/b/b.jar:%{ROOTDIR}s/c/c.jar" % vars
Arriving late at the party (found this w
why, that's the nicest thing anyone's said about me today - and
probably true, since I started coding on punch-cards...
s
--
http://mail.python.org/mailman/listinfo/python-list
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> here's a simple-minded suggestion: have the first client create a text
> file on the remote server, and delete it when it is finished updating.
> The second client can check for existence of this file before trying to
> update.
That's an old hack,
Khoa Nguyen wrote:
> I would like to pass some keyword with special character to a
> foo(**kwargs) function, but it doesn't work
>
> def foo(**kwargs):
> print kwargs
>
>
> This doesn't work:
>
> foo(a-special-keyword=5)
>
> How do I tell Python to treat '-' as a normal character but not pa
On 4 Jan 2006 10:54:17 -0800, "KraftDiner" <[EMAIL PROTECTED]> wrote:
>I was under the assumption that everything in python was a refrence...
>
>so if I code this:
>lst = [1,2,3]
>for i in lst:
> if i==2:
> i = 4
>print lst
>
>I though the contents of lst would be modified.. (After reading
Diez B. Roggisch wrote:
> Looks (or better smells) like a design smell to me. In Qt,and especially
> PyQt, you rarely subclass widgets, as that makes you lose the
> possibility to use the fabulous designer. The only thing I subclass in
> PyQt are the designer-generetaed top-level-classes. Can be
Diez B. Roggisch <[EMAIL PROTECTED]> wrote:
>> print try_encodings(text, ['ascii', 'utf-8', 'iso8859_1', 'cp1252',
>> 'macroman']
>
> I've fallen into that trap before - it won't work after the iso8859_1.
> The reason is that an eight-bit encoding have all 256 code-points
> assigned (usually, t
Ken Guest schrieb:
> Hi,
> I've two relatively small web applications that are currently implemented in
> PHP and needed to be migrated to python and most likely zope afterwards as
> we're getting a third-party Zope powered CMS later this year.
>
> There isn't an immediate need for them to be deve
> print try_encodings(text, ['ascii', 'utf-8', 'iso8859_1', 'cp1252',
> 'macroman']
I've fallen into that trap before - it won't work after the iso8859_1.
The reason is that an eight-bit encoding have all 256 code-points
assigned (usually, there are exceptions but you have to be lucky to have
Hi to all,
I'm using adodb for accessing mysql and postgres. My problem relies on
the mysql access.
Sometimes, when I try to execute a query (using ExecTrans method
below), I get this error:
'NoneType' object has no attribute 'cursor'
Maybe this error ocurrs not in my code, but in the mysql mod
gregarican schrieb:
> I have an application I'm writing using PyQt. I'm trying to create the
> various windows by subclassing Qt objects. I have a subclassed
> QMainWindow as the parent, and then a series of subclassed QWidgets as
> other child windows that get used. How can I pass variables back a
here's a simple-minded suggestion: have the first client create a text
file on the remote server, and delete it when it is finished updating.
The second client can check for existence of this file before trying to
update.
cheers,
S
--
http://mail.python.org/mailman/listinfo/python-list
that's it! Thanks, that sorted me out. The readme at the following
location was very helpful:
http://www.tishler.net/jason/software/rebase/rebase-2.2.README
I couldn't get rebaseall to work until I installed all of the packages
mentioned in the readme.
Now I have a different problem, regarding
I have a Tkinter app running on cygwin. It includes a Test menu item
that does nothing more than fetch a directory listing and display it
in a Toplevel window (I'd use a tkMessageBox showinfo widget, but for
some reason the text is invisible on cygwin).
After I close the Toplevel widget, all of t
Ray wrote:
> But then again, once you start using .NET class you're tied to .NET
> anyway so this is not a big problem, I think--although the more
> perfectionist among us might like to isolate parts of Python code that
> are .NET/IP specific to make porting easier if it ever comes to that...
That
I am trying to pull data from a web page at https://localhost/wps.
While this would work if the url was http://localhost/wps, it doesn't
work with 'https.'
I can do this:
import urllib
data = urllib.urlopen('http://localhost/wps').read()
But not with https. How can I pull data from a https url?
[EMAIL PROTECTED] writes:
> All these web technologies I don't know where to start, have you got
> any suggestions for getting started in the world of web development,
> books maybe ?
This is out of date but may help get started.
http://philip.greenspun.com/panda/
--
http://mail.python.org/mailma
Tony Nelson wrote:
> "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > My goal is to make my conf files into a decent drop-in so you just put
> > them in your .vim directory and go, and post them next week.
>
> OK, thank you.
>
FYI, I am still working on this but some changes in vim 7 are requ
I would like to pass some keyword with special character to a foo(**kwargs) function, but it doesn't workdef foo(**kwargs): print kwargsThis doesn't work:foo(a-special-keyword=5)How do I tell Python to treat '-' as a normal character but not part of an _expression_?
Thanks,Khoa
--
http://mail.py
isthar wrote:
> WDDX is perfect for me for exchange between python and php application.
> but maybe there is a better way to do it.
It appears that Unicode objects where forgotten in the WDDX
implementation. I suggest to define the following classes:
class UWDDXMarshaller(xml.marshal.wddx.WDDXMar
Tim Peters wrote:
> In that case, anything that burns some time and tries again
> will work better. Replacing gc.collect() with time.sleep() is
> an easy way to test that hypothesis; because gc.collect()
> does an all-generations collection, it can consume measurable time.
An slight enhancemen
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
Please use less whitespace in your posts in the future. There's really
no need to put two blank lines between sections.
> i have an
> href which looks like this:
>
> http://www.cnn.com";>
>
> here is my code
> for incident in row('td',
Steven Bethard <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>> The url is http://www.mired.org/home/mwm/try_python/. Reports of
>> problems would appreciated.
> You're probably already aware of this, but the online help utility
> doesn't work. It exits before you can type anything into it:
Act
On Thu, 05 Jan 2006 08:47:37 +1100, Steven D'Aprano <[EMAIL PROTECTED]> wrote:
>On Wed, 04 Jan 2006 13:18:32 +0100, Riko Wichmann wrote:
>
>> hi everyone,
>>
>> I'm googeling since some time, but can't find an answer - maybe because
>> the answer is 'No!'.
>>
>> Can I call a function in python
hi all
am updating the same file in ftp, through multiple clients, but am
scared that two clients may open the same file at a time, and try
updating, then the data updated by one data will be lost.
So i have to provide some lock mechanism to that file in ftp, so how
can i lock it, if one client op
i have an
href which looks like this:
http://www.cnn.com";>
here is my code
for incident in row('td', {'class':'all'}):
n = incident.findNextSibling('a', {'class': 'btn'})
link = incident.findNextSibling['href'] + "','"
and the full error is thi
File attributes may be an issue to. Take look at the recipe at:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303343
which ensures the file attributes are normal before you delete it.
john
--
http://mail.python.org/mailman/listinfo/python-list
Dave Hansen <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]:
> In your code, I would simply remove the rn.seed() call. Regards,
And that's what I'm gonna do :). The random part is not that important to
my application so I wont investigate into further detail... anyway, thank
you.
--
__
I have an application I'm writing using PyQt. I'm trying to create the
various windows by subclassing Qt objects. I have a subclassed
QMainWindow as the parent, and then a series of subclassed QWidgets as
other child windows that get used. How can I pass variables back and
forth between the parent
"py" <[EMAIL PROTECTED]> writes:
> Is there a way in python to figure out which process is running on
> which port? I know in Windows XP you can run "netstat -o" and see the
> process ID for each open portbut I am looking for something not
> tied to windows particularly, hopefully something in
Andreas Jung <[EMAIL PROTECTED]> wrote:
> [-- text/plain, encoding quoted-printable, charset: us-ascii, 6 lines --]
>
> Does anyone know of a Python module that is able to sniff the encoding of
> text? Please: I know that there is no reliable way to do this but I need
> something that works for
So is Ubuntu your primary OS? Please email me privately at
pythonide.stani.be_gmail.com
News about new release you can follow here:
http://pythonide.stani.be/blog
--
http://mail.python.org/mailman/listinfo/python-list
Alec Wysoker wrote:
>>>Using Python 2.3.5 on Windows XP, I occasionally get OSError: [Errno
>>>13] Permission denied when calling os.remove(). This can occur with a
>>>file that is not used by any other process on the machine,
>>
>>How do you know that?
>
>
> Yeah, good point. I don't really kn
On 2006-01-05, Alec Wysoker <[EMAIL PROTECTED]> wrote:
>>> Using Python 2.3.5 on Windows XP, I occasionally get OSError: [Errno
>>> 13] Permission denied when calling os.remove(). This can occur with a
>>> file that is not used by any other process on the machine,
>>
>> How do you know that?
>
> Y
I use SPE and my editor on my primary OS and I'd be very interested in
using SPE with Ubuntu.
--
http://mail.python.org/mailman/listinfo/python-list
Robert Kern <[EMAIL PROTECTED]> wrote:
> As of this time, the Debian wxPython packages are only provided for
> Python 2.3. I couldn't tell you why. Try looking at the bug list
> for python-wxgtk2.6. I'm sure there's a bug filed against it asking
> for a Python 2.4 version. Perhaps the maintain
"isthar" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi !
> i am trying to serialise object which contains some unicode objects
> but looks like there is no way to do it.
>
hi, I'm sure you'll get better answers for the unicode part of your problem
(I'd start with a look at th
On Jan 4, 2006, at 4:32 AM, Michael Anthony Maibaum wrote:
> You can choose if HFS+ behaves in a case-preserving, case-insensitive
> or case-sensitive manner. See man newfs_hfs. Case sensitive is not
> supported on the 'System' volume, but I have several external disks
> using it without a proble
[EMAIL PROTECTED] wrote:
> I apologize for my inital ambiguity.
>
> Say I have a .py script that gets email addresses from a database and
> then sends messages to customers (this is not spam, these guys _want_
> to get the emails). Historically, IT has executed the script when
> someone in Marketi
Hi !
i am trying to serialise object which contains some unicode objects
but looks like there is no way to do it.
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/
_xmlplus/marshal/generic.py", line 92, in _marshal
return getattr(self, meth)(value, dic
Thank you all for the advice and suggestions. I appreciate the time you
took to help!
--
http://mail.python.org/mailman/listinfo/python-list
>> Using Python 2.3.5 on Windows XP, I occasionally get OSError: [Errno
>> 13] Permission denied when calling os.remove(). This can occur with a
>> file that is not used by any other process on the machine,
>
> How do you know that?
Yeah, good point. I don't really know. I should have said no p
This works well! Thanks for the advice. The docs for it should include
something about adding content_type = 'text\plain' otherwise, the
'testing' section of the tutorial is broken
It should look like this:
from mod_python import apache
def handler(req):
req.content_type = 'text/plain'
req
Interesting theory. I do have a virus scanner, and also Google Desktop
Search. Sometimes I get this error when running a large suite of unit
tests. Each unit test starts off by cleaning the test output
directory, and failing if it can't do so. I will see many (hundreds?)
tests fail because the
Franz GEIGER wrote:
> Diez B. Roggisch wrote:
>
>>sudo apt-get install python-wxgtk2.6
>>
>>Which depends on python2.4
>
> No, sorry, at least not on all my Sarge boxes. I'm told "needs python2.3"
> when I look at its properties from within Synaptic (Dependency Tab): Needs
> python-wxversion, nee
On Thu, 05 Jan 2006 14:28:51 +0100,
David Murmann <[EMAIL PROTECTED]> wrote:
> Dan Sommers schrieb:
>> int **_idx;
>> for( _idx = lst; _idx < lst + NLST; ++_idx ) {
>> int *i;
>> i = *_idx;
>> /* compare "the item to which i is bound" to "a constant" */
>> if( *i == *(&_i2) )
>> /* rebind i to _i4
On Thu, 5 Jan 2006 01:14:43 + (UTC) in comp.lang.python, Karlo
Lozovina <[EMAIL PROTECTED]> wrote:
>Dave Hansen <[EMAIL PROTECTED]> wrote in
>news:[EMAIL PROTECTED]:
>
>> I'm not sure what rn is, but it looks like a standard library
>> random.Random object. If so, I don't think you want to s
"Ben Sizer" <[EMAIL PROTECTED]> writes:
> But, if you separate the calling mechanism from the assignment
> mechanism, then Python does behave like every other call by reference
> language. The problem is that people expect to then be able to change
> the value of the referred object with the assign
Hi,
I'm playing around with the latest (soon to be released) SPE on Ubuntu.
This probably will increase the quality of SPE on Ubuntu and Linux/GTK
in general. I already made some patches, but I would like to get in
contact with SPE users on Ubuntu. The version of SPE which is now
available on Ubun
Alec Wysoker wrote:
> Using Python 2.3.5 on Windows XP, I occasionally get OSError:
> [Errno 13] Permission denied when calling os.remove(). This can
> occur with a file that is not used by any other process on the
> machine, and is created by the python.exe invocation that is
> trying to delete
[Alec Wysoker]
> Using Python 2.3.5 on Windows XP, I occasionally get OSError: [Errno
> 13] Permission denied when calling os.remove(). This can occur with a
> file that is not used by any other process on the machine,
How do you know that?
> and is created by the python.exe invocation that is t
py wrote:
> Is there a way in python to figure out which process is running on
> which port? I know in Windows XP you can run "netstat -o" and see the
> process ID for each open portbut I am looking for something not
> tied to windows particularly, hopefully something in python.
>
> if not,
Diez B. Roggisch wrote:
>>
>> Agreed, so I took another Linux box to make sure to not make "custom
>> version" mistakes.
>>
>> Same here. Yes, there are 2.4-packages of all kind. But there's also a
>> dependency package "python" telling the whole box that Python is 2.3.5.
>> And when I want to i
1 - 100 of 154 matches
Mail list logo