Re: Which way is best to execute a Python script in Excel?

2012-07-06 Thread Terry Reedy
On 7/5/2012 10:30 PM, Karim wrote: An excellent link to derived all code example to python: http://www.pitonyak.org/AndrewMacro.sxw. Even though he only writes in OOBasic, you are right that he explains the basic concepts needed for accessing the api from any language. He is also honest.

Re: Question about weakref

2012-07-06 Thread Frank Millman
On 05/07/2012 19:47, Dieter Maurer wrote: Frank Millmanfr...@chagford.com writes: I would still like to know why weakref.proxy raised an exception. I have re-read the manual several times, and googled for similar problems, but am none the wiser. In fact, it is documented. Accessing a proxy

Re: Discussion on some Code Issues

2012-07-06 Thread Peter Otten
subhabangal...@gmail.com wrote: [Please don't top-post] start = 0 for match in re.finditer(r\$, data): end = match.start() print(start, end) print(data[start:end]) start = match.end() That is a nice one. I am thinking if I can write for lines in f sort of code that is

Re: Apology for OT posts

2012-07-06 Thread Chris Angelico
On Fri, Jul 6, 2012 at 3:30 PM, Simon Cropper simoncrop...@fossworkflowguides.com wrote: bet this kills the conservation though... Probably. Until someone trolls the list again and sets us all going... I'm another of the worst perps, so in the words of Pooh-Bah, I desire to associate myself

Re: Which way is best to execute a Python script in Excel?

2012-07-06 Thread Maurizio Spadaccino
Hi Emile Thanks for the reply. Could you provide me a more detailed 'how-to' tutorial on implementing a VBA macro that calls a script or a function from python, or tell me where on the web I can find it? The OReilly chapter seems a bit hard for me at this stage? I dont know, for example, where

Re: Apology for OT posts

2012-07-06 Thread Mark Lawrence
On 06/07/2012 08:45, Chris Angelico wrote: On Fri, Jul 6, 2012 at 3:30 PM, Simon Cropper simoncrop...@fossworkflowguides.com wrote: bet this kills the conservation though... Probably. Until someone trolls the list again and sets us all going... I'm another of the worst perps, so in the words

Re: Re: code review

2012-07-06 Thread lars van gemerden
On Sunday, July 1, 2012 5:48:40 PM UTC+2, Evan Driscoll wrote: On 7/1/2012 4:54, Alister wrote: On Sat, 30 Jun 2012 23:45:25 -0500, Evan Driscoll wrote: If I had seen that in a program, I'd have assumed it was a bug. You would? I have only been using python for 6 - 12 months but in my

stuck in files!!

2012-07-06 Thread Chirag B
i want to kno how to link two applications using python for eg:notepad txt file and some docx file. like i wat to kno how to take path of those to files and run them simultaneously.like if i type something in notepad it has to come in wordpad whenever i run that code. --

RE: tkFileDialogs

2012-07-06 Thread brandon harris
It doesn't matter whether I pass the actual path in or the global variable name. The result is the same. Brandon L. Harris From: Karim [kliat...@gmail.com] Sent: Friday, July 06, 2012 12:42 AM To: brandon harris Subject: Re: tkFileDialogs Le

Re: Which way is best to execute a Python script in Excel?

2012-07-06 Thread Emile van Sebille
On 7/6/2012 1:31 AM Maurizio Spadaccino said... Could you provide me a more detailed 'how-to' tutorial on implementing a VBA macro that calls a script or a function from python, or tell me where on the web I can find it? The OReilly chapter seems a bit hard for me at this stage? I'm not

Re: Creating an instance when the argument is already an instance.

2012-07-06 Thread Olive
On 05 Jul 2012 11:55:33 GMT Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Thu, 05 Jul 2012 12:29:24 +0200, Olive wrote: I am learning python -:) I am creating a new class: package (to analyse the packages database in some linux distros). I have created a class package

Re: stuck in files!!

2012-07-06 Thread Thomas Jollans
On 07/06/2012 01:53 PM, Chirag B wrote: i want to kno how to link two applications using python for eg:notepad txt file and some docx file. like i wat to kno how to take path of those to files and run them simultaneously.like if i type something in notepad it has to come in wordpad whenever i

Re: OAuth 2.0 implementation

2012-07-06 Thread Demian Brecht
Supported provider list (with example code) is now: * Facebook * Google * Foursquare * bitly * GitHub * StackExchange * Instagram Other providers may also be supported out of the box, but have been untested thus far. -- http://mail.python.org/mailman/listinfo/python-list

Re: tkFileDialogs

2012-07-06 Thread Rick Johnson
On Jul 6, 12:22 am, brandon harris brandon.har...@reelfx.com wrote: [...] import tkFileDialog # Won't start in or allow navigation to APPDATA test = tkFileDialog.askdirectory(initialdir='%APPDATA%') # Will start in and navigate to APPDATA test =

Re: Confusing datetime.datetime

2012-07-06 Thread Hans Mulder
On 6/07/12 00:55:48, Damjan wrote: On 05.07.2012 16:10, Damjan wrote: I've been struggling with an app that uses Postgresql/Psycopg2/SQLAlchemy and I've come to this confusing behaviour of datetime.datetime. Also this: #! /usr/bin/python2 # retardations in python's datetime import

Re: simpler increment of time values?

2012-07-06 Thread Rick Johnson
On Jul 5, 12:16 pm, Chris Angelico ros...@gmail.com wrote: So it's even easier than I said. And bonus lesson for the day: Try things in the interactive interpreter before you post. :) but first: be sure to familiarize yourself with the many built-in python classes(sic). Re-inventing the wheel

Re: stuck in files!!

2012-07-06 Thread andrea crotti
2012/7/6 Chirag B chirag.b...@gmail.com: i want to kno how to link two applications using python for eg:notepad txt file and some docx file. like i wat to kno how to take path of those to files and run them simultaneously.like if i type something in notepad it has to come in wordpad whenever i

Issues with `codecs.register` and `codecs.CodecInfo` objects

2012-07-06 Thread Karl Knechtel
Hello all, While attempting to make a wrapper for opening multiple types of UTF-encoded files (more on that later, in a separate post, I guess), I ran into some oddities with the `codecs` module, specifically to do with `.register` ing `CodecInfo` objects. I'd like to report a bug or something,

Re: Question about weakref

2012-07-06 Thread Ian Kelly
On Fri, Jul 6, 2012 at 1:00 AM, Frank Millman fr...@chagford.com wrote: I have investigated a bit further, and now I have a clue as to what is happening, though not a full understanding. If you use 'b = weakref.ref(obj)', 'b' refers to the weak reference, and 'b()' refers to the referenced

Re: Question about weakref

2012-07-06 Thread Ian Kelly
On Fri, Jul 6, 2012 at 11:04 AM, Ian Kelly ian.g.ke...@gmail.com wrote: On that, I'm really not sure. I tried to reproduce the problem locally and wasn't able to. What build of Python are you using, and on what platform? I spoke too soon, I am able to reproduce it. I think what's going on

Re: Question about weakref

2012-07-06 Thread Ian Kelly
On Fri, Jul 6, 2012 at 11:48 AM, Ian Kelly ian.g.ke...@gmail.com wrote: def del_b(self, b): for i, x in enumerate(self.array): if b is x: del self.array[i] That should probably have an explicit break on the end: def del_b(self, b): for i, x

Re: Question about weakref

2012-07-06 Thread Ethan Furman
Ian Kelly wrote: def del_b(self, b): for i, x in enumerate(self.array): if b is x: del self.array[i] break Nice work, Ian. -- http://mail.python.org/mailman/listinfo/python-list

Re: stuck in files!!

2012-07-06 Thread Alex
Chirag B wrote: i want to kno how to link two applications using python for eg:notepad txt file and some docx file. like i wat to kno how to take path of those to files and run them simultaneously.like if i type something in notepad it has to come in wordpad whenever i run that code. Text

Re: OAuth 2.0 implementation

2012-07-06 Thread Alec Taylor
On Sat, Jul 7, 2012 at 1:38 AM, Demian Brecht demianbre...@gmail.com wrote: Supported provider list (with example code) is now: * Facebook * Google * Foursquare * bitly * GitHub * StackExchange * Instagram Other providers may also be supported out of the box, but have been untested

RE: OAuth 2.0 implementation

2012-07-06 Thread Demian Brecht
No worries, thanks for the request. Unfortunately AFAIK (according to the OAuth provider list on Wikipedia), both Twitter and LinkedIn still use OAuth 1.0a, so until they hop on the OAuth 2.0 bandwagon, they won't be added. -Original Message- From: Alec Taylor

Re: OAuth 2.0 implementation

2012-07-06 Thread Alec Taylor
Yeah, seems Twitter is still stuck on 1.0a... But LinkedIn seems to support 1.0a for REST and 2 for JS: https://developer.linkedin.com/apis So that could be a definite contender for Sanction support On Sat, Jul 7, 2012 at 4:49 AM, Demian Brecht demianbre...@gmail.com wrote: No worries, thanks

Re: Which way is best to execute a Python script in Excel?

2012-07-06 Thread Colin J. Williams
On 06/07/2012 1:09 AM, Terry Reedy wrote: On 7/5/2012 10:30 PM, Karim wrote: An excellent link to derived all code example to python: http://www.pitonyak.org/AndrewMacro.sxw. Even though he only writes in OOBasic, you are right that he explains the basic concepts needed for accessing the

API design question for dbf.py

2012-07-06 Thread Ethan Furman
I'm looking for some free advice. ;) My dbf module has three basic containers, all of which support list-like access: Table, List, and Index, each of which is filled with _DbfRecords. The fun part is that a _DbfRecord can compare equal to another _DbfRecord, a _DbfRecordTemplate, a tuple

PyEval_SetProfile usage ?

2012-07-06 Thread Salman Malik
Hi All, I have used the Python's C-API to call some Python code in my c code and now I want to know how much time does my Python part of the program takes. I came across the PyEval_SetProfile API and am not sure how to use it. Do I need to write my own profiling function? Any pointer to

Re: simpler increment of time values?

2012-07-06 Thread Vlastimil Brom
Thanks to all for further comments! Just for completeness and in case somebody would like to provide some suggestions or corrections; the following trivial class should be able to deal with the initial requirement of adding or subtracting dateless time values (hour:minute). regards, vbr # # # #

Re: stuck in files!!

2012-07-06 Thread Chris Angelico
On Sat, Jul 7, 2012 at 4:21 AM, Alex foo@email.invalid wrote: Chirag B wrote: i want to kno how to link two applications using python for eg:notepad txt file and some docx file. like i wat to kno how to take path of those to files and run them simultaneously.like if i type something in

Re: API design question for dbf.py

2012-07-06 Thread MRAB
On 06/07/2012 22:34, Ethan Furman wrote: I'm looking for some free advice. ;) My dbf module has three basic containers, all of which support list-like access: Table, List, and Index, each of which is filled with _DbfRecords. The fun part is that a _DbfRecord can compare equal to another

How to print a number as if in the python interpreter?

2012-07-06 Thread Peng Yu
Hi, In [2]: sum([.1, .1, .1, .1, .1, .1, .1, .1, .1, .1]) Out[2]: 0. In ipython, I got the above output. But I got a different output from print. Is there a way to print exact what I saw in ipython? ~/linux/test/python/man/library/math/fsum$ cat main.py #!/usr/bin/env python

Re: API design question for dbf.py

2012-07-06 Thread Ethan Furman
MRAB wrote: On 06/07/2012 22:34, Ethan Furman wrote: I'm looking for some free advice. ;) My dbf module has three basic containers, all of which support list-like access: Table, List, and Index, each of which is filled with _DbfRecords. The fun part is that a _DbfRecord can compare equal

Re: How to print a number as if in the python interpreter?

2012-07-06 Thread Chris Rebert
On Fri, Jul 6, 2012 at 3:38 PM, Peng Yu pengyu...@gmail.com wrote: Hi, In [2]: sum([.1, .1, .1, .1, .1, .1, .1, .1, .1, .1]) Out[2]: 0. In ipython, I got the above output. But I got a different output from print. Is there a way to print exact what I saw in ipython?

Re: API design question for dbf.py

2012-07-06 Thread Devin Jeanpierre
On Fri, Jul 6, 2012 at 6:46 PM, Ethan Furman et...@stoneleaf.us wrote: It's checking for equality, not identity. x = float('nan') x in [x] True It's checking for equality OR identity. -- Devin -- http://mail.python.org/mailman/listinfo/python-list

Re: API design question for dbf.py

2012-07-06 Thread Ethan Furman
Devin Jeanpierre wrote: On Fri, Jul 6, 2012 at 6:46 PM, Ethan Furman et...@stoneleaf.us wrote: It's checking for equality, not identity. x = float('nan') x in [x] True It's checking for equality OR identity. Good point. In my case, checking for equality will cover both cases.

Re: Issues with `codecs.register` and `codecs.CodecInfo` objects

2012-07-06 Thread Steven D'Aprano
On Fri, 06 Jul 2012 12:55:31 -0400, Karl Knechtel wrote: Hello all, While attempting to make a wrapper for opening multiple types of UTF-encoded files (more on that later, in a separate post, I guess), I ran into some oddities with the `codecs` module, specifically to do with `.register`

What’s the differences between these two pieces of code ?

2012-07-06 Thread iMath
What’s the differences between these two pieces of code ? (1) for i in range(1, 7): print(2 * i, end=' ') (2) for i in range(1, 7): print(2 * i, end=' ') print() when executed both respectively in Python shell ,I get the same effect . Who can tell me why ? --

Re: Question about weakref

2012-07-06 Thread Frank Millman
On 06/07/2012 20:12, Ethan Furman wrote: Ian Kelly wrote: def del_b(self, b): for i, x in enumerate(self.array): if b is x: del self.array[i] break Nice work, Ian. I second that. Thanks very much, Ian. Frank -- http://mail.python.org/mailman/listinfo/python-list

git_revision issues with scipy/numpy/matplotlib

2012-07-06 Thread Stephen Webb
I installed py27-numpy / scipy / matplotlib using macports, and it ran without failing. When I run Python I get the following error: $ which python /Library/Frameworks/Python.framework/Versions/2.7/bin/python $ python Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43) [GCC 4.2.1

Re: What’s the differences between these two pieces of code ?

2012-07-06 Thread Gary Herron
On 07/06/2012 09:56 PM, iMath wrote: What’s the differences between these two pieces of code ? (1) for i in range(1, 7): print(2 * i, end=' ') (2) for i in range(1, 7): print(2 * i, end=' ') print() when executed both respectively in Python shell ,I get the same effect . Who

[issue15261] os.stat(fd) crashes on Windows if fd does not exist

2012-07-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Many os functions started to accept file descriptors. I don't know how many are available on Windows, but IMO _PyVerify_fd() could be used for all of them; it's a no-op macro on Unix anyway. -- nosy: +amaury.forgeotdarc, larry

[issue15262] Idle does not show traceback in other threads

2012-07-06 Thread Mark
New submission from Mark myagn...@students.poly.edu: Consider the following code: from thread import start_new def f(): typo #there is no variable called typo start_new(f, ()) If run from the command line, this produces a traceback. If run from IDLE, it does not. I suspect this is not by

[issue15261] os.stat(fd) crashes on Windows if fd does not exist

2012-07-06 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 62b9bfbc3356 by Richard Oudkerk in branch 'default': Issue #15261: Stop os.stat(fd) crashing on Windows when fd not open. http://hg.python.org/cpython/rev/62b9bfbc3356 -- nosy: +python-dev

[issue15261] os.stat(fd) crashes on Windows if fd does not exist

2012-07-06 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: Many os functions started to accept file descriptors. I don't know how many are available on Windows... On Windows os.stat() seems to be the only one: os.supports_fd {built-in function stat} --

[issue14649] doctest.DocTestSuite error misleading when module has no docstrings

2012-07-06 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14649 ___ ___

[issue14649] doctest.DocTestSuite error misleading when module has no docstrings

2012-07-06 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: I have attached a patch with tests. -- keywords: +easy, patch stage: - patch review Added file: http://bugs.python.org/file26269/issue-14649-1.patch ___ Python tracker rep...@bugs.python.org

[issue15261] os.stat(fd) crashes on Windows if fd does not exist

2012-07-06 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15261 ___

[issue14649] doctest.DocTestSuite error misleading when module has no docstrings

2012-07-06 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14649 ___ ___

[issue15257] Misc/.gdbinit:pystack is too brittle

2012-07-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15257 ___ ___ Python-bugs-list mailing

[issue15263] Guard against invalid file handles in os functions

2012-07-06 Thread Larry Hastings
New submission from Larry Hastings la...@hastings.org: #15261 shows us that Windows can crash if you pass in an invalid file handle to Windows POSIX-y functions. We should ensure that functions which accept path-as-an-int-fd guard against this where necessary. I propose a macro, something

[issue15261] os.stat(fd) crashes on Windows if fd does not exist

2012-07-06 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: The 62b9bfbc3356 changeset does more than add the guard against invalid file handles; it also adds documentation to os.path.exists documenting that it now accepts path-as-int-fd. While this modification is fine in principle I would have

[issue15263] Guard against invalid file handles in os functions

2012-07-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Which other functions are you thinking about? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15263 ___

[issue15263] Guard against invalid file handles in os functions

2012-07-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Windows will also crash if you pass INVALID_HANDLE_VALUE (which is not a file descriptor) to crt functions... How did you want to use this macro? -- ___ Python tracker rep...@bugs.python.org

[issue15255] spam / garbage report

2012-07-06 Thread andisthermal
andisthermal andisthermal@gmail.com added the comment: #!/usr/bin/env python A small wrapper file for parsing AsciiDoc files at Github. __author__ = Devin Weaver __copyright__ = Copyright (C) 2009 Devin Weaver __license__ = Public Domain __version__ = 0.1 github_asciidoc.py

[issue15263] Guard against invalid file handles in os functions

2012-07-06 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Antoine: all the functions enumerated in os.supports_fd. Note that the set of such functions may in fact just be os.stat which is already fixed. Amaury: If you read the checkin that fixes this problem ( 62b9bfbc3356 ) it actually

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-06 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset b7cfdb48af62 by Nick Coghlan in branch 'default': Issue 14814: Better handling of cases where octet/hextet parsing fails, including ensuring that tracebacks are still clean even when calling class constructors

[issue15263] Guard against invalid file handles in os functions

2012-07-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Antoine: all the functions enumerated in os.supports_fd. Note that the set of such functions may in fact just be os.stat which is already fixed. As far as I can tell, it is: os.supports_fd {built-in function stat} --

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-06 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 30e8f2242190 by Nick Coghlan in branch 'default': Issue 14814: Eliminate bytes warnings from ipaddress by correctly throwing an exception early when given bytes data of the wrong length. Also removes 2.x backwards

[issue15263] Guard against invalid file handles in os functions

2012-07-06 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: Every use of _get_osfhandle() should be guarded by _Py_VerifyFd(). Grepping through the source it seems that that is now true, but we could instead use #define _PY_GET_OSFHANDLE(fd) _Py_VerifyFd(fd) ? _get_osfhandle(fd) :

[issue15261] os.stat(fd) crashes on Windows if fd does not exist

2012-07-06 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com added the comment: Sorry about that... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15261 ___ ___

[issue15247] io.open() is inconsistent re os.open()

2012-07-06 Thread Dave King
Changes by Dave King d...@davbo.org: -- nosy: +davbo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15247 ___ ___ Python-bugs-list mailing list

[issue15230] runpy.run_path broken: Breaks scoping; pollutes sys.modules; doesn't set __package__

2012-07-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: “python3 -m /tmp/b” is invalid IIUC. -m takes a module name, not a path. -- nosy: +eric.araujo, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15230

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-07-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: In 2.7 and newer “setup.py check” is a better interface than rst2html. +1 to list all checks performed by PyPI on some wiki or PyPI doc page (and +1 to add the same checks in distutils2’s check command). -- nosy: +eric.araujo

[issue15235] allow newer berkeley db versions

2012-07-06 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- title: allow newer berkley db versions - allow newer berkeley db versions ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15235 ___

[issue15260] Mention how to order Misc/NEWS entries

2012-07-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The whole file is ordered with newest on top (newest Python version), so I guess it’s implicit for all committers that sections are also ordered with newest on top. It does not actually matter; the contents of one “what’s new in Python W.XyZ”

[issue15264] PyErr_SetFromErrnoWithFilenameObject() undocumented

2012-07-06 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Title says it all. -- assignee: docs@python components: Documentation, Interpreter Core messages: 164736 nosy: docs@python, pitrou priority: normal severity: normal stage: needs patch status: open title:

[issue15247] io.open() is inconsistent re os.open()

2012-07-06 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 9cf9527358a5 by Antoine Pitrou in branch '3.2': Issue #15247: FileIO now raises an error when given a file descriptor pointing to a directory. http://hg.python.org/cpython/rev/9cf9527358a5 New changeset

[issue15247] io.open() is inconsistent re os.open()

2012-07-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks, the issue should be fixed now. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15247

[issue15256] Typo in error message

2012-07-06 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15256 ___ ___ Python-bugs-list mailing list

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-07-06 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Éric: your request is in passive voice. I'm not aware that anybody volunteered document the tests, but I doubt that this wiki page can reasonably be kept up-to-date. So the wiki page will outdate just as the current documentation got

[issue15245] ast.literal_eval fails on some literals

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

[issue15256] Typo in error message

2012-07-06 Thread Marc Abramowitz
Marc Abramowitz msabr...@gmail.com added the comment: I think this is just a simple typo and a consistency issue; not a grammatical issue. The misspelled version was added in a recent commit: [last: 0] marca@SCML-MarcA:~/dev/hg-repos/cpython$ hg log -r 76455 changeset: 76455:085cf1480cfe

[issue15248] In TypeError: 'tuple' object is not callable, explain that a comma may be missing

2012-07-06 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: A FAQ entry could be added to explain this error, like we already do for the UnboundLocalError: http://docs.python.org/faq/programming.html#why-am-i-getting-an-unboundlocalerror-when-the-variable-has-a-value -- nosy: +ezio.melotti

[issue15255] spam / garbage report

2012-07-06 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: collinwinter - components: -Benchmarks nosy: -andisthermal555, collinwinter resolution: fixed - invalid status: open - closed type: security - versions: -3rd party ___ Python tracker

[issue15255] spam / garbage report

2012-07-06 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- hgrepos: -138 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15255 ___ ___ Python-bugs-list

[issue15255] spam / garbage report

2012-07-06 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: Removed file: http://bugs.python.org/file26270/query.csv ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15255 ___

[issue15255] spam / garbage report

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

[issue15256] Typo in error message

2012-07-06 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy nosy: +ezio.melotti stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15256 ___

[issue15259] Helping with Documentation references missing dailybuild.py

2012-07-06 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +georg.brandl stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15259 ___

[issue15265] random.sample() docs unclear on k len(population)

2012-07-06 Thread Roy Smith
New submission from Roy Smith r...@panix.com: The docs don't say what happens if you call random.sample() with a population smaller than k. Experimentally, it raises ValueError, but this should be documented. I would have guessed it would return IndexError, by analogy to random.choice().

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-07-06 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Another way to make it easier for users to run the same command as PyPI locally -- also phrased in the passive voice :) -- would be if PyPI packaged its conversion code as a separate module that could also be run as a stand-alone

[issue15256] Typo in error message

2012-07-06 Thread Marc Abramowitz
Marc Abramowitz msabr...@gmail.com added the comment: Attaching patch -- keywords: +patch Added file: http://bugs.python.org/file26271/python_issue_15256.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15256

[issue9458] xml.etree.ElementTree.ElementTree.write(): encoding handling problems

2012-07-06 Thread Dave Abrahams
Dave Abrahams d...@boostpro.com added the comment: I won't get to this, FYI. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9458 ___ ___

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-07-06 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Does the proposed patch to the documentation look okay given the way things are today? I can open an issue on the PyPI tracker to discuss the broader issue or, if you prefer, on the main Python tracker. --

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-07-06 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Chris, can you please submit a contrib form? Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15231 ___

[issue15227] Fatal Python error: PyEval_RestoreThread: NULL tstate on example script..

2012-07-06 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: On 3.3b0, Win7, 64-64 bit, run from IDLE, script brings up empty tk window. Closing it gives prompt back in Shell window. Maslach, can you retry with 2.7.3 (bug fix is generally a good idea anyway) and maybe 64 bit version (you can install

[issue15259] Helping with Documentation references missing dailybuild.py

2012-07-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: It does, in the 2.7 branch. You're welcome to port it to Python 3 and put it into 3.x. I don't see the point though, and rather would have the mention removed from the devguide. -- ___ Python

[issue15259] Helping with Documentation references missing dailybuild.py

2012-07-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: ... because the script is absolutely irrelevant to building or helping with the docs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15259

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-07-06 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: I did yesterday. I will post here when I receive a response. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15231 ___

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-07-06 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Ah, ok. Processing may take some time. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15231 ___

[issue15233] atexit: guarantee order of execution of registered functions?

2012-07-06 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I agree with Raymond. You might, however, emphasize 'normal' in 'normal interpreter termination'. That is the key point. The 'note' merely explains 'abnormal'. -- nosy: +terry.reedy ___ Python

[issue15256] Typo in error message

2012-07-06 Thread Marc Abramowitz
Marc Abramowitz msabr...@gmail.com added the comment: Patch with Brett's comments -- Added file: http://bugs.python.org/file26272/python_issue_15256.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15256

[issue15258] argparse documentation: Improve optparse section regarding allow_interspersed_args

2012-07-06 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: See also issue 14191, which describes the problems of trying to make argparse achieve the goal of the default optparse handling of allow_interspersed_args ! The documentation for that branch of the feature is also seriously incomplete,

[issue14191] argparse: nargs='*' doesn't get out-of-order positional parameters

2012-07-06 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: See also issue 15258 which points out issues with the converse case. Further testing and development also discovered that in certain error cases, the help message produced by t18-equivalent code was incorrect. t18a.py is an

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-07-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ping. The ARM buildbot still fails on test_fs_holes: http://buildbot.python.org/all/builders/ARM%20Ubuntu%203.x/builds/775/steps/test/logs/stdio -- ___ Python tracker rep...@bugs.python.org

[issue4011] Create DAG for PEP 101

2012-07-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I think you can make nice graphs with graphviz if you put effort into it :) -- assignee: georg.brandl - larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4011

[issue15266] Provide an easy way to check a reST long_description for PyPI

2012-07-06 Thread Chris Jerdonek
New submission from Chris Jerdonek chris.jerdo...@gmail.com: There should be an easy way to check a reST long_description on one's local machine before uploading to PyPI. The check should use the same rules that PyPI uses, so that passing the check locally ensures that PyPI will convert the

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-07-06 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: I created issue 15266 for the broader issue. The corresponding issue I made earlier on the PyPI tracker is also referenced there. -- ___ Python tracker rep...@bugs.python.org

  1   2   >