Module download at SourceForge http://yserial.sourceforge.net
Serialization + persistance :: in a few lines of code, compress and
annotate Python objects into SQLite; then later retrieve them
chronologically by keywords without any SQL. Most useful standard
module for a database to store
On Thursday 10 September 2009 18:19:09 Joshua Bronson wrote:
True, but it'll still be a lot less painful for me to test my app if I
can get it to steal focus
when launched from the command line. If anyone knows how to do this in
Tkinter, help would be much appreciated.
look for
Dear all,
I'm a newbie for python, and I write a program to test how to
implement a class:
#!/usr/bin/env
python
class Test:
'My Test class'
def __init__(self):
self.arg1 = 1
def first(self):
return
On Fri, Sep 11, 2009 at 12:30 AM, Kermit Mei kermit@gmail.com wrote:
Dear all,
I'm a newbie for python, and I write a program to test how to
implement a class:
#!/usr/bin/env
python
class Test:
'My Test class'
def __init__(self):
self.arg1 = 1
def first(self):
On Friday 11 September 2009 09:30:42 Kermit Mei wrote:
Do this:
class Test(object):
t1 = Test
And this:
t1 = Test()
That makes an instance and runs the __init__
\d
--
home: http://otherwise.relics.co.za/
2D vector animation : https://savannah.nongnu.org/projects/things/
Font manager :
Hi,
I have solaris 10 x86 installed. I have installed Sybase module 0.39
on Python2.5.
While importing Sybase module. I m getting bellow error.Please
suggest.
python
Python 2.5.1 (r251:54863, May 16 2007, 19:39:00)
[GCC 3.4.6] on sunos5
Type help, copyright, credits or license for more
On Fri, 2009-09-11 at 00:33 -0700, Chris Rebert wrote:
On Fri, Sep 11, 2009 at 12:30 AM, Kermit Mei kermit@gmail.com wrote:
Dear all,
I'm a newbie for python, and I write a program to test how to
implement a class:
#!/usr/bin/env
python
class Test:
'My Test class'
On Fri, Sep 11, 2009 at 12:40 AM, Kermit Mei kermit@gmail.com wrote:
On Fri, 2009-09-11 at 00:33 -0700, Chris Rebert wrote:
On Fri, Sep 11, 2009 at 12:30 AM, Kermit Mei kermit@gmail.com wrote:
Dear all,
I'm a newbie for python, and I write a program to test how to
implement a
On Sep 11, 9:14 am, Hendrik van Rooyen hend...@microcorp.co.za
wrote:
On Thursday 10 September 2009 18:19:09 Joshua Bronson wrote:
True, but it'll still be a lot less painful for me to test my app if I
can get it to steal focus
when launched from the command line. If anyone knows how to do
On Fri, 2009-09-11 at 00:43 -0700, Chris Rebert wrote:
On Fri, Sep 11, 2009 at 12:40 AM, Kermit Mei kermit@gmail.com wrote:
On Fri, 2009-09-11 at 00:33 -0700, Chris Rebert wrote:
On Fri, Sep 11, 2009 at 12:30 AM, Kermit Mei kermit@gmail.com wrote:
Dear all,
I'm a newbie for
En Thu, 10 Sep 2009 08:26:16 -0300, David C. Ullrich
dullr...@sprynet.com escribió:
On Wed, 9 Sep 2009 15:13:49 -0700 (PDT), r rt8...@gmail.com wrote:
On Sep 9, 4:19 pm, Charles Yeomans char...@declaresub.com wrote:
I removed the except block because I prefer exceptions to error codes.
On Friday 11 September 2009 09:53:56 eb303 wrote:
On Sep 11, 9:14 am, Hendrik van Rooyen hend...@microcorp.co.za
wrote:
look for widget.focus_force()
and look for widget.grab_set_global()
Doesn't work. BTW, forcing the focus or setting the grab globally are
usually considered very
En Thu, 10 Sep 2009 20:09:34 -0300, Matthew Wilson m...@tplus1.com
escribió:
I subclassed the dict class and added a __setstate__ method because I
want to add some extra steps when I unpickle these entities. This is a
toy example of what I am doing:
class Entity(dict):
def
On Sep 11, 10:40 am, Hendrik van Rooyen hend...@microcorp.co.za
wrote:
On Friday 11 September 2009 09:53:56 eb303 wrote:
On Sep 11, 9:14 am, Hendrik van Rooyen hend...@microcorp.co.za
wrote:
look for widget.focus_force()
and look for widget.grab_set_global()
Doesn't work. BTW,
On 9 Sep, 22:28, Zac Burns zac...@gmail.com wrote:
Theories:
Python is resizing the large dictionary
Python is garbage collecting
Python uses reference counting, not a generational GC like Java. A
Python object is destroyed when the refcount drops to 0. The GC only
collects cyclic
Hello community!
I write a modules for testing, and my code is like this(under Linux):
$ tree
.
|-- MyTestModules
| |-- Test1.py
| |-- Test2.py
| `-- __init__.py
`-- main.py
1 directory, 4 files
$ find . -name '*.py' -print0|xargs -0 cat
main.py Begin ##
On Fri, Sep 11, 2009 at 2:24 AM, Kermit Mei kermit@gmail.com wrote:
Hello community!
I write a modules for testing, and my code is like this(under Linux):
$ tree
.
|-- MyTestModules
| |-- Test1.py
| |-- Test2.py
| `-- __init__.py
`-- main.py
1 directory, 4 files
$ find .
In article 228b-379d-4fe4-956b-cf803541a...@37g2000yqm.googlegroups.com,
jacopo jacopo.pe...@gmail.com wrote:
I have a system comprising many objects cooperating with each others.
(For the time being, everything is running on the same machine, in the
same process but things might change in
Kermit Mei wrote:
#!/usr/bin/env
python
class Test:
'My Test class'
def __init__(self):
self.arg1 = 1
def first(self):
return self.arg1
t1 = Test
't1' is now an alternative name for 'Test'. What you wanted instead was to
instantiate 'Test', which you do
On Thu, Sep 10, 2009 at 10:18 PM, David Boddie dbod...@trolltech.comwrote:
On Thursday 10 September 2009, Steven Woody wrote:
On Wed, Sep 9, 2009 at 9:33 PM, David Boddie dbod...@trolltech.com
wrote:
See this page for the links:
http://www.qtrac.eu/pyqtbook.html
but the URL is
Python 3.1.1 doesn't seem to be happy with the use of gzip.open with
csv.reader.
Using this:
import gzip, csv, sys
data = csv.reader(gzip.open(sys.argv[1]))
for row in data:
print(row)
Will give this:
Traceback (most recent call last):
File ./a.py, line 6, in module
for row in data:
On Fri, 2009-09-11 at 02:29 -0700, Chris Rebert wrote:
For some reason, your Python program is being executed by bash as if
it were a shell script, which it's not.
No idea what the cause is though.
Because the first 2 bytes of the file need to be #!/path/to/interpreter,
the OP has:
On Fri, Sep 11, 2009 at 4:01 AM, Kermit Mei kermit@gmail.com wrote:
On Fri, 2009-09-11 at 00:43 -0700, Chris Rebert wrote:
On Fri, Sep 11, 2009 at 12:40 AM, Kermit Mei kermit@gmail.com
wrote:
On Fri, 2009-09-11 at 00:33 -0700, Chris Rebert wrote:
On Fri, Sep 11, 2009 at 12:30
On Fri, 2009-09-11 at 07:48 -0400, Albert Hopkins wrote:
On Fri, 2009-09-11 at 02:29 -0700, Chris Rebert wrote:
For some reason, your Python program is being executed by bash as if
it were a shell script, which it's not.
No idea what the cause is though.
Because the first 2 bytes of the
Hi all, in order to download an image. In order to correctly retrieve the
image I need to set the referer and handle cookies.
opener = urllib.request.build_opener(urllib.request.HTTPRedirectHandler
(), urllib.request.HTTPCookieProcessor())
urllib.request.install_opener(opener)
req =
Maggie la.f...@gmail.com writes:
[...]
else:
print 'The loop is finito'
do you know of it.comp.lang.python?
--
Sarebbe essere un atto di pieta'.
Contro i miei principi.-- whip, in IFMdI
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 07 Sep 2009 23:56:17 +, Albert van der Horst wrote:
The main advantage of a GUI builder is that it helps prevent you from
hard-coding the GUI into the program. You could get the same effect by
coding a UIL/XRC/etc file manually, but a GUI builder tends to force it.
A GUI builder
On Mon, 07 Sep 2009 18:04:40 -0700, r wrote:
It also allows the GUI to be edited by without requiring any programming
knowledge. This eliminates the need for the GUI designer to be familiar
with the programming language used (or any programming language), and
allows customisation by end
On Sep 11, 7:08 am, Nobody nob...@nowhere.com wrote:
(snip)
I'm saying that the user understands their workflow and environment better
than the application's programmers. The user should be able to decide
which menu items are shown and where, which buttons are shown and where,
etc. The code
Module download at SourceForge http://yserial.sourceforge.net
Serialization + persistance :: in a few lines of code, compress and
annotate Python objects into SQLite; then later retrieve them
chronologically by keywords without any SQL. Most useful standard
module for a database to store
The interface really should be configurable by the user according to their
needs. The code doesn't need to *know* the position or dimensions of
a widget, or its label or colour or spacing, let alone dictate them.
Perhaps...but the user needs a framework in order to understand the
functions
On Sep 10, 8:43 pm, Jan Claeys use...@janc.be wrote:
Maybe we should use a language that has a Turing-complete grammar, so
that even computers can understand speak it easily?
Interesting, i do find some things more easily explainable using code,
however, code losses the ability to describe
r wrote:
On Sep 11, 7:08 am, Nobody nob...@nowhere.com wrote:
(snip)
I'm saying that the user understands their workflow and environment better
than the application's programmers. The user should be able to decide
which menu items are shown and where, which buttons are shown and where,
etc.
dryfish wrote:
Python 3.1.1 doesn't seem to be happy with the use of gzip.open with
csv.reader.
Using this:
import gzip, csv, sys
data = csv.reader(gzip.open(sys.argv[1]))
for row in data:
print(row)
Will give this:
Traceback (most recent call last):
File ./a.py, line 6,
Here is some code from a pyqt4.5.4 application on python 2.6
def findData(self):
self.ui.label.setText('Processing... ')
# here we do something which takes a few seconds
self.refreshGrid()
The problem is that the text in the self.ui.label is only changed
on screen after
I have created a small program that generates a project tree from a
dictionary. The dictionary is of key/value pairs where each key is a
directory, and each value is a list. The list have unique values
corresponding to the key, which is a directory where each value in the
list becomes a
On 8/30/09 1:48 PM, r wrote:
Hello qwenbsp;rty,
I remember my first days with GUI programming and thinking to myself;
how on earth can i write GUI code without a MS style GUI builder? Not
to long after that i was coding up some pretty spectacular GUI's from
nothing more than source code and
DarkBlue wrote:
Here is some code from a pyqt4.5.4 application on python 2.6
def findData(self):
self.ui.label.setText('Processing... ')
# here we do something which takes a few seconds
self.refreshGrid()
The problem is that the text in the self.ui.label is
JB wrote:
I have created a small program that generates a project tree from a
dictionary. The dictionary is of key/value pairs where each key is a
directory, and each value is a list. The list have unique values
corresponding to the key, which is a directory where each value in the
list
Klein Stéphane wrote:
Resume :
1. first question : why PIL package in pypi don't work ?
Because Fred Lundh have his package distributions unfortunate names that
setuptools doesn't like...
2. second question : when I add PIL dependence in my setup.py and I do
python setup.py develop,
On Sep 11, 9:34 pm, Diez B. Roggisch de...@nospam.web.de wrote:
DarkBlue wrote:
Here is some code from a pyqt4.5.4 application on python 2.6
def findData(self):
self.ui.label.setText('Processing... ')
# here we do something which takes a few seconds
open...@hushmail.com wrote:
fs = cgi.FieldStorage()
url = fs.getvalue('url', http://www.openlayers.org;)
try:
insert a print url here...
y = urllib2.urlopen(url)
print y.read()
This script produces the urlopen error (11001, 'getaddrinfo
failed').
This is a name lookup failing,
Is there a verbose feature for urllib2.urlopen?
Here is my python snippet for posted the file:
req = urllib2.Request(url='https://%s%s' % (host, selector),
data=open('test.zip', 'rb').read())
req.add_header('content-type', 'application/zip')
req.add_header('Authorization', 'Basic %s' %
Hi all,
I would like to code a simple podcast catcher in Python merely as an
exercise in internet programming. I am a CS student and new to
Python, but understand Java fairly well. I understand how to connect
to a server with urlopen, but then I don't understand how to download
the mp3, or
Also, if anyone could recommend some books that cover this type of
programming, I would greatly appreciate it.
Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
Dear list:
My question is conceptual at the moment.
Current problem:
I have a windows-based program that reads in a file and from that file
generates data that is saved to a file.
The way we do this now is a person sits in front of their machine and
proceeds as follows:
1) Open windows
2009/9/11 Doran, Harold hdo...@air.org:
The way we do this now is a person sits in front of their machine and
proceeds as follows:
1) Open windows program
2) Click file - open which opens a dialog box
3) Locate the file (which is a text file) click on it and let the
program run.
It might
Hi,
I have several buttons, I want to realize: when I click first
button, the button will call a function, and the function should
return some parameter value, because I need this value for the other
buttons.
I tried the button.invoke() function, it almost got it...however,
I only want it
No matter what I do, the MessageBox always appears on the 2nd monitor.
I've forced all the other widgets to monitor 1.
I thought that creating a class and forcing the position would help, but
it hasn't.
I'm using Ubuntu Jaunty, python 2.6.
Any ideas what I can do to force widgets to a
Sverker Nilsson wrote:
If you just use heap(), and only want total memory not relative to a
reference point, you can just use hpy() directly. So rather than:
CASE 1:
h=hpy()
h.heap().dump(...)
#other code, the data internal to h is still around
h.heap().dump(...)
you'd do:
CASE 2:
On Sep 11, 8:20 am, Chuck galois...@gmail.com wrote:
Hi all,
I would like to code a simple podcast catcher in Python merely as an
exercise in internet programming. I am a CS student and new to
Python, but understand Java fairly well. I understand how to connect
to a server with urlopen,
The Music Guy wrote:
...
def main():
...
class MyMixin(object):
This is a mistake. If Mixins inherit from CommonBase as well, no
order of class definition can catch you out.
If it doesn't, you can get yourself in trouble.
def method_x(self, a, b, c):
super(MyMixin,
Chris Rebert wrote:
On Fri, Sep 11, 2009 at 2:24 AM, Kermit Mei kermit@gmail.com wrote:
Hello community!
I write a modules for testing, and my code is like this(under Linux):
$ tree
.
|-- MyTestModules
| |-- Test1.py
| |-- Test2.py
| `-- __init__.py
`-- main.py
1 directory, 4
MYSTERY: how can %s%error be different from %s%str(error) in Python 2.6?
APOLOGY: I tried to strip this down, but could not find a simple way to
reproduce the problem. This way works, however. (There is a discussion on
the docutils-develop list.) Although there are several steps, we are
Does the Windows application offer a COM interface?
http://oreilly.com/catalog/pythonwin32/chapter/ch12.html
http://sourceforge.net/projects/pywin32/
Alan Isaac
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 11, 8:27 am, ed e...@nospam.net wrote:
No matter what I do, the MessageBox always appears on the 2nd monitor.
I've forced all the other widgets to monitor 1.
I thought that creating a class and forcing the position would help, but
it hasn't.
I'm using Ubuntu Jaunty, python 2.6.
Any
Dear Group,
I am trying to download the following files,
a) lxml,
b) numpy,
c) scipy, and
d) django.
I am trying to include them in C\python26\Lib
But they are giving error report, as I am trying to use them by
importing.
I am using IDLE as GUI, my OS is WinXP SP2, and my Python version 2.6.
I am working with this now. I'm toying with the examples to test out a
few things and learn how this works. I've made some modifications such
that I have the following working (below). This does nothing more than
open a program.
I have commented out the portion
#app.AM.MenuSelect(File-Open
In h7pdan$5i...@reader1.panix.com John Gordon gor...@panix.com writes:
According to the documentation, these two sections of code should be
equivalent:
conn = httplib.HTTPSConnection(host)
conn.putrequest(POST, url)
conn.putheader(Proxy-Authorization, myProxy)
In h7h963$4a...@reader1.panix.com John Gordon gor...@panix.com writes:
As you can see, I am including the call to putheader() for Content-Length,
and the debugging output confirms that the header is present in the outgoing
message.
So why am I getting a 411 Length Required error?
To follow
joy99 schrieb:
Dear Group,
I am trying to download the following files,
a) lxml,
b) numpy,
c) scipy, and
d) django.
I am trying to include them in C\python26\Lib
But they are giving error report, as I am trying to use them by
importing.
What is an error report? Unless you get more specific
On 2009-09-11 11:39 AM, joy99 wrote:
Dear Group,
I am trying to download the following files,
a) lxml,
b) numpy,
c) scipy, and
d) django.
I am trying to include them in C\python26\Lib
But they are giving error report, as I am trying to use them by
importing.
I am using IDLE as GUI, my OS is
Thank you for the response. I have been using
urllib2.urlopen(http://www.openlayers.org;), so I can rule out the
url being incorrect. Since my original question I can add the
following:
1. I am not using a proxy to connect to the internet
2. I added these lines to the script:
...
Chris Withers wrote:
Sverker Nilsson wrote:
The __repr__ I use don't have the enclosing , granted, maybe I missed
this or it wasn't in the docs in 2005 or I didn't think it was important
(still don't) but was that really what the complain was about?
No, it was about the fact that when I do
In data sabato 05 settembre 2009 21:47:41, Dennis Lee Bieber ha scritto:
Much better to just send the token TO the active client (which is
responsible for returning it at the end of its turn processing)
Dennis,
I am finally getting my head round this problem. I do have a further question,
sturlamolden sturlamol...@yahoo.no writes:
Python uses reference counting, not a generational GC like Java. A
Python object is destroyed when the refcount drops to 0. The GC only
collects cyclic references. If you create none, there are no GC delays
(you can in fact safely turn the GC off).
On Sep 11, 10:30 am, Falcolas garri...@gmail.com wrote:
On Sep 11, 8:20 am, Chuck galois...@gmail.com wrote:
Hi all,
I would like to code a simple podcast catcher in Python merely as an
exercise in internet programming. I am a CS student and new to
Python, but understand Java fairly
sturlamolden wrote:
On 9 Sep, 22:28, Zac Burns zac...@gmail.com wrote:
Theories:
Python is resizing the large dictionary
Python is garbage collecting
Python uses reference counting, not a generational GC like Java.
The CPython implementation, that is. Jython, built on top of Java,
Hi All,
I find several places in my code where I would like to have a variable
scope that is smaller than the enclosing function/class/module definition.
One representative example would look like:
--
spam = { ... }
eggs = { ... }
ham = (a[eggs], b[spam])
--
The essence is
Johan Grönqvist wrote:
Hi All,
I find several places in my code where I would like to have a variable
scope that is smaller than the enclosing function/class/module definition.
One representative example would look like:
--
spam = { ... }
eggs = { ... }
ham = (a[eggs],
On Sep 11, 10:19 am, chen tao ct19850...@gmail.com wrote:
(snip)
I tried the button.invoke() function, it almost got it...however,
I only want it returns value when the button clicked, but because the
program is in the class _ini_ function, so it always runs once before
I click the
On Sep 11, 12:56 pm, Chuck galois...@gmail.com wrote:
On Sep 11, 10:30 am, Falcolas garri...@gmail.com wrote:
On Sep 11, 8:20 am, Chuck galois...@gmail.com wrote:
Hi all,
I would like to code a simple podcast catcher in Python merely as an
exercise in internet programming. I am
Hi to all python fans,
i'm trying to run this C source file:
[code]
#include Python.h
#include structmember.h
#include compile.h
#include dirent.h
#include node.h
int main(int argc, char *argv[]) {
Py_Initialize();
struct _node *node = PyParser_SimpleParseString(from time
I'd like to build a lexer aka lexical analyzer aka tokenizer for
Python source code as a learning exercise.
Where can I find the regexs that define the tokens of Python source?
(I am aware of tokenizer.py but I was hoping there was a web page w/ a
list somewhere.)
cs
--
On Sep 11, 1:09 pm, Chuck galois...@gmail.com wrote:
On Sep 11, 12:56 pm, Chuck galois...@gmail.com wrote:
On Sep 11, 10:30 am, Falcolas garri...@gmail.com wrote:
On Sep 11, 8:20 am, Chuck galois...@gmail.com wrote:
Hi all,
I would like to code a simple podcast catcher in
I'm trying to get started with plotting maps in python. I need to read
shape files (.shp) and make maps. There seem to be many efforts but
none is complete? I'm looking for suggestions and troubleshooting.
The basemap package is obviously at an impressive stage and comes with
some data:
Johan Grönqvist schrieb:
Hi All,
I find several places in my code where I would like to have a variable
scope that is smaller than the enclosing function/class/module definition.
One representative example would look like:
--
spam = { ... }
eggs = { ... }
ham = (a[eggs], b[spam])
2009/9/11 Johan Grönqvist johan.gronqv...@gmail.com
I find several places in my code where I would like to have a variable
scope that is smaller than the enclosing function/class/module definition.
For what it's worth, there was a relevant proposal on the python-ideas list
a few months back:
Hello all,
I just want to share with you something that I've worked on recently.
It is a library which implements streams -- generalized iterators with
a pipelining mechanism and lazy-evaluation to enable data-flow
programming in Python.
The idea is to be able to take the output of a function
On Fri, Sep 11, 2009 at 12:46 PM, Doran, Harold hdo...@air.org wrote:
I am working with this now. I'm toying with the examples to test out a
few things and learn how this works. I've made some modifications such
that I have the following working (below). This does nothing more than
open a
Why does not this snipplet work?
-
from job import JobQueue
import Queue
import threading
import gobject
q=JobQueue()
def worker():
print Worker waiting
q.get()
print Got job!
if __name__ == __main__:
t =
Thanks, Jerry. Tried that, as well as various other possible names to no
avail.
-Original Message-
From: python-list-bounces+hdoran=air@python.org
[mailto:python-list-bounces+hdoran=air@python.org] On
Behalf Of Jerry Hill
Sent: Friday, September 11, 2009 3:09 PM
To:
Patrick Sabin wrote:
Johan Grönqvist schrieb:
Hi All,
I find several places in my code where I would like to have a variable
scope that is smaller than the enclosing function/class/module
definition.
One representative example would look like:
--
spam = { ... }
eggs = { ... }
ham
On Sep 9, 4:58 pm, Al Fansome al_fans...@hotmail.com wrote:
Mart. wrote:
On Sep 8, 4:33 pm, MRAB pyt...@mrabarnett.plus.com wrote:
Mart. wrote:
On Sep 8, 3:53 pm, MRAB pyt...@mrabarnett.plus.com wrote:
Mart. wrote:
On Sep 8, 3:14 pm, Andreas Tawn andreas.t...@ubisoft.com wrote:
Hi,
I
On Fri, Sep 11, 2009 at 3:31 PM, Doran, Harold hdo...@air.org wrote:
Thanks, Jerry. Tried that, as well as various other possible names to no
avail.
You'll need to dig into the documentation then, probably starting in
one of these two places:
http://pywinauto.openqa.org/howto.html
On Sep 11, 2009, at 2:10 PM, Gianfranco Murador wrote:
Hi to all python fans,
i'm trying to run this C source file:
[code]
#include Python.h
#include structmember.h
#include compile.h
#include dirent.h
#include node.h
int main(int argc, char *argv[]) {
Py_Initialize();
Johan Grönqvist wrote:
Hi All,
I find several places in my code where I would like to have a variable
scope that is smaller than the enclosing function/class/module definition.
One representative example would look like:
--
spam = { ... }
eggs = { ... }
ham = (a[eggs], b[spam])
Hello
I would like to write a class with methods that can be accessed by many
threads at the same time.
For this I have a lock attribute in my class obtained with
threading.Lock(), in the constructor, and every method begins by
acquiring the lock and ends by releasing it
My problem is
rh0dium wrote:
Hi Geniuses,
Can anyone please show me the way.. I don't understand why this
doesn't work...
# encoding: utf-8
from email.MIMEText import MIMEText
msg = MIMEText(hi)
msg.set_charset('utf-8')
print msg.as_string()
a = 'Ho\xcc\x82tel Ste\xcc\x81phane '
b = unicode(a, utf-8)
At 08:14 AM 9/12/2009 +1000, Ben Finney wrote:
Specifically, I want to programmatically access the metadata that is
held in the arguments to the âdistutils.setup()â call. Without,
as you say, executing any Distutils command. I am not aware of any
âdistutilsâ public functions that can
On Fri, 11 Sep 2009 19:36:14 +0200, Johan Grönqvist wrote:
Hi All,
I find several places in my code where I would like to have a variable
scope that is smaller than the enclosing function/class/module
definition.
...
The essence is that for readability, I want spam and eggs in separate
On Fri, Sep 11, 2009 at 11:09 AM, Chuck galois...@gmail.com wrote:
On Sep 11, 12:56 pm, Chuck galois...@gmail.com wrote:
On Sep 11, 10:30 am, Falcolas garri...@gmail.com wrote:
On Sep 11, 8:20 am, Chuck galois...@gmail.com wrote:
Hi all,
I would like to code a simple podcast catcher in
On Sep 11, 4:26 pm, Timothy Madden terminato...@gmail.com wrote:
Hello
I would like to write a class with methods that can be accessed by many
threads at the same time.
For this I have a lock attribute in my class obtained with
threading.Lock(), in the constructor, and every method begins
On Fri, 11 Sep 2009 15:19:05 -0700, Chris Rebert wrote:
On Fri, Sep 11, 2009 at 3:12 PM, Alan G Isaac alan.is...@gmail.com
wrote:
Michael Foord came up with a much simpler illustration. With Python
2.6::
[snip]
Sounds like IOError or one of its ancestors defines both __str__() and
b = unicode(a, utf-8)
[snip]
msg = MIMEText(b)
I believe this is the problem line -- the MIMEText constructor takes
encoded strings rather than unicode objects. Try:
msg = MIMEText(a)
Or, alternatively
msg = MIMEText(b.encode('utf-8'))
On Fri, 11 Sep 2009 16:33:42 -0700, rh0dium
How do you suppose it should workand how is it working? what about the
outpout difference?
--
Sent via Cricket Mobile Email
--Original Message--
From: rh0dium steven.kl...@gmail.com
To: python-list@python.org
Date: Fri, 11 Sep 2009 04:33:42 PM -0700
Subject: Unicode - and
On Sep 11, 8:32 pm, Chris Rebert c...@rebertia.com wrote:
On Fri, Sep 11, 2009 at 11:09 AM, Chuck galois...@gmail.com wrote:
On Sep 11, 12:56 pm, Chuck galois...@gmail.com wrote:
On Sep 11, 10:30 am, Falcolas garri...@gmail.com wrote:
On Sep 11, 8:20 am, Chuck galois...@gmail.com wrote:
Steven D'Aprano:
(3) Create an inner function, then call that.
Several people after someone gives this anwer.
My personal opinion is that if you really need a local scope inside a
function, the function is doing too much and should be split up.
I agree. And a way to split a function is to
On Sep 11, 9:07 pm, Chuck galois...@gmail.com wrote:
On Sep 11, 8:32 pm, Chris Rebert c...@rebertia.com wrote:
On Fri, Sep 11, 2009 at 11:09 AM, Chuck galois...@gmail.com wrote:
On Sep 11, 12:56 pm, Chuck galois...@gmail.com wrote:
On Sep 11, 10:30 am, Falcolas garri...@gmail.com
Martin v. Löwis mar...@v.loewis.de added the comment:
I think the new patch is still incorrect. You now pass long variables into
the i argument parser. Also, I would expect that compilers prefer to see
an explicit cast from long to uid_t, in case it's a truncating cast.
Can you try your patch
1 - 100 of 135 matches
Mail list logo