[ANN] CrunchyFrog 0.4.0

2009-07-12 Thread Andi Albrecht
Hi, I'm pleased to announce CrunchyFrog 0.4.0. CrunchyFrog is a SQL client mainly (but not solely) for the GNOME desktop. Skip down for more information. Download: Visit the project page http://crunchyfrog.googlecode.com for more information about requirements and pre-built binaries. Changes

Scientific Computing with Python: July 17th webinar

2009-07-12 Thread Amenity Applewhite
Greetings! We are pleased to announce our third Scientific Computing with Python webinar! July 17th: Step-by-step Chaco Next week, on Friday, July 17th, we'll be taking a look at Chaco, an component of our open-source Enthought Tool Suite. It seems that this powerful tool impressed

cx_Freeze 4.1

2009-07-12 Thread Anthony Tuininga
What is cx_Freeze? cx_Freeze is a set of scripts and modules for freezing Python scripts into executables in much the same way that py2exe and py2app do. It requires Python 2.3 or higher since it makes use of the zip import facility which was introduced in that version. Where do I get it?

[ANN] Hatta 1.3.2 wiki engine released

2009-07-12 Thread Radomir Dopieralski
I'm proud to announce release 1.3.2 of Hatta wiki engine. http://hatta.sheep.art.pl/ What is Hatta? -- Hatta is a small wiki engine designed to run locally or via WSGI inside a directory in a Mercurial repository. All the pages are normal text or binary (for images and such) files,

[ANN] Leipzig Python User Group - Meeting, July 14, 2009, 08:00pm

2009-07-12 Thread Mike Müller
=== Leipzig Python User Group === We will meet on Tuesday, July 14 at 8:00 pm at the training center of Python Academy in Leipzig, Germany ( http://www.python-academy.com/center/find.html ). Stefan Schwarzer will talk about his impressions from EuroPython. Food and soft drinks are provided.

Looking for a tool to checkfor python script backward compatibility

2009-07-12 Thread Baptiste Lepilleur
I'm looking for a tool that could be used in a pre-commit step to check that only features available in a old python version are used, say python 2.3 for example. Does any one know of one ? -- http://mail.python.org/mailman/listinfo/python-list

Re: 2.4 VS 3.1 for simple print

2009-07-12 Thread Ben Finney
Lawrence D'Oliveiro l...@geek-central.gen.new_zealand writes: In message 87hbxkm7n2@benfinney.id.au, Ben Finney wrote: For this and other differences introduced in the Python 3.x series, see URL:http://www.python.org/dev/peps/pep-3100/. People never thank you for an RTFM response.

PyODE

2009-07-12 Thread Virgil Stokes
Does anyone have PyODE running on Python 2.6.2? --V -- http://mail.python.org/mailman/listinfo/python-list

Re: Implementing a cache

2009-07-12 Thread skip
Nikolaus I want to implement a caching data structure in Python that Nikolaus allows me to: Nikolaus 1. Quickly look up objects using a key Nikolaus 2. Keep track of the order in which the objects are accessed Nikolaus (most recently and least recently accessed one, not

Re: Implementing a cache

2009-07-12 Thread pdpi
On Jul 12, 2:01 pm, s...@pobox.com wrote:     Nikolaus I want to implement a caching data structure in Python that     Nikolaus allows me to:     Nikolaus  1. Quickly look up objects using a key     Nikolaus  2. Keep track of the order in which the objects are accessed     Nikolaus     (most

Re: Looking for a tool to checkfor python script backward compatibility

2009-07-12 Thread Jean-Paul Calderone
On Sun, 12 Jul 2009 09:47:32 +0200, Baptiste Lepilleur blep...@free.fr wrote: I'm looking for a tool that could be used in a pre-commit step to check that only features available in a old python version are used, say python 2.3 for example. Does any one know of one ? Run your test suite with

Re: how to run the main section of another module ?

2009-07-12 Thread Piet van Oostrum
Stef Mientki stef.mien...@gmail.com (SM) wrote: SM Stef Mientki wrote: hello, when I''m working in a library, and want to test some of the library functions, I need to switch to a main application, (which has a normal main-section) and run that. If the library is simply, I add a

multiprocessing and dictionaries

2009-07-12 Thread Bjorn Meyer
I am trying to convert a piece of code that I am using the thread module with to the multiprocessing module. The way that I have it set up is a chunk of code reads a text file and assigns a dictionary key multiple values from the text file. I am using locks to write the values to the

Re: how to run the main section of another module ?

2009-07-12 Thread Stef Mientki
SM if __name__ == '__main__': SMimport db_test SMnew_globals = {} SMnew_globals [ '__name__' ] = '__main__' SMnew_globals [ '__file__' ] = 'not really valuable' SMexecfile ( 'db_test.py', new_globals ) Why not: import db_test db_test.main() I think that is what Aahz

Re: how to run the main section of another module ?

2009-07-12 Thread Aahz
In article mailman.3032.1247422431.8015.python-l...@python.org, Stef Mientki stef.mien...@gmail.com wrote: Stef deleted an attribution: Why not: import db_test db_test.main() Yes I tried that too, but it gives the following error: module object not callable You need to create a main()

Re: how to run the main section of another module ?

2009-07-12 Thread Emile van Sebille
On 7/12/2009 11:13 AM Stef Mientki said... SM if __name__ == '__main__': SMimport db_test SMnew_globals = {} SMnew_globals [ '__name__' ] = '__main__' SMnew_globals [ '__file__' ] = 'not really valuable' SMexecfile ( 'db_test.py', new_globals ) Why not: implied

Question about generators

2009-07-12 Thread Cameron Pulsford
Hey everyone, I have this small piece of code that simply finds the factors of a number. import sys def factor(n): primes = (6*i+j for i in xrange(1, n) for j in [1, 5] if (i+j)%5 ! = 0) factors = [] for i in [2, 3, 5]: while n % i == 0: n /= i

Sockets and threading

2009-07-12 Thread zayatzz
Im trying to get aquinted to python on bit more basic level and am following socket and threading programming tutorials from these 2 addresses : http://heather.cs.ucdavis.edu/~matloff/Python/PyNet.pdf http://heather.cs.ucdavis.edu/~matloff/Python/PyThreads.pdf in this PyThreads file he sets up

MySQLdb + SSH Tunnel

2009-07-12 Thread Riley Crane
OVERVIEW: I am running a script on one machine that connects to a MySQL database on another machine that is outside of our university's domain. According to the administrator, network policies do not allow the compute nodes to access machines outside of our university's domain. COMPUTERS: A =

Re: MySQLdb + SSH Tunnel

2009-07-12 Thread Emile van Sebille
On 7/12/2009 12:18 PM Riley Crane said... OVERVIEW: I am running a script on one machine that connects to a MySQL database on another machine that is outside of our university's domain. According to the administrator, network policies do not allow the compute nodes to access machines outside of

Re: Question about generators

2009-07-12 Thread Mensanator
On Jul 12, 2:11 pm, Cameron Pulsford cameron.pulsf...@gmail.com wrote: Hey everyone, I have this small piece of code that simply finds the   factors of a number. import sys def factor(n):      primes = (6*i+j for i in xrange(1, n) for j in [1, 5] if (i+j)%5 ! = 0)      factors = []    

Re: Question about generators

2009-07-12 Thread Vilya Harvey
2009/7/12 Cameron Pulsford cameron.pulsf...@gmail.com: My question is, is it possible to combine those two loops? The primes generator I wrote finds all primes up to n, except for 2, 3 and 5, so I must check those explicitly. Is there anyway to concatenate the hard coded list of [2,3,5] and

Re: need to write a assembly progrm

2009-07-12 Thread Rhodri James
On Sat, 11 Jul 2009 05:17:18 +0100, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Fri, 10 Jul 2009 13:25:49 +0100, Rhodri James rho...@wildebst.demon.co.uk declaimed the following in gmane.comp.python.general: On Thu, 09 Jul 2009 11:52:44 +0100, m.reddy prasad reddy reddy@gmail.com

Re: Question about generators

2009-07-12 Thread Piet van Oostrum
Cameron Pulsford cameron.pulsf...@gmail.com (CP) wrote: CP Hey everyone, I have this small piece of code that simply finds the CP factors of a number. Others have already given you advice to add the [2, 3, 5] to the iterator (of which the primes.extend([2,3,5]) will not work). Please allow me

Re: Sockets and threading

2009-07-12 Thread Gabriel Genellina
En Sun, 12 Jul 2009 16:16:29 -0300, zayatzz alan.kesselm...@gmail.com escribió: while 1: k = self.myclntsock.recv(1) if k == : break srvr.vlock.acquire() srvr.v += k

Webcam + GStreamer

2009-07-12 Thread Sparky
Hello! I need to stream from a webcam in Linux and I need to be able to analyze the video feed frame by frame with PIL. Currently my web- cam (Quickcam Chat) only seems to work with GStreamer so a solution using pygst would be preferred. Thanks for your help, Sam --

Re: Sockets and threading

2009-07-12 Thread Piet van Oostrum
zayatzz alan.kesselm...@gmail.com (z) wrote: z Im trying to get aquinted to python on bit more basic level and am z following socket and threading programming tutorials from these 2 z addresses : z http://heather.cs.ucdavis.edu/~matloff/Python/PyNet.pdf z

Re: Webcam + GStreamer

2009-07-12 Thread Sparky
On Jul 12, 3:50 pm, Sparky samnspa...@gmail.com wrote: Hello! I need to stream from a webcam in Linux and I need to be able to analyze the video feed frame by frame with PIL. Currently my web- cam (Quickcam Chat) only seems to work with GStreamer so a solution using pygst would be preferred.

c++ Source Code for acm 2004-2005 problems

2009-07-12 Thread Davood Vahdati
Dear Sirs And Madams : it is an Acm programming competition Questions in year 2004-2005 . could you please solve problems is question ? I Wan't C++ Source Code program About this questions OR Problems . thank you for your prompt attention to this matter your faithfully.

Re: Webcam + GStreamer

2009-07-12 Thread David
Sparky wrote: On Jul 12, 3:50 pm, Sparky samnspa...@gmail.com wrote: Hello! I need to stream from a webcam in Linux and I need to be able to analyze the video feed frame by frame with PIL. Currently my web- cam (Quickcam Chat) only seems to work with GStreamer so a solution using pygst would be

Re: c++ Source Code for acm 2004-2005 problems

2009-07-12 Thread Paul McGuire
On Jul 12, 5:24 pm, Davood Vahdati davoodvahdati2...@gmail.com wrote: Dear Sirs And Madams : it is an Acm programming competition Questions in year 2004-2005 . could you please solve problems is question ? I  Wan't C++ Source Code program About this questions OR Problems . thank you for your

Re: c++ Source Code for acm 2004-2005 problems

2009-07-12 Thread Gabriel Genellina
En Sun, 12 Jul 2009 19:24:57 -0300, Davood Vahdati davoodvahdati2...@gmail.com escribió: it is an Acm programming competition Questions in year 2004-2005 . could you please solve problems is question ? I Wan't C++ Source Code program About this questions OR Problems . thank you for your

Re: multiprocessing and dictionaries

2009-07-12 Thread Chris Rebert
On Sun, Jul 12, 2009 at 10:16 AM, Bjorn Meyerbjorn.m.me...@gmail.com wrote: I am trying to convert a piece of code that I am using the thread module with to the multiprocessing module. The way that I have it set up is a chunk of code reads a text file and assigns a dictionary key multiple

Re: Webcam + GStreamer

2009-07-12 Thread Sparky
On Jul 12, 4:30 pm, David da...@pythontoo.com wrote: Sparky wrote: On Jul 12, 3:50 pm, Sparky samnspa...@gmail.com wrote: Hello! I need to stream from a webcam in Linux and I need to be able to analyze the video feed frame by frame with PIL. Currently my web- cam (Quickcam Chat) only

Re: shutil.rmtree raises OSError: [Errno 39] Directory not empty exception

2009-07-12 Thread Sean DiZazzo
On Jul 10, 5:10 pm, Tim Chase python.l...@tim.thechases.com wrote:      shutil.rmtree(filename)    File /usr/lib64/python2.5/shutil.py, line 178, in rmtree      onerror(os.rmdir, path, sys.exc_info())    File /usr/lib64/python2.5/shutil.py, line 176, in rmtree      os.rmdir(path)

Re: Question about generators

2009-07-12 Thread Terry Reedy
Cameron Pulsford wrote: When you start a new thread, you should start a new thread and not piggyback on an existing thread. -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about generators

2009-07-12 Thread Cameron Pulsford
itertools.chain() did it, thanks! As far as the primes generator, it does not generate any non-primes. All primes (except 2, 3 and 5) are in the form (6*x + 1, 6*x + 5) where is x is [1, 2, ..., n]. The only time it doesn't generate a prime is when x + (1 or 5) % 5 == 0. Which is what that

Re: Webcam + GStreamer

2009-07-12 Thread David
Sparky wrote: On Jul 12, 4:30 pm, David da...@pythontoo.com wrote: Sparky wrote: On Jul 12, 3:50 pm, Sparky samnspa...@gmail.com wrote: Hello! I need to stream from a webcam in Linux and I need to be able to analyze the video feed frame by frame with PIL. Currently my web- cam (Quickcam Chat)

Re: Question about generators

2009-07-12 Thread John Machin
On Jul 13, 11:24 am, Cameron Pulsford cameron.pulsf...@gmail.com wrote: As far as the primes generator, it does not generate any non-primes.   All primes (except 2, 3 and 5) are in the form (6*x + 1, 6*x + 5)   where is x is [1, 2, ..., n]. The only time it doesn't generate a   prime is when

Re: Question about generators

2009-07-12 Thread David Robinow
On Sun, Jul 12, 2009 at 9:24 PM, Cameron Pulsfordcameron.pulsf...@gmail.com wrote: As far as the primes generator, it does not generate any non-primes. All primes (except 2, 3 and 5) are in the form (6*x + 1, 6*x + 5) where is x is [1, 2, ..., n]. The only time it doesn't generate a prime is

Re: Webcam + GStreamer

2009-07-12 Thread Sparky
On Jul 12, 7:38 pm, David da...@pythontoo.com wrote: Sparky wrote: On Jul 12, 4:30 pm, David da...@pythontoo.com wrote: Sparky wrote: On Jul 12, 3:50 pm, Sparky samnspa...@gmail.com wrote: Hello! I need to stream from a webcam in Linux and I need to be able to analyze the video feed

Re: Question about generators

2009-07-12 Thread Cameron Pulsford
I read it on the haskell site in their sieves/prime wheel section, I guess I misunderstood something. (east to do over there...) I did verify it against established list of primes and other generators I've written that use more normal methods, but I only hand verified it. It is at least

Re: Question about generators

2009-07-12 Thread John Machin
On Jul 13, 1:17 pm, Cameron Pulsford cameron.pulsf...@gmail.com wrote: I read it on the haskell site in their sieves/prime wheel section, I   guess I misunderstood something. (east to do over there...) I did   verify it against established list of primes and other generators I've   written

Infinite loops and synchronization

2009-07-12 Thread Vincent Gulinao
lst = list() (lst populated by async twisted deferred callbacks) while True: if len(lst) == SOME_NUMBER: return lst Q1: is this a common OK practice? I'm worried infinite loops hogs memory. Q2: operating on list from threads (mostly appends) must be safe, right

[issue6377] distutils compiler switch ignored

2009-07-12 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: I think a workable solution to the problem with the compiler option would be to remove the option from the build_ext, build_clib and config commands (plus any others, if there are more) and only allow it on the build command. The problem

[issue6438] cygwinccompiler regular expressions broken

2009-07-12 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- resolution: - accepted title: cygwincompiler regular expressions broken - cygwinccompiler regular expressions broken ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6438

[issue1616979] cp720 encoding map

2009-07-12 Thread Abdulmonem
Abdulmonem dubais...@gmail.com added the comment: As a user I experienced this bug. With python 3.1, the interpreter terminate with fatal error: Py_Initialize: can't initialize sys standard streams LookupError: unknown encoding: cp720 I think, this can be replicated by changing the active

[issue6466] duplicate get_version() code between cygwinccompiler and emxccompiler

2009-07-12 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: Duplicate code, will create a single get_version() function in distutils.util and make both commands use it + deprecate cygwinccompiler.get_version and emxccompiler.get_version -- assignee: tarek components: Distutils messages:

[issue6438] cygwinccompiler regular expressions broken

2009-07-12 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: done in r73975, r73976 -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6438 ___

[issue6467] raw_input() doesn't work as expected when it gets multiple ^D

2009-07-12 Thread Lucas Prado Melo
New submission from Lucas Prado Melo lucaspradom...@gmail.com: -- $ cat raw_input_test.py s = '' try: while True: c = raw_input() print c s += c except EOFError: pass $ python raw_input_test.py test^D^Dtes ^D $ python --version

[issue5870] subprocess.DEVNULL

2009-07-12 Thread Lucas Prado Melo
Lucas Prado Melo lucaspradom...@gmail.com added the comment: -1 on this one. It is not a portable decision (only *nix OSes do have /dev/null). Also, why would we want it as a default constant? The subprocess module would need to open /dev/null every time. Despite that, I can't see how would

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Once this patch is checked in, should we do an emergency 3.1.1 release? -- nosy: +benjamin.peterson, pitrou priority: - critical versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue5870] subprocess.DEVNULL

2009-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Lucas, Windows has a /dev/null-like device. I think Jean's suggestion is reasonable, but it should be a special constant instead of creating a file descriptor unconditionnally (that is, the file should only be open if needed). Also, a patch should

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-12 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I'm don't know whether this is really worth a 3.1.1, all by itself. There's an easy workaround, which is for affected users to set their locale properly. -- ___ Python tracker

[issue5753] CVE-2008-5983 python: untrusted python modules search path

2009-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Tomas, your patch is breaking an existing API, which may break existing uses (I'm not sure which ones, but people are doing lots of things with Python). That's why I proposed a separate API, which has the additional benefit of making things

[issue6465] email.feedparser regular expression bug (NLCRE_crack)

2009-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Can you include your unit test in your patch rather than as a separate script? Existing unit tests are in Lib/test. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue6468] __missing__ not completely implemented in dictobject.c

2009-07-12 Thread Bosko Vukov
New submission from Bosko Vukov bvu...@users.sourceforge.net: For some reason functions PyDict_GetItem ( and PyDict_GetItemString ) don't try to check for '__missing__' on subclass, but dict_subscript(dictobject *mp, register PyObject *key) does. Only in this function a failure to get a value

[issue6468] __missing__ not completely implemented in dictobject.c

2009-07-12 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Yes, this is intended. PyDict_GetItem already bypasses user __getitem__ methods, so it's logical it would do the same for __missing__. -- nosy: +benjamin.peterson resolution: - wont fix status: open - closed

[issue6429] 2to3: fix_future conflicts with fix_print

2009-07-12 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r73981. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6429 ___

[issue2412] Check 2to3 for support of print function.

2009-07-12 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r73981. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2412 ___

[issue6465] email.feedparser regular expression bug (NLCRE_crack)

2009-07-12 Thread jkg
jkg pyt...@slashbot.com added the comment: Combined patch as requested by pitrou. (Sorry. This is my first submission.) -- Added file: http://bugs.python.org/file14486/nlcre_full.patch ___ Python tracker rep...@bugs.python.org

[issue1772794] Telnetlib dosn't accept u'only ascii'

2009-07-12 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1772794 ___ ___

[issue6469] Function definition expressions feature

2009-07-12 Thread Chris Perkins
New submission from Chris Perkins chrisperkin...@gmail.com: Proposed feature - function definition expressions, superficially similar to Ruby blocks. To be proposed on Python-ideas list. -- files: blocks.patch keywords: patch messages: 90455 nosy: grammati severity: normal status: open

[issue6469] Function definition expressions feature

2009-07-12 Thread Chris Perkins
Chris Perkins chrisperkin...@gmail.com added the comment: Forgot to mention - the patch is very much incomplete. It breaks tests, contains none of the work that would need to be done in the ast package, etc. This is just a proof-of-concept. -- ___

[issue6470] Tkinter import fails when running Python.exe from a network share

2009-07-12 Thread Christoph Gohlke
New submission from Christoph Gohlke cgoh...@uci.edu: On Windows Vista 64-bit, when running Python 2.6.2 (32 or 64 bit) from a network share, e.g. \\Server\Share\python26\python.exe, importing Tkinter fails with WindowsError: [Error 3] The system cannot find the path specified. See session

[issue6471] errno and strerror attributes incorrectly set on socket.error

2009-07-12 Thread Ezio Melotti
New submission from Ezio Melotti ezio.melo...@gmail.com: In Python 2.6, socket.error was changed to be a child class of IOError [1]. IOError derives from EnvironmentError [2], and EnvironmentError accepts a 2-tuple used to set the values of the errno and strerror attributes respectively [3].

[issue1616979] cp720 encoding map

2009-07-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Instead of using another source of third-party files, I suggest to use the Windows functions to generate the mapping. The attached patch contains a script, genwincodec.py, which uses MultiByteToWideChar and generates a codec file. I

[issue1616979] cp720 encoding map

2009-07-12 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file14490/genwincodec-py3k.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1616979

[issue6267] Cumulative patcc:h to http and xmlrpc

2009-07-12 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Added more regression tests in revision 73986 and revision 73987 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6267 ___

[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2009-07-12 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: In Py3.x, this fails: %s.%s.%s-%s-%s % sys.version_info The reason is that PyUnicode_Format() expects a real tuple, not a tuple lookalike. The fix is to either have structseq inherit from tuple or to modify

[issue6471] errno and strerror attributes incorrectly set on socket.error

2009-07-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: No, it seems that 2.5 has the same problem. The 'socket error' message is raised in urllib.py. The socket module is innocent to me... It appears that this file routinely raises IOErrors, passing various arguments, which are not stored

[issue6465] email.feedparser regular expression bug (NLCRE_crack)

2009-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Sorry for giving you a slightly wrong indication. The email tests are called from Lib/test/test_email.py, but it redirects to Lib/email/test/*. In any case, there's no point in creating a separate test script for such a detail, you should add your

[issue6470] Tkinter import fails when running Python.exe from a network share

2009-07-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Confirmed here. Added a unit test. -- assignee: - loewis keywords: +needs review nosy: +amaury.forgeotdarc, loewis stage: - patch review Added file: http://bugs.python.org/file14491/tk-unc.patch

[issue6472] Inconsistent use of iterator in ElementTree doc diff between Py and C modules

2009-07-12 Thread Mitchell Model
New submission from Mitchell Model m...@acm.org: I can't quite sort this out, because it's difficult to see what is intended. The documentation of xml.etree.ElementTree (19.11 in the Library doc) uses terms like iterator, tree iterator, iterable, list in vague and perhaps not quite accurate

[issue6472] Inconsistent use of iterator in ElementTree doc diff between Py and C modules

2009-07-12 Thread Jerry Chen
Changes by Jerry Chen je...@3rdengine.com: -- nosy: +effbot ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6472 ___ ___ Python-bugs-list mailing

[issue6472] Inconsistent use of iterator in ElementTree doc diff between Py and C modules

2009-07-12 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- assignee: georg.brandl - effbot ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6472 ___ ___

[issue6471] errno and strerror attributes incorrectly set on socket.error

2009-07-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Yes, it looks to me like urllib is intentionally putting the 'socket error' or 'url error' into the errno position in the IOError arguments. Now that socket.error is an IOError, that at least seems wrong. -- nosy: +r.david.murray

[issue6471] errno and strerror attributes incorrectly set on socket errors wrapped by urllib

2009-07-12 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- title: errno and strerror attributes incorrectly set on socket.error - errno and strerror attributes incorrectly set on socket errors wrapped by urllib ___ Python tracker rep...@bugs.python.org

[issue6473] hmac sha384/sha512 fails test vectors

2009-07-12 Thread Iain Wade
New submission from Iain Wade iw...@optusnet.com.au: Test vectors are in the following draft rfc: http://tools.ietf.org/html/draft-nystrom-smime-hmac-sha The problem is that hmac.py has a hard-coded block size of 64, while SHA-384 and SHA-512 have a 128-byte block size. Suggested fix is

[issue1616979] cp720 encoding map

2009-07-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Amaury: your approach sounds fine to me, please apply. -- resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1616979

[issue1616979] cp720 encoding map

2009-07-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Reconsidering, I'd like to ask for two changes: - please record the command(s) used to generate tables on Windows somewhere, in either Tools/unicode/Makefile, or a separate batch file. - please arrange for the doc string of the generated file