[ANN] Leipzig Python User Group - Meeting, June 12 2012, 08:00 p.m.

2012-06-11 Thread Mike Müller
=== Leipzig Python User Group === We will meet on Tuesday, June 12 at 8:00 p.m. at the training center of Python Academy in Leipzig, Germany ( http://www.python-academy.com/center/find.html ). Everybody who uses Python, plans to do so or is interested in learning more about the language is

PyCon Finland 2012 - Call for Proposals

2012-06-11 Thread Jyrki Pulliainen
PyCon Finland 2012 Call For Proposals PyCon Finland will take place October 22-23 in Espoo. The first day will feature presentations and the second is reserved for sprints and hands-on. We are currently accepting proposals for both talks and sprints. If you would like to give a presentation,

Decorator Pattern with Iterator

2012-06-11 Thread Tom Harris
Greetings, I have a class that implements the iterator protocol, and tokenises a string into a series of tokens. As well as the token, it keeps track of some information such as line number, source file, etc. for tokens in Tokeniser(): do_stuff(token) What I want is to be able to wrap the

Re: Why does this leak memory?

2012-06-11 Thread Ulrich Eckhardt
Am 08.06.2012 18:02, schrieb Steve: Well, I guess I was confused by the terminology. I thought there were leaked objects _after_ a garbage collection had been run (as it said collecting generation 2). Also, unreachable actually appears to mean unreferenced. You live n learn... Actually I

Re: which one do you prefer? python with C# or java?

2012-06-11 Thread 88888 Dihedral
Yesterday Paid於 2012年6月10日星期日UTC+8上午6時44分44秒寫道: I'm planning to learn one more language with my python. Someone recommended to do Lisp or Clojure, but I don't think it's a good idea(do you?) So, I consider C# with ironpython or Java with Jython. It's a hard choice...I like Visual

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-11 Thread Wolfgang Keller
What GUI designer would come the closest to the way that Cocoa's Interface Builder works? I.e. is there any one (cross-platform) that allows to actually connect the GUI created directly to the code and make it available live in an IDE? This whole cycle of design GUI-generate code-add

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-11 Thread Wolfgang Keller
What GUI designer would come the closest to the way that Cocoa's Interface Builder works? I.e. is there any one (cross-platform) that allows to actually connect the GUI created directly to the code and make it available live in an IDE? If you're developing on the Mac, PyObjC allows you

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-11 Thread Kevin Walzer
On 6/11/12 8:01 AM, Wolfgang Keller wrote: Tkinter is imho honestly the very best argument if you want to make potential new users turn their backs away from Python for good. Just show them one GUI implemented with it and, hey, wait, where are you running to... Yes, Tkinter GUI's are very

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-11 Thread Mark Lawrence
On 11/06/2012 13:47, Kevin Walzer wrote: Yes, Tkinter GUI's are very ugly. http://www.codebykevin.com/phynchronicity-running.png http://www.codebykevin.com/quickwho-main.png At last we're getting to the crux of the matter. Provided that the GUI is pretty who cares about picking

Decorator Pattern with Iterator

2012-06-11 Thread Oscar Benjamin
On 11 June 2012 08:51, Tom Harris celephi...@gmail.com wrote: Greetings, I have a class that implements the iterator protocol, and tokenises a string into a series of tokens. As well as the token, it keeps track of some information such as line number, source file, etc. for tokens in

Re: Pythonic cross-platform GUI desingers � la Interface Builder (Re: what gui designer is everyone using)

2012-06-11 Thread Mark Roseman
Dietmar Schwertberger n...@schwertberger.de wrote: But the fact that Tkinter is still the standard GUI toolkit tells a lot about the situation... ... Sure, I know how to code GUIs. But the learning curve is too steep for new users wanting to implement simple GUIs. As is obvious to

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-11 Thread Anssi Saari
Wolfgang Keller felip...@gmx.net writes: This whole cycle of design GUI-generate code-add own code to generated code-run application with GUI has always seemed very un-pythonic to me. A dynamic, interpreted language should allow to work in a more lively, direct way to build a GUI. What about

python with xl

2012-06-11 Thread chebrian
Hi, How to append the list of data in individual column of XL file, every time from python script . -- http://mail.python.org/mailman/listinfo/python-list

Re: python with xl

2012-06-11 Thread Karim
Le 11/06/2012 16:12, chebrian a écrit : Hi, How to append the list of data in individual column of XL file, every time from python script . In standard lib = module csv (ascii comma separated values) In non standard = binary xl = module xlrd for reading and module xlwt for writing

Re: Decorator Pattern with Iterator

2012-06-11 Thread Ian Kelly
On Mon, Jun 11, 2012 at 1:51 AM, Tom Harris celephi...@gmail.com wrote: Greetings, I have a class that implements the iterator protocol, and tokenises a string into a series of tokens. As well as the token, it keeps track of some information such as line number, source file, etc. So each

Ann: New Stackless Website

2012-06-11 Thread Christian Tismer
I'm very happy to announce == Stackless Python has a New Website == Due to a great effort of the Nagare people: http://www.nagare.org/ and namely by the tremendous work of Alain Pourier, Stackless Python has now a new

Re: which one do you prefer? python with C# or java?

2012-06-11 Thread Alexander Blinne
On 10.06.2012 23:27, Paul Rubin wrote: Here is an exercise from the book that you might like to try in Python: http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-24.html#%_idx_3894 It's not easy ;-) I liked this exercize. At first I wrote my own merger. def merge(*iterables):

Where to set default data - where received, or where used

2012-06-11 Thread Dennis Carachiola
I'm programming a project which will use a file to save parameters needed by the program. There are already two previous file formats, each of which can only be run by the version of the program which created them. I'm trying to avoid that problem in the future. To do that, I intend to use a

RE: Where to set default data - where received, or where used

2012-06-11 Thread Nick Cash
This is really up to your programming style, but I'm of the opinion that defining all of the default values in one place keeps maintenance easier. Of course, if it's done differently elsewhere in your code base, I would aim for consistency instead. Thanks, Nick Cash -Original Message-

Re: which one do you prefer? python with C# or java?

2012-06-11 Thread Tomasz Rola
On Sat, 9 Jun 2012, Yesterday Paid wrote: I'm planning to learn one more language with my python. Someone recommended to do Lisp or Clojure, but I don't think it's a good idea(do you?) So, I consider C# with ironpython or Java with Jython. It's a hard choice...I like Visual studio(because my

Re: which one do you prefer? python with C# or java?

2012-06-11 Thread Tomasz Rola
On Mon, 11 Jun 2012, Tomasz Rola wrote: If you want to delve into Java world, well, I consider Java an unbearably ugly hog. When I was younger and fearless I programmed a bit in Java, but nowadays, the only way I myself could swallow this would be to use some other language on top of it

Sybase module 0.40 released

2012-06-11 Thread Robert Boehne
WHAT IS IT: The Sybase module provides a Python interface to the Sybase relational database system. It supports all of the Python Database API, version 2.0 with extensions. The module is available here: http://downloads.sourceforge.net/python-sybase/python-sybase-0.40.tar.gz The module home

Re: Where to set default data - where received, or where used

2012-06-11 Thread Dave Angel
On 06/11/2012 02:37 PM, Dennis Carachiola wrote: I'm programming a project which will use a file to save parameters needed by the program. There are already two previous file formats, each of which can only be run by the version of the program which created them. I'm trying to avoid that

Re: which one do you prefer? python with C# or java?

2012-06-11 Thread Matej Cepl
On 11/06/12 06:20, rusi wrote: Hi Matěj! If this question is politically incorrect please forgive me. Do you speak only one (natural) language -- English? And if this set is plural is your power of expression identical in each language? I have written about that later ... no, I am a native

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-11 Thread Dietmar Schwertberger
Am 11.06.2012 06:05, schrieb rusi: If python is really a language maven's language then it does not do very well: - its not as object-oriented as Ruby (or other arcana like Eiffel) - its not as functional as Haskell - its not as integrable as Lua - its not as close-to-bare-metal as C - etc

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-11 Thread Dietmar Schwertberger
Am 11.06.2012 14:01, schrieb Wolfgang Keller: * Domain experts in fact who would need to implement loads of software to help them get their work done but can't. And since there's no budget for external developers, nothing get's ever done about this. Well, typically or at least very often sooner

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-11 Thread Dietmar Schwertberger
Am 11.06.2012 16:14, schrieb Anssi Saari: Wolfgang Kellerfelip...@gmx.net writes: This whole cycle of design GUI-generate code-add own code to generated code-run application with GUI has always seemed very un-pythonic to me. A dynamic, interpreted language should allow to work in a more

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-11 Thread Dietmar Schwertberger
Am 11.06.2012 16:09, schrieb Mark Roseman: On the Tkinter front, I just want to reiterate two important points that are not nearly as well known as they should be. First, it is possible and in fact easy to do decent looking GUI's in Tkinter, with the caveat that you do in fact have to do

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-11 Thread Dietmar Schwertberger
Am 11.06.2012 01:15, schrieb Chris Angelico: If you're a complete non-programmer, then of course that's an opaque block of text. But to a programmer, it ought to be fairly readable - Well, I can read the code. But still I would not be able (or interested) to write C++/GTK code. With my rusty

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-11 Thread Rick Johnson
On Jun 10, 11:05 pm, rusi rustompm...@gmail.com wrote: If python is really a language maven's language then it does not do very well: - its not as object-oriented as Ruby (or other arcana like Eiffel) if it were object-oreiented as Ruby, then why not use Ruby? - its not as functional as

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-11 Thread Rick Johnson
On Jun 11, 9:09 am, Mark Roseman m...@markroseman.com wrote: Second, there does exist at least one fairly good source of documentation for new users wishing to do exactly this (according to many, many comments I have received), though that documentation is admittedly buried in a sea of

[issue15040] stdlib compatability with pypy: mailbox.py

2012-06-11 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I'm not sure about the __del__: if pypy's deferred garbage collection is not enough to close self._file, how can a __del__ method help? -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue13691] pydoc help (or help('help')) should show the doc for help

2012-06-11 Thread Petr Kubat
Petr Kubat killm...@gmail.com added the comment: I see. So calling help('help') should produce the documentation on the help() function and typing help at the help prompt should print the help for the prompt. Tricky indeed. I think I'll look at it during the day after tomorrow and post some

[issue13857] Add textwrap.indent() as counterpart to textwrap.dedent()

2012-06-11 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: - ncoghlan stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13857 ___

[issue7300] Unicode arguments in str.format()

2012-06-11 Thread Gökçen Eraslan
Changes by Gökçen Eraslan gok...@pardus.org.tr: -- nosy: +Gökçen.Eraslan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7300 ___ ___

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2012-06-11 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: Fair enough, I'm not going to question your obviously superior judgement here. :) However, your patch currently breaks the test suite on any platform that uses the fallback rmtree: You forgot the ignore_errors=False in the _rmtree_unsafe

[issue15043] test_gdb is disallowed by default security settings in Fedora 17

2012-06-11 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: Running test_gdb on Fedora 17 produces a litany of the following error: - warning: File /home/ncoghlan/devel/py3k/python-gdb.py auto-loading has been declined by your `auto-load safe-path' set to

[issue15043] test_gdb is disallowed by default security settings in Fedora 17

2012-06-11 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: In addition, we should probably report this as a test skip rather than as a litany of test failures. -- components: +Tests ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15043

[issue15044] _dbm not building on Fedora 17

2012-06-11 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: After upgrading from Fedora 16 - 17, my previously working trunk build is getting the following error: Building '_dbm' extension gcc -pthread -fPIC -Wno-unused-result -g -O0 -Wall -Wstrict-prototypes -DHAVE_NDBM_H -IInclude -I. -I./Include

[issue13857] Add textwrap.indent() as counterpart to textwrap.dedent()

2012-06-11 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 6f7afe25d681 by Nick Coghlan in branch 'default': Close #13857: Added textwrap.indent() function (initial patch by Ezra http://hg.python.org/cpython/rev/6f7afe25d681 -- nosy: +python-dev resolution: - fixed

[issue10469] test_socket fails using Visual Studio 2010

2012-06-11 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: This has been fixed with the proper 2010 support -- resolution: - fixed status: open - closed superseder: - Support Visual Studio 2010 ___ Python tracker rep...@bugs.python.org

[issue13857] Add textwrap.indent() as counterpart to textwrap.dedent()

2012-06-11 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Ezra (and anyone interested) may want to take a look at the checked in version to see some of the changes I made while preparing the patch for commit. - name changes and slight restructure as discussed on the review - splitlines() invocation

[issue10854] Output .pyd name in error message of ImportError when DLL load fails

2012-06-11 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Brian, reopening this since the original issue isn't addressed: The path and module attributes aren't part of the error repr -- status: closed - open ___ Python tracker

[issue15045] Make textwrap.dedent() consistent with str.splitlines(True) and str.strip()

2012-06-11 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: In working on #13857, I noticed that the current regex based implementation of textwrap.dedent() is limited specifically to ASCII whitespace (tabs and spaces) with Unix line endings (a line containing solely a Windows \r\n line ending will

[issue13857] Add textwrap.indent() as counterpart to textwrap.dedent()

2012-06-11 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13857 ___

[issue11445] python.exe on OS X shared-llbrary build erroneously linked to MacPorts python library

2012-06-11 Thread Samuel John
Changes by Samuel John pyt...@samueljohn.de: -- nosy: +samueljohn ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11445 ___ ___ Python-bugs-list

[issue10133] multiprocessing: conn_recv_string() broken error handling

2012-06-11 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 60a7b704de5c by Richard Oudkerk in branch '2.7': Issue #10133: Make multiprocessing deallocate buffer if socket read fails. http://hg.python.org/cpython/rev/60a7b704de5c New changeset 5643697070c0 by Richard Oudkerk

[issue13756] Python3.2.2 make fail on cygwin

2012-06-11 Thread Jason Tishler
Jason Tishler ja...@tishler.net added the comment: I offer the attached patch for consideration. AFAICT, only the Makefile.pre.in and build_ext.py changes are required. I included the makesetup change for completeness and to be consistent with the other changes. -- keywords: +patch

[issue15046] Missing cast to Py_ssize_t in socket_connection.c

2012-06-11 Thread Marco den Otter
New submission from Marco den Otter marco.den.ot...@nspyre.nl: In the file socket_connection.c on line 139 a cast to Py_ssize_t is missing for the return value. Is: return res 0 ? res : ulength; Should be return res 0 ? (Py_ssize_t)res : (Py_ssize_t)ulength; Now it can be possible that

[issue14599] Windows test_import failure thanks to ImportError.path

2012-06-11 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: If you look at line 127 in importlib/_bootstrap.py you will see that it is an os.open() call to open the bytecode file for exclusive writing. I'm willing to bet the buildbot didn't have the directory writable or something and that triggered the

[issue10133] multiprocessing: conn_recv_string() broken error handling

2012-06-11 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: Thanks for the patch, I have applied it. (I don't think there was a problem with the promotion rules because res was a never converted to UINT32.) -- resolution: - fixed stage: - committed/rejected status: open - closed

[issue8028] self.terminate() from a multiprocessing.Process raises AttributeError exception

2012-06-11 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: The docs were patched in changeset 9fa52478b32b, so I will close. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10037] multiprocessing.pool processes started by worker handler stops working

2012-06-11 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: -- resolution: - later stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10037 ___

[issue8289] multiprocessing.Process.__init__ pickles all arguments

2012-06-11 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: I don't think there is any problem here since you have control over which arguments you pass to __init__. Without a reason why that is not a solution I will eventually close the issue as rejected. -- resolution: - rejected stage:

[issue12897] Support for iterators in multiprocessing map

2012-06-11 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: Unless you have a reason why imap() does not solve the problem I will eventually close the issue as rejected. -- resolution: - rejected stage: - committed/rejected status: open - pending ___

[issue14499] Extension module builds fail with Xcode 4.3 on OS X 10.7 due to SDK move

2012-06-11 Thread Samuel John
Changes by Samuel John pyt...@samueljohn.de: -- nosy: +samueljohn ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14499 ___ ___ Python-bugs-list

[issue12897] Support for iterators in multiprocessing map

2012-06-11 Thread andrew cooke
andrew cooke and...@acooke.org added the comment: hi - i'm the original author (may be using a different account). as far as i remember, i raised this because it seemed relevant given the link i gave. if you've looked at the issue and think your approach would work, or that this should be

[issue8289] multiprocessing.Process.__init__ pickles all arguments

2012-06-11 Thread Ram Rachum
Ram Rachum r...@rachum.com added the comment: I opened this issue 2 years ago, and I don't remember it being easily solvable back then. But I've long forgotten what the problems were, and I've lost personal interest in it, so I guess we'll just let it go. -- status: pending - open

[issue3518] multiprocessing: BaseManager.from_address documented but doesn't exist

2012-06-11 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset c2910971eb86 by Richard Oudkerk in branch 'default': Issue #3518: Remove references to non-existent BaseManager.from_address() http://hg.python.org/cpython/rev/c2910971eb86 -- nosy: +python-dev

[issue8289] multiprocessing.Process.__init__ pickles all arguments

2012-06-11 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: OK, I'll close. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8289 ___

[issue12897] Support for iterators in multiprocessing map

2012-06-11 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: I'll close then. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12897 ___

[issue3518] multiprocessing: BaseManager.from_address documented but doesn't exist

2012-06-11 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: -- stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3518 ___

[issue9527] Add aware local time support to datetime module

2012-06-11 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: This was originally posted on python-dev, but I hope reposting it here will make this issue easier to navigate. With addition of fixed offset timezone class and the timezone.utc instance [0], it is easy to get UTC time as

[issue15046] Missing cast to Py_ssize_t in socket_connection.c

2012-06-11 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This was fixed 3 hours ago, with issue10133 :) -- nosy: +amaury.forgeotdarc resolution: - out of date status: open - closed superseder: - multiprocessing: conn_recv_string() broken error handling

[issue9004] datetime.utctimetuple() should not set tm_isdst flag to 0

2012-06-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Just recommend the astimezone use in the docs and recommend creating tz-aware instances in the first time (i.e. calling now(utc) instead of utcnow()), +1. -- nosy: +eric.araujo ___ Python tracker

[issue15047] Cygwin install (regen) problem

2012-06-11 Thread Jason Tishler
New submission from Jason Tishler ja...@tishler.net: The Cygwin build is failing during make install -- specifically, during the regen step: [snip] mkdir /home/jt/src/cygwin/cygwin-packages/1.7/python3-test/python-3.2.3-1/src/Python-3.2.3/Lib/plat-cygwin cp

[issue15040] stdlib compatability with pypy: mailbox.py

2012-06-11 Thread mattip
mattip matti.pi...@gmail.com added the comment: Revised patch: changes to mailbox.py were not needed for pypy. Someone did a good job with mailbox.py in stdlib 2.7.3 Now the patch only changes tests. The tests in 3.3 are very different, it seems to me there is little that can be reused there.

[issue15040] stdlib compatability with pypy: mailbox.py

2012-06-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah, good. I thought we'd fixed the open/close issues, but I could easily believe we had missed something (especially in Python2). Since the fp stuff is gone in 3, I'd be OK with just applying this. -- versions: -Python 3.2,

[issue14446] Remove deprecated tkinter functions

2012-06-11 Thread Michael Driscoll
Michael Driscoll m...@pythonlibrary.org added the comment: Do I need to do anything else to those patches I submitted? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14446 ___

[issue14927] add Do not supply 'int' argument to random.shuffle docstring

2012-06-11 Thread Michael Driscoll
Michael Driscoll m...@pythonlibrary.org added the comment: I added the extra information to the docstring for the shuffle method and attached a patch. -- keywords: +patch nosy: +michael.driscoll Added file: http://bugs.python.org/file25938/shuffle.patch

[issue14927] add Do not supply 'int' argument to random.shuffle docstring

2012-06-11 Thread Christopher Smith
Christopher Smith smi...@users.sourceforge.net added the comment: On Tue, Jun 12, 2012 at 1:34 AM, Michael Driscoll rep...@bugs.python.org wrote: Michael Driscoll m...@pythonlibrary.org added the comment: I added the extra information to the docstring for the shuffle method and attached a

[issue14906] rotatingHandler WindowsError

2012-06-11 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: It could be a number of things which are keeping the file open, e.g. * Windows indexing the volume for search * Child process keeping files open (e.g. while copying log files - I can't tell what you're actually copying) You may need to

[issue13756] Python3.2.2 make fail on cygwin

2012-06-11 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: Hi Jason, if you look in default rule you will see the same, so this relict specific else case could be removed. Also in Lib/packaging/command/build_ext.py. -- nosy: +rpetrov ___ Python

[issue14599] Windows test_import failure thanks to ImportError.path

2012-06-11 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: There is one long standing issue with length of the build path ... -- nosy: +rpetrov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14599

[issue14966] Fully document subprocess.CalledProcessError

2012-06-11 Thread Michael Driscoll
Michael Driscoll m...@pythonlibrary.org added the comment: I don't see the error, TimeoutExpired, documented either. At least the doc page mentions CalledProcessError a couple times. Do we want to use the docstring for CalledProcessError for the documentation page? Where on the page would it

[issue15041] tkinter documentation: update see also list

2012-06-11 Thread Michael Driscoll
Michael Driscoll m...@pythonlibrary.org added the comment: I thought the ebook, Modern Tkinter for Busy Python Developers by Mark Roseman was pretty good too: http://www.amazon.com/Modern-Tkinter-Python-Developers-ebook/dp/B0071QDNLO/ref=sr_1_1?ie=UTF8qid=1339446684sr=8-1 -- nosy:

[issue13532] In IDLE, sys.stdout.write and sys.stderr can write any pickleable object

2012-06-11 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: @Ramchandra: __name__ does not exist for many objects. This issue with the sys.stdout.write encompasses a lot of other issues involving the shortcomings of the RPCProxy object. The following code prevents another prompt from appearing:

[issue14599] Windows test_import failure thanks to ImportError.path

2012-06-11 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Roumen, what issue is that? Do you have an issue # you can share? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14599 ___

[issue14446] Remove deprecated tkinter functions

2012-06-11 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: Michael Driscoll, thank you for patch. Let's go on after Python 3.3 release — those patches should be applied for 3.4. For now we need to wait. -- ___ Python tracker rep...@bugs.python.org

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread James Kyle
New submission from James Kyle b...@jameskyle.org: This behavior is present on OS X 10.7 and framework builds. In this case, the /Library/Python/version paths are included in every install. I would consider this behavior non-standard as in most manual python installs only that installations

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: This is intentional behavior, you can install packages you want to share between python installations in /Library/Python instead of the regular site-packages directory. Macports could always patch their site.py file to avoid this.

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: This was added in issue4865. (The same behavior is present in 3.2 and 3.3) -- resolution: - rejected versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15048 ___ ___

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread James Kyle
James Kyle b...@jameskyle.org added the comment: Am I missing something or were the problems delineated in issue #4865 solvable by simply sys.path.append(/Library/Python/2.7/site-packages)? What would the process be for reopening this issue for discussion? I'm not sure this is the right way

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Python installation are already not isolated: there is a per-user site-packages directory on all platforms that is shared between all installations of a particular python release. This directory is located in a subdirectory of ~/.local

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread James Kyle
James Kyle b...@jameskyle.org added the comment: Fair enough. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15048 ___ ___

[issue14599] Windows test_import failure thanks to ImportError.path

2012-06-11 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Brett, I reopened this because you said earlier that the test_reprlib failure is due to a race condition where an invalidate_caches() call is needed. You're quite right of course that the new occurrence could be caused by something

[issue1667546] Time zone-capable variant of time.localtime

2012-06-11 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: Reopening. given the uncertainty with #9527, this issue may result in getting the TZ-aware local time support in stdlib sooner. -- resolution: duplicate - stage: committed/rejected - patch review status: closed -

[issue14927] add Do not supply 'int' argument to random.shuffle docstring

2012-06-11 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14927 ___ ___

[issue14927] add Do not supply 'int' argument to random.shuffle docstring

2012-06-11 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14927 ___ ___

[issue15049] line buffering isn't always

2012-06-11 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: rdmurray@hey:~/python/p32cat bad.py This line is just ascii A second line for good measure. This comment contains undecodable stuff: � or \\xe9 in pass� cannot be decoded. The last line above is in latin-1, with an é

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I have to admit that I'm not keen on this feature for the reasons James cited. And I think the example of the shared user site directory is not a good analogy. In that case, you, as a user, have more control over the presence and contents of the

[issue9527] Add aware local time support to datetime module

2012-06-11 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: Two objections have been raised to the proposed datetime.localtime() function: 1. It offers the third subtly different way to obtain current time in datetime module. The first two being provided by datetime.now() and

[issue9527] Add aware local time support to datetime module

2012-06-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: Added file: http://bugs.python.org/file25940/testtz.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9527 ___

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread Ned Deily
Ned Deily n...@acm.org added the comment: A few more thoughts. The original impetus for this feature was Issue4865. The use case there seem to be from users of Google App Engine back when it was released using Python 2.5. It seems to me that the use of dmg installers for Python packages has

[issue9527] Add aware local time support to datetime module

2012-06-11 Thread James Henstridge
James Henstridge ja...@jamesh.id.au added the comment: One problem I can see with using a fixed offset tzinfo for localtime is that it might confuse people when doing date arithmetic. For example: d = datetime.localtime() + timedelta(days=7) While it will give a correct answer as a

[issue15003] make PyNamespace_New() public

2012-06-11 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: Is this documented in whatsnew? I'm not sure what has been (none of my patches have done so). Also, I remember a discussion about making it public or not, but don’t recall a decision. Amaury brought it up in msg162127. His point was