Registration is now open for the O'Reilly Open Source Convention (OSCON).
OSCON 2009 will be July 20-24 in San Jose, California.
Early registration ends June 2.
Use the special discount code 'os09pgm' for an extra 15% off.
For more information:
http://conferences.oreilly.com/oscon
--
Aahz
Hi All,
When:
--
10th June 2009 (7pm)
Where:
--
The Vaults, IFSC, Harbourmaster Place, Dublin 1 (under Connolly Station -
map http://www.thevaults.ie/location.php)
*Note*: Last orders for food is 8pm
Presentations (in no particular order):
In message roy-50fe2e.07273725052...@news.panix.com, Roy Smith wrote:
In article gvd1id$8j...@lust.ihug.co.nz,
Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote:
In message roy-3c4ded.09214724052...@news.panix.com, Roy Smith wrote:
In article gvb8fn$7g...@lust.ihug.co.nz,
Lawrence D'Oliveiro l...@geek-central.gen.new_zealand writes:
In message mailman.752.1243344314.8015.python-l...@python.org, Jean-Michel
Pichavant wrote:
Why buy an IDE when you just need a text editor ?
Because all the cool kids have one. If you want to be different and
individual like
Steven D'Aprano ste...@remove.this.cybersource.com.au writes:
nano is basically an updated (forked?) version of pico.
Re-implemented URL:http://www.nano-editor.org/dist/v1.2/faq.html#6.
Pico was under a non-free license, so Nano was written to be a
feature-compatible free-software clone.
--
Lacrima lacrima.ma...@gmail.com writes:
I am new to python.
And now I am using trial version of Wing IDE.
But nobody mentioned it as a favourite editor.
So should I buy it when trial is expired or there are better choices?
I think your time will be better spent learning a powerful, mature,
Carl Banks pavlovevide...@gmail.com writes:
On May 26, 7:48 am, Gary Herron gher...@islandtraining.com wrote:
The proper response to a question like this has to be
http://www.catb.org/~esr/faqs/smart-questions.html as anything else
is complete guesswork.
Is there a Cliff's Notes
On Wed, May 27, 2009 at 6:29 AM, Teguh Iskanto tiska...@gmail.com wrote:
BTW: screen does split screen too :)
HTH
Unfortunately, screen only does horizontal splitting. (I heard that vertical
splitting is supposed to be in the next version of it, and is in the dev
trunk, but I don't know).
Dear Sir,
I have a question regarding Delphi COM programming. I have a VB DLL (ActiveX
COM DLL) and this DLL contain 2 classes, one is for normal client function
calling, and the other one is events raised by this DLL to notify the
client. Now, I would like to incorporate this DLL into Delphi
Hello,everyone.
Is there any configure file that can be set to save history list for
python gdb debugger?
thank you very much.
--
http://mail.python.org/mailman/listinfo/python-list
Hi Kalyan...
If your application does not require you to add very heavy data then
you can also use flat files to do your stuff.
Its always a better to use Databases but given your low level use and
newness to python... i would advise you to take up flat files instead.
store your data there and
Sumitava Mukherjee:
I need to randomly sample from a list where all choices have weights attached
to them.
Like this?
http://code.activestate.com/recipes/498229/
Bye,
bearophile
--
http://mail.python.org/mailman/listinfo/python-list
In message mailman.766.1243354300.8015.python-l...@python.org, Dennis Lee
Bieber wrote:
Notice that db.literal() call? That's part of the mechanism used to
escape and quote parameters -- it only returns strings that are safe for
insertion into the SQL statement.
Does it deal with
Hi Ankit,
Thanks for your advice, can I get some sample code, to store
data in to flat files and how to give flat file connections to my Python
code, Because I am very new to Python and flat files
Thanks in Advance
Kalyan
On Wed, May 27, 2009 at 10:18 AM, Ankit
On 26 Mai, 13:46, Gabriel Rossetti gabriel.rosse...@arimaz.com
wrote:
def getParams(curs):
curs.execute(select * from param where id=%d, 1001)
First of all, you should use the database module's parameter style,
which is probably %s - something I've thought should be deprecated
for a long
Lawrence D'Oliveiro wrote:
In message mailman.766.1243354300.8015.python-l...@python.org, Dennis
Lee Bieber wrote:
Notice that db.literal() call? That's part of the mechanism used to
escape and quote parameters -- it only returns strings that are safe for
insertion into the SQL statement.
On 27 Mag, 08:44, Ben Finney ben+pyt...@benfinney.id.au wrote:
Lacrima lacrima.ma...@gmail.com writes:
I am new to python.
And now I am using trial version of Wing IDE.
But nobody mentioned it as a favourite editor.
So should I buy it when trial is expired or there are better choices?
I
I am writing a server program with one producer and multiple consumers,
what confuses me is only the first task producer put into the queue gets
consumed, after which tasks enqueued no longer get consumed, they remain
in the queue forever.
from multiprocessing import Process, Pool, Queue,
hubritic colinland...@gmail.com (h) wrote:
h I want to parse a log that has entries like this:
h [2009-03-17 07:28:05.545476 -0500] rprt s=d2bpr80d6 m=2 mod=mail
h cmd=msg module=access rule=x_dynamic_ip action=discard attachments=0
h rcpts=1
h
Hi
I'm trying to expand cvsmail.py so it posts to newsgroups, but i
constantly get this error message:
nntplib.NNTPTemporaryError: 441 Article has no body -- just headers
If i put the test message into a file then i can post it just fine,
no problems. But if i put the message into a StringIO,
In article 02204669$0$25303$c3e8...@news.astraweb.com,
Steven D'Aprano st...@remove-this-cybersource.com.au wrote:
On Sun, 17 May 2009 18:24:34 +0200, Diez B. Roggisch wrote:
But reduce()? I can't see how you can parallelize reduce(). By its
nature, it has to run sequentially: it can't operate
I dont think Ive seen it said on this thread (if yes sorry for missing
it)
If you use emacs
1. DONT use the python.el that comes with emacs but use python-mode.el
that comes from python
2. Use python as an interpreter ie not as you would use C or Java
or ... which is to say
2.1 Start python as
Hi, I am trying to build mySQL-python with python 2.6 on windows and
can't figure what's wrong with it.
D:\temp\mysqlPyC\MySQL–python–1.2.3c1python setup.py build
running build
running build_py
copying MySQLdb\release.py – build\lib.win32–2.6\MySQLdb
running build_ext
building '_mysql' extension
abolotnov schrieb:
Hi, I am trying to build mySQL-python with python 2.6 on windows and
can't figure what's wrong with it.
D:\temp\mysqlPyC\MySQL–python–1.2.3c1python setup.py build
running build
running build_py
copying MySQLdb\release.py – build\lib.win32–2.6\MySQLdb
running build_ext
You need Visual Studio 2008. Other versions of VS aren't supported by
Python 2.6.
Aren't 2005, 2008+ versions all have same c compiler - it's just the
IDE versions that are different?
--
http://mail.python.org/mailman/listinfo/python-list
On May 20, 10:38 pm, Luis Zarrabeitia ky...@uh.cu wrote:
On Wednesday 20 May 2009 04:32:59 pm Carl Banks wrote:
I wasn't really arguing that locking individual objects was a
significant penalty in computer time, only in programmer time. The
locks on reference counts are what's expensive.
abolotnov schrieb:
You need Visual Studio 2008. Other versions of VS aren't supported by
Python 2.6.
Aren't 2005, 2008+ versions all have same c compiler - it's just the
IDE versions that are different?
There are important differences between the several versions of VC++.
The most important
Sumitava Mukherjee wrote:
I need to randomly sample from a list where all choices have weights
attached to them. The probability of them being choosen is dependent
on the weights.
I am not sure why everybody is normalizing by dividing the weights.
This isa possibility (I had fun writing it).
On Thursday 21 May 2009 08:50:48 pm R. David Murray wrote:
In py3k Eric Smith and Mark Dickinson have implemented Gay's floating
point algorithm for Python so that the shortest repr that will round
trip correctly is what is used as the floating point repr
Little question: what was the
Christian Heimes wrote:
abolotnov schrieb:
Hi, I am trying to build mySQL-python with python 2.6 on windows and
can't figure what's wrong with it.
...
You need Visual Studio 2008. Other versions of VS aren't supported by
Python 2.6.
You might be able to use mingw32 as well.
--Scott David
On May 26, 7:07 pm, Lacrima lacrima.ma...@gmail.com wrote:
I am new to python.
And now I am using trial version of Wing IDE.
But nobody mentioned it as a favourite editor.
So should I buy it when trial is expired or there are better choices?
Hello,
I too new to Python. I tried several IDEs
Rhodri James a écrit :
On Tue, 26 May 2009 14:22:29 +0100, Roy Smith r...@panix.com wrote:
My pet peeve is syntax-aware editors which get things wrong. For
example,
the version of emacs I'm using now doesn't parse this properly:
'''A triple-quoted string. Some editors won't get this
Ikon a écrit :
I'm rather new to Python. I have PHP for my main language and I do
some Java. They all have a very strict OO schema.
I would describe PHP's OO schema as very strict (FWIW, I wouldn't
qualify anything PHP as strict in any way...)
As I red through
Python's tutorial it seams it
This, ladies and gentlemen of the jury, points
up the essential difference between a modal and
a non-modal way of doing things.
That is one reason I love emacs... I not only
get a selection of several major modes, I
can also have multiple minor modes active at
the same time! And I can extend
I want to download all mib files from the web page:
http://www.juniper.net/techpubs/software/junos/junos94/swconfig-net-mgmt/juniper-specific-mibs-junos-nm.html#jN18E19
All mib filenames are of this format:
www.juniper.net/techpubs ... .txt
I write this program but has the following error.
Disclaimer: I'm learning python and would like to use it in a
project.
The project will have many large matricies. In one particular instance
I need to reference a smaller submatrix of the larger matrix. I don't
want to create a new copy or even change any of the values, I just
want to quickly
On May 27, 12:29 pm, powah wong_po...@yahoo.ca wrote:
I want to download all mib files from the web
page:http://www.juniper.net/techpubs/software/junos/junos94/swconfig-net-m...
All mib filenames are of this format:www.juniper.net/techpubs... .txt
I write this program but has the following
Andreas Kraemer wrote:
I don't understand the behavior of the print statement when streaming
to a file-like object. From the documentation at
http://www.python.org/doc/2.4.4/ref/print.html I understand that the
file-like object needs to have a write() method that - I assume - is
called when
Thanks Piet. You gave a good explanation and I think I understand much
better now.
Piet van Oostrum wrote:
Randall Smith rand...@tnr.cc (RS) wrote:
RS I'm trying to get a grasp on how memory usage is affected when forking as
RS the multiprocessing module does. I've got a program with a
On May 27, 10:52 am, Peter Otten __pete...@web.de wrote:
This is a longstanding quirk of the CPython implementation. The
PRINT_ITEM_TO opcode triggers a PyFile_WriteObject() call which in turn does
the C equivalent of
if isinstance(f, file):
file.write(f, s)
else:
write = getattr(f,
John Yeung wrote:
On May 26, 9:43 am, Mel mwil...@the-wire.com wrote:
SciTE
I like one big uncomplicated window, tabbed file panes,
syntax coloring and help with indentation. There's
nothing to it I hate. It would be nice if
customization were easier.
This is a decent summary of
Name:pcp-0.1
Description: Python Interface to SGI's Performance Co-Pilot client API
License: GNU LGPL
Download:ftp://oss.sgi.com/www/projects/pcp/download/python-
pcp-0.1.tar.gz
Web: http://oss.sgi.com/projects/pcp/
Author: Michael Werner
Email: mtw at
On May 27, 1:50 pm, Jeff McNeil j...@jmcneil.net wrote:
On May 27, 12:29 pm, powah wong_po...@yahoo.ca wrote:
I want to download all mib files from the web
page:http://www.juniper.net/techpubs/software/junos/junos94/swconfig-net-m...
All mib filenames are of this
On May 27, 12:29 pm, powah wong_po...@yahoo.ca wrote:
I want to download all mib files from the web
page:http://www.juniper.net/techpubs/software/junos/junos94/swconfig-net-m...
All mib filenames are of this format:www.juniper.net/techpubs... .txt
I write this program but has the following
You might be able to use mingw32 as well.
say I obtain and install an alternative compiler. how do I tell
python which one to use?
I am sorry for asking dumb questions. Can't find the answers in the
docs/mans.
--
http://mail.python.org/mailman/listinfo/python-list
colin.hank...@touit.com wrote:
Disclaimer: I'm learning python and would like to use it in a
project.
The project will have many large matricies. In one particular instance
I need to reference a smaller submatrix of the larger matrix. I don't
want to create a new copy or even change any of
statements and the child get
the 'continue' character so it will.
Today is: 20090527
Versions noted above.
Steve
--
http://mail.python.org/mailman/listinfo/python-list
In article 200905271107.21750.ky...@uh.cu,
Luis Zarrabeitia ky...@uh.cu wrote:
On Thursday 21 May 2009 08:50:48 pm R. David Murray wrote:
In py3k Eric Smith and Mark Dickinson have implemented Gay's floating
point algorithm for Python so that the shortest repr that will round
trip
powah wrote:
...
I fixed one error, now if the filename is misspelled, how to ignore
the error and continue?
You really should go through the tutorial. It will explain this and
other important things well. But, since I'm feeling generous:
Replace this:
u=urllib2.urlopen(link)
On Wednesday 27 May 2009 02:33:38 pm Ned Deily wrote:
In article 200905271107.21750.ky...@uh.cu,
Little question: what was the goal of such a change? (is there a pep for
me to
read?)
See discussion starting here:
http://article.gmane.org/gmane.comp.python.devel/103191/
Thank you.
--
I have an object the I would like to use as a base class. Some of the
methods I would like to override completely, but others I would simply
like to call the base class method and use the return value in the
child method. The purpose here is to eliminate the duplication of
valuable code in the
Luis Zarrabeitia ky...@uh.cu wrote:
On Thursday 21 May 2009 08:50:48 pm R. David Murray wrote:
In py3k Eric Smith and Mark Dickinson have implemented Gay's floating
point algorithm for Python so that the shortest repr that will round
trip correctly is what is used as the floating point
imageguy wrote:
I have an object the I would like to use as a base class. Some of the
methods I would like to override completely, but others I would simply
like to call the base class method and use the return value in the
child method. The purpose here is to eliminate the duplication of
On Wed, 27 May 2009 16:56:12 +0100, Bruno Desthuilliers
bruno.42.desthuilli...@websiteburo.invalid wrote:
Rhodri James a écrit :
On Tue, 26 May 2009 14:22:29 +0100, Roy Smith r...@panix.com wrote:
My pet peeve is syntax-aware editors which get things wrong. For
example,
the version of
Peter Otten wrote:
norseman wrote:
This was sent 5/19/09 and as yet has received no comments.
I'm resending just in case a new reader might have an answer.
If you had posted two tiny scripts demonstrating your problem instead of the
longwinded explanation I might have tinkered.
Peter
Dave,
Not the OP, but really enjoyed your analysis and solution. Excellent
job!!
Thank you!
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I am creating a file-like interface for Popen. Do I need to return True or
False for isatty()? I am thinking True but I am not familiar with the
semantics of what defines a tty.
Thanks,
Eric
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 27 May 2009 19:39:21 -0500
Eric Pruitt eric.pru...@gmail.com wrote:
I am creating a file-like interface for Popen. Do I need to return True or
False for isatty()? I am thinking True but I am not familiar with the
semantics of what defines a tty.
import os
x = os.popen(ls)
hello everyone :-),
I am a newbie to python. I am trying to run a
bash script from within a python program. I would greatly appreciate
any pointers/comments about how to get around the problem I am facing.
I want to run bash script: code.sh from within a python program.
In message 784h2cf1kem0...@mid.uni-berlin.de, Diez B. Roggisch wrote:
Lawrence D'Oliveiro wrote:
In message mailman.766.1243354300.8015.python-l...@python.org, Dennis
Lee Bieber wrote:
Notice that db.literal() call? That's part of the mechanism used to
escape and quote parameters -- it
On May 27, 2:09 pm, Stef Mientki stef.mien...@gmail.com wrote:
John Yeung wrote:
I kind of marvel at how few people complain about [SciTE's]
Python indentation. (I'd like to think it's because anyone
who edits Python code in SciTE has downloaded my patch, but
I am confident that is not
On May 28, 11:12 am, Lawrence D'Oliveiro l...@geek-
central.gen.new_zealand wrote:
In message 784h2cf1kem0...@mid.uni-berlin.de, Diez B. Roggisch wrote:
Lawrence D'Oliveiro wrote:
In message mailman.766.1243354300.8015.python-l...@python.org, Dennis
Lee Bieber wrote:
Notice that
I'm unsure about a python editor for everyone but since acquiring habits
takes time, I'm in favor of sticking to one editor for everything.
CJ
--
http://mail.python.org/mailman/listinfo/python-list
Vladimir G. Ivanovic wrote:
I'm looking for the sources to pyvm, a python virtual machine
implementation which can run Python 2.4 bytecode.
The tarball for pyvm returns a 404, but you can still get the code to
pyvm by getting archive.org's copy:
On Wed, 27 May 2009 22:34:45 -0400, Chris Jones wrote:
I'm unsure about a python editor for everyone but since acquiring habits
takes time, I'm in favor of sticking to one editor for everything.
Or use an editor which follows user interface standards, rather than
invents its own conventions
On Wed, 27 May 2009 12:58:02 +, Albert van der Horst wrote:
And how is reduce() supposed to know whether or not some arbitrary
function is commutative?
Why would it or need it? A Python that understands the ``par'' keyword
is supposed to know it can play some tricks with optimizing
Rhodri James rho...@wildebst.demon.co.uk writes:
The feature that caused me to uninstall python-mode.el was its
bloody-minded determination to regard '_' as a word character,
something which caused me more typing that it ever saved.
Probably you could have changed this in a few minutes. Or
On May 26, 3:25 pm, mso...@linuxmail.org wrote:
Hello,
I want to send a stream of pickled objects over a socket. Is there a
standard way of ensuring that only complete objects are unpickled on
the receiving side.
client pseudo code:
loop forever:
receive some bytes on the socket
On Wed, May 27, 2009 at 9:58 PM, imageguy imageguy1...@gmail.com wrote:
I have an object the I would like to use as a base class. Some of the
methods I would like to override completely, but others I would simply
like to call the base class method and use the return value in the
child method.
Changes by Thomas Heller thel...@ctypes.org:
--
assignee: theller -
components: -ctypes
nosy: -theller
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6121
___
New submission from R. David Murray rdmur...@bitdance.com:
Here is a trivial patch for pydoc with a minimal test.
--
components: +Library (Lib)
keywords: +easy, patch
nosy: +r.david.murray
priority: - low
stage: - patch review
versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1,
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
r72961 Fixed for Py3.1. Leaving open until backported to 2.7.
--
priority: critical - normal
versions: +Python 3.1
___
Python tracker rep...@bugs.python.org
Yonas yona...@gmail.com added the comment:
I always get a subprocess error when using embedded python 2.6.2:
File /usr/lib/python2.6/subprocess.py, line 1123, in wait: pid,
sts = os.waitpid(self.pid, 0): OSError: [Errno 10] No child processes
Example library and main program are attached.
Changes by Yonas yona...@gmail.com:
Added file: http://bugs.python.org/file14087/main.c
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1731717
___
___
New submission from Yonas yona...@gmail.com:
I always get a subprocess error when using embedded Python 2.6.2:
File /usr/lib/python2.6/subprocess.py, line 1123, in wait: pid,
sts = os.waitpid(self.pid, 0): OSError: [Errno 10] No child processes
Sample library and main files attached.
Changes by Yonas yona...@gmail.com:
Added file: http://bugs.python.org/file14089/main.c
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6122
___
___
Changes by Yonas yona...@gmail.com:
--
title: [Errno 10] No child processes - OSError: [Errno 10] No child processes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6122
___
Changes by Yonas yona...@gmail.com:
--
type: - crash
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6122
___
___
Python-bugs-list mailing list
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The content of exim_local_scan2.py would be useful as well.
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6122
Changes by Antoine Pitrou pit...@free.fr:
Removed file: http://bugs.python.org/file14090/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6120
___
Antoine Pitrou pit...@free.fr added the comment:
Could you test with the 3.1 beta? There's a Windows installer here:
http://python.org/download/releases/3.1/
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6102
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
File descriptors wrapped by the new IO module should be opened in binary
mode.
The attached patch changes TemporaryFile and NamedTemporaryFile to
always call os.open() in binary mode; the mode is really used by the
io.open() function.
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
I confirmed error happened on Python2.6, 2.7, 3.0.
But not happen on Python3.1. Interesting.
--
versions: +Python 2.7, Python 3.0
___
Python tracker rep...@bugs.python.org
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
Here is traceback for trunk(Py2.7)
Traceback (most recent call last):
File b.py, line 3, in module
f.extractall()
File e:\python-dev\trunk\lib\zipfile.py, line 947, in extractall
self.extract(zipinfo, path, pwd)
File
Suzumizaki suzumiz...@free.japandesign.ne.jp added the comment:
Thanks for reply.
I tried Python 3.1 Beta, and the testcode goes fine.
(and my current work also.)
I checked with Windows XP, I told before.
My problem seems resolved, and here is answers only to make sure.
(What is the value of
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
I think this was fixed by r72893:
Issue #6050: Don't fail extracting a directory from a zipfile if
the directory already exists.
--
nosy: +amaury.forgeotdarc
resolution: - duplicate
status: open - pending
Changes by R. David Murray rdmur...@bitdance.com:
--
components: +Library (Lib)
type: crash - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6122
___
New submission from Evan Jones ev...@mit.edu:
tarfile.open() with an empty tar archive fails with a ReadError
exception. GNU tar refuses to create empty archives, but tarfile allows
it. See the following code which reproduces the error. I used the
version of tarfile.py from subversion (revision
Changes by Evan Jones ev...@mit.edu:
--
title: tarfile: - tarfile: opening an empty tar file fails
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6123
___
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
Oops, sorry. I forgot to update working copy. I confirmed this was fixed
already.
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6120
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Would you like to work on a patch?
--
components: +Interpreter Core -Extension Modules
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5851
New submission from Marc Culler cul...@math.uic.edu:
As far as I can tell, no Tkinter event or pseudo event is generated by
clicking the green zoom button on Mac OS X windows. This makes it
impossible to support that OS X paradigm in a Tkinter application.
I would like to be able to bind Zoom
Peter Simanyi psima...@namcobandaigames.com added the comment:
Re: chmod 0666 inappropriate: I agree that leaving a file 0666 is
inappropriate, however theoretically
the code should never leave the file 0666 since the unlink will delete the file.
The code was intended to show what the problem
Pal Subbiah pal.subb...@gmail.com added the comment:
Thanks for your support.
But the telnetlib from 3.1 also behaves in the same way. read_until
always times out and returns b''. The problem seems to be with the byte
string expected. The string after letter b is not passed properly.
Yonas yona...@gmail.com added the comment:
The test doesn't fail when run directly from ./main, but it fails when
run from exim4 mail server.
exim will dlopen() mylib and run local_scan().
Besides using Popen, I haven't had any problems.
--
Added file:
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
your program works for me.
How did you compile the files? I used the following commands:
$ gcc -fPIC -I/usr/local/include/python2.6/ mylib.c -L /usr/local/lib
-lpython2.6 --shared -o mylib.so
$ gcc main.c -ldl
$ ./a.out
test
(after
Yonas yona...@gmail.com added the comment:
Thanks for testing, it works when running ./main, but not when run
through exim.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6122
___
Eric Smith e...@trueblade.com added the comment:
I think this would be useful.
I don't fee terribly strongly about it, but I think I'd like the name
str.format_using_mapping(). When I initially saw this, I thought from
the name it was creating a format object (whatever that would be) from a
Yonas yona...@gmail.com added the comment:
I didn't find anything unusual about how exim uses dlopen, but if you
want to see the code, it's here:
http://pastebin.com/m52398b30
Line 166 is the actual call.
Again, no problems except with Python's Popen().
--
New submission from Mitchell Model m...@acm.org:
2to3 -f import l.py
--- l.py (original)
File p.py (the four modules exist in the same directory as p.py):
from mod_a import a
from modb import b
from mod_c import *
from modd import *
% 2to3 -f import p.py
+++ p.py (refactored)
@@ -1,5 +1,5 @@
1 - 100 of 147 matches
Mail list logo