Hello Python Community,
I’m pleased to announce the release of IronPython 2.0.1. IronPython 2.0.1 is a
minor update to IronPython 2.0 which in turn is a CPython 2.5 compatible
release running under the .NET platform. Our top priority for this release was
improving upon performance while
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On behalf of the Python development team, I'm happy to announce the
availability of Python 3.0.1, the first bug fix release of Python
3.0. Version 3.0.1 fixes dozens of bugs reported since the release of
Python 3.0 on December 3rd, 2008.
New to python I have a large file that I need to break up into
multiple smaller files. I need to break the large file into sections
where there are 65535 lines and then write those sections to seperate
files.
If your lines are variable-length, then look at itertools recipes.
from
On Mon, 2009-02-09 at 21:02 +0100, Christian Heimes wrote:
The module was renamed to _thread to stop people from using it directly.
The extension module is the interface to some low level types and
functions. Especially the usage of thread.start_new_thread is
problematic, since it bypasses
redbaron a écrit :
Don't really sure, but try to define your class as new-style one.
isinstance() works as well with classic classes.
--
http://mail.python.org/mailman/listinfo/python-list
John Henry wrote:
I have a need to invoke CutePDF from within a Python program.
All I need is to say Print this to CUTEPDF and store as xyz.pdf.
Private Sub Print_PDF()
lRetVal = RegCreateKeyEx(HKEY_CURRENT_USER, Software\Custom PDF
Printer, _
0, vbNullString,
maksym.ka...@gmail.com a écrit :
Hi there.
now i'm a complete newbie for python, and maybe my problem is stupid
but i cannot solve it myself
Others already addressed your problem (cf Paul and Diez answers). I'll
just allow myself to point a couple other potential problems with your code:
azrael ju...@gmail.com wrote:
To be honest, in compare to Visual Studio, Gui Builders for wx widgets
are really bad. Also completly for python there is not one good
GuiBuilder. The only one I have seen that would come near VS was
BoaConstructor, But the number of Bugs is just horrific. Too
Cameron Pulsford a écrit :
Thanks, that did it! Why is that the case though? Or rather, why do the
assignments to temp.x and temp.y not effect the self.x and self.y? How
come I only run into the problem with the list?
Because there's a huge difference between binding an object to a name
Hi all,
I'm trying to build my first python extensionon a win32 system. I
followed the description in
http://starship.python.net/crew/mwh/toext/your-first-extension.html,
but after running
C:\Python26\python first-setup.py build_ext -i
nothing seems to happen and no file first.pyd is produced.
azrael wrote:
I know that there is already a standard python library, But
why not extending it. classify the standard library into subcategories
like Networking, DataBase, Computation, ..
If the standard library where that huge, python 3.0 would have been late
by a couple of years.
On Fri, Feb 13, 2009 at 6:30 PM, martijnsteenw...@gmail.com wrote:
Hi all,
I'm trying to build my first python extensionon a win32 system. I
followed the description in
http://starship.python.net/crew/mwh/toext/your-first-extension.html,
but after running
C:\Python26\python
On Feb 12, 10:49 am, redbaron ivanov.ma...@gmail.com wrote:
Don't really sure, but try to define your class as new-style one.
Like
class GeoMap(object):
...
Well, the OP said he was using Python 3.0, where all classes are new-
style classes.
But that brings up another very slight
Hi all,
I need some help.
I tried to find top n(eg. 5) similar words for a given word, from a
dictionary of 50,000 words.
I used python-levenshtein module,and sample code is as follow.
def foo(searchword):
disdict={}
for word in self.dictionary-words:
En Fri, 13 Feb 2009 05:43:02 -0200, brianrpsgt1 brianl...@cox.net
escribió:
On Feb 12, 11:02 pm, Gabriel Genellina gagsl-...@yahoo.com.ar
wrote:
En Fri, 13 Feb 2009 04:44:54 -0200, brianrpsgt1 brianl...@cox.net
escribió:
New to python I have a large file that I need to break upinto
En Fri, 13 Feb 2009 08:07:58 -0200, Carl Banks pavlovevide...@gmail.com
escribió:
Well, the OP said he was using Python 3.0, where all classes are new-
style classes.
But that brings up another very slight possibility, though not a very
likely one in this case: the behavior of isinstance can
On Feb 9, 7:34 am, Tim Wintle tim.win...@teamrubber.com wrote:
Thanks for both replies,
On Mon, 2009-02-09 at 15:59 +0100, Christian Heimes wrote:
You shouldn't use the thread module directly. It's not meant to be used
by a user. Please stick to the threading module. You won't notice a
En Fri, 13 Feb 2009 08:16:00 -0200, S.Selvam Siva s.selvams...@gmail.com
escribió:
I need some help.
I tried to find top n(eg. 5) similar words for a given word, from a
dictionary of 50,000 words.
I used python-levenshtein module,and sample code is as follow.
def foo(searchword):
Gabriel Genellina wrote:
En Fri, 13 Feb 2009 08:07:58 -0200, Carl Banks pavlovevide...@gmail.com
escribió:
Well, the OP said he was using Python 3.0, where all classes are new-
style classes.
But that brings up another very slight possibility, though not a very
likely one in this case:
En Fri, 13 Feb 2009 08:43:03 -0200, Peter Otten __pete...@web.de
escribió:
Gabriel Genellina wrote:
En Fri, 13 Feb 2009 08:07:58 -0200, Carl Banks
pavlovevide...@gmail.com
escribió:
But that brings up another very slight possibility, though not a very
likely one in this case: the behavior
On 13 feb, 10:53, David Cournapeau courn...@gmail.com wrote:
On Fri, Feb 13, 2009 at 6:30 PM, martijnsteenw...@gmail.com wrote:
Hi all,
I'm trying to build my first python extensionon a win32 system. I
followed the description
Terry Reedy wrote:
W. eWatson wrote:
From Diez above.
What does *NOT* work is writing a Tkinter-based app in idle, and to
run it
*FROM INSIDE* idle. Instead, open your explorer and double-click on the
pyhton-file your app is in. That's all that there is to it.
So this is the absolute truth?
On Fri, Feb 13, 2009 at 7:58 PM, martijnsteenw...@gmail.com wrote:
On 13 feb, 10:53, David Cournapeau courn...@gmail.com wrote:
On Fri, Feb 13, 2009 at 6:30 PM, martijnsteenw...@gmail.com wrote:
Hi all,
I'm trying to build my first python extensionon a win32 system. I
followed the
Hi John,
All I need is to say Print this to CUTEPDF and store as xyz.pdf.
I can't answer you question but let me make a suggestion: Try
PdfCreator. It lets you control all the process using an activex
control. It has events to tell you when the jobs has finish, or report
you of eventual
On Feb 13, 10:02 am, redbaron ivanov.ma...@gmail.com wrote:
New to python I have a large file that I need to break up into
multiple smaller files. I need to break the large file into sections
where there are 65535 lines and then write those sections to seperate
files.
If your lines
En Fri, 13 Feb 2009 02:43:48 -0200, Bob Kline bkl...@rksystems.com
escribió:
Joshua Kugler wrote:
We just upgraded Python to 2.6 on some of our servers and a number of
our
CGI scripts broke because the cgi module has changed the way it handles
POST requests. When the 'action' attribute was
New to python I have a large file that I need to break up
into multiple smaller files. I need to break the large file
into sections where there are 65535 lines and then write those
sections to seperate files. I am familiar with opening and
writing files, however, I am struggling with
On Feb 13, 1:19 pm, Chris cwi...@gmail.com wrote:
On Feb 13, 10:02 am, redbaron ivanov.ma...@gmail.com wrote:
New to python I have a large file that I need to break up into
multiple smaller files. I need to break the large file into sections
where there are 65535 lines and then
martijnsteenw...@gmail.com wrote:
Thanks a lot for your reply. I downloaded installed Visual C# 2008
express, but unfortunately this doesn't change anything in running the
setup file. Unfortunately, still no pyd file is produced...
Did I something wrong?
Yeah, you installed the C#
Hi,
I didn't succeed to do the following:
I download a PDF file via wget yet I am not interested in the file
itself but the wget verbose output (log message) e.g. download speed,
total size, etc.
I know I could use -o log.txt and then read from that file yet
this seems not very elegant.
I am
On Feb 13, 10:53 am, David Cournapeau courn...@gmail.com wrote:
On Fri, Feb 13, 2009 at 6:30 PM, martijnsteenw...@gmail.com wrote:
Hi all,
I'm trying to build my first python extensionon a win32 system. I
followed the description
itself but the wget verbose output (log message) e.g. download speed,
total size, etc.
ahh I got it 1 minute after sending this post g
commands.getstatusoutput(cmd)
Juergen
--
http://mail.python.org/mailman/listinfo/python-list
On 13 Feb, 11:58, Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
I noticed this change in behaviour too, and indeed, it is due to
http://bugs.python.org/issue1817
But I could not find any RFC/standard/reccomendation/whatever that clearly
states *what* should happen with a POST request
2009/2/12 Christian Heimes li...@cheimes.de:
Martin wrote:
[typos igored as requested ;)]
How does small and agile work with batteries included?
The Python slogan says batteries included, not fusion reactor included.
I'd be fine with a fusion reactor, my objections would be if skynet
was
mohit_ranka wrote:
I am getting unknown encoding like, =?Utf-8?B?QWRyaWFu?=
adr...@discussions.microsoft.com (quotes for clarity) for name of
the author from nntplib module. which seems like an encoding issue
with NNTPLib module.
What should i do to get author name information in human readable
On Feb 12, 5:14 pm, bearophileh...@lycos.com wrote:
gideon:
I've recently finished my Master's thesis on the semantics of Python.
In my thesis I define the semantics of Python by rewriting an abstract
machine. The sources that are used to produce my thesis can also be
compiled into a
Hi,
I'd like to do some web automation with python 2.5
- https:
- a cookiejar
- some forms to be filled in
what is the best set of modules.
As far as I understood, there is httplib, but it seems (if I understood
well) to be incoompatible with cookielib
I'm a newcomer to webautomation with
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi everyone,
I read the source, made numerous tests, but SGMLParser's keeps returning *tag*
data
from previous parser instances. I'm totally confused why.. The content data it
returns is ok.
E.g.::
sp = MyParser()
sp.feed('testt
On Fri, Feb 13, 2009 at 9:04 AM, News123 news...@free.fr wrote:
Hi,
I'd like to do some web automation with python 2.5
- https:
- a cookiejar
- some forms to be filled in
what is the best set of modules.
I have automated some testing of our product, using it's web UI with
Python with
Berend van Berkum wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi everyone,
I read the source, made numerous tests, but SGMLParser's keeps returning *tag* data
from previous parser instances. I'm totally confused why.. The content data it
returns is ok.
E.g.::
sp = MyParser()
Tim,
FWIW, I usually generate PDFs by printing to a Postscript printer (some
random Apple Laserthingy) and then using Ghostscript to do the conversion.
I'm happy to post if you're interested.
If its not too much bother, I would be interested in learning how you're
interfacing to Python to
pyt...@bdurham.com wrote:
Tim,
FWIW, I usually generate PDFs by printing to a Postscript printer (some random
Apple Laserthingy) and then using Ghostscript to do the conversion. I'm happy
to post if you're interested.
If its not too much bother, I would be interested in learning how you're
SuPy 1.1 Available
--
http://www.cosc.canterbury.ac.nz/greg.ewing/SuPy/
Changes in this version:
- Added explicit ways of calling method names ending in '?' or '!'. Python
method names 'is_xxx' and 'xxx_ip' map to Ruby 'xxx?' and 'xxx!' respectively.
The plain name 'xxx' can
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Fri, Feb 13, 2009 at 02:31:40PM +, MRAB wrote:
Berend van Berkum wrote:
import sgmllib
class MyParser(sgmllib.SGMLParser):
content = ''
markup = []
span_stack = []
These are in the _class_ itself, so
Tim,
http://pastebin.com/m461bf8f2
Wonderful! That's enough to get me started. Thank you very much.
Cheers,
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
Hi Joel,
Thanks,
This (the urllib2 methods you combined with cookielib) is what I am
currently trying to do.
I would just like to retrieve all the field names and default values of
a form. (Some forms are huge) and wondered thus whether there's already
a python module parsing a html documents
News123 wrote:
I would just like to retrieve all the field names and default values of
a form. (Some forms are huge) and wondered thus whether there's already
a python module parsing a html documents for forms , form fields and
field vaules, returning an objcet. that could be modified and
J Kenneth King ja...@agentultra.com writes:
I tend to work a lot with Trac for project management and have always
found the browser interface to be a productivity killer. I always
wanted a simple command-line interface to Trac, but having never found
one I found a little free time and got off
gc_ott...@yahoo.ca writes:
..I come from Delphi, and compared to Delphi, even Visual Studio
vanishes ;-)
...I don't even notice the difference between Delphi (which
I'm still using)
and wxPython.
I think this story happened to other people to,
so instead of putting a lot of
Berend van Berkum wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Fri, Feb 13, 2009 at 02:31:40PM +, MRAB wrote:
Berend van Berkum wrote:
import sgmllib
class MyParser(sgmllib.SGMLParser):
content = ''
markup = []
span_stack = []
These are
you are declaring class variables, not instance variables. you need to
declare these in an __init__ method. RTFM.
http://docs.python.org/tutorial/classes.html#a-first-look-at-classes
Berend van Berkum wrote:
class MyParser(sgmllib.SGMLParser):
content = ''
markup = []
span_stack = []
The Hub is a global community of innovators from every profession,
background and culture working at 'new frontiers' to tackle the
world's
most pressing social, cultural and environmental challenges. The Hub
has over 1000 members hotdesking in stunning spaces around the world.
The Hub aims to
Sorry, this reply was delayed (trying to use usenet...) and so now seems
(even more) bad tempered than needed. Andrew
andrew cooke wrote:
you are declaring class variables, not instance variables. you need to
declare these in an __init__ method. RTFM.
Hi,
I got the assignment to solve the knapsack problem in Python. I have to find
the solution to put items in a sack (I have only one item A, B and C) which
maxWeight can't be larger than 6 kilograms. Solution of this problem should
be A and C but the only solution I'm getting is B and C
Jean-Paul Calderone exar...@divmod.com wrote:
On Wed, 11 Feb 2009 09:31:56 -0600, Nick Craig-Wood n...@craig-wood.com
wrote:
r0g aioe@technicalbloke.com wrote:
I'm writing a linux remastering script in python where I need to chroot
into a folder, run some system commands and then
Hi everyone,
I copied a program from C to track multiple log files. I would like to
be able to print a label when a log file is updated. Here is the program;
code
#!/usr/bin/python
from threading import Thread
import subprocess
from Queue import Queue
num_threads = 3
queue = Queue()
logfiles
News123 news...@free.fr writes:
I would just like to retrieve all the field names and default values of
a form. (Some forms are huge) and wondered thus whether there's already
a python module parsing a html documents for forms , form fields and
field vaules, returning an objcet. that could be
Hi Marco / Paul,
Thanks
I'll look into
mechanize,ClientForm and BeautifulSoup.
All three are now installed. I'll just have to play with them.
bye
N
News123 wrote:
Hi Joel,
Thanks,
This (the urllib2 methods you combined with cookielib) is what I am
currently trying to do.
I would
Hello Folks,
I have a fortran program I use to process several satellite images. I
currently output the results to a text file (~750 mb) which is then
read by a perl program that outputs a GIS-ready image using GDAL
(www.gdal.org). There are python libraries for GDAL too.
I'd like to pipe the
You should give a look to Selenium. It's great.
http://www.openqa.org
News123 wrote:
Hi,
I'd like to do some web automation with python 2.5
- https:
- a cookiejar
- some forms to be filled in
what is the best set of modules.
As far as I understood, there is httplib, but it seems (if I
Gabriel Genellina wrote:
En Fri, 13 Feb 2009 08:43:03 -0200, Peter Otten __pete...@web.de
escribió:
class Type(type):
... def __instancecheck__(self, other): return True
...
class A(metaclass=Type): pass
...
class B: pass
...
isinstance(B(), A)
True
See also
On Feb 13, 8:06 am, Kurioz zpetel...@gmaljo.com wrote:
Hi,
I got the assignment to solve the knapsack problem in Python. I have to find
the solution to put items in a sack (I have only one item A, B and C) which
maxWeight can't be larger than 6 kilograms. Solution of this problem should
be
Gabriel Genellina wrote:
En Fri, 13 Feb 2009 08:16:00 -0200, S.Selvam Siva
s.selvams...@gmail.com escribió:
I need some help.
I tried to find top n(eg. 5) similar words for a given word, from a
dictionary of 50,000 words.
I used python-levenshtein module,and sample code is as follow.
def
tripp wrote:
Hello Folks,
I have a fortran program I use to process several satellite images. I
currently output the results to a text file (~750 mb) which is then
read by a perl program that outputs a GIS-ready image using GDAL
(www.gdal.org). There are python libraries for GDAL too.
I'd
Kurioz wrote:
I got the assignment to solve the knapsack problem in Python. I have to
find the solution to put items in a sack (I have only one item A, B and
C) which maxWeight can't be larger than 6 kilograms. Solution of this
problem should be A and C but the only solution I'm getting is B
David schrieb:
Hi everyone,
I copied a program from C to track multiple log files. I would like to
be able to print a label when a log file is updated. Here is the program;
Don't use threads for the job. On Unix the preferred way is select()'ing
or poll()'ing multiple file descriptors.
On Fri, Feb 13, 2009 at 12:03 PM, David da...@abbottdavid.com wrote:
Hi everyone,
I copied a program from C to track multiple log files. I would like to be
able to print a label when a log file is updated. Here is the program;
Since you're calling tail itself, why not just use tail's ability
Joe Riopel wrote:
On Fri, Feb 13, 2009 at 12:03 PM, David da...@abbottdavid.com wrote:
Hi everyone,
I copied a program from C to track multiple log files. I would like to be
able to print a label when a log file is updated. Here is the program;
Since you're calling tail itself, why not just
I have aprogram that manipulates several text files, does some math
and saves new files then exits.
The program worked fine on the original set of data, but with new data
does not open the files as needed. When I copy and paste the 'open
line' from the module to IDLE the file opens.
section of
On Feb 13, 1:27 pm, MRAB goo...@mrabarnett.plus.com wrote:
tripp wrote:
Hello Folks,
I have a fortran program I use to process several satellite images. I
currently output the results to a text file (~750 mb) which is then
read by a perl program that outputs a GIS-ready image using GDAL
mike wrote:
I have aprogram that manipulates several text files, does some math
and saves new files then exits.
The program worked fine on the original set of data, but with new data
does not open the files as needed. When I copy and paste the 'open
line' from the module to IDLE the file
W. eWatson wrote:
Terry Reedy wrote:
W. eWatson wrote:
From Diez above.
What does *NOT* work is writing a Tkinter-based app in idle, and to
run it
*FROM INSIDE* idle. Instead, open your explorer and double-click on the
pyhton-file your app is in. That's all that there is to it.
So this is
I have a Python v2.5.2 server running and I found some undesirable
behavior in the xmlrpclib module that is included with that version of
Python. The xmlrpclib version that is included with Python 2.6
changes the behavior for the better. I nervous about upgrading my
Python install to 2.6 on this
Hi, got a freeze when running 'pdb' in 3.0.
The program executes correctly with the command 'c', but freezes part
way through when running successive 'n' commands. Platform Windows XP
Home. Python 3.0 (r30:67507, Dec 3 2008, 20:14:27) [MSC v.1500 32
bit (Intel)] on win32. The 'list' command
On Feb 13, 2:42 pm, Bryan bryanv...@gmail.com wrote:
I have a Python v2.5.2 server running and I found some undesirable
behavior in the xmlrpclib module that is included with that version of
Python. The xmlrpclib version that is included with Python 2.6
changes the behavior for the better. I
On 2009-02-13 11:59, tripp wrote:
Hello Folks,
I have a fortran program I use to process several satellite images. I
currently output the results to a text file (~750 mb) which is then
read by a perl program that outputs a GIS-ready image using GDAL
(www.gdal.org). There are python libraries
On Feb 13, 12:42 pm, Bryan bryanv...@gmail.com wrote:
I have a Python v2.5.2 server running and I found some undesirable
behavior in the xmlrpclib module that is included with that version of
Python. The xmlrpclib version that is included with Python 2.6
changes the behavior for the better.
On Feb 13, 1:52 pm, Jason Scheirer jason.schei...@gmail.com wrote:
On Feb 13, 12:42 pm, Bryan bryanv...@gmail.com wrote:
I have a Python v2.5.2 server running and I found some undesirable
behavior in the xmlrpclib module that is included with that version of
Python. The xmlrpclib version
On 2009-02-13, Christian Heimes li...@cheimes.de wrote:
David schrieb:
Hi everyone,
I copied a program from C to track multiple log files. I would like to
be able to print a label when a log file is updated. Here is the program;
Don't use threads for the job. On Unix the preferred way is
On Fri, 13 Feb 2009 11:13:38 -, W. eWatson notval...@sbcglobal.net
wrote:
OK, enough tinkering with the code and others matters on my end trying
to find a work around. Somehow after much successful use of IDLE's
execution facility, I've stepped on an invisible banana peel. I think
On 13 Feb, 02:53, azrael jura.gro...@gmail.com wrote:
All I hear when I talk to people who own or eork in SW companies is
Python? Isn't that that small scripting language. This will never
bring a real application. I am tired of hearing this. Even Microsoft
implemented Python. Only because the
Hello, everybody.
I have this signature-changing decorator
http://paste.chrisarndt.de/paste/15aac02a90094a41a13a1b9b85a14dd6
which I
want to turn into a signature-preserving one. Here's my try
http://paste.chrisarndt.de/paste/d0f835c00f824437bf4a0898f8020fc8,
but I get
this error:
On Feb 12, 10:39 pm, Damon damonwisc...@gmail.com wrote:
* Like R, every time there is a new version of Python, the repository
should rebuild the packages, for all supported platforms, and make
available all those that compile cleanly. R also forces you to write
properly structured
Hi,
Which python 2.6.1 file should I download for my windows vista home
premium laptop? (32bit, AMD turion 64 x2)
the windows x86 MSI installer or the windows AMD64 MSI installer?
Thank you!
Sue
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 12, 1:15 am, Steven D'Aprano
ste...@remove.this.cybersource.com.au wrote:
I usually strive
for comprehensions if a for loop can be reduced to such.
Any particular reason?
Only two.
1.) I was impressed by their clarity and conciseness when I first
discovered them.
2.) I also read now
If you are using 32bit OS(which you are) then use the x86 MSI installer.
AMD64 MSI installer is used only when you are using 64bit OS.
Sue gl...@yahoo.com wrote in message
news:mailman.9515.1234572128.3487.python-l...@python.org...
Hi,
Which python 2.6.1 file should I download for my windows
On Feb 13, 5:42 am, Gabriel Genellina gagsl-...@yahoo.com.ar
wrote:
You may replace the last steps (sort + slice top 5) by heapq.nlargest - at
least you won't waste time sorting 49995 irrelevant words...
Anyway you should measure the time taken by the first part (Levenshtein),
it may be
On Fri, Feb 13, 2009 at 7:22 PM, Basilisk96 basilis...@gmail.com wrote:
On Feb 12, 10:39 pm, Damon damonwisc...@gmail.com wrote:
* Like R, every time there is a new version of Python, the repository
should rebuild the packages, for all supported platforms, and make
available all those that
When creating a Python binding to a C or C++ library, which is easier
to wrap, the C lib or the C++ one? Given a choice, if you had to
choose between using one of two libs, one written in C, the other in C+
+ -- both having approximately the same functionality -- which would
you rather deal with
Folks:
This Cloud Storage system is written entirely in Python except for
the CPU-intensive parts (cryptography and erasure coding), which are
provided as Python extension modules. Thanks for making Python such
a high-quality and effective tool!
Regards,
Zooko
ANNOUNCING allmydata.org
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On behalf of the Python development team, I'm happy to announce the
availability of Python 3.0.1, the first bug fix release of Python
3.0. Version 3.0.1 fixes dozens of bugs reported since the release of
Python 3.0 on December 3rd, 2008.
When creating a Python binding to a C or C++ library, which is easier
to wrap, the C lib or the C++ one? Given a choice, if you had to
choose between using one of two libs, one written in C, the other in C+
+ -- both having approximately the same functionality -- which would
you rather deal
Aaron Brady castironpi at gmail.com writes:
Hi, got a freeze when running 'pdb' in 3.0.
This is a known issue because of the rewrite of the IO library in 3.0. It will
hopefully be fixed in 3.1. See http://bugs.python.org/issue3618 for more
information.
--
On Fri, Feb 13, 2009 at 5:35 PM, argo...@gmail.com wrote:
When creating a Python binding to a C or C++ library, which is easier
to wrap, the C lib or the C++ one? Given a choice, if you had to
choose between using one of two libs, one written in C, the other in C+
+ -- both having
String concatenation has been optimized since 2.3, so using += should
be fairly fast.
In my first test, I tried concatentating a 4096 byte string 1000 times
in the following code, and the result was indeed very fast (12.352 ms
on my machine).
import time
t = time.time()
mydata =
moredata =
Sammo sammo2828 at gmail.com writes:
String concatenation has been optimized since 2.3, so using += should
be fairly fast.
This is implementation dependent and shouldn't be relied upon.
Note that I need to do something to mydata INSIDE the loop, so please
don't tell me to append
Martin wrote:
Hi,
at first I wanted to file this under meta-discussions, but your lost
paragraph got me thinking...
2009/2/12 Christian Heimes li...@cheimes.de:
Nobody is going to stop you from creating a large bundle of useful
extensions as long as you follow the licenses. In fact lots
On Fri, Feb 13, 2009 at 9:15 PM, Barry Warsaw ba...@python.org wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On behalf of the Python development team, I'm happy to announce the
availability of Python 3.0.1, the first bug fix release of Python 3.0.
Version 3.0.1 fixes dozens of bugs
Scott David Daniels wrote:
W. eWatson wrote:
Terry Reedy wrote:
W. eWatson wrote:
From Diez above.
What does *NOT* work is writing a Tkinter-based app in idle, and to
run it
*FROM INSIDE* idle. Instead, open your explorer and double-click on the
pyhton-file your app is in. That's all that
...
How can it? It's not IDLE's problem, it's yours.
Finally, we can probably agree that I can continue to use IDLE for
editing and syntax checking, but to guarantee successful execution
of the program, I can just double-click on the py file in my folder.
Perhaps there is a better way than
1 - 100 of 254 matches
Mail list logo