Re: Is feedparser deprecated?

2009-08-07 Thread alex23
John Nagle na...@animats.com wrote:    Feedparser requires SGMLlib, which has been removed from Python 3.0. Feedparser hasn't been updated since 2007. Does this mean Feedparser is dead? Wouldn't you be better served asking this on the feedparser bug tracker?

Re: question: why isn't a byte of a hash more uniform? how could I improve my code to cure that?

2009-08-07 Thread Dave Angel
L wrote: Hi all, I am a Python novice, and right now I would be happy to simply get my job done with it, but I could appreciate some thoughts on the issue below. I need to assign one of four numbers to names in a list. The assignment should be pseudo-random: no

Re: passing menu label to function

2009-08-07 Thread J Wolfe
Thanks Peter, I figured out an alternative just as you posted your response, I just looped through the buttons I wanted to add and used the loop variable to label the item and then passed it to the function, though your way seems much more robust. Thanks a lot! --

Re: PEP 8 exegetics: conditional imports?

2009-08-07 Thread alex23
Peter Otten __pete...@web.de wrote: This criterion is unlikely to be met for the examples you give above. time is a built-in module, and gzip a thin wrapper around zlib which is also built-in. This is something I was _utterly_ unaware of. Is there a list of what modules are built-in readily

Re: PEP 8 exegetics: conditional imports?

2009-08-07 Thread Dave Angel
Albert Hopkins wrote: On Fri, 2009-08-07 at 16:50 +, kj wrote: Conditional imports make sense to me, as in the following example: def foobar(filename): if os.path.splitext(filename)[1] == '.gz': import gzip f = gzip.open(filename) else: f = file(filename)

Re: question: why isn't a byte of a hash more uniform? how could I improve my code to cure that?

2009-08-07 Thread Peter Otten
Dave Angel wrote: [clever analysis snipped] I'd use digest() instead of hexdigest(), and of course reduce the subscript to 63 or less. OP: You could also try hash(line) % 4 While AFAIK it doesn't make promises about randomness it might still be good enough in practice. Peter --

importing fully qualified scripts to check syntax

2009-08-07 Thread horos11
hey all, I'm trying to make a syntax checker, where I say: python -c import /path/to/script to check the syntax of the script named '/path/to/script' (note: no py extension needed). Of course this doesn't work because the functionality for import is bundled up with the environment.. So - is

Re: PEP 8 exegetics: conditional imports?

2009-08-07 Thread Peter Otten
alex23 wrote: This is something I was _utterly_ unaware of. Is there a list of what modules are built-in readily available? sys.builtin_module_names ('__builtin__', '__main__', '_ast', '_bisect', '_codecs', '_collections', '_functools', '_locale', '_random', '_socket', '_sre', '_struct',

Re: Python docs disappointing - group effort to hire writers?

2009-08-07 Thread Kee Nethery
On Aug 7, 2009, at 10:48 AM, alex23 wrote: Kee Nethery k...@kagi.com wrote: I'm looking forward to the acceleration of improvements to the official docs based upon easy to provide user feedback. Glad to see that the bug tracking system is going to not be the primary means for documentation

syntax checker in python

2009-08-07 Thread horos11
ps - I just realized that it isn't enough to do: python -c 'import /path/to/script' since that actually executes any statement inside of the script (wheras all I want to do is check syntax) So - let me reprhase that - exactly how can you do a syntax check in python? Something like perl's -c:

Re: questions about object references

2009-08-07 Thread Ned Deily
In article 786181.46665...@web110610.mail.gq1.yahoo.com, William abecedarian314...@yahoo.com wrote: I have a question.  Suppose I do the following: def myfunc(a,b):   return a+b myfunc2=myfunc is there anyway to find all of the references to myfunc?  That is, can I find out all of

Re: one method of COM object needs a variant type variable

2009-08-07 Thread Gabriel Genellina
En Fri, 07 Aug 2009 04:21:03 -0300, MICHÁLEK Jan Mgr. michalek@uhul.cz escribió: Thanks Gabriel, I seen this before, but I don't know, what's mean 'compatible object'. I need create object who will like as an variant type. A variant is like a giant union contaning almost every basic

Re: Is feedparser deprecated?

2009-08-07 Thread I V
On Fri, 07 Aug 2009 12:57:11 -0700, alex23 wrote: John Nagle na...@animats.com wrote: Feedparser hasn't been updated since 2007. Does this mean Feedparser is dead? Wouldn't you be better served asking this on the feedparser bug tracker? http://code.google.com/p/feedparser/issues/list But

Re: Is python buffer overflow proof?

2009-08-07 Thread Fuzzyman
On Aug 3, 10:04 pm, sturlamolden sturlamol...@yahoo.no wrote: On 2 Aug, 15:50, Jizzai jiz...@gmail.com wrote: Is a _pure_ python program buffer overflow proof? For example in C++ you can declare a char[9] to hold user input. If the user inputs 10+ chars a buffer overflow occurs. Short

unique-ifying a list

2009-08-07 Thread kj
Suppose that x is some list. To produce a version of the list with duplicate elements removed one could, I suppose, do this: x = list(set(x)) but I expect that this will not preserve the original order of elements. I suppose that I could write something like def uniquify(items):

Re: Is python buffer overflow proof?

2009-08-07 Thread Fuzzyman
On Aug 4, 6:06 am, John Nagle na...@animats.com wrote: Gabriel Genellina wrote: En Mon, 03 Aug 2009 18:04:53 -0300, sturlamolden sturlamol...@yahoo.no escribió: On 2 Aug, 15:50, Jizzai jiz...@gmail.com wrote: Is a _pure_ python program buffer overflow proof? For example in C++ you

Good news bad news (was: Turtle Graphics are incompatible with gmpy)

2009-08-07 Thread Mensanator
Bad news: I ran the 2.5 turtle.py through the 2to3 refactorer but the result would not run in 3.1, some kind of type mismatch between ints and NoneType. So I set it aside. Good news: I tracked down the actual cause of the image discrepencies in my report.

Re: Bug or feature: double strings as one

2009-08-07 Thread Duncan Booth
Grant Edwards inva...@invalid wrote: Definitely. Not only does it have _all_ the features, it even manages to simultaneously have several mutually-exclusive features. Sounds a bit like Perl. -- http://mail.python.org/mailman/listinfo/python-list

Re: unique-ifying a list

2009-08-07 Thread Jonathan Gardner
On Aug 7, 1:53 pm, kj no.em...@please.post wrote: Suppose that x is some list.  To produce a version of the list with duplicate elements removed one could, I suppose, do this:     x = list(set(x)) but I expect that this will not preserve the original order of elements. I suppose that I

Re: syntax checker in python

2009-08-07 Thread Jonathan Gardner
On Aug 7, 1:39 pm, horos11 horo...@gmail.com wrote: ps - I just realized that it isn't enough to do: python -c 'import /path/to/script' since that actually executes any statement inside of the script (wheras all I want to do is check syntax) So - let me reprhase that - exactly how can you

Why all the __double_underscored_vars__?

2009-08-07 Thread kj
Python is chock-full of identifiers beginning and ending with double underscores, such as __builtin__, __contains__, and __coerce__. Using underscores to signal that an identifier is somehow private to an implementation is pretty common in languages other than Python. But in these cases the

Re: Setuptools - help!

2009-08-07 Thread Heikki Toivonen
Peter Chant wrote: Thanks, it worked. Any ideas how to run the resulting scripts without installing or running as root? If you install as root, you should be able to run the scripts as normal user. However, I don't recommend this approach since it could conflict with your system Python

Re: Why all the __double_underscored_vars__?

2009-08-07 Thread Chris Rebert
On Fri, Aug 7, 2009 at 5:51 PM, kjno.em...@please.post wrote: Python is chock-full of identifiers beginning and ending with double underscores, such as __builtin__, __contains__, and __coerce__. Using underscores to signal that an identifier is somehow private to an implementation is pretty

ValueError: Procedure probably called with not enough arguments (8 bytes missing)

2009-08-07 Thread LabJack Support
Hello! I am chasing around a problem that I am having with ctypes and I am hoping someone can help out. Here is the Python code: def asynch(self, baudrate, data, idNum=None, demo=0, portB=0, enableTE=0, enableTO=0, enableDel=0, numWrite=0, numRead=0): Name:

Re: ValueError: Procedure probably called with not enough arguments (8 bytes missing)

2009-08-07 Thread LabJack Support
On Aug 7, 4:16 pm, LabJack Support labjacksupp...@gmail.com wrote: Hello! I am chasing around a problem that I am having with ctypes and I am hoping someone can help out. Here is the Python code:     def asynch(self, baudrate, data, idNum=None, demo=0, portB=0, enableTE=0, enableTO=0,

Re: Bug or feature: double strings as one

2009-08-07 Thread Bearophile
durumdara: I wanna ask that is a bug or is it a feature? For me it's a bug-prone antifeature. Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list

Re: Why all the __double_underscored_vars__?

2009-08-07 Thread r
On Aug 7, 5:13 pm, Chris Rebert c...@rebertia.com wrote: On Fri, Aug 7, 2009 at 5:51 PM, kjno.em...@please.post wrote: Python is chock-full of identifiers beginning and ending with double underscores, such as __builtin__, __contains__, and __coerce__. ...(snip) Right, but the *users* of the

Re: Bug or feature: double strings as one

2009-08-07 Thread John Machin
On Aug 8, 3:43 am, alex23 wuwe...@gmail.com wrote: kj no.em...@please.post wrote: Feature, as others have pointed out, though I fail to see the need for it, given that Python's general syntax for string (as opposed to string literal) concatenation is already so convenient.  I.e., I fail

Re: help with threads

2009-08-07 Thread Piet van Oostrum
Michael Mossey michaelmos...@gmail.com (MM) wrote: MM Ah yes, that explains it. Some of these long computations are done in MM pure C, so I'm sure the GIL is not being released. Is that C code under your own control? Or at least the glue from Python to C? In that case, and if the C code is not

Re: Bug or feature: double strings as one

2009-08-07 Thread r
On Aug 7, 7:31 am, durumdara durumd...@gmail.com wrote: Hi! I found an interesting thing in Python. Today one of my defs got wrong result. ...(snip) I think it's a completely useless feature and i have never used it even once! This so-called feature seems a direct contridiction to the zen...

Re: syntax checker in python

2009-08-07 Thread Diez B. Roggisch
horos11 schrieb: ps - I just realized that it isn't enough to do: python -c 'import /path/to/script' since that actually executes any statement inside of the script (wheras all I want to do is check syntax) So - let me reprhase that - exactly how can you do a syntax check in python? Something

Re: Python docs disappointing - group effort to hire writers?

2009-08-07 Thread r
On Aug 7, 3:35 pm, Kee Nethery k...@kagi.com wrote: (snip) Kee, that was an eloquent and enlighting post and i think it speaks volumes to the lack of inclusion of all Pythoneers in this community. Not to mention the viscous attitudes and self indulgence we have around here. For those of you with

Re: Executing untrusted code

2009-08-07 Thread Nobody
On Fri, 07 Aug 2009 08:15:08 -0700, Emanuele D'Arrigo wrote: Are there best practices to at least minimize some of the risks associated with untrusted code execution? Yes: don't execute it. Failing that, run the Python interpreter within a sandbox. If you want to support restricted execution

Re: Bug or feature: double strings as one

2009-08-07 Thread r
It sure doesn't get any more obivous than... string1 + string2 Although i much prefer string formatting to concatenation for almost all cases except the most simple. This auto-magic conacatenation of strings is unintuitive and completely moronic if you ask my opinion. I blow chunks when i see

Re: Is feedparser deprecated?

2009-08-07 Thread Gabriel Genellina
En Fri, 07 Aug 2009 16:07:48 -0300, John Nagle na...@animats.com escribió: Feedparser requires SGMLlib, which has been removed from Python 3.0. Feedparser hasn't been updated since 2007. Does this mean Feedparser is dead? Since we have generic and easy of use XML parsers like ElementTree

Re: unique-ifying a list

2009-08-07 Thread Gabriel Genellina
En Fri, 07 Aug 2009 17:53:10 -0300, kj no.em...@please.post escribió: Suppose that x is some list. To produce a version of the list with duplicate elements removed one could, I suppose, do this: x = list(set(x)) but I expect that this will not preserve the original order of elements. I

Re: importing fully qualified scripts to check syntax

2009-08-07 Thread Gabriel Genellina
En Fri, 07 Aug 2009 17:29:28 -0300, horos11 horo...@gmail.com escribió: I'm trying to make a syntax checker, where I say: python -c import /path/to/script to check the syntax of the script named '/path/to/script' (note: no py extension needed). Of course this doesn't work because the

Re: unicode() vs. s.decode()

2009-08-07 Thread Steven D'Aprano
On Fri, 07 Aug 2009 12:00:42 +0200, Thorsten Kampe wrote: Bollocks. No one will even notice whether a code sequence runs 2.7 or 5.7 seconds. That's completely artificial benchmarking. You think users won't notice a doubling of execution time? Well, that explains some of the apps I'm forced to

Windows 7 : any problems installing or running Python ?

2009-08-07 Thread Dave WB3DWE
Anybody tried it ? Is anything broken, ie is the whole shootin' match good to go ? I'm esp interested in WConio for 3.0/3.1 which I use heavily. Thanks Dave pdlem...@earthlink.net I saw the number 4 in silver Guido

How to address a global variable in a function

2009-08-07 Thread n179911
HI, I have a global variable // line 8 tx = 0 and then I have this function (start in line 12): def handleTranslate(result): print line txStr, tyStr = result.group(1), result.group(2) print txStr, tyStr tx += int(txStr) ty += int(tyStr) return

Re: unicode() vs. s.decode()

2009-08-07 Thread Steven D'Aprano
On Fri, 07 Aug 2009 17:13:07 +0200, Thorsten Kampe wrote: One guy claims he has times between 2.7 and 5.7 seconds when benchmarking more or less randomly generated one million different lines. That *is* *exactly* nothing. We agree that in the grand scheme of things, a difference of 2.7

Re: Bug or feature: double strings as one

2009-08-07 Thread Steven D'Aprano
On Fri, 07 Aug 2009 17:35:28 +, kj wrote: I fail to see why x = (first part of a very long string second part of a very long string) That's done by the compiler at compile time and is fast. is so much better than x = (first part of a very long string + second part of a

Re: how to overload operator (a x b)?

2009-08-07 Thread Steven D'Aprano
On Fri, 07 Aug 2009 08:04:22 -0700, Scott David Daniels wrote: Benjamin Kaplan wrote: Python does not support compound comparisons like that. You have to do a b and b c. Funny, my python does. This has been around a long time. I am not certain whether 1.5.2 did it, but chained

Re: how to overload operator (a x b)?

2009-08-07 Thread Carl Banks
On Aug 7, 7:18 am, Diez B. Roggisch de...@nospam.web.de wrote: alex23 schrieb: On Aug 7, 10:50 pm, Benjamin Kaplan benjamin.kap...@case.edu wrote: That isn't an operator at all. Python does not support compound comparisons like that. You have to do a b and b c. You know, it costs

Re: How to address a global variable in a function

2009-08-07 Thread Chris Rebert
On Fri, Aug 7, 2009 at 11:29 PM, n179911n179...@gmail.com wrote: HI, I have a global variable // line 8 tx  = 0 and then I have this function (start in line 12): def handleTranslate(result):        print line        txStr, tyStr = result.group(1), result.group(2)        print txStr,

Re: how to overload operator (a x b)?

2009-08-07 Thread Carl Banks
On Aug 7, 9:01 pm, Carl Banks pavlovevide...@gmail.com wrote: On Aug 7, 7:18 am, Diez B. Roggisch de...@nospam.web.de wrote: alex23 schrieb: On Aug 7, 10:50 pm, Benjamin Kaplan benjamin.kap...@case.edu wrote: That isn't an operator at all. Python does not support compound

Re: How to address a global variable in a function

2009-08-07 Thread n179911
On Aug 7, 8:29 pm, n179911 n179...@gmail.com wrote: HI, I have a global variable // line 8 tx  = 0 and then I have this function (start in line 12): def handleTranslate(result):         print line         txStr, tyStr = result.group(1), result.group(2)         print txStr, tyStr      

Re: Python docs disappointing - group effort to hire writers?

2009-08-07 Thread Steven D'Aprano
On Fri, 07 Aug 2009 13:35:26 -0700, Kee Nethery wrote: Why exactly is posting an open comment on a bug tracker somehow inferior to posting an open comment on a wiki? It's a good question and deserves a good answer. * Fewer Steps * Immediate * Does not need to be formally reviewed *

Re: Python docs disappointing - group effort to hire writers?

2009-08-07 Thread Carl Banks
On Aug 7, 9:25 pm, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: If you want an open-access documentation system go right ahead and build one. There are plenty of wikis available to use, and the Python docs are freely available as your starting point. I might even contribute

Re: Python docs disappointing - group effort to hire writers?

2009-08-07 Thread Paul Rubin
Steven D'Aprano st...@remove-this-cybersource.com.au writes: As for the rest, you're right that the current bug-tracker puts up barriers to people submitting comments and bugs. That's actually a good thing. The only thing worse than not enough information is too much information, and the

Re: question: why isn't a byte of a hash more uniform? how could I improve my code to cure that?

2009-08-07 Thread Paul Rubin
László Sándor sand...@gmail.com writes: OK, I understand. Could anyone suggest a better way to do this, then? (Recap: random-looking, close-to uniform assignment of one number out of four possibilities to strings.) Use a cryptographic hash function like md5 (deprecated for security purposes

Re: Bug or feature: double strings as one

2009-08-07 Thread r
On Aug 7, 10:31 pm, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: ...(snip excessive showmanship) :-) Ah Steven thats a real nice snappy comeback and some may get blinded by the black magic but basically all you are saying is that version a takes less overhead than version b,

Re: Bug or feature: double strings as one

2009-08-07 Thread Carl Banks
On Aug 7, 10:00 am, Grant Edwards inva...@invalid wrote: On 2009-08-07, Scott David Daniels scott.dani...@acm.org wrote: Grant Edwards wrote: On 2009-08-07, durumdara durumd...@gmail.com wrote: In other languages, like Delphi (Pascal), Javascript, SQL, etc., I must concatenate the

Re: Windows 7 : any problems installing or running Python ?

2009-08-07 Thread r
On Aug 7, 10:05 pm, Dave WB3DWE wrote: ...(snip) Oh God, windows 7 is here :(. What great functionality has M$ bestowed on the weary peasants now? More importantly why the heck am i still using windows in 2009? i think i will dump my winders os for good this year and go linux from here on out

[issue6663] re.findall does not always return a list of strings

2009-08-07 Thread Phillip M. Feldman
New submission from Phillip M. Feldman pfeld...@verizon.net: As per the Python documentation, the following regular expression should produce a list containing the strings '6.7', 7.33', and '9': re.findall('(-?\d+[.]\d+)|(-?\d+[.]?)|(-?[.]\d+)', 'asdf6.77.33ff9') Instead, it generates a

[issue6659] buffer c-api: memoryview object documentation

2009-08-07 Thread Alexey Shamrin
Alexey Shamrin sham...@gmail.com added the comment: Antoine, it seems, this sentence was taken literally from PEP3118 (http://www.python.org/dev/peps/pep-3118/#new-c-api-calls-are-proposed). PEP authors discussed if __builtins__.buffer should be removed. I agree, old __builtins__.buffer should

[issue6632] Include more fullwidth chars in the decimal codec

2009-08-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Mark Dickinson wrote: I'm less concerned about decimal points and the like, and more bothered by the fact that e.g., int(x, 16) accepts some, but not all, characters with the Hex_Digit property. This seems counter to the intent of the

[issue6006] ffi.c compile failures on AIX 5.3 with xlc

2009-08-07 Thread rubisher
rubisher rubis...@scarlet.be added the comment: Well a few spare time let me investigate this way: using gc[cj] libffi. I so first install libffi-4.2.0-3 as well as libffi-devel-4.2.0-3 (not sure this last one is required, though) then configure python (2.6) with --with-system-ffi but it

[issue6664] readlines should understand Line Separator and Paragraph Separator characters

2009-08-07 Thread Neil Hodgson
New submission from Neil Hodgson nyamaton...@users.sourceforge.net: Unicode includes Line Separator U+2028 and Paragraph Separator U+2029 line ending characters. The readlines method of the file object returned by the built-in open does not treat these characters as line ends although the object

[issue6665] fnmatch fails on filenames containing \n character

2009-08-07 Thread Josef Skladanka
New submission from Josef Skladanka jskla...@redhat.com: Hello, at the moment, fnmatch.fnmatch() will fail to match any string, which has \n character. This of course breaks glob as well. Example import fnmatch fnmatch.fnmatch(foo\nbar, foo*) False import glob open(foobar, w).close()

[issue6666] List of dirs to ignore in trace.py is applied only for the first file

2009-08-07 Thread Bogdan Opanchuk
New submission from Bogdan Opanchuk b...@bk.ru: When creating a trace.Trace object or running trace.py one can specify list of directories to ignore (ignoredirs or --ignore-dir correspondingly). It is passed to trace.Ignore constructor, which stores iterator to map(), applied to this list, in

[issue6667] logging config - using FileHandler's delay argument?

2009-08-07 Thread maro
New submission from maro mis...@gmail.com: I'm not sure, if it's an issue. I don't know how to use argument 'delay' of FileHandler in my logging.conf file. [handler_tarFileHandler] class=FileHandler level=DEBUG formatter=simpleFormatter args=('/tmp/_tar2ncConverter.log','a+') delay=True # file

[issue6667] logging config - using of FileHandler's delay argument?

2009-08-07 Thread maro
Changes by maro mis...@gmail.com: -- title: logging config - using FileHandler's delay argument? - logging config - using of FileHandler's delay argument? ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6667

[issue6663] re.findall does not always return a list of strings

2009-08-07 Thread Alexey Shamrin
Alexey Shamrin sham...@gmail.com added the comment: You've made three groups with parentheses. Just drop them: re.findall('-?\d+[.]\d+|-?\d+[.]?|-?[.]\d+', 'asdf6.77.33ff9') ['6.7', '7.33', '9'] Everything is according to documentation: If one or more groups are present in the pattern,

[issue6631] urlparse.urlunsplit() can't handle relative files (for urllib*.open()

2009-08-07 Thread albert Mietus
albert Mietus alb...@mietus.nl added the comment: There was a bug in the workaround: if not ( scheme == 'file' and not netloc and url[0] != '/'): -=--- The {{{and url[0] != '/'}}} was missing (above is corrected) The effect:

[issue1135] xview/yview of Tix.Grid is broken

2009-08-07 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: I've looked into this again and now I'm attaching a patch very similar to xview_yview.patch. Is anyone against adding these mixins ? -- Added file: http://bugs.python.org/file14673/xview_yview_mixins.diff

[issue6668] locale.py: can't parse sr...@latin locale

2009-08-07 Thread Vlada Peric
New submission from Vlada Peric vlada.pe...@gmail.com: The sr_RS locale in glibc corresponds to the Cyrillic script, while the agreed upon locale for the Latin alphabet is sr...@latin. Unfortunately, the locale python module crashes when trying to parse this locale. Here is the traceback:

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2009-08-07 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: Attaching a patch against trunk, I believe this solves the problems described here. -- versions: +Python 2.6, Python 2.7 Added file: http://bugs.python.org/file14674/issue1028.diff ___ Python tracker

[issue6660] Desire python.org documentation link to user contribution wiki (per function)

2009-08-07 Thread kee nethery
kee nethery k...@kagi.com added the comment: awesome. looking forward to it. Kee On Aug 6, 2009, at 3:38 PM, Georg Brandl wrote: Georg Brandl ge...@python.org added the comment: There will be comments for each function/class etc., as well as a feature to suggest a change for the proper

[issue6626] show Python mimetypes module some love

2009-08-07 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6626 ___ ___ Python-bugs-list mailing

[issue6627] threading.local() does not work with C-created threads

2009-08-07 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6627 ___ ___ Python-bugs-list mailing

[issue6168] Missing Shell menu in Linux IDLE

2009-08-07 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: From what I read here this is not a problem caused by the sources distributed by python.org, so I'm closing this. It seems more appropriate to move this to Ubuntu's bug tracker. -- nosy: +gpolo resolution: - invalid status: open -

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2009-08-07 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: Uhm, in the long run I believe it will be better to move to Tcl_CreateObjCommand since it is said that commands created by it are significantly faster than the ones created by Tcl_CreateCommand (more information about this can be found at tcl

[issue1628205] socket.readline() interface doesn't handle EINTR properly

2009-08-07 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: realistically, file objects (Objects/fileobject.c) never raise EINTR as they use the C library fread/fwrite/fclose underneath. Why should a socket based file object every be allowed to raise EINTR rather than handling it internally? IMHO

[issue6598] calling email.utils.make_msgid frequently has a non-trivial probability of generating colliding ids

2009-08-07 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: --- El jue 6-ago-09, Antoine Pitrou rep...@bugs.python.org escribió: Antoine Pitrou pit...@free.fr added the comment: Is it ok if the message id is predictable? I don't know of any use of message ids apart from uniquely

[issue6663] re.findall does not always return a list of strings

2009-08-07 Thread Phillip M. Feldman
Phillip M. Feldman pfeld...@verizon.net added the comment: You are right-- the documentation does say this, although it took me a while to understand what it means. Thanks! It seems as though there's a flaw in the design here, because there should be some mechanism for grouping elements of a

[issue6598] calling email.utils.make_msgid frequently has a non-trivial probability of generating colliding ids

2009-08-07 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: Removed file: http://bugs.python.org/file14643/utils.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6598 ___

[issue6598] calling email.utils.make_msgid frequently has a non-trivial probability of generating colliding ids

2009-08-07 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: Added file: http://bugs.python.org/file14676/utils.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6598 ___

[issue6669] TarFile.getmembers fails at struct.unpack: unpack requires a string argument of length 4

2009-08-07 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar sridh...@activestate.com: Perhaps this must be wrapped under a programmer-expected custom exception class (TarError maybe) for tarinfo in tarfileobj.getmembers(): File /home/apy/ActivePython-2.6/lib/python2.6/tarfile.py, line 1791, in getmembers

[issue6527] test_ttk_guionly buildbot test crash: Tcl_FinalizeNotifier: notifier pipe not initialized

2009-08-07 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: I notice this some time ago, let's continue this on issue5120. Can you test the patch attached there on a mac ? I don't have one, so I'm not sure if it fixes the issue or not. -- resolution: - duplicate status: open - closed

[issue1628205] socket.readline() interface doesn't handle EINTR properly

2009-08-07 Thread Rhett Garber
Rhett Garber rhe...@gmail.com added the comment: Good addition Gregory. Totally agree on handling EINTR in even more cases. You can't really expect the caller to know they need to deal with this sort of thing when using these higher level call. The whole point is the abstract away some of the

[issue6663] re.findall does not always return a list of strings

2009-08-07 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: In a regular expression (...) will group and capture, whereas (?:...) will only group and not capture. -- nosy: +mrabarnett ___ Python tracker rep...@bugs.python.org

[issue6461] multiprocessing: freezing apps on Windows

2009-08-07 Thread Stuart Mentzer
Stuart Mentzer s...@objexx.com added the comment: Further experimentation revealed that freeze_support() works properly and the proposed patch is not necessary or desirable for the general freeze case. In the case of an embedded app that calls set_executable() it seems that the else block

<    1   2