Re: utf-8 read/write file

2008-10-08 Thread gigs
Benjamin wrote: On Oct 8, 12:49 pm, Bruno [EMAIL PROTECTED] wrote: Hi! I have big .txt file which i want to read, process and write to another .txt file. I have done script for that, but im having problem with croatian characters (Š,Đ,Ž,Č,Ć). Can you show us what you have so far? How can

Re: distributing apps without the Python source?

2008-10-08 Thread Paul Boddie
On 8 Okt, 23:50, James Mills [EMAIL PROTECTED] wrote: I must point out though that if your client is paranoid for intellectual property reasons (ie: protecting his assets), then you should be aware that even if you can decompile a Python compiled module (or a compiled java class), it's

Re: utf-8 read/write file

2008-10-08 Thread Aleksandar Radulovic
Hi, What is the encoding of the file1 you're reading from? I just ran tests on my machine (OS X) with both python2.5 and 2.6 and was able to read from a file containing: život je lep The file is UTF-8 encoded. data = open(test.txt).read() data '\xc5\xbeivot je lep.' f = open(test2.txt, wb)

Re: ssh problem using paramiko?

2008-10-08 Thread Steve Holden
sa6113 wrote: I couldn't find any good source for download Openssh on the net? Would you please introduce a URL for download that? http://www.openssh.org/ would be my first port of call. regards Steve -- Steve Holden+1 571 484 6266 +1 800 494 3119 Holden Web LLC

Re: utf-8 read/write file

2008-10-08 Thread Kent Johnson
On Oct 8, 5:55 pm, gigs [EMAIL PROTECTED] wrote: Benjamin wrote: On Oct 8, 12:49 pm, Bruno [EMAIL PROTECTED] wrote: Hi! I have big .txt file which i want to read, process and write to another .txt file. I have done script for that, but im having problem with croatian characters

Re: ssh problem using paramiko?

2008-10-08 Thread Steve Holden
Diez B. Roggisch wrote: sa6113 wrote: I couldn't find any good source for download Openssh on the net? Would you please introduce a URL for download that? http://www.vapor.com/amtelnet/ it supports only SSHv1, but I guess that's ok. No, you really don't want to use SSHv1. Amtelnet

split a list based on a predicate

2008-10-08 Thread Rajanikanth Jammalamadaka
Hi! Is there a functional way to do this? I have an array [0,1,2,3,0,1,2,2,3] and I want the first chunk of non-decreasing values from this array (eg: In this case I want [0,1,2,3]) Thanks, Rajanikanth -- http://mail.python.org/mailman/listinfo/python-list

A question about funcation parameter and self defined object

2008-10-08 Thread Wei Guo
Hi, I defined a class called vec3 which contains x, y, z and in another function, I tried to call a function which takes a vec3 as a parameter, but it seems that parameter is passed as a generic object and I can not access x , y, z in my vec3. Could anyone help me with that? class vec3: def

Re: split a list based on a predicate

2008-10-08 Thread Tim Chase
Is there a functional way to do this? I have an array [0,1,2,3,0,1,2,2,3] and I want the first chunk of non-decreasing values from this array (eg: In this case I want [0,1,2,3]) Sounds like a use for a generator wrapper: def monotonic(iterator): i = iter(iterator) prev = i.next()

Re: split a list based on a predicate

2008-10-08 Thread bearophileHUGS
Rajanikanth Jammalamadaka: Is there a functional way to do this? I have an array [0,1,2,3,0,1,2,2,3] and I want the first chunk of non-decreasing values from this array (eg: In this case I want [0,1,2,3]) In Python sometimes the best way to write the code isn't functional, this is readable

Re: If an OS was to be written in Python, how'w it look?

2008-10-08 Thread Greg Ewing
James Mills wrote: I've just checked out the darcs repository and converted it to Mercurial. I'm going to have a bit of a play wiht it... Anyone interested in this ? I'll be interested to hear of any developments. -- http://mail.python.org/mailman/listinfo/python-list

Re: distributing apps without the Python source?

2008-10-08 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Joe Strout wrote: We have a client who's paranoid about distributing the Python source to his commercial app. Commercial is not synonymous with closed source. If he wanted to keep the source closed, Python was a poor choice. You could redo it in C or C++, and

Re: how to get the thighest bit position in big integers?

2008-10-08 Thread greg
Terry Reedy wrote: str.find is an historical anomaly that should not be copied. It was(is?) a wrapper for C's string find function. C routinely uses -1 to mean None for functions statically typed to return ints. The Python version logically should return None and usually does for other

Safe eval of insecure strings containing Python data structures?

2008-10-08 Thread Warren DeLano
I would like to parse arbitrary insecure text string containing nested Python data structures in eval-compatible form: # For example, given a config.txt such as: { 'my_atom' : 1.20, 'my_dict' : { 2:50 , 'hi':'mom'}, 'my_list' : [ (1,2,3), [4.5,6.9], 'foo', 0 ] } # I would like to do

Re: A question about funcation parameter and self defined object

2008-10-08 Thread Chris Rebert
On Wed, Oct 8, 2008 at 4:36 PM, Wei Guo [EMAIL PROTECTED] wrote: Hi, I defined a class called vec3 which contains x, y, z and in another function, I tried to call a function which takes a vec3 as a parameter, but it seems that parameter is passed as a generic object and I can not access x ,

Re: Safe eval of insecure strings containing Python data structures?

2008-10-08 Thread Chris Rebert
On Wed, Oct 8, 2008 at 5:34 PM, Warren DeLano [EMAIL PROTECTED] wrote: I would like to parse arbitrary insecure text string containing nested Python data structures in eval-compatible form: # For example, given a config.txt such as: { 'my_atom' : 1.20, 'my_dict' : { 2:50 , 'hi':'mom'},

Google Advanced Urls - Free

2008-10-08 Thread wbdismalgoldstein
Hello -- http://mail.python.org/mailman/listinfo/python-list

xtube - Free

2008-10-08 Thread wbdismalgoldstein
xtube . . . ***CLICK HERE http://vids247.cn/xtube * . . . . . . . . . . . . xtube -- http://mail.python.org/mailman/listinfo/python-list

google urls - Free

2008-10-08 Thread wbdismalgoldstein
http://news.meta.ua/redirect.php?url=vids247.cn/zoo tube 365 com http://news.meta.ua/redirect.php?url=vids247.cn/zootube365 com http://news.meta.ua/redirect.php?url=vids247.cn/www zootube365 http://news.meta.ua/redirect.php?url=vids247.cn/zooskool

google urls - Free

2008-10-08 Thread kirbytailorml
http://news.meta.ua/redirect.php?url=vids247.cn/zoo-tube-247-com http://news.meta.ua/redirect.php?url=vids247.cn/zootube247-com http://news.meta.ua/redirect.php?url=vids247.cn/www-zootube247 http://news.meta.ua/redirect.php?url=vids247.cn/zooskool

Re: Porn Addiction Solutions?

2008-10-08 Thread George Sakkis
On Oct 8, 3:07 pm, [EMAIL PROTECTED] wrote: Help, I'm addicted to porn. I've been spending a lot of time downloading hardcore porn and masturbating to it. It's ruining my life. I just found out that one of these sites somehow hacked my card and rang up $5K in charges which they won't even

Re: Safe eval of insecure strings containing Python data structures?

2008-10-08 Thread George Sakkis
On Oct 8, 8:34 pm, Warren DeLano [EMAIL PROTECTED] wrote: I would like to parse arbitrary insecure text string containing nested Python data structures in eval-compatible form:   # For example, given a config.txt such as: {   'my_atom' : 1.20,   'my_dict' : { 2:50 , 'hi':'mom'},  

Re: A question about funcation parameter and self defined object

2008-10-08 Thread Wei Guo
Hi Chris, Thanks a lot for reply, you are right. I want to use this method as a static method as: translation = staticmethod( translation ) I think that here the built in function pass None. So we can not pass any self defined object for static method? Best regards, Wei On Wed, Oct 8, 2008

Re: Safe eval of insecure strings containing Python data structures?

2008-10-08 Thread Ben Finney
Warren DeLano [EMAIL PROTECTED] writes: I would like to parse arbitrary insecure text string containing nested Python data structures in eval-compatible form: It sounds like you want the ‘json’ library, new in Python 2.6 URL:http://www.python.org/doc/current/library/json. It's intended for

wxPython binaries for Python 2.6

2008-10-08 Thread Robin Dunn
Hi All, A set of wxPython binaries for Python 2.6 on Win32, Win64 and Mac OS X are now available at http://wxpython.org/download.php What is wxPython? - wxPython is a GUI toolkit for the Python programming language. It allows Python programmers to create programs with a

Re: Using subprocess module to launch a shell shell script that itself forks a process

2008-10-08 Thread Gabriel Genellina
En Wed, 08 Oct 2008 15:24:39 -0300, Samuel A. Falvo II [EMAIL PROTECTED] escribió: On Oct 7, 6:23 pm, Gabriel Genellina [EMAIL PROTECTED] wrote: you set stdin=PIPE - is your java process expecting some input? you're not writing anything to stdin. It does not expect input from stdin.

Re: python for *nix system admins

2008-10-08 Thread Erik Southworth
On Sat, Sep 27, 2008 at 4:05 AM, Lars Stavholm [EMAIL PROTECTED] wrote: Hi All, I'm new to this list and hoping that this is not off-topic. If it is, please point me in the right direction. I seem to recollect a python module or library for *nix sysadmins, but I can't for the life of me

Re: SMTPlib inside function, extra tab

2008-10-08 Thread Hunter
Thank you Tino. I appreciate the help. Duh! Anything inside is preformatted text. I have tabs inside my preformatted text (without even thinking because it looks more normal because of the indent). I removed them and voila! def send_mail(fromaddress,tolist,msgsubj,messagebody):

Re: Array of dict or lists or ....?

2008-10-08 Thread Scott David Daniels
Pat wrote: I can't figure out how to set up a Python data structure to read in data that looks something like this (albeit somewhat simplified and contrived): States Counties Schools Classes Max Allowed Students Current enrolled Students Nebraska, Wabash,

Re: A question about funcation parameter and self defined object

2008-10-08 Thread Terry Reedy
Wei Guo wrote: Hi Chris, Thanks a lot for reply, you are right. I want to use this method as a static method as: translation = staticmethod( translation ) static methods are mostly useless in Python. Just put the definition of translation outside of any class. --

inspect bug

2008-10-08 Thread Aaron Castironpi Brady
Hi all, Found this bug. It's in 2.6, too bad. Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)] on win 32 Type help, copyright, credits or license for more information. import inspect type( inspect.getargvalues( inspect.currentframe() ) ) type 'tuple' Docs say:

inspect feature

2008-10-08 Thread Aaron Castironpi Brady
Hello, The 'inspect' module has this method: inspect.getargvalues(frame) It takes a frame and returns the parameters used to call it, including the locals as defined in the frame, as shown. def f( a, b, d= None, *c, **e ): ... import inspect ... return inspect.getargvalues(

Re: MRO inconsistency: why?

2008-10-08 Thread Michele Simionato
On Oct 8, 9:09 pm, Ravi [EMAIL PROTECTED] wrote: Why the following code gives inconsistent method resolution order error: snip If you want to know all the nitty-gritty details about the MRO (including the reason for the error you get) you should read this:

Re: Porn Addiction Solutions?

2008-10-08 Thread mattmatical
On Wed, 8 Oct 2008 12:30:09 -0700 (PDT), [EMAIL PROTECTED] wrote: snip You can conquer this thing. Let us know how you make out. Regards, Mike Now I finally know why this thing is called usenet. Most useful post ever. Matt -- http://mail.python.org/mailman/listinfo/python-list

Re: Safe eval of insecure strings containing Python data structures?

2008-10-08 Thread Aaron Castironpi Brady
On Oct 8, 7:34 pm, Warren DeLano [EMAIL PROTECTED] wrote: I would like to parse arbitrary insecure text string containing nested Python data structures in eval-compatible form:   ... # But I know for certain that the above approach is NOT secure since object attributes can still be

Re: how to get the thighest bit position in big integers?

2008-10-08 Thread Terry Reedy
greg wrote: Terry Reedy wrote: str.find is an historical anomaly that should not be copied. It was(is?) a wrapper for C's string find function. C routinely uses -1 to mean None for functions statically typed to return ints. The Python version logically should return None and usually does

Re: Porn Addiction Solutions?

2008-10-08 Thread suntzu
[EMAIL PROTECTED] wrote: Help, I'm addicted to porn. I've been spending a lot of time downloading hardcore porn and masturbating to it. It's ruining my life. I just found out that one of these sites somehow hacked my card and rang up $5K in charges which they won't even refund me. Even with that

Re: how to get the thighest bit position in big integers?

2008-10-08 Thread Aaron Castironpi Brady
On Oct 8, 7:21 pm, greg [EMAIL PROTECTED] wrote: Terry Reedy wrote: str.find is an historical anomaly that should not be copied.  It was(is?) a wrapper for C's string find function.  C routinely uses -1 to mean None for functions statically typed to return ints.  The Python version

RE: Safe eval of insecure strings containing Python data structures?

2008-10-08 Thread Warren DeLano
JSON rocks! Thanks everyone. Ben wrote: More generally, you should never execute (via eval, exec, or whatever) *any* instruction from an untrusted path; especially not arbitrary data from an input stream. Wow, for the record, I completely disagree with this point of view: Today's web apps

Re: Safe eval of insecure strings containing Python data structures?

2008-10-08 Thread James Mills
On Thu, Oct 9, 2008 at 2:26 PM, Warren DeLano [EMAIL PROTECTED] wrote: JSON rocks! Thanks everyone. Yes it does :) Ben wrote: More generally, you should never execute (via eval, exec, or whatever) *any* instruction from an untrusted path; especially not arbitrary data from an input stream.

Re: re : do something in time interval

2008-10-08 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Hendrik van Rooyen wrote: import time while True: end_time = time.time() + 5 while time.time() end_time: do_the_in_between_stuff() do_the_every_five_second_stuff() Maybe I'm dense, but ... where do you stop the

Re: Porn Addiction Solutions?

2008-10-08 Thread Hackamore
[EMAIL PROTECTED] wrote: Help, I'm addicted to porn. I've been spending a lot of time downloading hardcore porn and masturbating to it. It's ruining my life. I just found out that one of these sites somehow hacked my card and rang up $5K in charges which they won't even refund me. Even with that

Re: Porn Addiction Solutions?

2008-10-08 Thread Aaron Castironpi Brady
On Oct 8, 2:07 pm, [EMAIL PROTECTED] wrote: Help, I'm addicted to porn. I've been spending a lot of time downloading hardcore porn and masturbating to it. It's ruining my life. I just found out that one of these sites somehow hacked my card and rang up $5K in charges which they won't even

[issue4064] distutils.util.get_platform() is wrong for universal builds on macosx

2008-10-08 Thread Ronald Oussoren
Ronald Oussoren [EMAIL PROTECTED] added the comment: On 7 Oct, 2008, at 22:13, Martin v. Löwis wrote: Martin v. Löwis [EMAIL PROTECTED] added the comment: Somewhere along the way the calculation of the architecture string got messed up, resulting in the current situation. That is, the

[issue4064] distutils.util.get_platform() is wrong for universal builds on macosx

2008-10-08 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: It is not documented anywhere but in the code These also appear in file names of bdist commands, right? So I think it should be documented. We (Bob Ippolitto and I) had some discussion about the architecture strings when we were

[issue4072] build_py support for lib2to3 is stale

2008-10-08 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Here is a patch. I also include a test case, which is intended to go into the Demo directory. -- keywords: +patch Added file: http://bugs.python.org/file11744/build_py.diff ___ Python tracker

[issue4072] build_py support for lib2to3 is stale

2008-10-08 Thread Martin v. Löwis
Changes by Martin v. Löwis [EMAIL PROTECTED]: -- keywords: +needs review Added file: http://bugs.python.org/file11745/test2to3.tar.gz ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4072 ___

[issue4063] sphinx: make all-pdf does not exist.

2008-10-08 Thread Thomas Guettler
Thomas Guettler [EMAIL PROTECTED] added the comment: Dear georg, I am sorry that I wasted your time. Yes, I ignored the part '..in that directory'. I couldn't find a way to close this ticket, also I am logging in. Do you need special privileges for this? Nevertheless, thank you for Sphinx.

[issue4063] sphinx: make all-pdf does not exist.

2008-10-08 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Yes, closing tickets (and changing metadata like priority) is only possible for developers. -- status: pending - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4063

[issue4071] ntpath.abspath can fail on Win Server 2008 (64-bit)

2008-10-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Running help() or mktemp() causes _getfullpathname to be called with the whole system path (791 characters) I am not sure to understand. Do you mean the whole PATH environment variable? I doubt that it is passed to _getfullpathname.

[issue1597850] Cross compiling patches for MINGW

2008-10-08 Thread rwmjones
rwmjones [EMAIL PROTECTED] added the comment: Just to clarify, in the MinGW case we are interested in: build = Fedora Linux, usually i386 or x86-64 (but not always) host = Windows i386 We can, to a limited extent, run the host binaries on the build system, using Wine (the Windows emulator).

[issue4068] Backport fix for issue 3312

2008-10-08 Thread Gerhard Häring
Gerhard Häring [EMAIL PROTECTED] added the comment: Thanks, committed in revision 66843. -- status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4068 ___

[issue1597850] Cross compiling patches for MINGW

2008-10-08 Thread Roumen Petrov
Roumen Petrov [EMAIL PROTECTED] added the comment: Hi rwmjones, Please, could you test patch from issue3871 - python modules are build as setup.py is run from python found on the build system. So I don't expect issue with ppc and sparc. Minor issue is pgen.exe - work around touch grammar files.

[issue3975] PyTraceBack_Print() doesn't respect # coding: xxx header

2008-10-08 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: More fun will arise when my Windows terminal (encoding=cp1252) will try to display Chinese characters. Let's pretend this is yet another issue. I tried the patch using a script with unicode characters (character not representable in

[issue3975] PyTraceBack_Print() doesn't respect # coding: xxx header

2008-10-08 Thread STINNER Victor
Changes by STINNER Victor [EMAIL PROTECTED]: Added file: http://bugs.python.org/file11748/traceback_unicode-5.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3975 ___

[issue4072] build_py support for lib2to3 is stale

2008-10-08 Thread Mark Hammond
Mark Hammond [EMAIL PROTECTED] added the comment: r=me - thanks. -- keywords: -needs review resolution: - accepted ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4072 ___

[issue4075] Use WCHAR variant of OutputDebugString

2008-10-08 Thread Ulrich Eckhardt
New submission from Ulrich Eckhardt [EMAIL PROTECTED]: The attached patch converts the call to OutputDebugString() with a 'TCHAR' parameter (which boils down to a 'char') to one using a 'WCHAR' parameter, allowing the code to be compiled under MS Windows CE, which doesn't have the 'char'

[issue4071] ntpath.abspath can fail on Win Server 2008 (64-bit)

2008-10-08 Thread Jason Day
Jason Day [EMAIL PROTECTED] added the comment: I am not sure to understand. Do you mean the whole PATH environment variable? I doubt that it is passed to _getfullpathname. Or do you have very long paths for one directory? the TEMP environment variable, for example? I'd be curious to see its

[issue3975] PyTraceBack_Print() doesn't respect # coding: xxx header

2008-10-08 Thread STINNER Victor
Changes by STINNER Victor [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11747/traceback_unicode-5.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3975 ___

[issue3975] PyTraceBack_Print() doesn't respect # coding: xxx header

2008-10-08 Thread STINNER Victor
Changes by STINNER Victor [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11736/traceback_unicode-4.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3975 ___

[issue3975] PyTraceBack_Print() doesn't respect # coding: xxx header

2008-10-08 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: @amaury: Oops, yes, I introduced a refleak in the version 4 with the PyUnicode_Check(). Instead of just moved Py_(X)RECREF(lineobj);, I could not not resist to refactor the code to remove one more indentation level (I prefer if (...) return;

[issue4076] Cannot build non-framework tkinter Python on Mac OS X.5

2008-10-08 Thread Dan OD
New submission from Dan OD [EMAIL PROTECTED]: On a Mac running OS X 10.5: As per previous releases, I have set up _tkinter in Modules/Setup.dist with a unix X11 Tcl/Tk build variables. I then run ./configure make This builds _tkinter with (wrongly) the Mac Tcl framework (ie not X11)

[issue4075] Use WCHAR variant of OutputDebugString

2008-10-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: The alloca() function should be avoided here: the function may be called in extreme conditions, like stack overflow. I suggest to use a small static buffer (50 chars?), and call OutputDebugStringW in a loop. -- nosy:

[issue4071] ntpath.abspath can fail on Win Server 2008 (64-bit)

2008-10-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: I don't have it offhand, but it was the whole PATH environment variable, complete with semicolons. That's probably the *real* bug. Indeed. Do you happen to have the complete traceback of the failing tempfile.mktemp() call? I don't see

[issue4077] Py_FatalError cleanup patch

2008-10-08 Thread Ulrich Eckhardt
New submission from Ulrich Eckhardt [EMAIL PROTECTED]: This patch does two things: * It removes trailing newlines from the arguments given to Py_FatalError() because a trailing newline is already added automatically. * It fixes the declaration in ffi.c to take a 'const char*'. --

[issue3288] float.as_integer_ratio method is not documented

2008-10-08 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Would be nice, yes. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3288 ___ ___ Python-bugs-list mailing list

[issue4056] :Class: causes exception

2008-10-08 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: [Sphinx issues are now tracked at http://code.google.com/p/sphinx -- moved the issue there.] -- resolution: - duplicate status: open - closed ___ Python tracker [EMAIL PROTECTED]

[issue3909] Building PDF documentation from tex files

2008-10-08 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: OK, no problem. I should have thought about that sooner. Happy TeXing :) -- resolution: - works for me status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3909

[issue4077] Py_FatalError cleanup patch

2008-10-08 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc [EMAIL PROTECTED]: -- assignee: - amaury.forgeotdarc keywords: +easy nosy: +amaury.forgeotdarc ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4077 ___

[issue4055] Documentation on website is missing section numbers

2008-10-08 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: I disagree that missing section numbers are a severe usability hit. Especially in the context that the new docs are constantly updated, there's no telling when section numbers will shift, misleading those who only navigate by section number. In

[issue3975] PyTraceBack_Print() doesn't respect # coding: xxx header

2008-10-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: The code is indeed easier to follow. I don't have any more remark, thanks to you perseverance! Now, is there some unit test we could provide? #2384 depends on this issue, it should be easy to extract a small test case.

[issue4059] sqlite3 docs incomplete

2008-10-08 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Thanks, committed as r66854. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4059 ___

[issue4058] markup in What's New in 2.6

2008-10-08 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Thanks, committed as r66855. -- resolution: - accepted status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4058 ___

[issue3975] PyTraceBack_Print() doesn't respect # coding: xxx header

2008-10-08 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: My patch for #2384 contains a testcase which require #3975 and #2384 to be fixed (you have to apply both patches to test it). ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3975

[issue4078] asyncore fixes are not backwards compatible

2008-10-08 Thread Sidnei da Silva
New submission from Sidnei da Silva [EMAIL PROTECTED]: I am working on getting Zope to run (or at least, start) with Python 2.6. It actually starts right now after applying some patches, which is amazing on itself, but it dies right away due to changes in asyncore that break Zope's internal

[issue4078] asyncore fixes are not backwards compatible

2008-10-08 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' [EMAIL PROTECTED]: -- nosy: +giampaolo.rodola, josiah.carlson ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4078 ___ ___

[issue4079] new urllib2.Request 'timeout' attribute needs to have a default

2008-10-08 Thread Sidnei da Silva
New submission from Sidnei da Silva [EMAIL PROTECTED]: 'urllib2' has introduced a configurable 'timeout' setting by assigning to the 'timeout' attribute of the urllib2.Request object. However the implementation is flawed: - the 'timeout' attribute is set in OpenerDirector.open() and nowhere

[issue4075] Use WCHAR variant of OutputDebugString

2008-10-08 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: I agree that a static buffer should be used. I think calling it in a loop is overkill. Instead, if an overrun occurs, adding (truncated) should be good enough. I could find only a single caller that doesn't pass a static string

[issue3935] bisect insort C implementation ignores methods on list subclasses

2008-10-08 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: OK, committed as r66856, should get merged to 3.0 soon. -- status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3935 ___

[issue4017] IDLE 2.6 broken on OSX (Leopard)

2008-10-08 Thread Leo M
Leo M [EMAIL PROTECTED] added the comment: Hello. First time here, beginner at Python. I have verified that the Google tip link in the previous to fix IDLE works for me. Post in question: ** [Kevin's post of 6.Oct, 02:58] You can avoid this problem by building Python yourself and putting

[issue4080] pyunit - display time of each test case - patch

2008-10-08 Thread Pawel Prokop
New submission from Pawel Prokop [EMAIL PROTECTED]: I've needed to measure each unit test running time to measure the performance changing of each functionality that every test case tests. Latest version of pyunit has only displayed summary running time of the suite, so I've implemented small

[issue4072] build_py support for lib2to3 is stale

2008-10-08 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: The options dictionary only supports the print_function as of now, and that's default by false anyway. -- nosy: +benjamin.peterson ___ Python tracker [EMAIL PROTECTED]

[issue3714] nntplib module broken by str to unicode conversion

2008-10-08 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- priority: critical - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3714 ___ ___

[issue3725] telnetlib module broken by str to unicode conversion

2008-10-08 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- priority: critical - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3725 ___ ___

[issue3727] poplib module broken by str to unicode conversionhttp://bugs.python.org/issue3727

2008-10-08 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- priority: - release blocker title: poplib module broken by str to unicode conversion - poplib module broken by str to unicode conversionhttp://bugs.python.org/issue3727 ___ Python tracker [EMAIL

[issue3727] poplib module broken by str to unicode conversion

2008-10-08 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- title: poplib module broken by str to unicode conversionhttp://bugs.python.org/issue3727 - poplib module broken by str to unicode conversion ___ Python tracker [EMAIL PROTECTED]

[issue4078] asyncore fixes are not backwards compatible

2008-10-08 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- assignee: - josiahcarlson nosy: +josiahcarlson ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4078 ___

[issue4078] asyncore fixes are not backwards compatible

2008-10-08 Thread Josiah Carlson
Josiah Carlson [EMAIL PROTECTED] added the comment: Zope's medusa was relying on internal details of asyncore (the ac_out_buffer attribute), which is no longer applicable. It also seems as though much of medusa itself borrows from asynchat.async_chat, which suggests that it should subclass

[issue1028088] Cookies without values are silently ignored (by design?)

2008-10-08 Thread Andres Riancho
Andres Riancho [EMAIL PROTECTED] added the comment: The RFC I'm talking about is: http://www.ietf.org/rfc/rfc2109.txt ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1028088 ___

[issue4071] ntpath.abspath fails for long str paths

2008-10-08 Thread Jason Day
Changes by Jason Day [EMAIL PROTECTED]: -- title: ntpath.abspath can fail on Win Server 2008 (64-bit) - ntpath.abspath fails for long str paths ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4071

[issue4071] ntpath.abspath can fail on Win Server 2008 (64-bit)

2008-10-08 Thread Jason Day
Jason Day [EMAIL PROTECTED] added the comment: Indeed. Do you happen to have the complete traceback of the failing tempfile.mktemp() call? I don't see where it can use the PATH environment variable. The problem was that somehow, on our systems, the TEMP environmental variable had been

[issue3994] import fixer misses some symbols

2008-10-08 Thread Nick Edds
Nick Edds [EMAIL PROTECTED] added the comment: The problem is that fix_imports doesn't look at matches that are nested within matches. So the _winreg.OpenKey part gets fixed, but the _winreg.HKEY_LOCAL_MACHINE does not because it is nested within the other node. I didn't make fix_imports so I

[issue4081] Error copying directory to _static in Sphinx

2008-10-08 Thread Tim Delaney
New submission from Tim Delaney [EMAIL PROTECTED]: If there is a directory to be copied to _static, Sphinx first attempts to delete any directory by the same name in the _static directory. See attached sphinx_static_exc.txt for the exception. The simplest fix is to change the call (line 595,

[issue4081] Error copying directory to _static in Sphinx

2008-10-08 Thread Tim Delaney
Tim Delaney [EMAIL PROTECTED] added the comment: Oops - didn't complete my thought. The issue is that if the directory does not already exist, the attached exception is raised. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4081

[issue1284316] Win32: Security problem with default installation directory

2008-10-08 Thread Mark Hammond
Changes by Mark Hammond [EMAIL PROTECTED]: -- nosy: +mhammond ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1284316 ___ ___ Python-bugs-list mailing

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-08 Thread Christian Heimes
New submission from Christian Heimes [EMAIL PROTECTED]: python2.6 -m site used to print some status information to the console. python3.0 -m site and python2.5 -m site are still working as expected. An initial debug session showed that the site module isn't imported a second time under the name

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-08 Thread Christian Heimes
Changes by Christian Heimes [EMAIL PROTECTED]: -- type: - behavior ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4082 ___ ___ Python-bugs-list mailing

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-08 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: I concur with the Christian's analysis: $ python2.6 -m site $ python2.6 -S -m site [output] -- nosy: +benjamin.peterson ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4082

[issue4082] python2.6 -m site doesn't run site._script() any more

2008-10-08 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- nosy: +ncoghlan ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4082 ___ ___ Python-bugs-list mailing

[issue3001] RLock's are SLOW

2008-10-08 Thread Hugh Gibson
Hugh Gibson [EMAIL PROTECTED] added the comment: I doubt subclassability of RLock matters but who knows, people do code things. I've recently done this to implement potential deadlock detection. I keep a record of the sequences of acquired locks, find unique sequences, then check for

<    1   2   3   >