Fredrik Lundh wrote:
did you check that link before you posted it?
Works here. Your browser is probably concluding the trailing . is part
of the URL, rather than sentence punctuation :-).
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53
Erik Max Francis wrote:
Fredrik Lundh wrote:
did you check that link before you posted it?
Works here. Your browser is probably concluding the trailing . is part
of the URL, rather than sentence punctuation :-).
No, Fredrik knows that it works. The OP seemed to be under the
impression that it d
http://sourceforge.net/projects/mysql-python
Arjen
praba kar wrote:
Dear All,
I am using python 2.3.3 version. If I try to
import MySQLdb. Here I found " the following
error"
importError: No module named MySQLdb.
So what I need to do for this ?. How I need to
install this MySQLdbo.
praba
__
Bengt Richter wrote:
[...]
> Um, I think that's too narrow for where. Consider
>
> foo = f1; bar=f2; x=k1; y=k2
> foo(x)*bar(y)[3].attr
>
> now should
>
> foo(x)*bar(y)[3].attr where:
> foo = f1; bar=f2; x=k1; y=k2
I think we are diverging again. You are right with Your obje
This problem may be addressed here:
http://sourceforge.net/mailarchive/message.php?msg_id=1702374
Apparently setup.py tries to compile a c file, which of course doesn't
work if there's no compiler.
--
http://mail.python.org/mailman/listinfo/python-list
Lucio Torre wrote:
> Make sure you write the expression in the lower text-area, and
> then press the send button. This should do it.
Ah, that's the trick! It wasn't obvious that there were two text areas,
and I intuitively wrote commands at the python prompt. Problem solved.
Say, are floats im
Steve Holden wrote:
> I was messing about with formatting and realized that the right kind of
> object could quite easily tell me exactly what accesses are made to the
> mapping in a string % mapping operation. This is a fairly well-known
> technique, modified to tell me what keys would need to be
Hello all.
I have a small question concerning the functions open(...) and file(...)
with python 2.4
In the online version of the documentation in the build-in functions
(section 2.1 http://docs.python.org/lib/built-in-funcs.html) here is an
quote of the file(...) doc :
The file() constructor is
On 18 Apr 2005 13:48:50 -0700, codecraig <[EMAIL PROTECTED]> wrote:
Hi,
When I do something like.
s = Scale(master)
s.bind("", callback)
def callback(self, event):
print event.type
I see "7" printed out. Where are these constants defined for various
event types? Basically i want to do somet
François Pinard wrote:
> The most useful place for implicit tuple unpacking, in my experience,
> is likely at the left of the `in' keyword in `for' statements (and
> it is even nicer when one avoids extraneous parentheses).
... and would be nicest (IMO) if default arguments and *varargs were
all
Fouff wrote:
> I have a small question concerning the functions open(...) and file(...)
> with python 2.4
>> The intent is for open() to continue to be preferred for use as a factory
>> function which returns a new file object.
versus
>> The previous spelling, open(), is retained for compatibil
Thanks for this answer.
Did you forward this info to python-dev ?
Cheers,
SB
--
http://mail.python.org/mailman/listinfo/python-list
Python is an oop language,
but why does it hava not private methods?
And it even has not real private fields.
Will this never changed?
Private stuff always makes programming much easier.
--
鹦鹉聪明绝顶、搞笑之极,是人类的好朋友。
直到有一天,我才发觉,我是鹦鹉。
我是翻墙的鹦鹉。
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
Many thanks for this.
I am constrained to use MSVC6 (customer) but will look to see if I can run
VC7.1 alongside VC6.
However, I am still unable to decompress/unpack the downloaded source files
even with their extensions amended.
Am I really the only person having this difficulty?
Hey ho,
Hi Jim,
I'm not sure that it would be the complete answer, but could you zip me
python24_d.(lib/dll/exp) ?
We are not on VC7.1 (our customer has a mountain of legacy code) and I do
not want to be incompatible with them. I will see if I can run MSVC6
alongside VC7.1 but have to put customer compati
Ville Vainio <[EMAIL PROTECTED]> wrote:
> > "Nick" == Nick Craig-Wood <[EMAIL PROTECTED]> writes:
>
> Nick> Not entirely on topic, but does anyone know if there is a
> Nick> series 80 python? Or if the series 60 python runs on a
> Nick> series 80 phone (eg communicator 9300/9500)?
I am trying to find out (using Python under windows) the name of a CD that
is currently in the drive specified by a path name.
And while I am at it, I'd also like to know whether the specified drive
contains a CD at all, and whether the drive is actually a CD drive.
AFAIK, Python doesn't provide
"could ildg" <[EMAIL PROTECTED]> wrote:
> Private stuff always makes programming much easier.
says who?
--
http://mail.python.org/mailman/listinfo/python-list
[Heiko Selber]
| I am trying to find out (using Python under windows) the name
| of a CD that
| is currently in the drive specified by a path name.
|
| And while I am at it, I'd also like to know whether the
| specified drive
| contains a CD at all, and whether the drive is actually a CD drive.
Trolls?
On 4/19/05, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> "could ildg" <[EMAIL PROTECTED]> wrote:
>
> > Private stuff always makes programming much easier.
>
> says who?
>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
http://mail.python.org/mailman/listinfo/python-l
On 19 Apr 2005 00:16:32 -0700, "Kay Schluehr" <[EMAIL PROTECTED]> wrote:
>
>Bengt Richter wrote:
>
>[...]
>
>> Um, I think that's too narrow for where. Consider
>>
>> foo = f1; bar=f2; x=k1; y=k2
>> foo(x)*bar(y)[3].attr
>>
>> now should
>>
>> foo(x)*bar(y)[3].attr where:
>> fo
There are sure thousand ways
of doing it "with windoze".
Here one of them (NOT tested) in form
of code snippets you can rearrange
for your purpose:
import win32com.client
axFSO = win32com.client.Dispatch("Scripting.FileSystemObject") # SCRRUN.DLL
axLstDrives = axFSO.Drives
dctAXaxFSO_NumCodeAsKey
send your feedbacks to Steve Holden. (http://www.holdenweb.com/)
If he deem it proper, he will paypal me $100 bucks, and you can thank
him for the instigation and betterment of the Python doc.
Meanwhile, feel free to incorporate my edits into python doc.
Xah
[EMAIL PROTECTED]
â http://xahlee.or
On 4/18/05, Jeff Epler <[EMAIL PROTECTED]> wrote:
> On Mon, Apr 18, 2005 at 01:40:43PM -0700, Xah Lee wrote:
> > i have rewrote the Python's re module documentation.
> > See it here for table of content page:
> > http://xahlee.org/perl-python/python_re-write/lib/module-re.html
>
> For those who ha
Steve Juranich wrote:
>> I've found the tp_base and tp_bases elements and I've set them to the
>> base type object (and a tuple containing the base type object) before I
>> call PyType_Ready but in Python the base class isn't recognised. Is there
>> anything obvious I'm missing?
>
> Well, I can't
On 4/19/05, could ildg <[EMAIL PROTECTED]> wrote:
> Python is an oop language,
Yes.
> Private stuff always makes programming much easier.
That contention is, at best, debatable. See
http://groups-beta.google.com/group/comp.lang.python/msg/b977ed1312e10b21.
--
Cheers,
Simon B,
[EMAIL PROTECTED]
Hi,
using python2.2.2
I am seeing that the python application is very slowly
eating up the memory. i need help to indentify it.
It start with 11MB and keeps growing by 1 MB around
every 30mins.
#top | grep python
10351 root 15 0 26584 25M 3896 S 0.5 0.8
46:05 1 python2
10351 ro
On Mon, 18 Apr 2005 13:40:09 -0700, jdh2358 wrote:
> I'll start by saying that I for one won't criticize you for rolling you
> own plotting package rather than join forces with an existing project.
> I've been accused of the same, on more than one occasion :-) But I'm also
> aware of the problem
Vasil Slavov wrote:
I am working on a school project written in Python (using mod_python)
and I need to upload a file to a java servlet. Here are the high-level
instructions given by the servlet authors:
- Open the file for reading.
- Open an HTTP connection to the servlet and get the RequestStream
Hi,
How do i connect the onOK of a win32ui MessageBox with the Ok button so
that I get to know when the user clicks the Ok button?
Regards,
Ali
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
Simon Brunning <[EMAIL PROTECTED]> wrote:
> On 4/19/05, could ildg <[EMAIL PROTECTED]> wrote:
> > Python is an oop language,
>
> Yes.
>
> > Private stuff always makes programming much easier.
>
> That contention is, at best, debatable. See
> http://groups-beta.g
Trying something like::
import xmlrpclib
svr = xmlrpclib.Server("http://127.0.0.1:8000";)
svr.test("\x1btest")
Failes on the server with::
xml.parsers.expat.ExpatError: not well-formed (invalid token)
(Smaller test-case: xmlrpclib.loads(xmlrpclib.dumps(('\x1btest',
Shouldn't this be
I stand corrected. Not only does what I wanted already exist, it seems
to exist in TWO places. For the module index, for instance, there is
http://docs.python.org/modindex.html
and there also is
http://python.org/doc/current/modindex.html
Anybody know why there are two different URLs?
Which
Rune Froysa wrote:
> >From http://www.w3.org/TR/2004/REC-xml11-20040204/#dt-character ::
> Consequently, XML processors MUST accept any character in the range
> specified for Char
> ...
> Char ::= [#x1-#xD7FF] | [#xE000-#xFFFD] | [#x1-#x10]
you're looking at the XML 1.1 specifica
"Abhishek S" <[EMAIL PROTECTED]> wrote:
> I am seeing that the python application is very slowly
> eating up the memory. i need help to indentify it.
what Python application?
> It start with 11MB and keeps growing by 1 MB around
> every 30mins.
have you checked for growing lists (etc)?
--
Hello,
I thought that this will work:
#m1.py
def f1():
return string.join('a','a')
#m2.py
def f2():
return string.join('b','b')
#main.py
import string
import m1
import m2
print f1()
print f2()
-
However it doesn't work until I import the string module into m1 and m2
mo
"Rune Froysa" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> From http://www.xmlrpc.com/spec ::
> Any characters are allowed in a string except < and &, which are
> encoded as < and &. A string can be used to encode binary
> data.
the XMLRPC specification is worded pretty lo
Hi folks,
Someone know how to make variables variable like in PHP?
It's something like this:
$a = 'hi'
$$a = 'testing'
echo $hi
'testing'
Regards
--
Adriano Monteiro Marques
www.gopython.com.br
[EMAIL PROTECTED]
I'm FREE... Are you?
(PYTHON powered)
--
http://mail.python.org/mailman/listinfo
Hi,
I am using Tkinter and I have a Label and a Scale. I want to update
my label everytime the Scale value changes. What is the best way of
doing this? Do i have to bind for every event type? Or is there some
better way? If I do have to bind each type of event to the scale, what
types occur
However it doesn't work until I import the string module into m1 and m2
modules. I found in the manual that imported modules will be searched in
the container module first. Is it more efficient to import the string
module into main and m1 and m2 than importing only into m1 and m2?
I bet the mos
Adriano Monteiro wrote:
> Hi folks,
>
> Someone know how to make variables variable like in PHP?
> It's something like this:
>
> $a = 'hi'
> $$a = 'testing'
> echo $hi
> 'testing'
You are most certainly wanting to use dictionaries.
Or, if you work with attributes of an object, use getattr.
Rei
Roy Smith wrote:
Simon Brunning <[EMAIL PROTECTED]> wrote:
On 4/19/05, could ildg <[EMAIL PROTECTED]> wrote:
Private stuff always makes programming much easier.
That contention is, at best, debatable. See
http://groups-beta.google.com/group/comp.lang.python/msg/b977ed1312e10b21.
Nice essay. Now,
I think I was a little bit unspecific in my last mail.
I would like to see some description about method-wrapper and
wrapper_descriptor objects. I dont' understand the following behaviour:
>>> type([].__str__)
>>> type(object.__str__)
>>> type(object().__str__)
>>> import inspect
>>> inspect
Abhishek S <[EMAIL PROTECTED]> wrote:
> I am seeing that the python application is very slowly
> eating up the memory. i need help to indentify it.
>
> It start with 11MB and keeps growing by 1 MB around
> every 30mins.
>
> #top | grep python
> 10351 root 15 0 26584 25M 3896 S
Each module has its own "namespace", which is like a dictionary of
objects that the module can "see". I use the term dicitionary because
locals() and globals() both return dictionaries -- someone may correct
me on this (or confirm what I say)...
You have local and global variables.
Locals are va
Good Morning.
I am new to Tkinter. I have been testing the installation of Tkinter
through the python web site. The first two test steps give no errors,
'import _tkinter' and 'import Tkinter'. However, the third step,
'Tkinter._test', gives the error:
Any suggestions?
pete
--
Peter G. Carsw
Hi All--
Heiko Selber wrote:
>
> I am trying to find out (using Python under windows) the name of a CD that
> is currently in the drive specified by a path name.
>
> And while I am at it, I'd also like to know whether the specified drive
> contains a CD at all, and whether the drive is actually
Have I missed something? Doesn't this mangle class methods:
class Foo:
def __bar(self):
print "bar"
Granted, you could probably figure out how the names are being
mangled. In the example above __bar is a defacto private method.
Griping about it not having `private' in front of it is asin
Aah, nice. Thank you.
This should be included in pywin32, don't you think so? (Or is it? I didn't
check before installing.)
Heiko
"Tim Golden" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
[Heiko Selber]
| I am trying to find out (using Python under windows) the name
| of a CD that
codecraig wrote:
Hi,
I am using Tkinter and I have a Label and a Scale. I want to update
my label everytime the Scale value changes. What is the best way of
doing this? Do i have to bind for every event type? Or is there some
better way? If I do have to bind each type of event to the scale,
On Tue, 19 Apr 2005 09:35:03 -0400, Peter G Carswell <[EMAIL PROTECTED]> wrote:
Good Morning.
I am new to Tkinter. I have been testing the installation of Tkinter
through the python web site. The first two test steps give no errors,
'import _tkinter' and 'import Tkinter'. However, the third step,
'
[George Sakkis]
> François Pinard wrote:
> > The most useful place for implicit tuple unpacking, in my
> > experience, is likely at the left of the `in' keyword in `for'
> > statements (and it is even nicer when one avoids extraneous
> > parentheses).
> ... and would be nicest (IMO) if default ar
"sir.shz" <[EMAIL PROTECTED]> writes:
> Hi, I'm just starting to play with Twisted, and planning to use it for
> sone online games (e.g., casino games, etc.), have people done that
> before, are there any pointers? Thanks.
"Game Programming with Python" by Sean Riley has good section about
writing
Hi,
I am trying to extend an overridden base class method (printer) by
printing some extra fields and then calling the base class method.
Extract from the python tutorial:
'An overriding method in a derived class may in fact want to extend
rather than simply replace the base class method of the s
Yea that is what i needed. Can you recommend a good Tkinter site (or
book, but preferably site) about learning Tkinter.
I've tried:
http://www.python.org/moin/TkInter
http://www.pythonware.com/library/tkinter/introduction/
But I am looking for more about events, etc.
Thanks
--
http://mail.pyt
Eric Brunel wrote:
On Tue, 19 Apr 2005 09:35:03 -0400, Peter G Carswell <[EMAIL PROTECTED]>
wrote:
Good Morning.
I am new to Tkinter. I have been testing the installation of Tkinter
through the python web site. The first two test steps give no errors,
'import _tkinter' and 'import Tkinter'. Howev
On 19 Apr 2005 07:01:10 -0700, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Any ideas why this does not work? I get the error "TypeError: unbound
> method printer() must be called with Field_Collection instance as first
> argument (got MSD instance instead)"):
My suggestion would be to make Fiel
codecraig wrote:
Yea that is what i needed. Can you recommend a good Tkinter site (or
book, but preferably site) about learning Tkinter.
I've tried:
http://www.python.org/moin/TkInter
http://www.pythonware.com/library/tkinter/introduction/
But I am looking for more about events, etc.
Thanks
Hi
the
codecraig wrote:
Yea that is what i needed. Can you recommend a good Tkinter site (or
book, but preferably site) about learning Tkinter.
I've tried:
http://www.python.org/moin/TkInter
http://www.pythonware.com/library/tkinter/introduction/
I also like
http://infohost.nmt.edu/tcc/help/pubs/tkinter/
Eric Brunel wrote:
This is not an error. It's just the value of the _test function in the
Tkinter module. You don't give the URL where you found the
installation/test instructions, but you probably want:
Tkinter._test()
which *calls* the function. Tkinter._test just returns its value
(functions
Okay, let me have another stap at this.
As you have probably noticed MSVC6 is no longer actively supported as
far as Python 2.4 goes. The official distribution of Python 2.4 for
Windows is built using MSVC7.1 (or whatever you wish to call it).
We are told that building C extensions with MSVC6 for
QOTW: "Darn. I finally say something that gets into Quote of the Week,
and it's attributed to someone else!" -- Greg Ewing (we think)
http://groups-beta.google.com/group/comp.lang.python/msg/15b836a557afccb2
"If there were something wrong with the API, Guido would have long since
fired up the
Hi,
I want to use XML-RPC to send a file from client-to-server or from
server-to-client. I know XML-RPC supports, int, string etc...not
objects.
I thought i read somewhere that by using pickle or something, that u
could get a string representation of your object (or a file in my case)
and sen
I fight the python24_d.lib problem with swig daily. The way I got
around it was to modify swig's python configuration module. Mine was
located at
/lib/swig1.3/python/python.swg
(I'm using cygwin)
At the top, I changed
#include "python.h"
to
#ifdef _DEBUG
#undef _DEBUG
#include "python.h
In article <[EMAIL PROTECTED]>,
Peter Hansen <[EMAIL PROTECTED]> wrote:
>Roy Smith wrote:
>> Simon Brunning <[EMAIL PROTECTED]> wrote:
>>>On 4/19/05, could ildg <[EMAIL PROTECTED]> wrote:
Private stuff always makes programming much easier.
>>>
>>>That contention is, at best, debatable. See
>>
Klaus Alexander Seistrup wrote:
> Lucio Torre wrote:
>
> Say, are floats implemented? Comparisons seem to work, but print'ing
> doesn't:
>
> #v+
>
> >>> 1.0 > 0.5
> True
> >>> print 1.23
> %.*g
> >>>
>
>
I think thats a problem with the printf implementation. Im using one
that came with codewarri
Laszlo Zsolt Nagy <[EMAIL PROTECTED]> writes:
>>However it doesn't work until I import the string module into m1 and m2
>>modules. I found in the manual that imported modules will be searched in
>>the container module first. Is it more efficient to import the string
>>module into main and m1 and m
Fraca7 wrote:
> On Fri, 15 Apr 2005 16:40:05 -0700, [EMAIL PROTECTED] wrote:
>
> > So, ive made an initial release that has no documentation on how to
use
> > it or compile it (it requires codewarrior). If there is any
interest on
> > this, please let me know so we can work on getting this as a re
Hi,
I am trying to use a Scrollbar for a Listbox. I want a scrollbar
which which has the vertical and horizontal scroll bars. Here is how i
am doing it now, is the only way or "best" way to do it?
# vertical scroll bar for list
self._scrollbarY = Scrollbar(self.myContainer)
Ok, i'll try that. But what about the recommendation in the tutorial,
is that not possible?
/H
--
http://mail.python.org/mailman/listinfo/python-list
Hi All--
Tim's wmi stuff looked interesting, so I tried it out, and now I have a
question.
-
#!/usr/bin/python
import wmi
import win32api
c=wmi.WMI()
for i in c.Win32_CDROMDrive():
v=i.VolumeSerialNumber
print "WMI serial",v,long(v,0x10)
vn,sn,ln,flg,fstype=win32api.GetVolumeInfor
what about trying cx_freeze
--
http://mail.python.org/mailman/listinfo/python-list
[Ivan Van Laningham]
| Hi All--
| Tim's wmi stuff looked interesting, so I tried it out, and
| now I have a
| question.
|
[... snip code ...]
| The output from the above script (drive d contains cd) is:
|
| WMI serial D0ADBEE7 3501047527
|
| win32api serial -793919769 -793919769
|
|
| What'
Hi, can somebody help me,..I have an assignment due next week but now
I'm stuck with this problem
I tried to get values from entry widget using the
widgetcontrolvariable.get(),..but it seems that it won't work
I can't print the value I input in the entry widget...However when I
first set th
I get odd results when trying to use exponents. For example:
>>>4^2
6
--
http://mail.python.org/mailman/listinfo/python-list
Hi All--
Tim Golden wrote:
>
> Try this: hex (-793919769)
>
> You might need to check back on recent discussions here re
> negative / positive numbers and hexadecimal.
>
> (Short version: we used to treat hex numbers with the top bit
> set as negative decimal numbers; now only negative hex numb
[Ivan Van Laningham]
| Hi All--
|
| Tim Golden wrote:
| >
| > Try this: hex (-793919769)
| >
| > You might need to check back on recent discussions here re
| > negative / positive numbers and hexadecimal.
| >
| > (Short version: we used to treat hex numbers with the top bit
| > set as negative
On 19 Apr 2005 08:27:28 -0700, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Ok, i'll try that. But what about the recommendation in the tutorial,
> is that not possible?
In the new (2.4) version of the Tutorial, that statement has been
removed. What you're using has been called "old-style" clas
Isn't ** used for exponents?
>>>4**2
-Original Message-
Sent: Tuesday, April 19, 2005 10:39 AM
By: RM
To: python-list@python.org
Subject: Re: ANN: Python 2.3.2 for PalmOS available
I get odd results when trying to use exponents. For example:
>>>4^2
6
--
http://mail.python.org/mailm
On 4/19/05, Ralph Hilton <[EMAIL PROTECTED]> wrote:
> i'm a beginning python programmer.
>
> I want to get the date for yesterday
>
> nowTime = time.localtime(time.time())
> print nowTime.
> oneDay = 60*60*24 # number seconds in a day
> yday = nowTime - oneDay # <-- generates an error
> print yd
Oops. Sorry, you are right. :)
--
http://mail.python.org/mailman/listinfo/python-list
!!
--
http://mail.python.org/mailman/listinfo/python-list
Thank you all very much for your responses. It's especially reassuring
to hear about other Python GA's as I have had some scepticism about
Python's speed (or lack of it) being too big a problem for such an
application.
With regard to using numeric, arrays or integer lists -- I didn't
mention that
Thank you,
Bill NorrisJohn Roth <[EMAIL PROTECTED]> wrote:
I'm pleased to announce that PyFit 0.7a1is now available in the file sections ofthe Extreme Programming and FitNesseYahoo groups. This version implementsmost of the Fit Library, and changesneeded to bring the package into conformance wi
On Tue, Apr 19, 2005 at 02:05:11AM -0700, Sébastien Boisgérault wrote:
> Thanks for this answer.
>
> Did you forward this info to python-dev ?
I created a patch on the sf tracker. It's been responded to by several
developers. You can read what they said there.
http://python.org/sf/1185529
Jef
The only people who "know" they are going to heaven, clearly aren't
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> The reason some people don't know for sure
> if they are going to Heaven when they die
> is because they just don't know.
>
> The good news is that you can know for
codecraig> I thought i read somewhere that by using pickle or something,
codecraig> that u could get a string representation of your object (or a
codecraig> file in my case) and send that. Any ideas?
Sure:
stuff = xmlrpclib.Binary(open(somefile).read())
server.call_some_remo
Simon Brunning wrote:
"Get real. I can't imagine using anything so complex." -- Scott David
Daniels, in response to a suggestion to try (1j-1) as a counting base
Oops -- once again I get credit for someone's response to my post. (I
was the "try (1j-1)" poster).
--Scott David Daniels
[EMAIL PROTE
I am trying to write Master Thesis on refactoring Python code.
Where should I look for information?
--
http://www.dembiński.prv.pl
--
http://mail.python.org/mailman/listinfo/python-list
how would I decode it?
--
http://mail.python.org/mailman/listinfo/python-list
Peter> I am trying to write Master Thesis on refactoring Python code.
Peter> Where should I look for information?
I'm not sure, but one piece of code to check out would probably be Bicycle
Repair Man, a early-stage prototype refactoring tool for Python. I don't
recall where it's hosted.
Can anyone point me to a "how-to" on Paramiko? I need to use sftp for
file transfer, have installed Paramiko and have a connection (that was
pretty easy, actually), but cannot find documentation on how to transfer
a file (I have demo_simple.py but can't figure it out). Perhaps I
missed a sect
Use datetime module if you are on 2.3 or 2.4, otherwise you
can do:
today=time.time()
yesterday=today-24*60*60 # 24 hours x 60 minutes x 60 seconds
Your problem is that time.localtime() converts to 9 value
tuple (you can't subtract seconds from a tuple). You do
the math on today and convert usi
Hi,
I am new with python, and I am having a look to program that leaks.
The first thing I have to do is to determine if what leaks it is the
python code of my company.
I have set the DEBUG_LEAK flag with the GC and in the program cycle
printed the length of the garbage list. Is this enough to det
"François Pinard" wrote:
>
> I started recently to study the R system and language, and saw many
good
> ideas in there about argument passing. Translated in Python terms,
it
> would mean that `*varargs' and `**keywords' are not necessary last,
> that named keywords may be intermixed with positiona
codecraig> how would I decode it?
Assuming you have Python at the other end and you get a Binary object
instead of a string, access its data attribute. OTOH, xmlrpclib may
automatically decode the wrapper object for you.
In any case, I have two further recommendations:
* Check the xmlr
Cesar> I have set the DEBUG_LEAK flag with the GC and in the program
Cesar> cycle printed the length of the garbage list. Is this enough to
Cesar> determine if there is a leak in the python code? (the value
Cesar> rises).
That suggests to me that you have objects with __del__ meth
Skip Montanaro wrote:
Peter> I am trying to write Master Thesis on refactoring Python code.
Peter> Where should I look for information?
I'm not sure, but one piece of code to check out would probably be Bicycle
Repair Man, a early-stage prototype refactoring tool for Python. I don't
recall
Experient I have been :)
Here is what I am getting now
CLIENT
---
d = xmlrpclib.Binary(open("C:\\somefile.exe").read())
server.sendFile(d)
SERVER
--
def sendFile(tmp):
print "FILE:", tmp
The server receives the file, because it prints it out, but on the
client I get
1. I download a page in python using urllib and now want to convert and
keep it as utf-8? I already know the original encoding of the page.
What calls should I make to convert the encoding of the page to utf8?
For example, let's say the page is encoded in gb2312 (simple chinese)
and I want to keep
1 - 100 of 201 matches
Mail list logo