Re: IDE Question

2008-10-15 Thread Steve Phillips
I too did try Eclipse for Python and it totally wasn't for me. It is awesome for java though. The Android stuff I was doing I was using Eclipse. On 10/15/08, Steve Phillips [EMAIL PROTECTED] wrote: Hi All, I am just wondering what seems to be the most popular IDE. The reason I ask is I am

error estimation in a non-linear least squares fitting

2008-10-15 Thread Evelien
Dear python-users, I am trying to do a non-linear least squares fitting. Maybe trying is not the best word, as I already succeeded in that. At the moment I am using leastSquaresFit from Scientific Python. I know of other least squares routines, such as the one in scipy.optimize and I believe

read zipfile sequentially?

2008-10-15 Thread Alan G Isaac
I have a large ASCII data set that is zipped to a reasonable size. Can I access the data without decompressing the whole file first? I would like to run through the data to produce a much smaller extract and some summary statistics, but without unzipping it (if that is even possible). Thanks,

Re: File Management

2008-10-15 Thread Aaron Castironpi Brady
On Oct 15, 12:47 pm, erict1689 [EMAIL PROTECTED] wrote: I am writing this program in which I open up a file and update that information but to a new file.  I already have a global variable for it but how do I go about creating an openable file in the source code?  If it helps here is what I

Re: error estimation in a non-linear least squares fitting

2008-10-15 Thread Robert Kern
Evelien wrote: Dear python-users, I am trying to do a non-linear least squares fitting. Maybe trying is not the best word, as I already succeeded in that. At the moment I am using leastSquaresFit from Scientific Python. I know of other least squares routines, such as the one in scipy.optimize

Re: newbie - merging xls files using xldt and xlwt

2008-10-15 Thread John Machin
On Oct 15, 9:16 pm, Albert-jan Roskam [EMAIL PROTECTED] wrote: Hi, I wrote the program below to merge all xls files in a given directory into one multisheet xls file. It uses xlwt and xlrd. The xls files I use for input are generated by Spss. When I open and re-save the files in Excel, the

Re: read zipfile sequentially?

2008-10-15 Thread Tim Chase
I have a large ASCII data set that is zipped to a reasonable size. Can I access the data without decompressing the whole file first? I would like to run through the data to produce a much smaller extract and some summary statistics, but without unzipping it (if that is even possible). Yes, if

Re: installing python 3.0rc1 on Linux

2008-10-15 Thread tomohiro kusumi
I installed python3.0 rc1 on Linux with --enable-shared option on configure script. But the python3.0 says there is no libpython3.0.so although there is one under /usr/local/lib. The /etc/ld.so.conf script has that path in it too. # python3.0 python3.0: error while loading shared libraries:

Re: python3 - the hardest hello world ever ?

2008-10-15 Thread Martin v. Löwis
What defines me as latin1-user? That your locale is based on Latin-1, e.g. because it is a German locale. How precisely that works depends on the operating system. So my system seems to be an ASCII system? At least that's what Python determined. If Python couldn't have found out that you

Re: problem using ctypes with MMX intrinsics

2008-10-15 Thread Diez B. Roggisch
Robert Kern schrieb: dcharno wrote: Is it possible to use ctypes with a shared library which uses MMX/SSE intrinsics? I can load the library and access functions inside it, but I getting a seg fault when I hit one of the intrinsics. I'm wondering if there might be some sort of stack

Re: OOP books?

2008-10-15 Thread Rob Wolfe
Ken D'Ambrosio [EMAIL PROTECTED] writes: Is there an intro-to-Python book where the emphasis isn't so much on the language, but on OOP, itself? Or, failing that, at least a Python book which doesn't just introduce the language, but gives equal billing to OOP practices, etc. Take a look at

Re: IDE Question

2008-10-15 Thread Fabio Zadrozny
Now, following that route, many people call Eclipse is the 21st century Emacs... ;-) I don't want to kick off an editor war or anything, but I don't think that Eclipse is anywhere near being a 21st century emacs, Peace! I'm far from starting any war too (I don't usually try to convince

Re: OOP books?

2008-10-15 Thread Mike Driscoll
On Oct 15, 1:57 pm, Alan G Isaac [EMAIL PROTECTED] wrote: Mike Driscoll wrote: I have yet to read a Python book that only focuses on the OOP part, http://www.amazon.com/Scripting-Objects-Comparative-Presentation-Obje... fwiw, Alan Isaac Wow! That's a pricey book! Have you read it? Is it

PDF warning under Ubuntu and Fedora

2008-10-15 Thread Stef Mientki
hello, Does anyone recognize this warning, which is produced under Ubuntu and Fedora but not under Windows ? ** (python:10896): WARNING **: Can't create printer PDF because the id PDF is already used (python:10896): GnomePrintCupsPlugin-WARNING **: The CUPS printer PDF could not be created

Re: PDF warning under Ubuntu and Fedora

2008-10-15 Thread Chris Rebert
CUPS is the Common Unix Printing System. See http://en.wikipedia.org/wiki/CUPS for more info. Apparently something (your script or one of the libraries it uses perhaps?) is trying to create a new printer called PDF and failing because that name is already in use, hence the warnings. Cheers, Chris

Re: IDE Question

2008-10-15 Thread jdd
On Oct 15, 3:47 pm, Fabio Zadrozny [EMAIL PROTECTED] wrote: You should be able to have it having multiple views for the same file: although it does that by doing a new editor, and then you can place that new editor as you want -- below some existing, to the right, etc -- or you can use an

Re: Can Python fix vcard files?

2008-10-15 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Dotan Cohen wrote: 2008/10/15 Lawrence D'Oliveiro [EMAIL PROTECTED]: What adds to the confusion is that quoted-printable has its own convention for soft-wrapping long lines, using an equals sign followed by a newline. My test file has newlines not preceded by

Loosely-coupled development environment (was: IDE Question)

2008-10-15 Thread Ben Finney
Steve Phillips [EMAIL PROTECTED] writes: I am just wondering what seems to be the most popular IDE. The reason I ask is I am currently at war with myself when it comes to IDE's. It seems like every one I find and try out has something in it that others don't and viceversa. This speaks to the

Re: IDE Question

2008-10-15 Thread Egon Frerich
Steve Phillips schrieb: Hi All, I am just wondering what seems to be the most popular IDE. The reason I ask is I am currently at war with myself when it comes to IDE's. It seems like every one I find and try out has something in it that others don't and viceversa. I am in search for the perfect

Re: Python equivalent to SharePoint?

2008-10-15 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Paul Boddie wrote: ... any absence of steep licensing costs isn't necessarily an advantage in the consulting business since such stuff usually gets passed onto the brand-obsessed customer. Sounds like you're talking about customers being bigger businesses, rather

Re: Loosely-coupled development environment (was: IDE Question)

2008-10-15 Thread Joe Strout
On Oct 15, 2008, at 2:47 PM, Ben Finney wrote: Because of the inescapable central role in our craft of manipulating text files, essential in this development environment is a highly-customisable text editor with a broad *and* deep library of existing customisations, to maximise the amount of

Re: [egenix-info] Re: ANN: eGenix mxODBC - ODBC Database Interface for Python 3.0.2

2008-10-15 Thread eGenix Team: M.-A. Lemburg
On 2008-10-15 20:30, Terry Reedy wrote: FYI I initially parsed the subject line as eGenix mxODBC - ODBC Database Interface for Python 3.0.2 and thought, Wow, already prepared for the future (6 months to a year) ;-). It's going to look even better when we release version 4.0 in a year or so

Re: IDE Question

2008-10-15 Thread Mike Driscoll
On Oct 15, 12:29 pm, Chris Rebert [EMAIL PROTECTED] wrote: You can find a list and several reviews onhttp://wiki.python.org/moin/IntegratedDevelopmentEnvironments I think Wing IDE (http://www.wingware.com/products) is generally thought to be the most sophisticated one; but it's neither

Re: PDF warning under Ubuntu and Fedora

2008-10-15 Thread Stef Mientki
Chris Rebert wrote: CUPS is the Common Unix Printing System. See http://en.wikipedia.org/wiki/CUPS for more info. Apparently something (your script or one of the libraries it uses perhaps?) is trying to create a new printer called PDF and failing because that name is already in use, hence the

Re: read zipfile sequentially?

2008-10-15 Thread Alan G Isaac
On 10/15/2008 3:13 PM Tim Chase apparently wrote: http://mail.python.org/pipermail/python-list/2007-December/469320.html Ask and ye shall receive... Thank you! Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: Can Python fix vcard files?

2008-10-15 Thread Dotan Cohen
2008/10/15 Lawrence D'Oliveiro [EMAIL PROTECTED]: Thanks. The RFC pages for vcard (http://www.ietf.org/rfc/rfc2426.txt and http://www.ietf.org/rfc/rfc2425.txt) are very difficult for me to read. I'm using the test file to learn, and I will work out the kinks on other files that I come across.

Re: OOP books?

2008-10-15 Thread Alan G Isaac
On 10/15/2008 4:07 PM Mike Driscoll apparently wrote: Wow! That's a pricey book! Have you read it? Is it good? Per page the price is right: it runs nearly 1300 pages! I have not read it, but I have read a chunk of his previous

Re: File Management

2008-10-15 Thread Bruno Desthuilliers
erict1689 a écrit : I am writing this program in which I open up a file and update that information but to a new file. I already have a global variable for it A global variable ??? WHY ??? but how do I go about creating an openable file in the source code? It's in the FineManual(tm)

Re: Emacs users: feedback on diffs between python-mode.el and python.el?

2008-10-15 Thread Bruno Desthuilliers
Lawrence D'Oliveiro a écrit : In message [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: If you're an Emacs user who has used both python-mode.el (the python mode code distributed with Python and XEmacs) and python.el (the python mode code distributed with GNU Emacs), I'd like to get your

Re: Emacs users: feedback on diffs between python-mode.el and python.el?

2008-10-15 Thread Bruno Desthuilliers
Paul Rubin a écrit : [EMAIL PROTECTED] writes: If you're an Emacs user who has used both python-mode.el (the python mode code distributed with Python and XEmacs) and python.el (the python mode code distributed with GNU Emacs), I'd like to get your impressions on how they compare and where you

memory use with regard to large pickle files

2008-10-15 Thread Catherine Moroney
I'm writing a python program that reads in a very large pickled file (consisting of one large dictionary and one small one), and parses the results out to several binary and hdf files. The program works fine, but the memory load is huge. The size of the pickle file on disk is about 900 Meg so I

Re: PDF warning under Ubuntu and Fedora

2008-10-15 Thread Chris Rebert
On Wed, Oct 15, 2008 at 2:12 PM, Stef Mientki [EMAIL PROTECTED] wrote: Chris Rebert wrote: CUPS is the Common Unix Printing System. See http://en.wikipedia.org/wiki/CUPS for more info. Apparently something (your script or one of the libraries it uses perhaps?) is trying to create a new

Re: OOP books?

2008-10-15 Thread Bruno Desthuilliers
Ken D'Ambrosio a écrit : Hi, all. Over the years, I've programmed in a fair number of languages; the ones with which I became most familiar were assembler, BASIC, Pascal, and lately (the last fifteen years or so) Perl. Now I'm trying my hand at Python. While I don't have any problems with

Re: problem using ctypes with MMX intrinsics

2008-10-15 Thread dcharno
Robert Kern wrote: Well, stack alignment would be a problem with how the shared library gets compiled, nothing to do with ctypes (I think). However, if you are The shared library is built with '-m32 -msse2' and works fine from a C/C++ test harness, so I think its compiled okay. passing in

VipIMAGE 2009 – ECCOMAS Thematic Conference - FIRS T ANNOUNCE

2008-10-15 Thread [EMAIL PROTECTED]
--- (Apologies for cross-posting) International ECCOMAS Thematic Conference VipIMAGE 2009 - II ECCOMAS THEMATIC CONFERENCE ON COMPUTATIONAL VISION AND MEDICAL IMAGE

Re: IDE Question

2008-10-15 Thread Craig Allen
it's commercial, but I like WingIDE enough to recommend... I run it on Linux and Mac and it works well. -craig On Oct 15, 7:19 am, Steve Phillips [EMAIL PROTECTED] wrote: Hi All, I am just wondering what seems to be the most popular IDE. The reason I ask is I am currently at war with myself

Re: memory use with regard to large pickle files

2008-10-15 Thread Martin v. Löwis
The program works fine, but the memory load is huge. The size of the pickle file on disk is about 900 Meg so I would theoretically expect my program to consume about twice that (the dictionary contained in the pickle file plus its repackaging into other formats), but instead my program needs

Re: problem using ctypes with MMX intrinsics

2008-10-15 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Robert Kern wrote: Try to check the addresses of the ctypes values you are passing in. I'm not entirely sure how to do that, though. Cast the address to an integer and print it out? I think the data needs to be 16-byte-aligned, so in hex, the units digit of the

Re: Overloading operators

2008-10-15 Thread Aaron Castironpi Brady
On Oct 15, 7:34 am, Mr.SpOOn [EMAIL PROTECTED] wrote: Hi, in a project I'm overloading a lot of comparison and arithmetic operators to make them working with more complex classes that I defined. Sometimes I need a different behavior of the operator depending on the argument. For example, if

Re: problem using ctypes with MMX intrinsics

2008-10-15 Thread Robert Kern
dcharno wrote: Robert Kern wrote: Well, stack alignment would be a problem with how the shared library gets compiled, nothing to do with ctypes (I think). However, if you are The shared library is built with '-m32 -msse2' and works fine from a C/C++ test harness, so I think its compiled

Re: IDE Question

2008-10-15 Thread Dick Moores
Have you seen Kelie Feng's video introducing the terrific and free IDE, Ulipad? http://www.rcblue.com/u3/ Get Ulipad 3.9 from http://code.google.com/p/ulipad/downloads/list svn for the latest revision http://ulipad.googlecode.com/svn/trunk/ Mailing list for Ulipad:

Re: Loosely-coupled development environment

2008-10-15 Thread Ben Finney
Joe Strout [EMAIL PROTECTED] writes: You've never used BBEdit? (Perhaps because of the platform you use -- that's a Mac-only text editor, but it meets your criteria nicely. The free version TextWrangler does a pretty darn good job too, though of course has some limitations.) Not because of

How to get the output of channel.exec_command(cmd) while using paramiko ?

2008-10-15 Thread sactiw
Hi Friends, I am trying to create a file on remote machine and then setting its file permissions to remote only thus now this file will act as a lock for me and as any body else now can't create same file on that machine and when my work is over I will reset the file permissions

writing emacs commands with your fav lang

2008-10-15 Thread [EMAIL PROTECTED]
Here's a little tutorial that lets you write emacs commands for processing the current text selection in emacs in your favorite lang. Elisp Wrapper For Perl Scripts http://xahlee.org/emacs/elisp_perl_wrapper.html plain text version follows. - Elisp Wrapper For

How to transfer data structure or class from Python to C/C++?

2008-10-15 Thread Hongtian
Hi friends, I am a newer of Python. I want to ask below question: I have a C/C++ application and I want to use Python as its extension. To do that, I have to transfer some data structure from C/C++ application to Python and get some data structure from Python to C/C++ application. I have

Re: OOP books?

2008-10-15 Thread Asun Friere
On Oct 16, 7:12 am, Bruno Desthuilliers [EMAIL PROTECTED] wrote: [snip] Not a word about Python in it, but:http://www.amazon.com/Design-Patterns-Object-Oriented-Addison-Wesley-... A must-read if you want to understand OO (MHO of course). Yes, if only to see how many of the design patterns

Re: rope python-emacs problem

2008-10-15 Thread nullius . filius
On Oct 15, 7:19 pm, Rustom Mody [EMAIL PROTECTED] wrote: Ive been trying to useropefor python in emacs and I get a backtrace which starts with AttributeError: 'module' object has no attribute 'samefile' Any ideas? I searched for a variable 'samefile' in ropemacs and its associated packages.

like using python

2008-10-15 Thread gdyren
as the subject -- http://mail.python.org/mailman/listinfo/python-list

Re: how to support chinese in dos window

2008-10-15 Thread gdyren
On 10月16日, 上午10时18分, [EMAIL PROTECTED] wrote: Create a new py named test.py,the content is print 中 now in dos window python test.py return SyntaxError: Non-ASCII character '\xd6' in file test.py on line 1, but no encodi ng declared; seehttp://www.python.org/peps/pep-0263.htmlfor details just

iter with stepsize

2008-10-15 Thread Alan G Isaac
If I have a sequence, I can get every other or every fifth element by slicing. Is there an equivalent for iterators? More specifically, I want every fifth line of a big file. What is the most efficient way to get them? Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: iter with stepsize

2008-10-15 Thread Paul Rubin
Alan G Isaac [EMAIL PROTECTED] writes: If I have a sequence, I can get every other or every fifth element by slicing. Is there an equivalent for iterators? itertools.islice -- http://mail.python.org/mailman/listinfo/python-list

UnicodeDecodeError: 'ascii' codec can't decode byte 0xa0 in

2008-10-15 Thread MOS37F MOS37F
import shelve from ShelfFile import ABC from zipfile import ZipFile, ZIP_DEFLATED ShelfFilePath = 'E:\DIR\DIR\DIR\ShelfFile' def TEST(): ShelfFileObject = shelve.open(ShelfFilePath) RetrievedObject = ShelfFileObject['abc'] ShelfFileObject.close() return RetrievedObject

Re: How to transfer data structure or class from Python to C/C++?

2008-10-15 Thread bearophileHUGS
Hongtian: Could you please guide me to do that? or tell me some document to have a research? You can start googling for: - SWIG - Boost.Python - SIP - ctypes (built-in module) - And more. Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list

Re: iter with stepsize

2008-10-15 Thread Alan G Isaac
Alan G Isaac [EMAIL PROTECTED] writes: If I have a sequence, I can get every other or every fifth element by slicing. Is there an equivalent for iterators? On 10/15/2008 11:12 PM Paul Rubin apparently wrote: itertools.islice Oh, of course. I'm a bit embarrassed not to have thought to

Re: Emacs users: feedback on diffs between python-mode.el and python.el?

2008-10-15 Thread Michele Simionato
On Oct 14, 7:37 pm, [EMAIL PROTECTED] wrote: If you're an Emacs user who has used both python-mode.el (the python mode code distributed with Python and XEmacs) and python.el (the python mode code distributed with GNU Emacs), I'd like to get your impressions on how they compare and where you

Re: IDE Question

2008-10-15 Thread Aaron Castironpi Brady
On Oct 15, 1:07 pm, Stef Mientki [EMAIL PROTECTED] wrote: Steve Phillips wrote: Hi All, I am just wondering what seems to be the most popular IDE. The reason I ask is I am currently at war with myself when it comes to IDE's. It seems like every one I find and try out has something in it

Re: default value in __init__

2008-10-15 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Steven D'Aprano wrote: On Thu, 09 Oct 2008 01:39:30 -0700, kenneth (a.k.a. Paolo) wrote: On Oct 9, 10:14 am, Christian Heimes [EMAIL PROTECTED] wrote: No, it always contains the default argument because default values are created just ONE TIME

Re: How to transfer data structure or class from Python to C/C++?

2008-10-15 Thread Aaron Castironpi Brady
On Oct 15, 8:08 pm, Hongtian [EMAIL PROTECTED] wrote: Hi friends, I am a newer of Python. I want to ask below question: I have a C/C++ application and I want to use Python as its extension. To do that, I have to transfer some data structure from C/C++ application to Python and get some data

Re: default value in __init__

2008-10-15 Thread Aaron Castironpi Brady
On Oct 15, 11:05 pm, Lawrence D'Oliveiro [EMAIL PROTECTED] central.gen.new_zealand wrote: In message [EMAIL PROTECTED], Steven D'Aprano wrote: On Thu, 09 Oct 2008 01:39:30 -0700, kenneth (a.k.a. Paolo) wrote: On Oct 9, 10:14 am, Christian Heimes [EMAIL PROTECTED] wrote: No, it always

Re: Overloading operators

2008-10-15 Thread Kay Schluehr
On 15 Okt., 14:34, Mr.SpOOn [EMAIL PROTECTED] wrote: Hi, in a project I'm overloading a lot of comparison and arithmetic operators to make them working with more complex classes that I defined. Sometimes I need a different behavior of the operator depending on the argument. For example, if

Re: default value in __init__

2008-10-15 Thread Aaron Castironpi Brady
On Oct 15, 11:33 pm, Steve Holden [EMAIL PROTECTED] wrote: Aaron Castironpi Brady wrote: [about how default argument behavior should, in his opinion, be changed] Say what you like. The language is as it is by choice. Were it, for some reason, to change we would then be receiving posts every

Re: Making class attributes non-case-sensitive?

2008-10-15 Thread Rafe
Thanks for the COM pointers Matt. I'll definitely look in to these. Perhaps this will become a non-issue when I use one of these COM wrappers... Anybody who is used to developing at all is going to accept that the software is case sensitive. Case sensitive? Yes. Letting types create hard to

Re: default value in __init__

2008-10-15 Thread Steve Holden
Aaron Castironpi Brady wrote: [about how default argument behavior should, in his opinion, be changed] Say what you like. The language is as it is by choice. Were it, for some reason, to change we would then be receiving posts every week that didn't understand the *new* behavior. Sometimes

[issue3574] compile() cannot decode Latin-1 source encodings

2008-10-15 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: The patch looks fine to me, please apply. I notice that the diff file reports changes to test_pep3120.py. No such changes should be necessary, so please exclude them from committing. -- assignee: loewis - brett.cannon keywords:

[issue957650] Fix for bugs relating to ntpath.expanduser()

2008-10-15 Thread Martin v. Löwis
Changes by Martin v. Löwis [EMAIL PROTECTED]: -- assignee: loewis - priority: high - normal resolution: - accepted status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue957650 ___

[issue3725] telnetlib module broken by str to unicode conversion

2008-10-15 Thread Dmitry Vasiliev
Dmitry Vasiliev [EMAIL PROTECTED] added the comment: The patch is good. It's exactly what I told about in msg72132. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3725 ___

[issue4129] C/API documentation: request for documentation of change to Py_ssize_t* arguments.

2008-10-15 Thread Jakob Schiøtz
Jakob Schiøtz [EMAIL PROTECTED] added the comment: Don't get me wrong: I am not complaining about the code breakage, it is unavoidable as long as Python is a developing language. As you say I can use newer versions of at least some of the modules. I just think it would be nice for developers

[issue3905] subprocess failing in GUI applications on Windows

2008-10-15 Thread Weird
Weird [EMAIL PROTECTED] added the comment: Georg Brandl thank you, i was having the same problem, but now is fixed -- nosy: +Weird ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3905 ___

[issue4036] Support bytes for subprocess.Popen()

2008-10-15 Thread Toshio Kuratomi
Changes by Toshio Kuratomi [EMAIL PROTECTED]: -- nosy: +a.badger ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4036 ___ ___ Python-bugs-list mailing

[issue4126] remove not decodable environment variables

2008-10-15 Thread Toshio Kuratomi
Toshio Kuratomi [EMAIL PROTECTED] added the comment: About your subprocess example: we choose to refuse it because we don't mix bytes (your non decodable PATH) and unicode ('myapp.sh') If python3 is doing things right we shouldn't be mixing bytes and unicode here: 1) the programmer is only

[issue4128] Performance regression in long division in 2.6

2008-10-15 Thread Fredrik Johansson
Fredrik Johansson [EMAIL PROTECTED] added the comment: The speed difference comes from different compiler options. I figured as much. I'm using the binaries from python.org (see the .txt file; it includes version headers). The question is why the compilation changes for 2.6 slowed down

[issue4129] C/API documentation: request for documentation of change to Py_ssize_t* arguments.

2008-10-15 Thread Jakob Schiøtz
New submission from Jakob Schiøtz [EMAIL PROTECTED]: In general, the Python C/API manual is very careful to document when changes have occurred in the API, this is really useful information when writing portable extension modules to be used with different Python versions. However, there is a

[issue4043] Warnings in IDLE raise TypeError (such as attempting to import deprecated modules)

2008-10-15 Thread Russell Blau
Russell Blau [EMAIL PROTECTED] added the comment: This error is caused by line 27 in run.py: def idle_formatwarning_subproc(message, category, filename, lineno): needs to be changed to -- def idle_formatwarning_subproc(message, category, filename, lineno, line=None): so that the

[issue3574] compile() cannot decode Latin-1 source encodings

2008-10-15 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: On Tue, Oct 14, 2008 at 11:05 PM, Martin v. Löwis [EMAIL PROTECTED] wrote: Martin v. Löwis [EMAIL PROTECTED] added the comment: The patch looks fine to me, please apply. Great! I notice that the diff file reports changes to

[issue4128] Performance regression in long division in 2.6

2008-10-15 Thread Fredrik Johansson
New submission from Fredrik Johansson [EMAIL PROTECTED]: On my laptop (Windows XP, 32-bit), long division is about 15% slower in 2.6 compared to 2.5. See the attached .txt for timings. I noticed this when comparing the unit tests for mpmath (http://code.google.com/p/mpmath/) under 2.5 and 2.6.

[issue4027] wrong page index number in reference book of python documentation

2008-10-15 Thread Terry J. Reedy
Terry J. Reedy [EMAIL PROTECTED] added the comment: We are all volunteers here, and I see three replies. This may or may not be trivial to fix, and may take some time. Python docs are written in rst format and translated by Sphinx to various formats. The main translation is to html, as viewed

[issue3909] Building PDF documentation from tex files

2008-10-15 Thread Sergey Lipnevich
Sergey Lipnevich [EMAIL PROTECTED] added the comment: I don't know what the proper procedure is (reopening or filing a new ticket), but I see this problem with Sphinx 0.5dev-20081015 and Python 2.6 on Windows XP. The change recommended by Winfried in msg73874 seems to fix it (patch attached

[issue4027] wrong page index number in reference book of python documentation

2008-10-15 Thread Ray Wang
Ray Wang [EMAIL PROTECTED] added the comment: any feedback here? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4027 ___ ___ Python-bugs-list mailing list

[issue4129] C/API documentation: request for documentation of change to Py_ssize_t* arguments.

2008-10-15 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: I think the Py_ssize_t change is clearly documented in the What's new document: http://docs.python.org/whatsnew/2.5.html#pep-353-using-ssize-t-as-the-index-type This paragraph also links to:

[issue4128] Performance regression in long division in 2.6

2008-10-15 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: The source code is unchanged except the format functions (binary and octal bases with the new prefixes: 0b, 0o). The speed difference comes from different compiler options. - (Ubuntu Gutsy) python2.5: 1010 ms - python trunk: 1010 ms -

[issue4129] C/API documentation: request for documentation of change to Py_ssize_t* arguments.

2008-10-15 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: I don't think that we will change the 2.5 manuals anymore; Python 2.5 is about to see its last bug-fix release. For 2.6, I suppose contributions would be welcome. -- nosy: +loewis ___ Python

[issue3574] compile() cannot decode Latin-1 source encodings

2008-10-15 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: I added a test for compile() in there, which is why the patch is claiming that. There is an uploaded version of test_pep3120.py on the issue. Ah, ok. I missed that - that change is also fine. ___ Python

[issue2007] cookielib lacks FileCookieJar class for Internet Explorer

2008-10-15 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: Note that the code on wwwsearch.sf.net only reads cookies, and does not write them. Also, the approach used is fragile to changes to MS's index.dat database, which was the reason why that code was not included when cookielib was added. As far as

[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes

2008-10-15 Thread jared jennings
New submission from jared jennings [EMAIL PROTECTED]: If the Intel 9.1 compilers are used to compile Python 2.6, the following compiler error results: /mnt/gpfs/usrpeople/jenninjl/Python-2.6-intel/Modules/_ctypes/libffi/src/x86/ffi64.c(43): error: identifier __int128_t is undefined

[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes

2008-10-15 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Why are you reporting this as a bug in Python? Isn't it rather a bug in icc? -- nosy: +loewis ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4130

[issue3725] telnetlib module broken by str to unicode conversion

2008-10-15 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Fixed in r66904. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3725 ___

[issue1570255] redirected cookies

2008-10-15 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: Sorry I turned up rather late here (is there a way to subscribe to changes to all bugs whose comments or title contain a given string?) If it works with Firefox and not with cookielib it's almost certainly a bug. However, it's not clear to me

[issue4049] IDLE does not open at all

2008-10-15 Thread Chris Ozeroff
Chris Ozeroff [EMAIL PROTECTED] added the comment: This bug does not just affect Vista. I am running Windows XP Professional x64 and encountered the same problem. Everything appeared to go fine on the installation, but then IDLE just refuses to run, nothing appears in the task manager, no

[issue4043] Warnings in IDLE raise TypeError (such as attempting to import deprecated modules)

2008-10-15 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Fixed in r66905. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4043

[issue4049] IDLE does not open at all

2008-10-15 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: I am running Windows XP Professional x64 and encountered the same problem. Everything appeared to go fine on the installation, but then IDLE just refuses to run, nothing appears in the task manager, no errors, nothing. Command line still

[issue4073] distutils build_scripts and install_data commands need 2to3 support

2008-10-15 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: If you'd like, I can add support for skipping backup files to 2to3. -- nosy: +benjamin.peterson ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4073

[issue4073] distutils build_scripts and install_data commands need 2to3 support

2008-10-15 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: If you'd like, I can add support for skipping backup files to 2to3. That would be useful, I think. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4073

[issue2190] MozillaCookieJar ignore HttpOnly cookies

2008-10-15 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: I think firefox 3 no longer writes cookies.txt (it writes cookies.sqlite instead). Can anybody point out a version of firefox that wrote this HttpOnly information to cookies.txt, so the patch can be tested? ___

[issue4131] Note that Firefox 3 does not write cookies.txt

2008-10-15 Thread John J Lee
New submission from John J Lee [EMAIL PROTECTED]: Just adds a note to the cookielib documentation to point out that Firefox 3 no longer writes cookies.txt, the file format understood by cookielib.MozillaCookieJar (firefox now maintains persistent cookie state in an sqlite database). --

[issue3704] cookielib doesn't handle URLs with / in parameters

2008-10-15 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: Do we have an RFC 3986 URI parser in the stdlib now? It would be better to use that if so, but I don't see one. Failing that, an implementation of the relevant part of that RFC is only about four lines of code, so that would be better than

[issue3924] cookielib chokes on non-integer cookie version, should ignore it instead

2008-10-15 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: The sensible fix for this is to strip the quotes off, defaulting to version 0 on failure to parse the version cookie-attribute. It's not necessary to retain the original version string. By the way, what you posted warning rather than a strictly

[issue4027] wrong page index number in reference book of python documentation

2008-10-15 Thread Ray Wang
Ray Wang [EMAIL PROTECTED] added the comment: We are all volunteers here, and I see three replies. This may or may not be trivial to fix, and may take some time. Python docs are written in rst format and translated by Sphinx to various formats. The main translation is to html, as viewed on

[issue3704] cookielib doesn't handle URLs with / in parameters

2008-10-15 Thread Senthil
Senthil [EMAIL PROTECTED] added the comment: John, issue3647 tries relative url parsing and joins to be RFC3986 compliance. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3704 ___

<    1   2