Re: Understanding and dealing with an exception

2012-10-14 Thread Mark Lawrence
On 14/10/2012 05:23, Vincent Davis wrote: I am working on a script to find bad image files. I am using PIL and specifically image.verify() I have a set of known to be bad image files to test. I also what to be able to test any file for example a .txt and deal with the exception. Currently my

python game develop:framework?

2012-10-14 Thread nepaul
Something good framwork? -- http://mail.python.org/mailman/listinfo/python-list

Re: Understanding and dealing with an exception

2012-10-14 Thread Terry Reedy
On 10/14/2012 4:20 AM, Mark Lawrence wrote: You've already had some advice so I'll just point out that a bare except is a bad idea as you wouldn't even be able to catch a user interrupt. Try (groan!) catching StandardError instead. There are some bare except:s in the stdlib, that adding

Re: python game develop:framework?

2012-10-14 Thread Steven D'Aprano
On Sun, 14 Oct 2012 01:58:57 -0700, nepaul wrote: Something good framwork? http://duckduckgo.com/?q=python+%2Bgame+frameworks http://duckduckgo.com/?q=python+%2Bgame+libraries http://blekko.com/ws/?q=python%20game%20framework -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: __builtins__ thread-safe / __builtins__ as function?

2012-10-14 Thread Juergen Bartholomae
One possible solution is to somehow redirect every __builtins__ to a function that returns a different __builtins__ dictionary for each thread (such a function already exists). How exactly does the code reference it? If they're simply referring to the name __builtins__ at module level, you

Re: python game develop:framework?

2012-10-14 Thread Jason Benjamin
Pygame is my favorite. It's mature, has good documentation, and has lots of unfinished and finished games on its website. It also supports OpenGL. http://www.pygame.org/ On 10/14/2012 01:58 AM, nepaul wrote: Something good framwork? -- http://mail.python.org/mailman/listinfo/python-list

Re: python game develop:framework?

2012-10-14 Thread LeBas
On 2012-10-14 08:58:57 +, nepaul said: Something good framwork? I just want to sencond PyGame. It's compelling with a good user base and has development activity e.g. patches and improvements etc. are provided. -- http://mail.python.org/mailman/listinfo/python-list

Re: Understanding and dealing with an exception

2012-10-14 Thread Mark Lawrence
On 14/10/2012 11:06, Terry Reedy wrote: On 10/14/2012 4:20 AM, Mark Lawrence wrote: You've already had some advice so I'll just point out that a bare except is a bad idea as you wouldn't even be able to catch a user interrupt. Try (groan!) catching StandardError instead. There are some bare

LinkedIn Python group discussions

2012-10-14 Thread Mark Lawrence
I've been sparked into raising the subject as this has just come up Does Jython/Python fall short of true POSIX thread parallelism?. I'm not qualified to comment and I recognise relatively few names amongst the people who do participate over there. The last thing I'd want would be FUD or

Re: Feedback on my python framework I'm building.

2012-10-14 Thread Roy Smith
In article 507a3365$0$6574$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Remember using PEEK and POKE commands with BASIC back in 1978? Pretty much impossible in Python. But, trivial to implement as an extension :-) --

Re: __builtins__ thread-safe / __builtins__ as function?

2012-10-14 Thread Chris Angelico
On Sun, Oct 14, 2012 at 9:36 PM, Juergen Bartholomae bartholomae.juer...@googlemail.com wrote: Unfortunately, replacing __builtins__ at import time won't do, because external modules (that is, .py) get imported only once when they are accessed by the first thread, which includes (of course)

Re: Understanding and dealing with an exception

2012-10-14 Thread MRAB
On 2012-10-14 05:23, Vincent Davis wrote: I am working on a script to find bad image files. I am using PIL and specifically image.verify() I have a set of known to be bad image files to test. I also what to be able to test any file for example a .txt and deal with the exception. Currently my

pyw program not displaying unicode characters properly

2012-10-14 Thread jjmeric
Hi everybody ! Our language lab at INALCO is using a nice language parsing and analysis program written in Python. As you well know a lot of languages use characters that can only be handled by unicode. Here is an example of the problem we have on some Windows computers. In the attached

Re: pyw program not displaying unicode characters properly

2012-10-14 Thread Alain Ketterlin
jjmeric jjme...@free.fr writes: Our language lab at INALCO is using a nice language parsing and analysis program written in Python. As you well know a lot of languages use characters that can only be handled by unicode. Here is an example of the problem we have on some Windows computers.

Re: pyw program not displaying unicode characters properly

2012-10-14 Thread MRAB
On 2012-10-14 17:55, jjmeric wrote: Hi everybody ! Our language lab at INALCO is using a nice language parsing and analysis program written in Python. As you well know a lot of languages use characters that can only be handled by unicode. Here is an example of the problem we have on some

Re: Understanding and dealing with an exception

2012-10-14 Thread Vincent Davis
Yes afile is the file name and extension, ifile is the full file name and path. Thanks Vincent On Sunday, October 14, 2012, MRAB wrote: On 2012-10-14 05:23, Vincent Davis wrote: I am working on a script to find bad image files. I am using PIL and specifically image.verify() I have a set of

Re: pyw program not displaying unicode characters properly

2012-10-14 Thread jjmeric
Alain, MRAB Thank you for prompt responses. What they suggest to me is I should look into what font is being used by this Python for Windows program. I am not the programmer, so not idea where to look for. The program settings do not include a choice for display font. The font that used for

Re: Understanding http proxies

2012-10-14 Thread Tim Roberts
Olive di...@bigfoot.com wrote: it seems when I read the code above that the proxy acts mostly as an orinary server with respect to the client except that it is supposed to receive the full URL instead of just the path. Am I right? Is there any documentation on what an http proxy is supposed to

Tkinter how to access the widget by name

2012-10-14 Thread Владимир Пылев
I'm a little teapot ... himself the question: if I want to appeal to the widget, knowing his name... ? # appropriated the name of the widget label = Label(frame, width = 40, text='text', name = 'name') ... name_='name' configure(name_) ... def configure(name_) #And how can that be?

Re: pyw program not displaying unicode characters properly

2012-10-14 Thread Roy Smith
In article mailman.2178.1350235875.27098.python-l...@python.org, MRAB pyt...@mrabarnett.plus.com wrote: Which codepoint is it? What is the codepoint's name? Here's how to find out: hex(ord(?)) '0x190' import unicodedata unicodedata.name(?) 'LATIN CAPITAL LETTER OPEN E' Wow, I

Re: pyw program not displaying unicode characters properly

2012-10-14 Thread Steven D'Aprano
On Sun, 14 Oct 2012 19:19:33 +0200, Alain Ketterlin wrote: Usenet has no attachments. *snarfle* You almost owed me a new monitor. I nearly sprayed my breakfast all over it. Usenet has no attachments -- that's like saying that the Web has no advertisements. Maybe the websites you visit have

Re: pyw program not displaying unicode characters properly

2012-10-14 Thread Ian Kelly
On Sun, Oct 14, 2012 at 1:36 PM, jjmeric jjme...@free.fr wrote: Is there some sort of defaut font, or is there in Python or Python for Windows any ini file where the font used can be seen, eventually changed to a more appropriate one with all the required glyphs (like Lucida Sans Unicode has).

Use the appropriate forum for recruitment (was: Client Needs Linux Admin position in Pleasanton, CA)

2012-10-14 Thread Ben Finney
ram dev ramdevtech.net...@gmail.com writes: Good Day, We have an urgent Contract Opening in Pleasanton, CA. Please don't use this discussion forum for recruitment. For Python job recruiters and seekers, we have a separate Python Job Board URL:http://www.python.org/community/jobs/. Job

Re: pyw program not displaying unicode characters properly

2012-10-14 Thread jjmeric
In article mailman.2180.1350249596.27098.python-l...@python.org, ian.g.ke...@gmail.com says... On Sun, Oct 14, 2012 at 1:36 PM, jjmeric jjme...@free.fr wrote: Is there some sort of defaut font, or is there in Python or Python for Windows any ini file where the font used can be seen,

Re: trouble with nested closures: one of my variables is missing...

2012-10-14 Thread Cameron Simpson
On 13Oct2012 22:07, Chris Rebert c...@rebertia.com wrote: | On Saturday, October 13, 2012, Cameron Simpson wrote: | I'm having some trouble with closures when defining a decorator. | snip | | However, I can't make my make_file_property function work. I've stripped | the code down and it does

Re: Aggressive language on python-list

2012-10-14 Thread Ben Finney
Zero Piraeus sche...@gmail.com writes: I'm a mostly passive subscriber to this list - my posts here over the years could probably be counted without having to take my socks off - so perhaps I have no right to comment, but I've noticed a marked increase in aggressive language here lately, so

Re: Feedback on my python framework I'm building.

2012-10-14 Thread Dave Angel
On 10/14/2012 08:48 AM, Roy Smith wrote: In article 507a3365$0$6574$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Remember using PEEK and POKE commands with BASIC back in 1978? Pretty much impossible in Python. But, trivial to implement as

Re: Feedback on my python framework I'm building.

2012-10-14 Thread MRAB
On 2012-10-14 23:38, Dave Angel wrote: On 10/14/2012 08:48 AM, Roy Smith wrote: In article 507a3365$0$6574$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Remember using PEEK and POKE commands with BASIC back in 1978? Pretty much impossible in

Re: Aggressive language on python-list

2012-10-14 Thread alex23
On Oct 14, 3:39 pm, Dwight Hutto dwightdhu...@gmail.com wrote: I'm not a know it all, but when attacked personally I defend myself, and those can turn into flame wars. I'm not wanting this to turn into another round of flames, but I do want to highlight that there's a big difference between

Re: trouble with nested closures: one of my variables is missing...

2012-10-14 Thread Ian Kelly
On Sun, Oct 14, 2012 at 3:54 PM, Cameron Simpson c...@zip.com.au wrote: | You assign to it, but there's no nonlocal declaration, so Python thinks | it's a local var, hence your error. But 'unset_object' is in locals(). Why one and not the other? Obviously there's something about closures

Re: Understanding http proxies

2012-10-14 Thread Cameron Simpson
On 13Oct2012 20:43, Olive di...@bigfoot.com wrote: | I am trying to understand how to build an http proxy server in python, | and I have found the following example: | http://www.oki-osk.jp/esc/python/proxy/ | | But I do not have found an exact description of what exactly a proxy | server is

Re: trouble with nested closures: one of my variables is missing...

2012-10-14 Thread Cameron Simpson
On 14Oct2012 18:32, Ian Kelly ian.g.ke...@gmail.com wrote: | On Sun, Oct 14, 2012 at 3:54 PM, Cameron Simpson c...@zip.com.au wrote: | | You assign to it, but there's no nonlocal declaration, so Python thinks | | it's a local var, hence your error. | | But 'unset_object' is in locals(). Why

Re: trouble with nested closures: one of my variables is missing...

2012-10-14 Thread Ian Kelly
On Sun, Oct 14, 2012 at 7:08 PM, Cameron Simpson c...@zip.com.au wrote: On 14Oct2012 18:32, Ian Kelly ian.g.ke...@gmail.com wrote: | 'attr_name' is not in locals because while it's a local variable, it | has not been assigned to yet. It has no value and an attempt to | reference it at that

Re: trouble with nested closures: one of my variables is missing...

2012-10-14 Thread Cameron Simpson
On 14Oct2012 19:27, Ian Kelly ian.g.ke...@gmail.com wrote: | On Sun, Oct 14, 2012 at 7:08 PM, Cameron Simpson c...@zip.com.au wrote: | Is attr_name omitted from locals() in made_file_property _because_ I | have an assignment statement? | | Yes. Syntactically, a variable is treated as local to

Can't run any script without it failing due to calling tkinter for no reason

2012-10-14 Thread pythonusernw
Hello All, I'm running python 3.2 on Freebsd 9.0 Release and I must've screwed up my environment somehow, because now I can't run any script without it failing and throwing: ** IDLE can't import Tkinter. Your Python may not be configured for Tk. ** Yet none of my scripts use tkinter nor call

Re: Aggressive language on python-list

2012-10-14 Thread Zero Piraeus
: On 14 October 2012 17:58, Ben Finney ben+pyt...@benfinney.id.au wrote: What's needed, IMO, is a difficult balance: there needs to be calm, low-volume, but firm response to instances of hostile behaviour, making clear by demonstration – especially to the people only observing the discussion

Re: Can't run any script without it failing due to calling tkinter for no reason

2012-10-14 Thread Benjamin Kaplan
On Sun, Oct 14, 2012 at 6:47 PM, pythonuse...@gmail.com wrote: Hello All, I'm running python 3.2 on Freebsd 9.0 Release and I must've screwed up my environment somehow, because now I can't run any script without it failing and throwing: ** IDLE can't import Tkinter. Your Python may not

Re: Aggressive language on python-list

2012-10-14 Thread Michael Torrie
On 10/13/2012 09:46 AM, Etienne Robillard wrote: OT. you obviously has no clue what agressive behavior mean. :-) So please continue with the passive tone saying nothing relevant and login to facebook. There's a saying in English. Hit pigeons flutter. I have not been impressed with your

Re: Can't run any script without it failing due to calling tkinter for no reason

2012-10-14 Thread Adam G
On Sunday, October 14, 2012 7:19:24 PM UTC-7, Benjamin Kaplan wrote: On Sun, Oct 14, 2012 at 6:47 PM, pythonuse...@gmail.com wrote: Hello All, I'm running python 3.2 on Freebsd 9.0 Release and I must've screwed up my environment somehow, because now I can't run any script

Re: Aggressive language on python-list

2012-10-14 Thread rurpy
On 10/14/2012 03:58 PM, Ben Finney wrote: Zero Piraeus sche...@gmail.com writes: [...] What's needed, IMO, is a difficult balance: there needs to be calm, low-volume, but firm response to instances of hostile behaviour, making clear by demonstration – especially to the people only observing

Re: Aggressive language on python-list

2012-10-14 Thread alex23
On Oct 15, 1:22 pm, ru...@yahoo.com wrote: Thus when a member of this esteemed group was recently attacked as racist, for punning another member's name when responding somewhat heatedly, Again, there is a difference between attacking someone as racist and *criticising* their *comments* as

Re: pyw program not displaying unicode characters properly

2012-10-14 Thread Alain Ketterlin
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: On Sun, 14 Oct 2012 19:19:33 +0200, Alain Ketterlin wrote: Usenet has no attachments. *snarfle* You almost owed me a new monitor. I nearly sprayed my breakfast all over it. [...] I owe you nothing, and you can do whatever you

Re: Basic JSON question: Do I really need the quotes

2012-10-14 Thread moogyd
On Friday, 12 October 2012 16:09:14 UTC+2, (unknown) wrote: Hi, I need to define some configuration in a file that will be manually created. Internally, the data will be stored as a dict, which contains various properties related to a design e.g. Design Name, dependencies, lists of

[issue16224] tokenize.untokenize() misbehaves when moved to compatiblity mode

2012-10-14 Thread Eric Snow
New submission from Eric Snow: When tokenize.untokenize() encounters a 2-tuple, it moves to compatibility mode, where only the token type and string are used from that point forward. There are two closely related problems: * when the iterable is a sequence, the portion of the sequence prior

[issue16221] tokenize.untokenize() compat mode misses the encoding when using an iterator

2012-10-14 Thread Eric Snow
Eric Snow added the comment: issue16224 _may_ supercede this ticket. -- components: +Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16221 ___

[issue16224] tokenize.untokenize() misbehaves when moved to compatiblity mode

2012-10-14 Thread Eric Snow
Eric Snow added the comment: Actually, here's a patch with the first option. It preserves iterators as iterators, rather than dumping them into a list. I've also rolled the tests from issue16221 into this patch. Consequently, if the patch is suitable, that issue can be closed. --

[issue16221] tokenize.untokenize() compat mode misses the encoding when using an iterator

2012-10-14 Thread Eric Snow
Eric Snow added the comment: The patch that I have in #16224 takes care of this issue. If that issue goes in another direction however... -- status: open - pending superseder: - tokenize.untokenize() misbehaves when moved to compatiblity mode ___

[issue16225] list.remove in for loop

2012-10-14 Thread Ian Carr-de Avelon
New submission from Ian Carr-de Avelon: I'm new to Python and I've hit what appears to me to be a bug, but may be a feature, so a tutorial bug. I tried to loop through the items in a list, test each and remove those which fail the test. Simplifying to illustrate: print test [1, 2, 3, 4, 5]

[issue16225] list.remove in for loop

2012-10-14 Thread Chris Jerdonek
Chris Jerdonek added the comment: I have worked with languages where you are explicitly warned that you must not mess with the loop variable There is a warning in this part of the tutorial: It is not safe to modify the sequence being iterated over in the loop... (from

[issue16212] mmap() dumps core upon resizing the underlying file

2012-10-14 Thread Charles-François Natali
Charles-François Natali added the comment: You can't use longjmp from signal handlers. Well, you can, but 99% of the code that does it is broken, because you can only call async-safe functions from within a signal handler, and certainly can't run the intepreter. I don't see the reason to

[issue16220] wsgiref does not call close() on iterable response

2012-10-14 Thread Brent Tubbs
Brent Tubbs added the comment: Patch attached. I ran into this while trying to figure out why close() wasn't being called while running the Django dev server, which inherits from wsgiref's BaseHandler. So I'm also surprised that it's gone unnoticed so long. Thanks for the quick attention

[issue15819] Unable to build Python out-of-tree when source tree is readonly.

2012-10-14 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15819 ___ ___ Python-bugs-list

[issue16212] mmap() dumps core upon resizing the underlying file

2012-10-14 Thread STINNER Victor
STINNER Victor added the comment: I've found a few examples of handling non-restartable signals with longjmps, but not that familiar with the codebase to estimate how reliably it can be done on all supported platforms. I don't really know how this code would behave, say, on Windows. I

[issue16212] mmap() dumps core upon resizing the underlying file

2012-10-14 Thread Vladimir Ushakov
Vladimir Ushakov added the comment: SIGBUS as well as SIGFPE or SIGSEGV is a synchronous signal. It is delivered to the thread that caused the trouble and the stack contents is well defined.

[issue16225] list.remove in for loop

2012-10-14 Thread Chris Jerdonek
Chris Jerdonek added the comment: Attached is a simple way of addressing this (essentially copying the verbiage and example from the other page). If we want, we could make the sample code different so that the reader doesn't see the same thing twice. -- keywords: +patch stage: -

[issue16212] mmap() dumps core upon resizing the underlying file

2012-10-14 Thread Vladimir Ushakov
Vladimir Ushakov added the comment: For your specific case, you should... There's nothing I should. As I said above, the bug doesn't trouble me. I just posted it as a generic contribution and don't really care whether it's going to be fixed or not. If decided so, I could help. Otherwise I'll

[issue16226] IDLE crashes on *File / Path browser*

2012-10-14 Thread Francisco Gracia
New submission from Francisco Gracia: The menu option *File / Path browser* (as well in the *Shell* window as in the *Editor* one) shows a new window with a tree structure rooted at *sys.path*. The available leaf nodes show the *plus* sign that usually implies that they can be expanded by

[issue16212] mmap() dumps core upon resizing the underlying file

2012-10-14 Thread Vladimir Ushakov
Vladimir Ushakov added the comment: ...it's just impossible to guarantee that Python internal structures are still consistent. In generic case, I completely agree. Here the things are much simpler (unless I missed something). We know perfectly well the code we need to protect (mmap

[issue16227] Change unicode howtos as misleading

2012-10-14 Thread Mark Lawrence
New submission from Mark Lawrence: For http://docs.python.org/howto/unicode.html (that's Python 2.7.3) and http://docs.python.org/release/3.1.5/howto/unicode.html the first paragraph states (This HOWTO has not yet been updated to cover the 3.x versions of Python.). I suggest this is changed

[issue16212] mmap() dumps core upon resizing the underlying file

2012-10-14 Thread Vladimir Ushakov
Vladimir Ushakov added the comment: Update: The correct link to the POSIX definition of longjmp exiting a signal handler as an ISO C extension is http://pubs.opengroup.org/onlinepubs/9699919799/functions/longjmp.html -- ___ Python tracker

[issue16228] JSON crashes during encoding resized lists

2012-10-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: JSON encoding crash if the source list resized in process of encoding. This can be happen unintentionally in multithreaded code. Simple crash code: import json a = [object()] * 10 def crasher(obj): del a[-1] json.dumps(a, default=crasher) --

[issue16229] Module *redemo.py* lacking in recent Python distributions

2012-10-14 Thread Francisco Gracia
New submission from Francisco Gracia: Since Python 3.2 the module *redemo.py* is lacking in the official Python distributions. The excellent and extremely useful *Regular expressions HOWTO* of 3.2.x and 3.3 keep however referring to it (although referring to the wrong path *Tools/demo/*

[issue16228] JSON crashes during encoding resized lists

2012-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch. -- keywords: +patch Added file: http://bugs.python.org/file27563/json_encode_resized_list.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16228

[issue16227] Change unicode howtos as misleading

2012-10-14 Thread Chris Jerdonek
Chris Jerdonek added the comment: I wonder why the note must be there at all. None of the 2.x docs have been updated to cover the 3.x versions of Python. Otherwise, every 2.x page could use such a disclaimer. Here is where the note was added: http://hg.python.org/cpython/rev/bdef454f7212

[issue14039] Add metavar argument to add_subparsers() in argparse

2012-10-14 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14039 ___ ___

[issue16230] select.select crashes on resized lists

2012-10-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Simple crash code: import select a = [] class F: def fileno(self): del a[-1] return 1 a[:] = [F()] * 10 select.select([], a, []) -- components: Extension Modules messages: 172871 nosy: serhiy.storchaka priority: normal

[issue16230] select.select crashes on resized lists

2012-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch. -- keywords: +patch Added file: http://bugs.python.org/file27564/select_resized_list.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16230

[issue16227] Change unicode howtos as misleading

2012-10-14 Thread Mark Lawrence
Mark Lawrence added the comment: I'd happily settle on seeing this historical note removed from the 2.7.3 docs. I'm unsure about the best approach for 3.1.5. Who's done the most work on unicode to answer this one, someone working on #16061 possibly? --

[issue10050] urllib.request still has old 2.x urllib primitives

2012-10-14 Thread Nadeem Vawda
Nadeem Vawda added the comment: Hmm, OK. URLopener and FancyURLopener do each issue a DeprecationWarning when used, though. If they are not actually deprecated, perhaps we should remove the warnings for the moment? -- ___ Python tracker

[issue16225] list.remove in for loop

2012-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is safe to modify a sequence during iteration if it's size not increased. words = ['cat', 'window', 'defenestrate'] for i, w in enumerate(words): ... if len(w) 6: ... words[i] = w[:5] + '…' ... words ['cat', 'window', 'defen…'] --

[issue6559] add pass_fds paramter to subprocess.Popen()

2012-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: _posixsubprocess.fork_exec docstring was not updated. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6559 ___

[issue14913] tokenize the source to manage Pdb breakpoints

2012-10-14 Thread Xavier de Gaye
Xavier de Gaye added the comment: Attached patch pdb_lnotab.patch uses lnotabs (see Objects/lnotab_notes.txt) to find the actual breakpoint line number and parses the module source with tokenize to find the set of function and fully qualified method names in a module. The patch fixes issues

[issue6322] Pdb breakpoints don't work on lines without bytecode

2012-10-14 Thread Xavier de Gaye
Xavier de Gaye added the comment: This is fixed in the proposed patch named pdb_lnotab.patch attached to issue 14913. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6322 ___

[issue10050] urllib.request still has old 2.x urllib primitives

2012-10-14 Thread Ezio Melotti
Ezio Melotti added the comment: See also #12707. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10050 ___ ___ Python-bugs-list mailing list

[issue16044] xml.etree.ElementTree.Element: append method iterator param is broken

2012-10-14 Thread Eli Bendersky
Eli Bendersky added the comment: Closing, since this isn't a bug and append's behavior is properly documented. Regarding the error message, yes it could probably be better but you would need to enable input validation for that. Since Python is duck typed, often when arguments are not

[issue15381] Optimize BytesIO to do less reallocations when written, similarly to StringIO

2012-10-14 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- title: Optimize BytesIO to so less reallocations when written, similarly to StringIO - Optimize BytesIO to do less reallocations when written, similarly to StringIO ___ Python tracker

[issue12321] documentation of ElementTree.find

2012-10-14 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: Removed file: http://bugs.python.org/file22406/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12321 ___

[issue12321] documentation of ElementTree.find

2012-10-14 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12321 ___ ___ Python-bugs-list

[issue12321] documentation of ElementTree.find

2012-10-14 Thread Eli Bendersky
Eli Bendersky added the comment: I think this may be intentional. Absolute searches on a ElementTree are discouraged with a warning: def find(self, path, namespaces=None): # assert self._root is not None if path[:1] == /: path = . + path

[issue16202] sys.path[0] security issues

2012-10-14 Thread hasufell
Changes by hasufell julian.osp...@googlemail.com: -- nosy: +hasufell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16202 ___ ___ Python-bugs-list

[issue15442] Expand the list of default dirs filecmp.dircmp ignores

2012-10-14 Thread Eli Bendersky
Eli Bendersky added the comment: moijes12, why are the added names raw ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15442 ___ ___

[issue15721] PEP 3121, 384 Refactoring applied to tkinter module

2012-10-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset bf9d118779f5 by Andrew Svetlov in branch 'default': Issue #15721: make _tkinter module pep384 compatible. http://hg.python.org/cpython/rev/bf9d118779f5 -- nosy: +python-dev ___ Python tracker

[issue16227] Change unicode howtos as misleading

2012-10-14 Thread Martin v . Löwis
Martin v. Löwis added the comment: I don't think there is a need to update the 3.1.x version of the documentation in that respect. -- nosy: +loewis versions: +Python 3.3, Python 3.4 -Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue16227] Change unicode howtos as misleading

2012-10-14 Thread Martin v . Löwis
Martin v. Löwis added the comment: Before the disclaimer can be removed, all statements of the document should be reviewed. From a shallow glance, the section on Python 2.x's support should be changed to Python's support. The reference to Marc-Andre Lemburg's presentation should be removed,

[issue16227] Change unicode howtos as misleading

2012-10-14 Thread Mark Lawrence
Mark Lawrence added the comment: See also #4153 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16227 ___ ___ Python-bugs-list mailing list

[issue16227] Change unicode howtos as misleading

2012-10-14 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Unicode nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16227 ___

[issue16231] pickle persistent_id return value

2012-10-14 Thread PSchaafsma
New submission from PSchaafsma: The documentation of persistent_id prescribes that returning None will cause default pickling behavior. This makes sense. However, in the Pickler.save function in pickle.py, the return value of persistent_id checked as boolean, causing also return values like 0

[issue16232] curses.textpad.Textbox backtrace support

2012-10-14 Thread emeaudroid emeaudroid
New submission from emeaudroid emeaudroid: python: 2.6.6 curses' revision: 61064 2008-02-25 16:29:58Z andrew.kuchling line 93 and 102 of curses/textpad.py could you replace the backspace's specific chars codes by using this dedicated curses' function retrieving the currently in-use char's

[issue16212] mmap() dumps core upon resizing the underlying file

2012-10-14 Thread Charles-François Natali
Charles-François Natali added the comment: SIGBUS as well as SIGFPE or SIGSEGV is a synchronous signal. It is delivered to the thread that caused the trouble and the stack contents is well defined. Except that signal handlers are per-process, not per thread. So if another thread (which could

[issue13454] crash when deleting one pair from tee()

2012-10-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch (tests included). Thank Pyry for report, Victor and Amaury for analysis. Maybe I picked up the poor names for iterators? May be exhausted and unexhausted would be better? Feel free to correct me. -- keywords: +patch nosy:

[issue16233] IDLE: conceptual problems with *Class browser*

2012-10-14 Thread Francisco Gracia
New submission from Francisco Gracia: The *File* option in the menu bar of both the Python shell and the program editor have an entry called *Class Browser*. If one selects it from the shell window, one gets always an error message with the title: No filename which says: This buffer has no

[issue16212] mmap() dumps core upon resizing the underlying file

2012-10-14 Thread Vladimir Ushakov
Vladimir Ushakov added the comment: But I think we've talked enough... So do I. Let's go for it. I'll make a patch (which apparently takes some time) and post it here, we'll discuss it then. Thanks for your comments. Now I believe it's a bit harder than I thought initially, but still doable.

[issue16226] IDLE crashes on *File / Path browser*

2012-10-14 Thread Ned Deily
Ned Deily added the comment: Thank you for the report. There does seem to be a regression in the 3.3 version of IDLE. Using the OS X version of bin/idle3.3 and selecting menu item File - Path Browser results in the following exception: Exception in Tkinter callback Traceback (most recent

[issue16222] server-side clone not found by devguide's search box

2012-10-14 Thread Éric Araujo
Éric Araujo added the comment: Not sure this needs more exposure. New core developers will learn about that feature from other devs, and contributors (the primary audience of the devguide) can't use these repos. -- ___ Python tracker

[issue16229] Module *redemo.py* lacking in recent Python distributions

2012-10-14 Thread Ned Deily
Ned Deily added the comment: The demo scripts in the Tools directory were cleaned up earlier in Python 3 and moved. redemo.py is still included in the 3.2 and later source distributions in the Tools/demo directory. The builders of binary installers and third-party distributors of Python 3.x

[issue8425] a -= b should be fast if a is a small set and b is a large set

2012-10-14 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8425 ___ ___

[issue16083] HTTPServer does not correctly handle bad headers

2012-10-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is this really a security issue? If so, that should be explained. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16083 ___

[issue16225] list.remove in for loop

2012-10-14 Thread Chris Jerdonek
Chris Jerdonek added the comment: It is safe to modify a sequence during iteration if it's size not increased. What do you mean by safe? The example given by the original commenter does not increase the size either. I believe safe is meant in the sense of avoiding possibly unexpected

[issue8786] Add support for IEEE 754 contexts to decimal module.

2012-10-14 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8786 ___ ___

[issue16083] HTTPServer does not correctly handle bad headers

2012-10-14 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16083 ___ ___ Python-bugs-list mailing

  1   2   >