asciitable 0.4.0

2010-12-05 Thread Tald
I'd like to announce the release of version 0.4.0 of asciitable, an extensible module for reading and writing ASCII tables. This release adds the capability to handle bad or missing values in the input table. Thanks to Moritz Guenther for contributing this new feature. Please see:

Re: Which non SQL Database ?

2010-12-05 Thread John Nagle
On 12/4/2010 8:44 PM, Monte Milanuk wrote: On 12/4/10 3:43 PM, Jorge Biquez wrote: I do not see a good reason for not using Sqlite3 BUT if for some reason would not be an option what plain schema of files would you use? Would shelve work? There are some systems for storing

Perceived inconsistency in py3k documentation

2010-12-05 Thread Greg
Hello, This is my first post here, so if this is not the correct place to ask this, please direct me to the best place. In looking at the py3k documentation for comparing two classes, two different view points are expressed (at least it seems so to me). 1) At

Re: Comparison with False - something I don't understand

2010-12-05 Thread Paul Rubin
Tim Harig user...@ilthio.net writes: The fact that I bothered to create classes for the dice and roles, rather then simply iterating over a list of numbers, should tell you that I produced was of a far more flexible nature; including the support for roles with dice having different numbers of

Deditor 0.2.3

2010-12-05 Thread Kruptein
A new version of the python dedicated linux text-editor has been released! This editor is python specific offering some features to python users like code analyzing, code inspecting, syntax highlighting, ... Information about this project: http://launchpad.net/deditor Information about the

s;hlhdlhlah

2010-12-05 Thread hollyood
lhdglfhglshglhash -- http://mail.python.org/mailman/listinfo/python-list

Re: Perceived inconsistency in py3k documentation

2010-12-05 Thread Peter Otten
Greg wrote: This is my first post here, so if this is not the correct place to ask this, please direct me to the best place. This is a good place to get general advice and to discuss potential bugs when you are unsure whether they actually are bugs. If you are sure that you ran into a bug in

[ANN] Pyclewn: Vim as a front end to pdb

2010-12-05 Thread Xavier de Gaye
Pyclewn 1.5 has been released at http://pyclewn.sourceforge.net/ Pyclewn is a python program that allows the use of Vim as a front end to gdb and pdb. This release adds support for ``pdb``, the python debugger. + A python script may be run under the control of ``pdb``. For example the

Re: Comparison with False - something I don't understand

2010-12-05 Thread Tim Harig
On 2010-12-05, Paul Rubin no.em...@nospam.invalid wrote: Tim Harig user...@ilthio.net writes: The fact that I bothered to create classes for the dice and roles, rather then simply iterating over a list of numbers, should tell you that I produced was of a far more flexible nature; including

Re: Comparison with False - something I don't understand

2010-12-05 Thread Tim Harig
On 2010-12-05, Tim Harig user...@ilthio.net wrote: On 2010-12-05, Paul Rubin no.em...@nospam.invalid wrote: Tim Harig user...@ilthio.net writes: The fact that I bothered to create classes for the dice and roles, rather then simply iterating over a list of numbers, should tell you that I

Re: Which non SQL Database ?

2010-12-05 Thread Lie Ryan
On 12/05/10 10:43, Jorge Biquez wrote: I do not see a good reason for not using Sqlite3 BUT if for some reason would not be an option what plain schema of files would you use? Assuming you don't want SQL, you can use filesystem-based database. Most people doesn't realize that a filesystem

Re: Comparison with False - something I don't understand

2010-12-05 Thread Tim Chase
On 12/04/2010 11:42 PM, Steven D'Aprano wrote: On Sun, 05 Dec 2010 04:13:02 +, Tim Harig wrote: str.find is more troublesome, because the sentinel -1 doesn't propagate and is a common source of errors: result = string[string.find(delim):] will return a plausible-looking but incorrect

Re: Which non SQL Database ?

2010-12-05 Thread Tim Chase
On 12/05/2010 03:41 AM, Alan Gauld wrote: Why not use SQL? SQLlite comes with Python, is small, easy to use and if necessary can be used in-memory and as such fast. The only reason I could see using something other than sqlite3 for such a use-case would be if the OP has to support Python

Re: How to add data into exisitng Excel file at next open row?

2010-12-05 Thread Steve Holden
On 12/3/2010 6:21 PM, noydb wrote: How can you determine the next open row in an existing Excel file such that you can start adding data to the cells in that row? As in below, I want a variable in place of the 6 (row 6 in the four ws1.Cells(x,1) lines), but have no other way of knowing what

Re: Which non SQL Database ?

2010-12-05 Thread Roy Smith
In article 4cfb802...@dnews.tpgi.com.au, Lie Ryan lie.1...@gmail.com wrote: On 12/05/10 10:43, Jorge Biquez wrote: I do not see a good reason for not using Sqlite3 BUT if for some reason would not be an option what plain schema of files would you use? Assuming you don't want SQL,

Re: Unknown function operation deciphering, exercise in readability by program reasoning

2010-12-05 Thread rupertlssm...@googlemail.com
On Dec 5, 3:34 am, jvt vincent.to...@gmail.com wrote: On Dec 4, 4:49 pm, Barb Knox s...@sig.below wrote: In article 46365e1d-42d8-4b3b-8e69-941472467...@u25g2000pra.googlegroups.com,  small Pox smallpox...@gmail.com wrote: Rules : No need to add any additional hurdles -- the

Re: Unknown function operation deciphering, exercise in readability by program reasoning

2010-12-05 Thread small Pox
On Dec 5, 9:13 am, rupertlssm...@googlemail.com rupertlssm...@googlemail.com wrote: On Dec 5, 3:34 am, jvt vincent.to...@gmail.com wrote: I think this is correct: (defun unknown-function (sym0)   (let (sym1 sym2)         (while (or sym2 sym0)           (if sym0                  

Re: Unknown function operation deciphering, exercise in readability by program reasoning

2010-12-05 Thread small Pox
On Dec 4, 11:37 pm, Madhu enom...@meer.net wrote: * jvt 5e1f79ab-5432-4f18-b896-362b7406c...@i18g2000yqn.googlegroups.com : Wrote on Sat, 4 Dec 2010 19:34:53 -0800 (PST): | | I think this is correct: | | | (defun unknown-function (sym0) |   (let (sym1 sym2) |       (while (or sym2 sym0)

Framework design question

2010-12-05 Thread Alan Harris-Reid
Hi, When committing data that has originally come from a webpage, sometimes data has to be converted to a data type or format which is suitable for the back-end database. For instance, a date in 'dd/mm/' format needs to be converted to a Python date-object or '-mm-dd' in order to

Re: Framework design question

2010-12-05 Thread MRAB
On 05/12/2010 18:20, Alan Harris-Reid wrote: Hi, When committing data that has originally come from a webpage, sometimes data has to be converted to a data type or format which is suitable for the back-end database. For instance, a date in 'dd/mm/' format needs to be converted to a Python

Re: How to add data into exisitng Excel file at next open row?

2010-12-05 Thread noydb
On Dec 5, 8:42 am, Steve Holden st...@holdenweb.com wrote: On 12/3/2010 6:21 PM, noydb wrote: How can you determine the next open row in an existing Excel file such that you can start adding data to the cells in that row?  As in below, I want a variable in place of the 6 (row 6 in the

Re: Perceived inconsistency in py3k documentation

2010-12-05 Thread Terry Reedy
On 12/5/2010 3:31 AM, Greg wrote: For future reference, 1) At http://docs.python.org/py3k/reference/datamodel.html: 2) At http://docs.python.org/py3k/library/stdtypes.html: do not work because of the trailing :s, at least not with FireFox. 1) At

Re: Which non SQL Database ?

2010-12-05 Thread Stef Mientki
On 04-12-2010 23:42, Jorge Biquez wrote: Hello all. Newbie question. Sorry. As part of my process to learn python I am working on two personal applications. Both will do it fine with a simple structure of data stored in files. I now there are lot of databases around I can use but I

Re: Comparison with False - something I don't understand

2010-12-05 Thread Martin v. Loewis
result = myfunction (vars) if not result: # error condition Now above I first realized that the function can also return an empty list under some conditions and so changed it to If your function returns a list when successful, it should not return False in the error case. Instead,

Re: Which non SQL Database ?

2010-12-05 Thread Dan Stromberg
On Sun, Dec 5, 2010 at 12:01 AM, John Nagle na...@animats.com wrote: On 12/4/2010 8:44 PM, Monte Milanuk wrote: On 12/4/10 3:43 PM, Jorge Biquez wrote: I do not see a good reason for not using Sqlite3 BUT if for some reason would not be an option what plain schema of files would you use?

Collision of rotated rectangles without pygame

2010-12-05 Thread Martin Manns
Hello, I am looking for a Python library for 2D collision checks of rotated rectangles. Currently, I have found vizier 0.5b that is based on pygame. Since I do not want to add a pygame dependency to my app, I replaced the pygame.rect.Rect by a wxPython wx.Rect (see code below). However,

Re: Collision of rotated rectangles without pygame

2010-12-05 Thread Martin Manns
On Sun, 5 Dec 2010 23:49:36 +0100 Martin Manns mma...@gmx.net wrote: Is my replacement of the rectangle object wrong or is vizier not working correctly with pygame as well? Answering my first question: Vizier works O.K. with pygame. I am unsure what I did wrong in the rect replacement

Re: Comparison with False - something I don't understand

2010-12-05 Thread MRAB
On 05/12/2010 21:01, Martin v. Loewis wrote: result = myfunction (vars) if not result: # error condition Now above I first realized that the function can also return an empty list under some conditions and so changed it to If your function returns a list when successful, it should not

Re: How do I get the email address of the person who clicked the link in the email?

2010-12-05 Thread alex23
On Dec 5, 10:15 am, Zeynel azeyn...@gmail.com wrote: I am working with Google App Engine python version. The app sends an email to the user with a link to a page to upload an image as an avatar. It would be nice to have the email so that I can associate the avatar with that email. How can I do

PEP8 compliance and exception messages ?

2010-12-05 Thread shearichard
Hi - PEP8 says lines should not exceed 79 characters in length ( http://www.python.org/dev/peps/pep-0008/ ). So if you've got some code that looks like this : raise fooMod.fooException(Some message which is quite long) ... and assuming a certain amount of indenting you're going to break that

Re: PEP8 compliance and exception messages ?

2010-12-05 Thread Chris Rebert
On Sun, Dec 5, 2010 at 7:40 PM, shearichard shearich...@gmail.com wrote: Hi - PEP8 says lines should not exceed 79 characters in length ( http://www.python.org/dev/peps/pep-0008/ ). So if you've got some code that looks like this : raise fooMod.fooException(Some message which is quite long)

Re: PEP8 compliance and exception messages ?

2010-12-05 Thread MRAB
On 06/12/2010 03:40, shearichard wrote: Hi - PEP8 says lines should not exceed 79 characters in length ( http://www.python.org/dev/peps/pep-0008/ ). So if you've got some code that looks like this : raise fooMod.fooException(Some message which is quite long) ... and assuming a certain amount

Wanted: slow regexes

2010-12-05 Thread MRAB
I'm looking for examples of regexes which are slow (especially those which seem never to finish) but whose results are known. I already have those reported in the bug tracker, but further ones will be welcome. This is for testing additional modifications to the new regex implementation

Re: Python 3 encoding question: Read a filename from stdin, subsequently open that filename

2010-12-05 Thread Dan Stromberg
Ultimately I switched to reading the filenames from file descriptor 0 using os.read(); this gave back bytes in 3.x, strings of single-byte characters in 2.x - which are similar enough for my purposes, and eliminated the filesystem encoding(s) question nicely. I rewrote readline0

Re: PEP8 compliance and exception messages ?

2010-12-05 Thread Ben Finney
shearichard shearich...@gmail.com writes: Hi - PEP8 says lines should not exceed 79 characters in length ( http://www.python.org/dev/peps/pep-0008/ ). So if you've got some code that looks like this : raise fooMod.fooException(Some message which is quite long) PEP 8 also says those names

Re: PEP8 compliance and exception messages ?

2010-12-05 Thread Andreas Waldenburger
On Sun, 5 Dec 2010 19:52:54 -0800 Chris Rebert c...@rebertia.com wrote: On Sun, Dec 5, 2010 at 7:40 PM, shearichard shearich...@gmail.com wrote: Hi - PEP8 says lines should not exceed 79 characters in length ( http://www.python.org/dev/peps/pep-0008/ ). So if you've got some code that

Re: PEP8 compliance and exception messages ?

2010-12-05 Thread Tim Harig
On 2010-12-06, Andreas Waldenburger use...@geekmail.invalid wrote: On Sun, 5 Dec 2010 19:52:54 -0800 Chris Rebert c...@rebertia.com wrote: On Sun, Dec 5, 2010 at 7:40 PM, shearichard shearich...@gmail.com wrote: Hi - PEP8 says lines should not exceed 79 characters in length (

Re: PEP8 compliance and exception messages ?

2010-12-05 Thread Steven D'Aprano
On Mon, 06 Dec 2010 06:15:06 +, Tim Harig wrote: But isn't explicit string literal concatenation better than implicit string literal concatenation? So add the +, it really doesn't change it much. Perhaps not *much*, but it *may* change it a bit. Implicit concatenation of literals is

Re: class attribute confusion

2010-12-05 Thread Steve Holden
On 12/3/2010 11:58 PM, Steven D'Aprano wrote: Right. If you define a *class* attribute, it lives in the class, not the instance, and so all instances share the same value. Unless, of course, an instance binds the same name in its namespace, in which case it will (usually) mask the class

Re: Which non SQL Database ?

2010-12-05 Thread Steve Holden
On 12/5/2010 12:59 AM, CM wrote: SQlite itself is around 300 kilobytes. That's negligible. It is also already in Python, so you'd have to purposefully exclude it in creating your executable to save those 300 kb and thus the 1/13th of a second additional time it would take average (3.9 MB/s)

[issue10628] Typos in 3.2 what’s new

2010-12-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Applied rest in r87083. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10628

[issue10626] test_concurrent_futures implicitly installs a logging handler on import

2010-12-05 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: This is unrelated to issue 10517 (based on Dave Malcolm's initial investigation, that looks like it may be a genuine problem in multiprocessing) Instead, this relates to a problem in concurrent.futures where it installs a logging *handler* as

[issue10629] Arbitrary precision

2010-12-05 Thread Bill McEachen
New submission from Bill McEachen billyma...@excite.com: from this link [http://en.wikipedia.org/wiki/PARI/GP#Usage_examples], I wanted to contrast arbitrary precision with the other pgm I use, Pari/GP. I tried the xample there which was: 123456! + 0. Now, behavior seems the same without the

[issue10576] Add a progress callback to gcmodule

2010-12-05 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Here is a third patch. The callback now gets two argument, phase and info. I've added documentation and unittests. -- Added file: http://bugs.python.org/file19946/gccallback3.patch ___

[issue10516] Add list.clear() and list.copy()

2010-12-05 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: I'm troubled with one little letter: L.copy() - list -- a shallow copy of L); should be L.copy() - list -- shallow copy of L); without the letter 'a', because other sentences also don't say L.__sizeof__() -- *A* size of L in memory,

[issue10516] Add list.clear() and list.copy()

2010-12-05 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: Can you please help me find the definition of the copy() method of dict in the Python sources? I want to see how that method is defined and compare the definition to the one in Eli's patch. -- Added file:

[issue4391] use proper gettext plurals forms in argparse and optparse

2010-12-05 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: The workaround in TestImportStar is fine. The test is really just meant to make sure that __all__ contains all the current API methods, and the _ checks were the easiest way at the time to check that. --

[issue10626] test_concurrent_futures implicitly installs a logging handler on import

2010-12-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: What a nice mess :) Raising priority so that this doesn't get overlooked. -- priority: normal - deferred blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10626

[issue1294232] Error in metaclass search order

2010-12-05 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: What also worries me is the difference between the class statement and the type() function. I think the reason of this is that the class statement uses the __build_class__ builtin function. This function determines the metaclass to use

[issue10292] tarinfo should use relative symlinks

2010-12-05 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: Okay, this bug has been fixed in the 2.7 series. Python 2.6 is now in security-fix-only mode which means that there will not be a fix for it. Therefore, I close this issue. -- resolution: - fixed status: open - closed versions:

[issue10629] Arbitrary precision

2010-12-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Note that while Python's long type gives you unlimited-size integers, the float type doesn't make such promises: it is just a double-precision float. As such, math.factorial(1234) cannot be interpreted; it would simply be positive infinity.

[issue10629] Arbitrary precision

2010-12-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Right; this is expected behaviour. The error you're seeing comes from the implicit conversion of 1234! from long to float. -- status: pending - closed ___ Python tracker rep...@bugs.python.org

[issue10576] Add a progress callback to gcmodule

2010-12-05 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - patch review versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10576 ___

[issue5587] vars() no longer has a useful __repr__

2010-12-05 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: Based on David Stanek's patch I've made a patch against the current py3k branch. The only difference is, that dict_proxy.__repr__ instead of simply returning the repr of the dict, returns approximately dict_proxy({!r}).format(self.dict).

[issue5587] vars() no longer has a useful __repr__

2010-12-05 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Thanks for the patch! Can you include also a test that verifies that the repr is printed correctly? (You can take a look at #7310 if you want to see a possible approach.) -- ___ Python tracker

[issue5587] vars() no longer has a useful __repr__

2010-12-05 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: Thanks for the patch! Can you include also a test that verifies that the repr is printed correctly? Sure. Where should I put the test? I didn't found any dict_proxy tests, except in test_descr.py (# Classes don't allow __dict__

[issue10516] Add list.clear() and list.copy()

2010-12-05 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: Removed file: http://bugs.python.org/file19947/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10516 ___

[issue10516] Add list.clear() and list.copy()

2010-12-05 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: Removed file: http://bugs.python.org/file19948/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10516 ___

[issue10630] dict_proxy.keys() / values() / items() are lists

2010-12-05 Thread Daniel Urban
New submission from Daniel Urban urban.dani...@gmail.com: The keys, values and items methods of dict_proxy return a list, while dict.keys, etc. return dictionary views (dict_keys, etc.). dict_proxy is used as the __dict__ attribute of classes. This is documented at

[issue10631] ZipFile and current directory change

2010-12-05 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Is this intended behavior? Creating zipfile.ZipFile with relative path and changing current directory, relative path is resolved from new directory not from the directory object was created. F:\py3k Python 3.2a4+ (py3k, Dec 3

[issue9101] reference json format in file formats chapter

2010-12-05 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- status: closed - open versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9101 ___

[issue6490] os.popen documentation in 2.6 is probably wrong

2010-12-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I will refresh the patch, update it to recommend use as a context manager, and submit the patch here for review before committing. It’s too late for 2.6, though. Benjamin, I hope you won’t mind me taking the assignment from you. --

[issue10631] ZipFile and current directory change

2010-12-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I don't know, but I wouldn't call it a bug either. In general it's not recommended to change the current directory except at the very beginning of your application. -- nosy: +pitrou ___ Python tracker

[issue10516] Add list.clear() and list.copy()

2010-12-05 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Objects/dictobject.c -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10516 ___ ___

[issue10626] test_concurrent_futures implicitly installs a logging handler on import

2010-12-05 Thread Brian Quinlan
Brian Quinlan br...@sweetapp.com added the comment: I've attached a patch that removes the code that installs a handler to the futures logger. I'm not sure if this is the correct approach though - it means that impossible errors will only be reported to the user through a message like no

[issue8194] Incompatible API change in xmlrpclib.Transport.parse_response() of Python 2.7 and 3.2

2010-12-05 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8194 ___

[issue10630] dict_proxy.keys() / values() / items() are lists

2010-12-05 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10630 ___ ___ Python-bugs-list

[issue5587] vars() no longer has a useful __repr__

2010-12-05 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo -BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5587 ___ ___

[issue10632] multiprocessing gene

2010-12-05 Thread Brian Quinlan
New submission from Brian Quinlan br...@sweetapp.com: multiprocessing generates fatal error Invalid thread state for this thread in PyThreadState_Swap This seems to happen on RHEL 5 and Centos 5.5 Here is the minimal repro: import multiprocessing.managers mpp = multiprocessing.Pool(4) sm =

[issue10517] test_concurrent_futures crashes with Fatal Python error: Invalid thread state for this thread

2010-12-05 Thread Brian Quinlan
Brian Quinlan br...@sweetapp.com added the comment: I've filed a new bug (http://bugs.python.org/issue10632) against multiprocessing and this bug dependent on it. In the meantime, I can't repro this on ubuntu 10.04 LTS so I'm going to install Centos and give that a go. --

[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2010-12-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: As per http://mail.python.org/pipermail/python-dev/2010-December/106374.html I think this checkin should be reverted, as it's breaking the language moratorium. -- ___ Python tracker

[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2010-12-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I leave this to MAL, on whose behalf I finished this to be in time for beta. -- assignee: - lemburg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7475

[issue10632] multiprocessing generates a fatal error

2010-12-05 Thread Brian Quinlan
Changes by Brian Quinlan br...@sweetapp.com: -- title: multiprocessing gene - multiprocessing generates a fatal error ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10632 ___

[issue10631] ZipFile and current directory change

2010-12-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: More formally: it's unspecified. I'd like to propose this general principle: If you pass a relative path to some library that gets stored in the library, it's unspecified whether the cwd is consider at the point of passing the path or at

[issue8910] Write a text file explaining why Lib/test/data exists

2010-12-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Temporarily reopening so that Martin can decide whether he wants to add Lib/test/data/README to msi.py -- status: closed - open ___ Python tracker rep...@bugs.python.org

[issue8910] Write a text file explaining why Lib/test/data exists

2010-12-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: All README files are automatically packages, and so is this one. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8910

[issue10633] string.format() Unexpected output with numeric '#' prefix and 0 width

2010-12-05 Thread Alex Leone
New submission from Alex Leone acle...@gmail.com: When using the '#' to prefix a numeric argument in format() with a '0x' or others, the 0-width padding takes into account the '0x' characters. This is unexpected - the 0-width should NOT take into account the prefix. Current Behavior:

[issue10634] Windows timezone changes not reflected by time.localtime

2010-12-05 Thread Eric Pruitt
New submission from Eric Pruitt eric.pru...@gmail.com: If the current time zone changes on Windows, time.localtime will continue to return results that reflect the time zone the system used when the module was imported. My current work around is to use GetLocalTime from kernel32 with ctypes.

[issue10588] imp.find_module raises unexpected SyntaxError

2010-12-05 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +brett.cannon, eric.araujo, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10588 ___

[issue10634] Windows timezone changes not reflected by time.localtime

2010-12-05 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- components: +Library (Lib) stage: - unit test needed versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5, Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10634

[issue10633] string.format() Unexpected output with numeric '#' prefix and 0 width

2010-12-05 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: I disagree that your expected output is how it should behave. I believe it's more likely that the user wants the entire field width specified. In addition, compatibility with %-formatting would dictate that we keep the current behavior.

[issue10635] Calling subprocess.Popen with preexec_fn=signal.pause blocks forever

2010-12-05 Thread joseph.h.garvin
New submission from joseph.h.garvin joseph.h.gar...@gmail.com: The following code will cause the interpreter to hang: import subprocess import signal subprocess.Popen(/bin/echo, preexec_fn=signal.pause) Replace /bin/echo with any valid program on your box, it's just the simplest Linux

[issue10636] subprocess module has race condition with SIGCHLD handlers

2010-12-05 Thread joseph.h.garvin
New submission from joseph.h.garvin joseph.h.gar...@gmail.com: The following code will result in a traceback 99% of the time, though it may take two runs (sometimes the first run won't trigger it, I think due to the changing in timing from genrating the .pyc file). It spawns an instance of

[issue10634] Windows timezone changes not reflected by time.localtime

2010-12-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: This is not a bug in Python, but in the Microsoft CRT. Rewriting Python to not use the CRT anymore for this is non-trivial, in particular as the semantics of environment variables (TZ) needs to be considered. -- nosy: +loewis

[issue10636] subprocess module has race condition with SIGCHLD handlers

2010-12-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: If when it caught SIGCHLD python pushed an event onto its internal event loop to execute the handler, I think that would make sure it's deferred until after the assignment. This is not a reasonable request. How long would you want to

[issue10636] subprocess module has race condition with SIGCHLD handlers

2010-12-05 Thread joseph.h.garvin
joseph.h.garvin joseph.h.gar...@gmail.com added the comment: Sorry I wasn't trying to make a request, just suggesting one potential 'fix' (I agree that it isn't really though) to make things more intutive. Unless the app is delayed from launching until after the assignment finishes though I

[issue10633] string.format() Unexpected output with numeric '#' prefix and 0 width

2010-12-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Eric, I'm assuming you just forgot to close this. On the other hand, if you wanted a +1 from another dev, you've got it :) Besides the considerations you mentioned, changing this would be a significant backward incompatibility, and is

[issue10631] ZipFile and current directory change

2010-12-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: So, Martin, are you then arguing that this should in fact be considered a bug in ZipFile? The documentation for the constructor says Open a ZIP file, where file can be either a path to a file (a string) or a file-like object. Reading

[issue10626] test_concurrent_futures implicitly installs a logging handler on import

2010-12-05 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: For 3.2, writing such errors directly to stderr would be fine (we already do that in other places via PyErr_WriteUnraisable) The test could then be modified to use test.support.captured_output to temporarily replace stderr and look at the

[issue10637] Calling CloseHandle twice (Modules/posixmodule.c)

2010-12-05 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Very sorry, I created the bug calling CloseHandle twice in Modules/posixmodule.c. I think this should be fixed before beta1 released. Can I commit it? -- components: None files: posixmodule.diff keywords: needs review,

[issue10516] Add list.clear() and list.copy()

2010-12-05 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Boštjan, a shallow copy: I took this directly from the documentation of dicts, which says: D.copy() - a shallow copy of D) As I mentioned in an earlier message, the doc-strings of list and dict methods are inconsistent in more than one

[issue10482] subprocess and deadlock avoidance

2010-12-05 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: The general idea is sound. My work colleagues have certainly had to implement their own reader/writer thread equivalents to keep subprocess from blocking. It makes sense to provide more robust public support for such techniques in process

[issue10637] Calling CloseHandle twice (Modules/posixmodule.c)

2010-12-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Very sorry, I created the bug calling CloseHandle twice in Modules/posixmodule.c. I think this should be fixed before beta1 released. Can I commit it? Even if you commit it now, it won't get into beta1: the Windows binaries for that are

[issue10637] Calling CloseHandle twice (Modules/posixmodule.c)

2010-12-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: What is the result of calling it twice? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10637 ___

[issue10637] Calling CloseHandle twice (Modules/posixmodule.c)

2010-12-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The second CloseHandle call will fail. As we are not checking the CloseHandle result, this has no further consequences, AFAICT. -- ___ Python tracker rep...@bugs.python.org

[issue10637] Calling CloseHandle twice (Modules/posixmodule.c)

2010-12-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: quick followup: there is a chance that this closes the wrong file due to race conditions, in case a different thread opens a file in-between that gets the same handle. Due to the GIL, this is unlikely --

[issue10635] Calling subprocess.Popen with preexec_fn=signal.pause blocks forever

2010-12-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: After forking, the parent waits for the child's exec call to determine if it succeeds. Otherwise, you wouldn't get an exception in the parent when you do Popen('/bin/ech') or somesuch. -- nosy: +georg.brandl resolution: - invalid

[issue10637] Calling CloseHandle twice (Modules/posixmodule.c)

2010-12-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: OK, I would say this is an acceptable bug in a beta release. Will fix it after the release is done. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10637

[issue10637] Calling CloseHandle twice (Modules/posixmodule.c)

2010-12-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Well, I'm not sure. I didn't realize it while running python_d.exe. I just realized it while re-reading source code. MSDN says, (http://msdn.microsoft.com/en-us/library/ms724211%28VS.85%29.aspx) If the application is running

[issue10637] Calling CloseHandle twice (Modules/posixmodule.c)

2010-12-05 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- Removed message: http://bugs.python.org/msg123461 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10637 ___

  1   2   >