pyArkansas 2010 Call For Papers

2010-08-22 Thread Greg Lindstrom
The 3rd annual pyArkansas conference, a gathering of Python programming enthusiasts, will be held on Saturday, October 16th, on the campus of the University of Central Arkansas (Conway) and we would like you to present a talk. We are accepting proposals for 30 or 60 minute talks (25 and 55

RedNotebook 1.1.1

2010-08-22 Thread Jendrik Seipp
RedNotebook 1.1.1 has been released. You can get the tarball, the Windows installer and links to distribution packages at http://rednotebook.sourceforge.net/downloads.html What is RedNotebook? RedNotebook is a **graphical journal** and diary helping you keep track of

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-22 Thread Steven D'Aprano
Oh, I am so going to regret getting sucked into this tarpit... oh well. On Sat, 21 Aug 2010 09:58:18 -0700, Hugh Aguilar wrote: The following is a pretty good example, in which Alex mixes big pseudo- intellectual words such as scintilla with gutter language such as turd in an

Re: Detect string has non-ASCII chars without checking each char?

2010-08-22 Thread Michel Claveau - MVP
Hi! Another way : # -*- coding: utf-8 -*- import unicodedata def test_ascii(struni): strasc=unicodedata.normalize('NFD', struni).encode('ascii','replace') if len(struni)==len(strasc): return True else: return False print test_ascii(uabcde) print

Re: Python why questions

2010-08-22 Thread Russ P.
On Aug 21, 1:33 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Fri, 20 Aug 2010 11:01:42 -0700, Russ P. wrote: Most programmers probably never use vectors and matrices, so they don't care about the inconsistency with standard mathematical notation. Perhaps you should

Re: Problem checking an existing browser cookie

2010-08-22 Thread Νίκος
On 16 Αύγ, 14:31, Peter Otten __pete...@web.de wrote: Νίκος wrote: # initializecookie cookie=Cookie.SimpleCookie() cookie.load( os.environ.get('HTTP_COOKIE', '') ) mycookie =cookie.get('visitor') if ( mycookie and mycookie.value != 'nikos' ) or re.search( r'(cyta|

Re: Python why questions

2010-08-22 Thread Chris Rebert
On Sun, Aug 22, 2010 at 12:23 AM, Russ P. russ.paie...@gmail.com wrote: On Aug 21, 1:33 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Fri, 20 Aug 2010 11:01:42 -0700, Russ P. wrote: Most programmers probably never use vectors and matrices, so they don't care about the

freq function

2010-08-22 Thread Dirk Nachbar
Here is a function which takes any list and creates a freq table, which can be printed unsorted, sorted by cases or items. It's supposed to mirror the proc freq in SAS. Dirk def freq(seq,order='unsorted',prin=True): #order can be unsorted, cases, items freq={} for s in seq:

Re: freq function

2010-08-22 Thread Shashwat Anand
On Sun, Aug 22, 2010 at 1:31 PM, Dirk Nachbar dirk...@gmail.com wrote: Here is a function which takes any list and creates a freq table, which can be printed unsorted, sorted by cases or items. It's supposed to mirror the proc freq in SAS. Dirk def freq(seq,order='unsorted',prin=True):

Re: freq function

2010-08-22 Thread Chris Rebert
On Sun, Aug 22, 2010 at 1:16 AM, Shashwat Anand anand.shash...@gmail.com wrote: On Sun, Aug 22, 2010 at 1:31 PM, Dirk Nachbar dirk...@gmail.com wrote: Here is a function which takes any list and creates a freq table, which can be printed unsorted, sorted by cases or items. It's supposed to

Running python script before user login

2010-08-22 Thread Mahmood Naderan
I have wrote a python script and want to run it before user login. To do that, I have added it to the ubuntu startup file (init.d). However it seems that the script doesn't work. I want to know does python modules work before user login? // Naderan *Mahmood; --

Re: Running python script before user login

2010-08-22 Thread Chris Rebert
On Sun, Aug 22, 2010 at 1:52 AM, Mahmood Naderan nt_mahm...@yahoo.com wrote: I have wrote a python script and want to run it before user login. To do that, I have added it to the ubuntu startup file (init.d). However it seems that the script doesn't work. Specify exactly how it's not working.

how to use xdrlib

2010-08-22 Thread Alan Wilter Sousa da Silva
Hi there, I am trying to understand how xdrlib works as I want to read files in this format. The problem is I don't much about xdr (although I read http://docs.python.org/library/xdrlib.html and RFC 1832). Another problem is I don't know how the file I want to read was encoded. So when I do

Re: Running python script before user login

2010-08-22 Thread Mahmood Naderan
Specify exactly how it's not working. I have wrote a script to send my ip address to an email address. It does work when I am login (python sendip.py). I then followed the procedure in https://help.ubuntu.com/community/RcLocalHowto. However after restart, no email is sent. // Naderan

Wrong unichr docstring in 2.7

2010-08-22 Thread jmfauth
I think there is a small point here. sys.version 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] print unichr.__doc__ unichr(i) - Unicode character Return a Unicode string of one character with ordinal i; 0 = i = 0x10. # but unichr(0x10fff) Traceback (most recent call

CodeSnipr Learning can be simple!!

2010-08-22 Thread bapi
Hi, All the group members right at here, we people recently lunched a website CodeSnipr based on Computer language like (PHP, RUBBY, HTML, CSS, MYSQL, JQURY, IPHONE DEVELOPMENT, JAVASCRIPT, C++,.NET,XML,C# etc.). CodeSnipr will provide you access to user generated tutorials. Here you can post

Re: Wrong unichr docstring in 2.7

2010-08-22 Thread Thomas Jollans
On Sunday 22 August 2010, it occurred to jmfauth to exclaim: I think there is a small point here. sys.version 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] print unichr.__doc__ unichr(i) - Unicode character Return a Unicode string of one character with

Re: Wrong unichr docstring in 2.7

2010-08-22 Thread Dave Angel
jmfauth wrote: I think there is a small point here. sys.version 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] print unichr.__doc__ unichr(i) - Unicode character Return a Unicode string of one character with ordinal i; 0 = i = 0x10. # but

Re: how to use xdrlib

2010-08-22 Thread Thomas Jollans
On Sunday 22 August 2010, it occurred to Alan Wilter Sousa da Silva to exclaim: Hi there, I am trying to understand how xdrlib works as I want to read files in this format. The problem is I don't much about xdr (although I read http://docs.python.org/library/xdrlib.html and RFC 1832).

Re: Running python script before user login

2010-08-22 Thread Thomas Jollans
On Sunday 22 August 2010, it occurred to Mahmood Naderan to exclaim: Specify exactly how it's not working. I have wrote a script to send my ip address to an email address. It does work when I am login (python sendip.py). I then followed the procedure in

ANN: warehouse Objects in SQLite : y_serial module

2010-08-22 Thread code43
Module download at SourceForge http://yserial.sourceforge.net Documentation has been revised and v0.60 released. Serialization + persistance :: in a few lines of code, compress and annotate Python objects into SQLite; then later retrieve them chronologically by keywords without any SQL. Most

Re: Detect string has non-ASCII chars without checking each char?

2010-08-22 Thread John Machin
On Aug 22, 5:07 pm, Michel Claveau - MVPenleverlesx_xx...@xmclavxeaux.com.invalid wrote: Hi! Another way :   # -*- coding: utf-8 -*-   import unicodedata   def test_ascii(struni):       strasc=unicodedata.normalize('NFD', struni).encode('ascii','replace')       if

trying to use sdl_pango with python

2010-08-22 Thread inhahe
i'm new to ctypes. can someone help me use sdl_pango with python? here's the documentation: http://sdlpango.sourceforge.net/ here's my code: - import pygame from ctypes import * import win32api MATRIX_TRANSPARENT_BACK_WHITE_LETTER =

Re: freq function

2010-08-22 Thread Peter Otten
Dirk Nachbar wrote: Here is a function which takes any list and creates a freq table, which can be printed unsorted, sorted by cases or items. It's supposed to mirror the proc freq in SAS. Dirk def freq(seq,order='unsorted',prin=True): #order can be unsorted, cases, items

Re: Running python script before user login

2010-08-22 Thread Mahmood Naderan
I am trying to execute this script before login:   #!/bin/sh  date /home/mahmood/dateatboot.txt echo In local file /usr/bin/python2.6 /home/mahmood/sendip.py echo python script finished after restart, dateatboot.txt was created shows that the script was executed. In the python file, I have this:  

Re: Running python script before user login

2010-08-22 Thread Thomas Jollans
On Sunday 22 August 2010, it occurred to Mahmood Naderan to exclaim: I am trying to execute this script before login: #!/bin/sh date /home/mahmood/dateatboot.txt echo In local file /usr/bin/python2.6 /home/mahmood/sendip.py echo python script finished after restart, dateatboot.txt was

Re: Running python script before user login

2010-08-22 Thread Mahmood Naderan
It seems that changing the directory before python command is mandatory: #!/bin/sh cd /home/mahmood/ python sendip.py    I am now able to receive the IP address right after boot and before login page. Thank you // Naderan *Mahmood; From: Thomas Jollans

Re: Python why questions

2010-08-22 Thread Neil Cerutti
On 2010-08-21, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: There is room in the world for programming languages aimed at non- programmers (although HC is an extreme case), but not all languages should prefer the intuition of non-programmers over other values. Extremer: Inform

Re: Wrong unichr docstring in 2.7

2010-08-22 Thread jmfauth
Short comments: 1) I'm aware Python can be built in ucs2 or ucs4 mode. It remains that the unichr doc string does not seem correct. 2) 0x0 versus 0 Do not take this too seriously. Sure the value of 0x0 and 0 are equal, but the unit sounds strange. Eg. If a is a length, I would not express a as

windows hook to catch WM_CREATE

2010-08-22 Thread Jacques HULLU
Hello all, I'm looking for a method, lib, ... to create a windows hook to catch WM_CREATE message in python 2.6? For keyboard and mouse I use pyHook. any idea ? -- Jacques -- http://mail.python.org/mailman/listinfo/python-list

Re: Detect string has non-ASCII chars without checking each char?

2010-08-22 Thread Michel Claveau - MVP
Re ! Try your code with uabcd\xa1 ... it says it's ASCII. Ah? in my computer, it say False @-salutations -- MCi -- http://mail.python.org/mailman/listinfo/python-list

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-22 Thread David Kastrup
John Bokma j...@castleamber.com writes: David Kastrup d...@gnu.org writes: John Passaniti john.passan...@gmail.com writes: Amen! All this academic talk is useless. Who cares about things like the big-O notation for program complexity. Can't people just *look* at code and see how complex

Organizing unit test?

2010-08-22 Thread Roy Smith
Over the years, I've tried different styles of organizing unit tests. I used to create a test directory and put all my tests there. I would maintain a one-to-one correspondence between production source and test source, i.e. the test code for foo.py would be in test/foo.py. More recently,

Re: Get authentication error while using 'smtplib'

2010-08-22 Thread Mahmood Naderan
Well, login plain did the job:   session = smtplib.SMTP(smtpserver) session.ehlo() session.esmtp_features[auth] = LOGIN PLAINif AUTHREQUIRED:    session.login(smtpuser, smtppass)   // Naderan *Mahmood; From: Mahmood Naderan nt_mahm...@yahoo.com To: python

comparing tuples

2010-08-22 Thread Baba
level: beginners I was trying to write simple code that compares 2 tuples and returns any element in the second tuple that is not in the first tuple. def tuples(t1, t2): result = [] for b in t2: for a in t1: if b == a: break else:

Re: Iterative vs. Recursive coding

2010-08-22 Thread Hrvoje Niksic
Steven D'Aprano st...@remove-this-cybersource.com.au writes: * It throws away information from tracebacks if the recursive function fails; and [...] If you're like me, you're probably thinking that the traceback from an exception in a recursive function isn't terribly useful. Agreed. On

Re: comparing tuples

2010-08-22 Thread Tim Chase
On 08/22/10 12:50, Baba wrote: level: beginners I was trying to write simple code that compares 2 tuples and returns any element in the second tuple that is not in the first tuple. def tuples(t1, t2): result = [] for b in t2: for a in t1: if b == a:

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-22 Thread John Bokma
David Kastrup d...@gnu.org writes: John Bokma j...@castleamber.com writes: David Kastrup d...@gnu.org writes: John Passaniti john.passan...@gmail.com writes: Amen! All this academic talk is useless. Who cares about things like the big-O notation for program complexity. Can't people

[ANN]VTD-XML 2.9

2010-08-22 Thread Jimmy
VTD-XML 2.9, the next generation XML Processing API for SOA and Cloud computing, has been released. Please visit https://sourceforge.net/projects/vtd-xml/files/ to download the latest version. * Strict Conformance # VTD-XML now fully conforms to XML namespace 1.0 spec * Performance

Re: Iterative vs. Recursive coding

2010-08-22 Thread John Bokma
Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Sat, 21 Aug 2010 19:09:52 -0500, John Bokma wrote: this means that Python should eliminate / optimize tail recursion. There have been various suggestions to add tail recursion optimization to the language. Two problems:

Sphinx cross reference question

2010-08-22 Thread Laszlo Nagy
In my shopzeus.db.pivot.convert.py file, in the run() method of my Data2Facts class, I can write this into the docstring: class Data2Facts(threading.Thread): # code here... def prepare(self,*args): # code here... # more code here def run(self): Start

Re: Python why questions

2010-08-22 Thread Russ P.
On Aug 22, 12:47 am, Chris Rebert c...@rebertia.com wrote: On Sun, Aug 22, 2010 at 12:23 AM, Russ P. russ.paie...@gmail.com wrote: On Aug 21, 1:33 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Fri, 20 Aug 2010 11:01:42 -0700, Russ P. wrote: Most programmers probably

Re: comparing tuples

2010-08-22 Thread Baba
On Aug 22, 7:12 pm, Tim Chase python.l...@tim.thechases.com wrote: On 08/22/10 12:50, Baba wrote: level: beginners I was trying to write simple code that compares 2 tuples and returns any element in the second tuple that is not in the first tuple. def tuples(t1, t2):      result =

Re: Iterative vs. Recursive coding

2010-08-22 Thread John Nagle
On 8/21/2010 8:32 PM, Steven D'Aprano wrote: On Sat, 21 Aug 2010 19:09:52 -0500, John Bokma wrote: this means that Python should eliminate / optimize tail recursion. There have been various suggestions to add tail recursion optimization to the language. Two problems: * It throws away

Re: psycopg2 for insertion of binary data to PostgreSQL database

2010-08-22 Thread Julia Jacobson
Thanks a lot, this was the solution. It would be greate, if you could also show me a way to extract the inserted binary object from the table on the server to a file on a client. Peter Otten wrote: Julia Jacobson wrote: Hello everybody out there using python, For the insertion of pictures

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-22 Thread 1001nuits
Le Sun, 22 Aug 2010 20:12:36 +0200, John Bokma j...@castleamber.com a écrit: David Kastrup d...@gnu.org writes: John Bokma j...@castleamber.com writes: David Kastrup d...@gnu.org writes: John Passaniti john.passan...@gmail.com writes: Amen! All this academic talk is useless. Who

Re: psycopg2 for insertion of binary data to PostgreSQL database

2010-08-22 Thread Thomas Jollans
On Sunday 22 August 2010, it occurred to Julia Jacobson to exclaim: Thanks a lot, this was the solution. It would be greate, if you could also show me a way to extract the inserted binary object from the table on the server to a file on a client. Probably something along the lines of: *

Re: Detect string has non-ASCII chars without checking each char?

2010-08-22 Thread John Machin
On Aug 23, 1:10 am, Michel Claveau - MVPenleverlesx_xx...@xmclavxeaux.com.invalid wrote: Re ! Try your code with uabcd\xa1 ... it says it's ASCII. Ah?  in my computer, it say False Perhaps your computer has a problem. Mine does this with both Python 2.7 and Python 2.3 (which introduced the

Re: expression in an if statement

2010-08-22 Thread Gregory Ewing
Thomas Jollans wrote: What if set has side effects? A compiler could only exclude this possibility if it knew exactly what set will be at run time, And also that 'a' remains bound to the same object, and that object or anything reachable from it is not mutated in any way that could affect the

What is a class method?

2010-08-22 Thread Paulo da Silva
I understand the concept of a static method. However I don't know what is a class method. Would anybody pls. explain me? class C: @classmethod def ... ... Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: What is a class method?

2010-08-22 Thread James Mills
On Mon, Aug 23, 2010 at 12:49 PM, Paulo da Silva psdasilva.nos...@netcabonospam.pt wrote: I understand the concept of a static method. However I don't know what is a class method. Would anybody pls. explain me? Please read this first: http://docs.python.org/library/functions.html#classmethod

Re: What is a class method?

2010-08-22 Thread Paulo da Silva
Em 23-08-2010 04:30, James Mills escreveu: On Mon, Aug 23, 2010 at 12:49 PM, Paulo da Silva psdasilva.nos...@netcabonospam.pt wrote: I understand the concept of a static method. However I don't know what is a class method. Would anybody pls. explain me? Please read this first:

Re: What is a class method?

2010-08-22 Thread James Mills
On Mon, Aug 23, 2010 at 1:53 PM, Paulo da Silva psdasilva.nos...@netcabonospam.pt wrote: I did it before posting ... The explanation is not very clear. It is more like how to use it. Without going into the semantics of languages basically the differences are quite clear: @classmethod is a

Re: What is a class method?

2010-08-22 Thread Ian Kelly
On Sun, Aug 22, 2010 at 9:53 PM, Paulo da Silva psdasilva.nos...@netcabonospam.pt wrote: Em 23-08-2010 04:30, James Mills escreveu: On Mon, Aug 23, 2010 at 12:49 PM, Paulo da Silva psdasilva.nos...@netcabonospam.pt wrote: I understand the concept of a static method. However I don't know what

Re: What is a class method?

2010-08-22 Thread Terry Reedy
On 8/22/2010 11:53 PM, Paulo da Silva wrote: Please read this first: http://docs.python.org/library/functions.html#classmethod Then ask us questions :) I did it before posting ... When you ask a question, it help people answer if they know what you have already tried and failed with ;-)

[issue8750] Many of MutableSet's methods assume that the other parameter is not self

2010-08-22 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: The patch looks good. Feel free to apply. -- assignee: rhettinger - stutzbach ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8750

[issue9157] Allow inspection of used decorators on a function

2010-08-22 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: That's a lot of boilerplate for minimal gain. The Django commenter was right - proposals that start with everybody in the world needs to do X differently from the way they do it now for this to be useful aren't ever likely to gain much

[issue9214] Most Set methods of KeysView and ItemsView do not work right

2010-08-22 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Fixed in r84252, r84252, and r84254. -- priority: high - normal resolution: accepted - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue9131] test_set_reprs in test_pprint is fragile

2010-08-22 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: rhettinger - stutzbach ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9131 ___

[issue9396] Standardise (and publish?) cache handling in standard library

2010-08-22 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9396 ___

[issue7871] Duplicate test method in test_heapq

2010-08-22 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Fixed in r84255. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7871 ___

[issue8743] set() operators don't work with collections.Set instances

2010-08-22 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- priority: normal - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8743 ___

[issue9251] Test for the import lock

2010-08-22 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: With the new setUp and tearDown methods, the threadedimp2 patch doesn't apply cleanly any more. Looks good and passes for me - fixed patch attached. Was I meant to still be looking at mtimport or threadimp, or have both of those been

[issue8403] dis.dis gives different results if Ctrl-C is pressed

2010-08-22 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Fixed in r84256. Don't think this needs to be backported. -- resolution: - fixed status: open - closed versions: +Python 3.2 -Python 2.6, Python 2.7 ___ Python tracker

[issue1284670] Allow to restrict ModuleFinder to get direct dependencies

2010-08-22 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: The generalist in me is inclined to suggest a depth parameter (with depth=1 equivalent to direct dependencies only, and depth = None meaning all dependencies), but I must admit I don't have a concrete use case for the extra generality. So the

[issue1284670] Allow to restrict ModuleFinder to get direct dependencies

2010-08-22 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Although I do find it a little concerning that there is no mention of sys.path_hooks or sys.meta_path in the modulefinder source code. I suspect this module only works correctly with vanilla filesystem based imports and can't handle anything

[issue9396] Standardise (and publish?) cache handling in standard library

2010-08-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Raymond, out of curiosity, can you tell why you removed lfu_cache? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9396 ___

[issue1346874] httplib simply ignores CONTINUE

2010-08-22 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: - orsenthil nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1346874 ___ ___

[issue1462440] socket and threading: udp multicast setsockopt fails

2010-08-22 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: I can't reproduce this on Windows Vista can someone please confirm my findings. -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker

[issue1465646] test_grp test_pwd fail

2010-08-22 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Can this be closed? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1465646 ___

[issue1466065] base64 module ignores non-alphabet characters

2010-08-22 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Attached patches against 2.7 and 3.2 contain doc and unit test changes so can someone please review and commit if acceptable. -- nosy: +BreamoreBoy stage: unit test needed - patch review versions: +Python 3.1

[issue1467619] Header.decode_header eats up spaces

2010-08-22 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Would someone like to comment on Georg's patch. -- nosy: +BreamoreBoy stage: unit test needed - patch review versions: +Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker

[issue1467929] %-formatting and dicts

2010-08-22 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- stage: - needs patch versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1467929 ___

[issue9657] Add circular imports test

2010-08-22 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: It would be good if the test timed out rather than deadlocking in the face of a broken import lock. I suggest: 1. Make the two test threads daemon threads 2. Specify a timeout to the join() calls 3. Use self.assertFalse(t1.is_alive()) and

[issue1469629] __dict__ = self in subclass of dict causes a memory leak?

2010-08-22 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: I've reproduced this problem with 2.7, 3.1 and 3.2. -- nosy: +BreamoreBoy stage: unit test needed - patch review type: behavior - resource usage versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

[issue1470548] Bugfix for #1470540 (XMLGenerator cannot output UTF-16)

2010-08-22 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: The are no unit test or doc changes with the patch. Can anyone answer Georg's question on msg66684? -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python

[issue1471934] Python libcrypt build problem on Solaris 8, 9, 10 and OpenSolaris

2010-08-22 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- stage: unit test needed - patch review versions: +Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1471934

[issue1475692] replacing obj.__dict__ with a subclass of dict

2010-08-22 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1475692 ___ ___

[issue1479255] Fix building with SWIG's -c++ option set in setup.py

2010-08-22 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Is this still a problem? -- assignee: - tarek nosy: +BreamoreBoy, tarek stage: - needs patch type: - behavior versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.4 ___ Python tracker

[issue9657] Add circular imports test

2010-08-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It would be good if the test timed out rather than deadlocking in the face of a broken import lock. I could do that indeed. I'm not sure it would be much better, though, because the lock will still be held and posterior tests may freeze

[issue1481032] patch smtplib:when SMTPDataError, rset crashes with sslerror

2010-08-22 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: The change to the encode_plain method in the patch was done via #1075928 on 2004-12-06. The try/except change around a call to self.rset() was never implemented. -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.1, Python

[issue1481347] parse_makefile doesn't handle $$ correctly

2010-08-22 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- assignee: - tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1481347 ___ ___

[issue1483545] Wave.py support for ulaw and alaw audio

2010-08-22 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- stage: - unit test needed versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1483545 ___

[issue9251] Test for the import lock

2010-08-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Was I meant to still be looking at mtimport or threadimp, or have both of those been applied? threadimp has already been committed. As for mtimport, I'll try to refactor it into a proper unit test. --

[issue1486713] HTMLParser : A auto-tolerant parsing mode

2010-08-22 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: I think this should be closed as have other similar requests in the last few days. -- nosy: +BreamoreBoy, fdrake ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1486713

[issue1487481] Could BIND_FIRST be removed on HP-UX?

2010-08-22 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Is this still valid? -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1487481

[issue1489246] 2.4.3 fails to find Tcl/Tk on Solaris 10 x86_64

2010-08-22 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Closed in reply to msg83914. -- nosy: +BreamoreBoy resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1489246

[issue9251] Test for the import lock

2010-08-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The new patch was committed in r84258, thanks Nick. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9251 ___

[issue9251] Test for the import lock

2010-08-22 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Removed file: http://bugs.python.org/file17995/threadimp.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9251 ___

[issue9251] Test for the import lock

2010-08-22 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Removed file: http://bugs.python.org/file18003/threadimp2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9251 ___

[issue9251] Test for the import lock

2010-08-22 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Removed file: http://bugs.python.org/file18605/issue9251_threadimp_py3k_head.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9251 ___

[issue1490929] urllib.retrieve's reporthook called with non-helpful value

2010-08-22 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 3.2 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1490929 ___

[issue1492240] Socket-object convenience function: getpeercred().

2010-08-22 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: No reply to msg111039, also see comments on msg50314. -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1492240

[issue1492704] distinct error type from shutil.move()

2010-08-22 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: @Zooko are you interested in taking this forward? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1492704 ___

[issue1495488] make altinstall installs pydoc

2010-08-22 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Fixed on #1590. -- nosy: +BreamoreBoy resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1495488

[issue1495802] cygwin: popen3 lock up

2010-08-22 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Any Cygwin/Windows people interested in this, or can it be closed? -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org

[issue1502517] crash in expat when compiling with --enable-profiling

2010-08-22 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Closed in reply to msg92323. -- nosy: +BreamoreBoy resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1502517

[issue1504333] sgmllib should allow angle brackets in quoted values

2010-08-22 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: sgmllib has been deprecated since 2.6 and has been removed from py3k. -- nosy: +BreamoreBoy resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org

[issue849097] Request: getpos() for sgmllib

2010-08-22 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: sgmllib has been deprecated since 2.6 and has been removed from py3k. -- resolution: - out of date status: open - closed versions: +Python 3.2 -Python 2.7 ___ Python tracker

[issue1459279] sgmllib.SGMLparser and hexadecimal numeric character refs

2010-08-22 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: sgmllib has been deprecated since 2.6 and has been removed from py3k. -- resolution: - out of date status: open - closed versions: +Python 3.2 -Python 2.7 ___ Python tracker

  1   2   >