Re: Why do I have to use global so much when using Turtle?

2013-09-22 Thread Peter Otten
John Ladasky wrote: Hi, folks, Some of you may remember that I am teaching some high school students how to program. Because they all love graphics, I have been investigating the turtle module, which I gather is built on top of Tk. I can see that real-time applications are possible. I'm

Re: [Savoynet] My sorrow, that I may share it with you

2013-09-22 Thread Chris Angelico
On Sun, Sep 22, 2013 at 7:02 PM, Derrick McCLURE j.d.mccl...@virgin.net wrote: Seriously, folks - a performing group which calls itself a Gilbert and Sullivan Society but doesn't perform Gilbert and Sullivan is in the same category as a fool who doesn't follify or a cock who doesn't crow, and

Re: Antispam measures circumventing

2013-09-22 Thread Jugurtha Hadjar
On 09/20/2013 08:02 PM, Joel Goldstick wrote: Last year I was playing around with django forms and wrote some code that required the user to add some numbers before the form was submitted. Here is the article: http://www.joelgoldstick.com/blog/2012/sep/30/django-forms/ This isn't exactly what

Re: [Savoynet] My sorrow, that I may share it with you

2013-09-22 Thread Steven D'Aprano
On Sun, 22 Sep 2013 19:32:49 +1000, Chris Angelico wrote: On Sun, Sep 22, 2013 at 7:02 PM, Derrick McCLURE j.d.mccl...@virgin.net wrote: Seriously, folks - a performing group which calls itself a Gilbert and Sullivan Society but doesn't perform Gilbert and Sullivan is in the same category as

Re: Why do I have to use global so much when using Turtle?

2013-09-22 Thread Steven D'Aprano
On Sat, 21 Sep 2013 21:39:07 -0700, John Ladasky wrote: Hi, folks, Some of you may remember that I am teaching some high school students how to program. Because they all love graphics, I have been investigating the turtle module, which I gather is built on top of Tk. I can see that

Re: Why do I have to use global so much when using Turtle?

2013-09-22 Thread Ned Batchelder
On 9/22/13 12:39 AM, John Ladasky wrote: For a while, I had a quit function that I bound to the q key: sc.onkeypress(quit, q) The quit function simply printed a message, and then called sc.bye(). As with move_balls, quit wouldn't work unless I had a global sc declaration in it. (My

Re: [Savoynet] My sorrow, that I may share it with you

2013-09-22 Thread Chris Angelico
On Sun, Sep 22, 2013 at 8:25 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sun, 22 Sep 2013 19:32:49 +1000, Chris Angelico wrote: On Sun, Sep 22, 2013 at 7:02 PM, Derrick McCLURE j.d.mccl...@virgin.net wrote: Seriously, folks - a performing group which calls itself a

Re: Sphinx Doctest: test the code without comparing the output.

2013-09-22 Thread Steven D'Aprano
On Sat, 21 Sep 2013 21:15:48 -0700, Luca Cerone wrote: I am looking for a way to test the code while ignoring the output. This makes no sense. If you ignore the output, the code could do ANYTHING and the test would still pass. Raise an exception? Pass. SyntaxError? Pass. Print 99 bottles of

Re: Sphinx Doctest: test the code without comparing the output.

2013-09-22 Thread Ned Batchelder
On 9/22/13 12:09 AM, Luca Cerone wrote: Hi Chris, actually my priority is to check that the code is correct. I changed the syntax during the development, and I want to be sure that my tutorial is up to date. If you do manage to ignore the output, how will you know that the syntax is correct?

Re: reload and work flow suggestions

2013-09-22 Thread rusi
On Sunday, September 22, 2013 3:13:13 AM UTC+5:30, Peter Cacioppi wrote: This is an idea brought over from another post. When I write Python code I generally have 2 or 3 windows open simultaneously. 1) An editor for the actual code. 2) The interactive interpreter. 3) An editor for the

Re: Why do I have to use global so much when using Turtle?

2013-09-22 Thread Nobody
On Sat, 21 Sep 2013 21:39:07 -0700, John Ladasky wrote: However, neither Screen.ontimer() not Screen.onkeypress() appear to give me a way to pass arguments to functions of my own. Why don't they? Is this some limitation of Tk? I have worked with other GUI's before, and I don't remember

Re: Sphinx Doctest: test the code without comparing the output.

2013-09-22 Thread Luca Cerone
This makes no sense. If you ignore the output, the code could do ANYTHING and the test would still pass. Raise an exception? Pass. SyntaxError? Pass. Print 99 bottles of beer? Pass. if you try the commands, you can see that the tests fail.. for example .. doctest:: raise

Re: Sphinx Doctest: test the code without comparing the output.

2013-09-22 Thread Luca Cerone
On Sunday, 22 September 2013 14:39:07 UTC+1, Ned Batchelder wrote: On 9/22/13 12:09 AM, Luca Cerone wrote: Hi Chris, actually my priority is to check that the code is correct. I changed the syntax during the development, and I want to be sure that my tutorial is up to date.

Animations and images with use for commercial license

2013-09-22 Thread andypu
Hello all, I am designing a roleplay game, right now i think i might go into the anime direction and style it accordingly... how do i get animations and images to give it a nice feeling. Where do you get your graphics from for such kind of games do you paint them yourself? --

Re: Animations and images with use for commercial license

2013-09-22 Thread Terry Reedy
On 9/22/2013 1:09 PM, and...@zoho.com wrote: I am designing a roleplay game, right now i think i might go into the anime direction and style it accordingly... how do i get animations and images to give it a nice feeling. Where do you get your graphics from for such kind of games do you paint

Re: What minimum should a person know before saying I know Python

2013-09-22 Thread Gene Heskett
On Sunday 22 September 2013 14:49:21 Dennis Lee Bieber did opine: On Sat, 21 Sep 2013 02:22:59 -0400, Gene Heskett ghesk...@wdtv.com declaimed the following: I was quite pleased to see that there was a Rexx/Regina for linux, and for about 10 minutes thought I could make use of the library

Re: I want to print entry and exit message for functions , i have bunch of such function . How can i do it in decorator.

2013-09-22 Thread bab mis
On Friday, September 20, 2013 6:29:55 PM UTC+5:30, bab mis wrote: def fun: print entry . . print On Friday, September 20, 2013 6:29:55 PM UTC+5:30, bab mis wrote: def fun: print entry . . print exit On Friday, September 20, 2013

Re: Why do I have to use global so much when using Turtle?

2013-09-22 Thread John Ladasky
All right, never mind! I hacked around this morning, making some changes to parts of my program that I thought were unrelated to my namespace issues. I was paring it down to a minimal example, to post here as Ned requested. As an experiment, I also commented out the global declaration line

Re: What minimum should a person know before saying I know Python

2013-09-22 Thread Gene Heskett
On Sunday 22 September 2013 15:46:52 Gene Heskett did opine: On Sunday 22 September 2013 14:49:21 Dennis Lee Bieber did opine: On Sat, 21 Sep 2013 02:22:59 -0400, Gene Heskett ghesk...@wdtv.com declaimed the following: I was quite pleased to see that there was a Rexx/Regina for linux,

python, pythontex and plots

2013-09-22 Thread chitturk
\documentclass[12pt]{article} \usepackage{graphicx} \usepackage{wrapfig} % Allows in-line images \usepackage{pythontex} \setpythontexworkingdir{.} \begin{document} This is an example of using pythontex \begin{pycode} import pylab as p import numpy as np x = np.linspace(0.0,1.0,10) y = 2.0*x +

Re: I want to print entry and exit message for functions , i have bunch of such function . How can i do it in decorator.

2013-09-22 Thread Terry Reedy
On 9/22/2013 2:57 PM, bab mis wrote: def funlog(f): def g(*args,**kw): print enter, f.__name__ try: return f(*args, **kw) finally: print exit, f.__name__ return g class Action: def __init__(self): pass @funlog

Re: Sphinx Doctest: test the code without comparing the output.

2013-09-22 Thread Steven D'Aprano
On Sun, 22 Sep 2013 09:39:07 -0400, Ned Batchelder wrote: On 9/22/13 12:09 AM, Luca Cerone wrote: Hi Chris, actually my priority is to check that the code is correct. I changed the syntax during the development, and I want to be sure that my tutorial is up to date. If you do manage to

Re: Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it?

2013-09-22 Thread alex23
On 20/09/2013 5:01 PM, William Bryant wrote: I have one more question, is there any way I can make my program work on android tablets and ipads? Because I'd like to use it in school because we are learning statistics and we are allowed our devices in school. I'd recommend taking a look at

Re: python, pythontex and plots

2013-09-22 Thread Steven D'Aprano
I don't usually top post, but for this I'll make an exception because I have *no idea* what any of your post means. Are you actually asking a question? I can't see a question mark in it, so there's no explicit question. Are you just sharing something interesting you have learned? Expecting us

Directory Web Site

2013-09-22 Thread worthingtonclinton
Was hoping to get some tips or advice on scripting a program that would sort through my many links on my directory website and print out to me the ones that are broken or no longer functioning so that I could fix or remove them from the site. Any help, ideas, advice will be greatly appreciated.

Re: Tryign to send mail via a python script by using the local MTA

2013-09-22 Thread alex23
On 21/09/2013 11:29 PM, William Ray Wing wrote: Νίκος , You CLEARLY don't understand. Just a public service reminder that Nikos' behaviour is _consistently_ that of his prefered nom de plume: Ferrous Cranus is utterly impervious to reason, persuasion and new ideas, and when engaged in

Re: Directory Web Site

2013-09-22 Thread Joel Goldstick
On Sun, Sep 22, 2013 at 9:14 PM, worthingtonclin...@gmail.com wrote: Was hoping to get some tips or advice on scripting a program that would sort through my many links on my directory website and print out to me the ones that are broken or no longer functioning so that I could fix or remove

Re: Why do I have to use global so much when using Turtle?

2013-09-22 Thread rusi
On Monday, September 23, 2013 12:27:50 AM UTC+5:30, John Ladasky wrote: All right, never mind! I hacked around this morning, making some changes to parts of my program that I thought were unrelated to my namespace issues. I was paring it down to a minimal example, to post here as Ned

Re: Directory Web Site

2013-09-22 Thread Dave Angel
On 22/9/2013 21:14, worthingtonclin...@gmail.com wrote: Was hoping to get some tips or advice on scripting a program that would sort through my many links on my directory website and print out to me the ones that are broken or no longer functioning so that I could fix or remove them from

Re: Directory Web Site

2013-09-22 Thread worthingtonclinton
On Sunday, September 22, 2013 9:36:25 PM UTC-4, Joel Goldstick wrote: On Sun, Sep 22, 2013 at 9:14 PM, worthingt...@gmail.com wrote: Was hoping to get some tips or advice on scripting a program that would sort through my many links on my directory website and print out to me the ones that

Re: Directory Web Site

2013-09-22 Thread worthingtonclinton
On Sunday, September 22, 2013 9:59:14 PM UTC-4, Dave Angel wrote: On 22/9/2013 21:14, worthingtonclin...@gmail.com wrote: Was hoping to get some tips or advice on scripting a program that would sort through my many links on my directory website and print out to me the ones that are

Re: python, pythontex and plots

2013-09-22 Thread chitturk
1) The file is LaTeX 2) the % means LaTeX will ignore it. 3) The question was about using pythontex with LaTeX 4) I included the file so you (OK, others) could see what I was trying 5) The problem had to do with accessing a file name within the python script using \py{outputfile} 6) pythontex

Functional Programming and python

2013-09-22 Thread rusi
Combining your two questions -- Recently: What minimum should a person know before saying I know Python And earlier this On Sunday, August 4, 2013 10:00:35 PM UTC+5:30, Aseem Bansal wrote: If there is an issue in place for improving the lambda forms then that's good. I wanted a link about

Re: python, pythontex and plots

2013-09-22 Thread Steven D'Aprano
chitturk, you will probably get better answers if you actually explain your question rather than writing as if we can read your mind. More comments below: On Sun, 22 Sep 2013 19:16:35 -0700, chitturk wrote: 1) The file is LaTeX 2) the % means LaTeX will ignore it. Shouldn't you ask this on

Re: Python Interview Questions

2013-09-22 Thread elisha . java
On Tuesday, October 30, 2007 12:24:04 PM UTC-7, Tim Chase wrote: I have used Python for a couple of projects last year and I found it extremely useful. I could write two middle size projects in 2-3 months (part time). Right now I am a bit rusty and trying to catch up again with Python.

Re: python, pythontex and plots

2013-09-22 Thread rusi
Take a look at babel http://www.cs.unm.edu/~eschulte/data/CISE-13-3-SciProg.pdf http://orgmode.org/worg/org-contrib/babel/intro.html Its my impression that babel supports everything and more that pylatex does ...the catch is that its under emacs...!! --

[issue19067] Built-in range docstrings are not PEP-8 compatible

2013-09-22 Thread Marco Buttu
New submission from Marco Buttu: The range documentation is not PEP-8 compatible: range.__doc__.splitlines()[-1] 'Returns a virtual sequence of numbers from start to stop by step.' range.__reversed__.__doc__ 'Returns a reverse iterator.' range.index.__doc__.splitlines()[-1] 'Raises

[issue19068] Some built-in complex docstrings are not PEP-8 compatible

2013-09-22 Thread Marco Buttu
New submission from Marco Buttu: As reported in the title: complex.conjugate.__doc__.splitlines()[-1] 'Returns the complex conjugate of its argument. (3-4j).conjugate() == 3+4j.' complex.__format__.__doc__.splitlines()[-1] 'Converts to a string according to format_spec.' They should have

[issue19068] Some built-in complex docstrings are not PEP-8 compatible

2013-09-22 Thread Marco Buttu
Changes by Marco Buttu marco.bu...@gmail.com: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19068 ___ ___ Python-bugs-list

[issue19069] Built-in float docstrings are not PEP-8 compatible

2013-09-22 Thread Marco Buttu
New submission from Marco Buttu: As reported in the title: float.as_integer_ratio.__doc__.splitlines()[2] 'Returns a pair of integers, whose ratio is exactly equal to the original' float.as_integer_ratio.__doc__.splitlines()[4] 'Raises OverflowError on infinities and a ValueError on NaNs.'

[issue19021] AttributeError in Popen.__del__

2013-09-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: When the patch to #12085 is changed, as has been agreed, I think, this issue should go away. Moving the deletion of builtins to later in the shutdown process has be discussed and maybe implemented. -- ___ Python

[issue19001] test_gdb fails on Fedora buildbot

2013-09-22 Thread Nick Coghlan
Nick Coghlan added the comment: My F19 system (which works) shows gdb-7.6-34, while the new debugging output Antoine added shows 7.3.50.20110722-16.fc16 on F16 Maybe the new gdb version check needs to be looking for 7.4+ rather than 7.3+? -- ___

[issue19001] test_gdb fails on Fedora buildbot

2013-09-22 Thread Nick Coghlan
Nick Coghlan added the comment: Hmm, I also noticed some issues with 2.7/3.2 on the RHEL 6 buildbot (similar to those previously reported in issue 15043). I'll keep tinkering with it. -- keywords: +buildbot ___ Python tracker rep...@bugs.python.org

[issue19061] Shelve documentation security warning is not visible

2013-09-22 Thread Georg Brandl
Georg Brandl added the comment: Using the warning directive can be backported from the 3.x docs. For 3.x, it's already prominent enough. Your screen border is not everyone's screen border. -- nosy: +georg.brandl versions: -Python 2.6, Python 3.1, Python 3.2, Python 3.3, Python 3.4,

[issue19061] Shelve documentation security warning is not visible

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: The scope of warning is wrong. It is not a warning for open() call, and that's why it is easy to miss. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19061

[issue19061] Shelve documentation security warning is not visible

2013-09-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1d850260a356 by Georg Brandl in branch '2.7': Closes #19061: make shelve security warning consistent between 2.x and 3.x. http://hg.python.org/cpython/rev/1d850260a356 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected

[issue19061] Shelve documentation security warning is not visible

2013-09-22 Thread Georg Brandl
Georg Brandl added the comment: Oh, please. It's big and red and directly below the open() description, how could you miss it? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19061 ___

[issue19001] test_gdb fails on Fedora buildbot

2013-09-22 Thread Nick Coghlan
Nick Coghlan added the comment: Looks like the RHEL 6 failures may have just been a change on the OS side that reintroduced the need for this old workaround: http://docs.python.org/devguide/faq.html#how-do-i-update-my-auto-load-safe-path-to-allow-test-gdb-to-run I restored that FAQ, applied

[issue19043] Remove detailed listing of all versions from LICENSE, Doc/license.rst

2013-09-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7a8616f21f26 by Georg Brandl in branch '2.7': Closes #19043: remove detailed listing of versions from license files http://hg.python.org/cpython/rev/7a8616f21f26 -- nosy: +python-dev resolution: - fixed stage: patch review -

[issue19043] Remove detailed listing of all versions from LICENSE, Doc/license.rst

2013-09-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 59b6c3280827 by Georg Brandl in branch '3.3': Closes #19043: remove detailed listing of versions from license files http://hg.python.org/cpython/rev/59b6c3280827 -- ___ Python tracker

[issue19070] In place operators of weakref.proxy() not returning self.

2013-09-22 Thread Graham Dumpleton
New submission from Graham Dumpleton: When a weakref.proxy() is used to wrap a class instance which implements in place operators, when one applies the in place operator to the proxy, one could argue the variable holding the proxy should still be a reference to the proxy after the in place

[issue19070] In place operators of weakref.proxy() not returning self.

2013-09-22 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +ncoghlan, tim.peters ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19070 ___ ___

[issue19061] Shelve documentation security warning is not visible

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: On Sun, Sep 22, 2013 at 12:42 PM, Georg Brandl rep...@bugs.python.orgwrote: Oh, please. It's big and red and directly below the open() description, how could you miss it? I believe that it is pretty easy with mobile browser due to screen constraints. Can

[issue19061] Shelve documentation security warning is not visible

2013-09-22 Thread Georg Brandl
Georg Brandl added the comment: I believe that it is pretty easy with mobile browser due to screen constraints. Can you test this on your mobile devices? Sorry, but we don't adapt the docs *content* to any specific device. You should never only read just a screenful in any case. This is

[issue19024] Document asterisk (*), splat or star operator

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: 223 people + me out of 1422 disagree with you both. http://stackoverflow.com/questions/101268/hidden-features-of-python -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19024

[issue19024] Document asterisk (*), splat or star operator

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: To narrow the point of conflict, I say that argument unpacking *operators* should have a prominent place in Python documentation that people can link to. Current page http://docs.python.org/3/tutorial/controlflow.html#unpacking-argument-lists is about

[issue19070] In place operators of weakref.proxy() not returning self.

2013-09-22 Thread Nick Coghlan
Nick Coghlan added the comment: Ouch :P Perhaps the least-incompatible fix would be to switch to returning the proxy if the object returned is the proxied object (which would do the right thing for proxies to mutable objects), while preserving the current behaviour when the in-place

[issue19047] Assorted weakref docs improvements

2013-09-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset caa16423b324 by Nick Coghlan in branch 'default': Close #19047: weakref doc cleanups http://hg.python.org/cpython/rev/caa16423b324 -- nosy: +python-dev resolution: - fixed stage: needs patch - committed/rejected status: open - closed

[issue19021] AttributeError in Popen.__del__

2013-09-22 Thread Oleg Oshmyan
Oleg Oshmyan added the comment: But the thing is, builtins are already supposed to be the very last thing destroyed at shutdown. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19021 ___

[issue19071] Documentation on what self is for module-level functions is misleading/wrong.

2013-09-22 Thread Graham Dumpleton
New submission from Graham Dumpleton: In the documentation for Python 2.X at: http://docs.python.org/2/extending/extending.html#a-simple-example it says: The self argument points to the module object for module-level functions; for a method it would point to the object instance. In

[issue19061] Shelve documentation security warning is not visible

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: On Sun, Sep 22, 2013 at 2:11 PM, Georg Brandl rep...@bugs.python.orgwrote: Georg Brandl added the comment: I believe that it is pretty easy with mobile browser due to screen constraints. Can you test this on your mobile devices? Sorry, but we don't

[issue19024] Document asterisk (*), splat or star operator

2013-09-22 Thread Nick Coghlan
Nick Coghlan added the comment: Unfortunately, there's currently no good place for this kind of detailed syntax reference documentation to go. The library reference doesn't cover syntax, the tutorial doesn't go into detailed semantics, and the language reference is written more for language

[issue19071] Documentation on what self is for module-level functions is misleading/wrong.

2013-09-22 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +loewis, ncoghlan, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19071 ___ ___

[issue19061] Shelve documentation security warning is not visible

2013-09-22 Thread Georg Brandl
Georg Brandl added the comment: me[1] open() function description is a wrong place for warning that is related to a whole module you[2] common, it is visible, that's the point anyway me[3] it is not visible on mobile you[4] we do not support mobile Your complaint was that it is located

[issue19065] sqlite3 timestamp adapter chokes on timezones

2013-09-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: This would be an useful improvement. Do you want to post a patch? See guidelines at http://docs.python.org/devguide/ -- nosy: +belopolsky, ghaering, lemburg, pitrou stage: - needs patch type: - enhancement versions: +Python 3.4 -Python 3.3

[issue19061] Shelve documentation security warning is not visible

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: On Sun, Sep 22, 2013 at 2:57 PM, Georg Brandl rep...@bugs.python.orgwrote: Georg Brandl added the comment: me[1] open() function description is a wrong place for warning that is related to a whole module you[2] common, it is visible, that's the point

[issue18553] os.isatty() is not Unix only

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: I having a snippet to fix that, should I open a new issue for patch? Please open a new issue. Reference is welcome. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18553

[issue18626] Make python -m inspect name meaningful

2013-09-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2e1335245f8f by Nick Coghlan in branch 'default': Close #18626: add a basic CLI for the inspect module http://hg.python.org/cpython/rev/2e1335245f8f -- nosy: +python-dev resolution: - fixed stage: needs patch - committed/rejected status:

[issue18626] Make python -m inspect name meaningful

2013-09-22 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks for the initial patch Claudiu - I tweaked it a bit before committing it. * as you suggested, displaying the source is the default, with a --details option to display the formatted info instead * changed the displayed details (e.g. only displaying the

[issue19072] classmethod doesn't honour descriptor protocol of wrapped callable

2013-09-22 Thread Graham Dumpleton
New submission from Graham Dumpleton: The classmethod decorator when applied to a function of a class, does not honour the descriptor binding protocol for whatever it wraps. This means it will fail when applied around a function which has a decorator already applied to it and where that

[issue19073] Inability to specific __qualname__ as a property on a class instance.

2013-09-22 Thread Graham Dumpleton
New submission from Graham Dumpleton: Python 3 introduced __qualname__. This attribute exists on class types and also instances of certain class types, such as functions. For example: def f(): pass print(f.__name__) print(f.__qualname__) class Class: pass print(Class.__name__)

[issue19073] Inability to specific __qualname__ as a property on a class instance.

2013-09-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: I guess this would be a harmless improvement in any case. -- nosy: +pitrou stage: - needs patch type: behavior - enhancement versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue4366] cannot find -lpythonX.X when building Python on FreeBSD with --enable-shared

2013-09-22 Thread koobs
koobs added the comment: Attaching an initial patch with the following changes: - Update comment - Add original (#1600860) and current issue ID references - Remove sys.platform conditional - Remove NOOP sysconfig.get_config_var call (Reported by: birkenfeld) This results in all platforms

[issue18978] Allow urllib.request.Request subclasses to override method

2013-09-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6d6d68c068ad by Jason R. Coombs in branch 'default': Issue #18978: Allow Request.method to be defined at the class level. http://hg.python.org/cpython/rev/6d6d68c068ad New changeset 2b2744cfb08f by Jason R. Coombs in branch 'default': Issue #18978:

[issue19074] Add PySide to GUI FAQ

2013-09-22 Thread anatoly techtonik
New submission from anatoly techtonik: http://docs.python.org/2/faq/gui.html - this page misses info about PySide. -- assignee: docs@python components: Documentation messages: 198279 nosy: docs@python, techtonik priority: normal severity: normal status: open title: Add PySide to GUI FAQ

[issue18978] Allow urllib.request.Request subclasses to override method

2013-09-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7f13d5ecf71f by Jason R. Coombs in branch 'default': Issue #18978: Update docs to reflect explicitly the ability to set the attribute at the class level. http://hg.python.org/cpython/rev/7f13d5ecf71f --

[issue18986] Add a case-insensitive case-preserving dict

2013-09-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: I just want to say thanks for working on this. I also have needed this functionality for various needs in the past. To fulfill my needs, I wrote this implementation:

[issue19064] can't run py3 benchmarks

2013-09-22 Thread Brett Cannon
Brett Cannon added the comment: ``python3 perf.py -fb mako_v2 ../opt/python ../x32opt/python`` obviously assuming you are specifying Python 3 interpreters. =) Feel free to tweak any docs you think should be touched up to make that more obvious. -- assignee: brett.cannon - pitrou

[issue19064] can't run py3 benchmarks

2013-09-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well... It wasn't really obvious to me :-) Why shouldn't the child interpreter decide which lib to use, though? perf.py is just an executable script (and its shebang specifies python, not python3). -- ___ Python

[issue19074] Add PySide to GUI FAQ

2013-09-22 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- priority: normal - low stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19074 ___

[issue19074] Add PySide to GUI FAQ

2013-09-22 Thread Brett Cannon
Brett Cannon added the comment: I say we just delete that page. Trying to keep up with GUI toolkits is a losing battle (as shown by this bug report) and not worth our time and effort to try to maintain. Search engines are your friend in this instance. -- nosy: +brett.cannon

[issue19064] can't run py3 benchmarks

2013-09-22 Thread Brett Cannon
Brett Cannon added the comment: Originally that didn't work too well because the benchmark suite could run Python 2 and Python 3 benchmarks simultaneously, but I don't know if that still works after the 2/3 merge. As for having interpreter under test make the choice of what version to use is

[issue19074] Add PySide to GUI FAQ

2013-09-22 Thread Christian Heimes
Christian Heimes added the comment: The wiki is probably a better place for such information. -- nosy: +christian.heimes versions: -Python 2.6, Python 3.1, Python 3.2, Python 3.5 ___ Python tracker rep...@bugs.python.org

[issue15329] clarify which deque methods are thread-safe

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: So, is deque a faster replacement for Queue.Queue or not? -- nosy: +techtonik ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15329 ___

[issue19065] sqlite3 timestamp adapter chokes on timezones

2013-09-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Sounds like a reasonable request, but the proposed code does not seem to work for the Eastern hemisphere (negative tz offsets.) I am not very familiar with sqlite module. What timestamp format does it use? Isn't it some varian of ISO 3339? See issue

[issue19024] Document asterisk (*), splat or star operator

2013-09-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: The StackOverflow question and answer about function calls is 5 years old and therefore out of date with respect to #12531, which specifically added index entries for function calls. Perhaps my Python 3 symbol glossary Python3 Syntax Symbol Uses

[issue19022] Improve handling of type.__abstractmethods__ descriptor

2013-09-22 Thread Daniel Urban
Daniel Urban added the comment: I like the 3rd alternative the most. It seems to me, that __abstractmethods__ is currently an undocumented implementation detail of ABCs. The 1st alternative would cause every type to have an empty __abstractmethods__ (which is technically correct, but probably

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

2013-09-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: See also #5907. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1820 ___ ___ Python-bugs-list mailing

[issue1185124] pydoc doesn't find all module doc strings

2013-09-22 Thread Sunny
Sunny added the comment: I've rewritten the source_synopsis function to use the tokenize module. It should now work with triple single quotes and hopefully all the other cases where __doc__ returns a string. Since tokenize.tokenize needs a file object that is opened in binary mode, in the

[issue19074] Add PySide to GUI FAQ

2013-09-22 Thread anatoly techtonik
anatoly techtonik added the comment: If only wiki had a theme like Sphinx docs.. But I agree that static FAQ look dead compared to wiki or stackoverflow. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19074

[issue19074] Add PySide to GUI FAQ

2013-09-22 Thread Eli Bendersky
Eli Bendersky added the comment: +1 to delete -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19074 ___ ___ Python-bugs-list

[issue19075] Add sorting algorithm visualization to turtledemo

2013-09-22 Thread Jason Yeo
New submission from Jason Yeo: My university uses python to teach sorting algorithms. It will be great if the turtledemo comes with a visualization of some of the algorithms. I have attached a patch for it. -- components: Demos and Tools files: animation.diff keywords: patch messages:

[issue19075] Add sorting algorithm visualization to turtledemo

2013-09-22 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19075 ___ ___ Python-bugs-list

[issue19075] Add sorting algorithm visualization to turtledemo

2013-09-22 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +gregorlingl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19075 ___ ___

[issue19047] Assorted weakref docs improvements

2013-09-22 Thread Richard Oudkerk
Richard Oudkerk added the comment: Thanks for the doc cleanup -- I am rather busy right now. Note that stuff does still get replaced by None at shutdown, and this can still produce errors, even if they are much harder to trigger. If I run the following program import _weakref import

[issue18967] Find a less conflict prone approach to Misc/NEWS

2013-09-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: +lots on ending News Merge Hell. After too many bad experiences, I now avoid pushing non-Idle patches that require a News entry. Even for those who do not mind merge conflicts, there is still the waste of time. The premise of non-checkout code management is

[issue16038] ftplib: unlimited readline() from connection

2013-09-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Okay, this one is quite odd. It's definitely a timing issue. If I put a `import time; time.sleep(1)` at the beginning of test_retrlines_too_line() -- i.e. first line of the method -- then the test reliably passes. If I put a `print(len(line))` just before

[issue16039] imaplib: unlimited readline() from connection

2013-09-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Looks good for 2.6. The NEWS file hunk doesn't apply, but I'll fix that when I commit this to 2.6. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16039

[issue16039] imaplib: unlimited readline() from connection

2013-09-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4190568ceda0 by Barry Warsaw in branch '2.6': - Issue #16039: CVE-2013-1752: Change use of readline in imaplib module to http://hg.python.org/cpython/rev/4190568ceda0 -- nosy: +python-dev ___ Python

[issue16039] imaplib: unlimited readline() from connection

2013-09-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Since the merge 2.6 - 2.7 did not apply cleanly, and had other problems. I null merged the 2.6 changes. I'll leave it to Benjamin to work out whatever patches 2.7 needs. -- versions: -Python 2.6 ___ Python

  1   2   >