ANN : Karrigell-4.3.6 released

2011-10-31 Thread Pierre Quentel
Hi, A new version of the Karrigell web framework for Python 3.2+ has just been released on http://code.google.com/p/karrigell/ One of the oldest Python web frameworks (the first version was released back in 2002), it now has 2 main versions, one for Python 2 and another one for Python 3. The

Introducing pickleDB; a simple, lightweight, and fast key-value database.

2011-10-31 Thread patx
Hello I have recently started work on a new project called pickleDB. It is a lightweight key-value database engine (inspired by redis). Check it out at http://packages.python.org/pickleDB -- Harrison Erd -- http://mail.python.org/mailman/listinfo/python-list

SSE4a with ctypes in python? (gcc __builtin_popcount)

2011-10-31 Thread est
Hi guys, Here is the sample code http://stackoverflow.com/questions/6389841/efficiently-find-binary-strings-with-low-hamming-distance-in-large-set/6390606#6390606 static inline int distance(unsigned x, unsigned y) { return __builtin_popcount(x^y); } Is it possible to rewrite the above gcc

Re: SSE4a with ctypes in python? (gcc __builtin_popcount)

2011-10-31 Thread Heiko Wundram
Am 31.10.2011 04:13, schrieb est: Is it possible to rewrite the above gcc code in python using ctypes (preferably Win/*nix compatible)? No; the (gcc-injected) functions starting with __builtin_* are not real functions in the sense that they can be called by calling into a library, but rather

Re: Introducing pickleDB; a simple, lightweight, and fast key-value database.

2011-10-31 Thread Peter Otten
patx wrote: Hello I have recently started work on a new project called pickleDB. It is a lightweight key-value database engine (inspired by redis). Check it out at http://packages.python.org/pickleDB import json as pickle # ;) def load(location): global db try: db =

Re: ttk Listbox

2011-10-31 Thread user1024
hi http://www.tkdocs.com/tutorial/index.html remember that you have to import line from tkinter import ttk (at from tkinter import * ttk in not included) -- http://mail.python.org/mailman/listinfo/python-list

Re: ttk Listbox

2011-10-31 Thread user1024
hi http://www.tkdocs.com/tutorial/index.html remember that you have to import like from tkinter import ttk (at from tkinter import * ttk in not included) -- http://mail.python.org/mailman/listinfo/python-list

Re: ttk Listbox

2011-10-31 Thread autofelge
hi http://www.tkdocs.com/tutorial/index.html remember that you have to import like from tkinter import ttk (at from tkinter import * ttk in not included) -- http://mail.python.org/mailman/listinfo/python-list

Re: ttk Listbox

2011-10-31 Thread user1024
hi http://www.tkdocs.com/tutorial/index.html remember that you have to import like from tkinter import ttk (at from tkinter import * ttk in not included) -- http://mail.python.org/mailman/listinfo/python-list

Re: ttk Listbox

2011-10-31 Thread autofelge
hi http://www.tkdocs.com/tutorial/index.html remember that you have to import like from tkinter import ttk (at from tkinter import * ttk in not included) -- http://mail.python.org/mailman/listinfo/python-list

Re: How to mix-in __getattr__ after the fact?

2011-10-31 Thread dhyams
Thanks for all of the responses; everyone was exactly correct, and obeying the binding rules for special methods did work in the example above. Unfortunately, I only have read-only access to the class itself (it was a VTK class wrapped with SWIG), so I had to find another way to accomplish what

locate executables for different platforms

2011-10-31 Thread Andrea Crotti
Suppose that I have a project which (should be)/is multiplatform in python, which, however, uses some executables as black-boxes. These executables are platform-dependent and at the moment they're just thrown inside the same egg, and using pkg_resources to get the path. I would like to rewrite

Re: ttk Listbox

2011-10-31 Thread Kevin Walzer
On 10/31/11 12:37 AM, Ric@rdo wrote: What would be an equivalent widget in ttk like a Listbox and if possible a small example? I tried to look here http://docs.python.org/library/ttk.html but did not see anything. Maybe I did not look in the right place? tia The listbox isn't part of the

Re: locate executables for different platforms

2011-10-31 Thread Andrea Crotti
On 10/31/2011 02:00 PM, Andrea Crotti wrote: Suppose that I have a project which (should be)/is multiplatform in python, which, however, uses some executables as black-boxes. These executables are platform-dependent and at the moment they're just thrown inside the same egg, and using

[ANN] Karrigell-4.3.6 released

2011-10-31 Thread Pierre Quentel
Hi, A new version of the Karrigell web framework for Python 3.2+ has just been released on http://code.google.com/p/karrigell/ One of the oldest Python web frameworks around (the first version was released back in 2002), it now has 2 main versions, one for Python 2 and another one for Python 3.

Re: locate executables for different platforms

2011-10-31 Thread DevPlayer
On Oct 31, 10:00 am, Andrea Crotti andrea.crott...@gmail.com wrote: Suppose that I have a project which (should be)/is multiplatform in python, which, however, uses some executables as black-boxes. These executables are platform-dependent and at the moment they're just thrown inside the same

Re: Review Python site with useful code snippets

2011-10-31 Thread DevPlayer
When visitors visit your site to post their code; often such posts ask for username and email address; consider adding additional fields to generate some Python documenting feature like Sphinx or epydoc. and let your site inject the docstring (module string) into the snippet; primarily, author,

Tweepy: Invalid arguments at function call (tweepy.Stream())

2011-10-31 Thread Ricardo Mansilla
Hi i'm trying to fetch realtime data from twitter using tweepy.Stream(). So I have tried the following... After successfully authenticate using oauth: auth = tweepy.OAuthHandler(...) (it works fine, i have my access_token.key and secret) i did: streaming_api = tweepy.streaming.Stream(auth,

C API: Making a context manager

2011-10-31 Thread Chris Kaynor
I am currently rewritting a class using the Python C API to improve performance of it, however I have not been able to find any documentation about how to make a context manager using the C API. The code I am working to produce is the following (its a method of a class):

Re: ttk Listbox

2011-10-31 Thread Ric
On Mon, 31 Oct 2011 10:00:22 -0400, Kevin Walzer k...@codebykevin.com wrote: On 10/31/11 12:37 AM, Ric@rdo wrote: What would be an equivalent widget in ttk like a Listbox and if possible a small example? I tried to look here http://docs.python.org/library/ttk.html but did not see anything.

Re: ttk Listbox

2011-10-31 Thread Ric
On Mon, 31 Oct 2011 10:00:22 -0400, Kevin Walzer k...@codebykevin.com wrote: On 10/31/11 12:37 AM, Ric@rdo wrote: What would be an equivalent widget in ttk like a Listbox and if possible a small example? I tried to look here http://docs.python.org/library/ttk.html but did not see anything.

Re: C API: Making a context manager

2011-10-31 Thread Brian Curtin
On Mon, Oct 31, 2011 at 13:34, Chris Kaynor ckay...@zindagigames.com wrote: I am currently rewritting a class using the Python C API to improve performance of it, however I have not been able to find any documentation about how to make a context manager using the C API. The code I am working

Re: C API: Making a context manager

2011-10-31 Thread Chris Kaynor
On Mon, Oct 31, 2011 at 12:15 PM, Brian Curtin brian.cur...@gmail.com wrote: You'd just add __enter__ and __exit__ in the PyMethodDef. If you have the CPython source, we do it in there in a few places. Off the top of my head, PC\winreg.c contains at least one class that works as a context

Experience with ActivateState Stackato or PiCloud SaaS/PaaS offerings?

2011-10-31 Thread python
Looking for feedback from anyone who has tried or is using ActiveState Stackato, PiCloud or other Python orientated SaaS/PaaS offerings? Pros, cons, advice, lessons learned? Thank you, Malcolm -- http://mail.python.org/mailman/listinfo/python-list

Efficient, built-in way to determine if string has non-ASCII chars outside ASCII 32-127, CRLF, Tab?

2011-10-31 Thread python
Wondering if there's a fast/efficient built-in way to determine if a string has non-ASCII chars outside the range ASCII 32-127, CR, LF, or Tab? I know I can look at the chars of a string individually and compare them against a set of legal chars using standard Python code (and this works fine),

How do I pass a variable to os.popen?

2011-10-31 Thread extraspecialbitter
I'm trying to write a simple Python script to print out network interfaces (as found in the ifconfig -a command) and their speed (ethtool interface). The idea is to loop for each interface and print out its speed. os.popen seems to be the right solution for the ifconfig command, but it doesn't

Re: How do I pass a variable to os.popen?

2011-10-31 Thread Ian Kelly
On Mon, Oct 31, 2011 at 2:16 PM, extraspecialbitter pauldavidm...@gmail.com wrote:    cmd = 'ethtool %interface' That is not Python syntax for string interpolation. Try: cmd = 'ethtool %s' % interface On a side note, os.popen is deprecated. You should look into using the higher-level

Re: How do I pass a variable to os.popen?

2011-10-31 Thread J
On Mon, Oct 31, 2011 at 16:16, extraspecialbitter pauldavidm...@gmail.com wrote:    if line[10:20] == Link encap:       interface=line[:9]    cmd = 'ethtool %interface'    print cmd    gp = os.popen(cmd) because you're saying that cmd is 'ethtool %interface' as you pointed out later on...

Re: How do I pass a variable to os.popen?

2011-10-31 Thread Dan M
On Mon, 31 Oct 2011 13:16:25 -0700, extraspecialbitter wrote: cmd = 'ethtool %interface' Do you perhaps mean: cmd = 'ethtool %s' % (interface, ) -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I pass a variable to os.popen?

2011-10-31 Thread Chris Rebert
On Mon, Oct 31, 2011 at 1:16 PM, extraspecialbitter pauldavidm...@gmail.com wrote: I'm trying to write a simple Python script to print out network interfaces (as found in the ifconfig -a command) and their speed (ethtool interface).  The idea is to loop for each interface and print out its

Re: How do I pass a variable to os.popen?

2011-10-31 Thread Paul David Mena
This was exactly what I was looking for. Thanks! On Mon, Oct 31, 2011 at 4:48 PM, Chris Rebert c...@rebertia.com wrote: On Mon, Oct 31, 2011 at 1:16 PM, extraspecialbitter pauldavidm...@gmail.com wrote: I'm trying to write a simple Python script to print out network interfaces (as found

Re: Tweepy: Invalid arguments at function call (tweepy.Stream())

2011-10-31 Thread Terry Reedy
On 10/31/2011 12:18 PM, Ricardo Mansilla wrote: Hi i'm trying to fetch realtime data from twitter using tweepy.Stream(). A reference to your source for tweepy would help. The link below gives https://github.com/tweepy/tweepy for the current source. http://pypi.python.org/pypi/tweepy/1.7.1 has

Re: Efficient, built-in way to determine if string has non-ASCII chars outside ASCII 32-127, CRLF, Tab?

2011-10-31 Thread Dave Angel
On 10/31/2011 03:54 PM, pyt...@bdurham.com wrote: Wondering if there's a fast/efficient built-in way to determine if a string has non-ASCII chars outside the range ASCII 32-127, CR, LF, or Tab? I know I can look at the chars of a string individually and compare them against a set of legal chars

Re: Efficient, built-in way to determine if string has non-ASCII chars outside ASCII 32-127, CRLF, Tab?

2011-10-31 Thread Dave Angel
On 10/31/2011 05:47 PM, Dave Angel wrote: On 10/31/2011 03:54 PM, pyt...@bdurham.com wrote: Wondering if there's a fast/efficient built-in way to determine if a string has non-ASCII chars outside the range ASCII 32-127, CR, LF, or Tab? I know I can look at the chars of a string individually

Re: Efficient, built-in way to determine if string has non-ASCII chars outside ASCII 32-127, CRLF, Tab?

2011-10-31 Thread Ian Kelly
On Mon, Oct 31, 2011 at 4:08 PM, Dave Angel d...@davea.name wrote: I was wrong once again.  But a simple combination of  translate() and split() methods might do it.  Here I'm suggesting that the table replace all valid characters with space, so the split() can use its default behavior. That

Re: Efficient, built-in way to determine if string has non-ASCII chars outside ASCII 32-127, CRLF, Tab?

2011-10-31 Thread Steven D'Aprano
On Mon, 31 Oct 2011 17:47:06 -0400, Dave Angel wrote: On 10/31/2011 03:54 PM, pyt...@bdurham.com wrote: Wondering if there's a fast/efficient built-in way to determine if a string has non-ASCII chars outside the range ASCII 32-127, CR, LF, or Tab? I know I can look at the chars of a string

Re: Efficient, built-in way to determine if string has non-ASCII chars outside ASCII 32-127, CRLF, Tab?

2011-10-31 Thread Terry Reedy
On 10/31/2011 3:54 PM, pyt...@bdurham.com wrote: Wondering if there's a fast/efficient built-in way to determine if a string has non-ASCII chars outside the range ASCII 32-127, CR, LF, or Tab? I presume you also want to disallow the other ascii control chars? I know I can look at the chars

Re: Efficient, built-in way to determine if string has non-ASCII chars outside ASCII 32-127, CRLF, Tab?

2011-10-31 Thread Tim Chase
On 10/31/11 18:02, Steven D'Aprano wrote: # Define legal characters: LEGAL = ''.join(chr(n) for n in range(32, 128)) + '\n\r\t\f' # everybody forgets about formfeed... \f # and are you sure you want to include chr(127) as a text char? def is_ascii_text(text): for c in text:

Re: ttk Listbox

2011-10-31 Thread Kevin Walzer
On 10/31/11 4:03 PM, Ric@rdo wrote: On Mon, 31 Oct 2011 10:00:22 -0400, Kevin Walzerk...@codebykevin.com wrote: On 10/31/11 12:37 AM, Ric@rdo wrote: What would be an equivalent widget in ttk like a Listbox and if possible a small example? I tried to look here

Re: Efficient, built-in way to determine if string has non-ASCII chars outside ASCII 32-127, CRLF, Tab?

2011-10-31 Thread Patrick Maupin
On Mon, Oct 31, 2011 at 4:08 PM, Dave Angel d...@davea.name wrote: Yes. Actually, you don't even need the split() -- you can pass an optional deletechars parameter to translate(). On Oct 31, 5:52 pm, Ian Kelly ian.g.ke...@gmail.com wrote: That sounds overly complicated and error-prone. Not

Re: Efficient, built-in way to determine if string has non-ASCII chars outside ASCII 32-127, CRLF, Tab?

2011-10-31 Thread Terry Reedy
On 10/31/2011 7:02 PM, Steven D'Aprano wrote: On Mon, 31 Oct 2011 17:47:06 -0400, Dave Angel wrote: On 10/31/2011 03:54 PM, pyt...@bdurham.com wrote: Wondering if there's a fast/efficient built-in way to determine if a string has non-ASCII chars outside the range ASCII 32-127, CR, LF, or Tab?

Re: Efficient, built-in way to determine if string has non-ASCII chars outside ASCII 32-127, CRLF, Tab?

2011-10-31 Thread Dave Angel
On 10/31/2011 08:32 PM, Patrick Maupin wrote: On Mon, Oct 31, 2011 at 4:08 PM, Dave Angeld...@davea.name wrote: Yes. Actually, you don't even need the split() -- you can pass an optional deletechars parameter to translate(). On Oct 31, 5:52 pm, Ian Kellyian.g.ke...@gmail.com wrote: That

Re: Tweepy: Invalid arguments at function call (tweepy.Stream()) (Terry Reedy)

2011-10-31 Thread Ricardo Mansilla
Thanks a lot for your answer. I'm using python 2.7.2 and tweetpy 1.7 help(tweepy) Help on package tweepy: NAME tweepy - Tweepy Twitter API library (...) VERSION 1.7.1 and probably that is the problem, the link that you gave me refers to the 1.2 version page... Anyway, i already

Re: Efficient, built-in way to determine if string has non-ASCII chars outside ASCII 32-127, CRLF, Tab?

2011-10-31 Thread Patrick Maupin
On Oct 31, 9:12 pm, Dave Angel d...@davea.name wrote: I would claim that a well-written (in C) translate function, without using the delete option, should be much quicker than any python loop, even if it does copy the data. Are you arguing with me? I was agreeing with you, I thought, that

Re: Unicode literals and byte string interpretation.

2011-10-31 Thread Fletcher Johnson
On Oct 28, 3:06 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Thu, 27 Oct 2011 20:05:13 -0700, Fletcher Johnson wrote: If I create a newUnicodeobject u'\x82\xb1\x82\xea\x82\xcd' how does this creation process interpret the bytes in the byte string? It doesn't, because

Module for Python and SGE interaction

2011-10-31 Thread Abhishek Pratap
Hey Guys I shud mention I am relative new to the language. Could you please let me know based on your experience which module could help me with farm out jobs to our existing clusters(we use SGE here) using python. Ideally I would like to do the following. 1. Submit #N jobs to cluster 2.

[issue5219] IDLE/Tkinter: edit win stops updating when tooltip is active

2011-10-31 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I can fairly easily reproduce the hang on a current OS X system and the latest patch appears to solve the problem. Looks good to me. -- nosy: +ned.deily stage: needs patch - patch review ___ Python tracker

[issue13246] Py_UCS4_strlen and friends needn't be public

2011-10-31 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 80a7ab9ac29f by Martin v. Löwis in branch 'default': Drop Py_UCS4_ functions. Closes #13246. http://hg.python.org/cpython/rev/80a7ab9ac29f -- nosy: +python-dev resolution: - fixed stage: -

[issue13301] the script Tools/i18n/msgfmt.py allows arbitrary code execution via po files

2011-10-31 Thread David Jean Louis
New submission from David Jean Louis izimo...@gmail.com: Hi, I'm the author of the polib python module, incidentally (after a bug report in polib: https://bitbucket.org/izi/polib/issue/27/polib-doesnt-check-unescaped-quote) I've found that the eval() in Tools/i18n/msgfmt.py allows arbitrary

[issue13298] Result type depends on order of operands for bytes and bytearray

2011-10-31 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13298 ___ ___ Python-bugs-list

[issue13281] Make robotparser.RobotFileParser ignore blank lines

2011-10-31 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: If it's added it should be a versionchanged, not a versionadded. I'm also not entirely sure this should be considered a new feature and don't see the point of having a strict mode. IMHO robotparser should honor what the robots.txt files

[issue13301] the script Tools/i18n/msgfmt.py allows arbitrary code execution via po files

2011-10-31 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +barry, benjamin.peterson, ezio.melotti, georg.brandl stage: - patch review versions: -Python 2.6, Python 3.1, Python 3.4 ___ Python tracker rep...@bugs.python.org

[issue13301] the script Tools/i18n/msgfmt.py allows arbitrary code execution via po files

2011-10-31 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13301 ___ ___ Python-bugs-list

[issue13301] the script Tools/i18n/msgfmt.py allows arbitrary code execution via po files

2011-10-31 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This should be fixed; the patch doesn't seem correct though, it doesn't handle escapes like eval() would. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13301

[issue13301] the script Tools/i18n/msgfmt.py allows arbitrary code execution via po files

2011-10-31 Thread David Jean Louis
David Jean Louis izimo...@gmail.com added the comment: I'm adding an updated patch that also handles unescaped double quote at the beginning of the string. -- versions: +Python 2.6, Python 3.1, Python 3.4 Added file: http://bugs.python.org/file23567/msgfmt.py.diff.update1.diff

[issue1234674] filecmp.cmp's shallow option

2011-10-31 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Hello, we recently received a this message on docs@ : http://mail.python.org/pipermail/docs/2011-October/006121.html that's actually related to this issue: how can we move it forward? -- nosy: +sandro.tosi versions: +Python 3.3

[issue13301] the script Tools/i18n/msgfmt.py allows arbitrary code execution via po files

2011-10-31 Thread David Jean Louis
David Jean Louis izimo...@gmail.com added the comment: Hmm, I missed your previous message, indeed, unescaping is not handled by this patch, sorry about that. Here's how it is handled in polib: https://bitbucket.org/izi/polib/src/dbafdc621bf4/polib.py#cl-206 --

[issue12760] Add create mode to open()

2011-10-31 Thread David Townshend
David Townshend aquavita...@gmail.com added the comment: I see this has been marked as a duplicate of http://bugs.python.org/issue12797. Please explain how this is, since that proposal does not appear to provide the functionality discussed here. --

[issue1336] subprocess.Popen hangs when child writes to stderr

2011-10-31 Thread john doe
john doe tnagy1...@gmail.com added the comment: The following piece of code does not seem to be thread-safe: gc.disable() try: os.fork() except: ... If calling subprocess.Popen() is supposed to work from threads without any particular protection, then a lock is needed in

[issue12760] Add create mode to open()

2011-10-31 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: issue12797 would allow things like: def create_exclusive_file(filename): return open(filename, w, opener=lambda path, mode: os.open(path, mode|os.O_CREAT|os.O_EXCL)) -- ___

[issue1336] subprocess.Popen hangs when child writes to stderr

2011-10-31 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1336 ___ ___

[issue13302] Clarification needed in C API arg parsing

2011-10-31 Thread Sandro Tosi
New submission from Sandro Tosi sandro.t...@gmail.com: Hello, given I can't fully comprehend the user request (sent on docs@ as of http://mail.python.org/pipermail/docs/2011-September/005791.html), I'm just echoing it : recently I embedded Python into one of my applications, which included

[issue13226] Expose RTLD_* constants in the posix module

2011-10-31 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 05e2bdc00c0c by Victor Stinner in branch 'default': Issue #13226: Update sys.setdlopenflags() docstring http://hg.python.org/cpython/rev/05e2bdc00c0c -- ___ Python

[issue2979] use_datetime in SimpleXMLRPCServer

2011-10-31 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: 2096158376e5 broke test_xmlrpc: == ERROR: test_datetime_before_1900 (test.test_xmlrpc.XMLRPCTestCase)

[issue1336] subprocess.Popen hangs when child writes to stderr

2011-10-31 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: ita1024: please don't post to closed issues; your message here will be ignored. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1336

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-10-31 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: Traceback (most recent call last): File /export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/test/regrtest.py, line 1186, in runtest_inner indirect_test() File

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-10-31 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: There's a race in _write_atomic(): # On POSIX-like platforms, renaming is atomic path_tmp = path + '.tmp' try: fd = _os.open(path_tmp, _os.O_EXCL | _os.O_CREAT | _os.O_WRONLY) with

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-10-31 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Patch attached. -- keywords: +patch Added file: http://bugs.python.org/file23568/import_atomic_race.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13303

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-10-31 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Bitbucket repo and attached patch updated relative to current tip. -- Added file: http://bugs.python.org/file23569/issue11816_get_opinfo_branch_20111031.diff ___ Python tracker

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-10-31 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: Removed file: http://bugs.python.org/file23197/issue11816_get_opinfo_branch_20110920.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11816 ___

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-10-31 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: Removed file: http://bugs.python.org/file23095/issue11816_get_opinfo_branch_20110904.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11816 ___

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-10-31 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: Removed file: http://bugs.python.org/file23019/issue11816_get_opinfo_branch_20110824.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11816 ___

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-10-31 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: Removed file: http://bugs.python.org/file21599/dis.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11816 ___

[issue11682] PEP 380 reference implementation for 3.3

2011-10-31 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Bitbucket repo and attached patch updated relative to latest get_opinfo branch (which in turn was updated to apply cleanly against current CPython tip). (I still need to incorporate the doc updates and look into adding keyword argument

[issue11682] PEP 380 reference implementation for 3.3

2011-10-31 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: Removed file: http://bugs.python.org/file22616/pep380-missing-docs.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11682 ___

[issue11682] PEP 380 reference implementation for 3.3

2011-10-31 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: Removed file: http://bugs.python.org/file23096/issue11682_pep380_branch_20110904.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11682 ___

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-10-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This looks good to me. I'm slightly worried about what happens when there's a stale tmp file (for example if the Python process crashed before renaming it). -- ___ Python tracker

[issue13295] html5 template for Lib/http/server.py

2011-10-31 Thread karl
karl karl+pythonb...@la-grange.net added the comment: Ezio, Martin, HTML 3.2, HTML 4.01 are not outdated. They have stable specifications. That said their doctypes have not influence at all in browsers. The html5 doctype !DOCTYPE html has been chosen because it was the minimal string of

[issue13283] removal of two unused variable in locale.py

2011-10-31 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: 2.7 is a long term maintenance branch, and this patch is trivial enough. I think it is risk free :) -- assignee: - jcea nosy: +jcea ___ Python tracker rep...@bugs.python.org

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-10-31 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Then we won't write the bytecode any more. But it will be consistent. The solution would be to create a random temporary file (with e.g. mkstemp()): in case of crash, we'll let dangling temporary files, but we'll be able to update the

[issue13283] removal of two unused variable in locale.py

2011-10-31 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 0694ebb5db99 by Jesus Cea in branch '2.7': Closes #13283: removal of two unused variable in locale.py http://hg.python.org/cpython/rev/0694ebb5db99 New changeset a479aad0231e by Jesus Cea in branch '3.2': Closes

[issue13295] html5 template for Lib/http/server.py

2011-10-31 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: My point is that the HTML5 doctype doesn't bring us anything (except maybe a shorter string), so I don't see the point of changing it. When the HTML5 spec is stable we can switch to it, but even then the update won't change anything.

[issue9750] sqlite3 iterdump fails on column with reserved name

2011-10-31 Thread Lucas Sinclair
Lucas Sinclair blastoc...@mac.com added the comment: Sure, I can have a try at it and address the issues you pointed out. The URL to the guidelines you provided gives a 404. In what form exactly would you like the patch to be ? I wouldn't mind either adding to the test suite, but I'm not sure

[issue13295] html5 template for Lib/http/server.py

2011-10-31 Thread karl
karl karl+pythonb...@la-grange.net added the comment: Yup. I doesn't bring anything except putting the output in line with the reality of browsers implementations. You may close it. I don't mind. -- ___ Python tracker rep...@bugs.python.org

[issue13295] html5 template for Lib/http/server.py

2011-10-31 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: - ezio.melotti stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13295 ___

[issue13295] html5 template for Lib/http/server.py

2011-10-31 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’d rather fix the page (look at the diff to find one violation: the first heading is an h2 instead of h1) and use an HTML5 doctype, as it’s just HTML 4.01 + pragmatism. -- ___ Python tracker

[issue13301] the script Tools/i18n/msgfmt.py allows arbitrary code execution via po files

2011-10-31 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: -Python 2.6, Python 3.1, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13301 ___

[issue13238] Add shell command helpers to shutil module

2011-10-31 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’m not sure my question was well phrased. If I have these files: spam.py ham.py foo bar.py will a pattern of '*.py' match all of them with your functions, even the one with an embedded space? --

[issue11638] python setup.py sdist crashes if version is unicode

2011-10-31 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Here's a test for the bug. Thanks! Some comments are strange, but the patch is a good start. One way to fix the symptom (maybe not the correct way) would be to edit tarfile._Stream._init_write_gz I’d rather change distutils, not tarfile. I

[issue13288] SSL module doesn't allow access to cert issuer information

2011-10-31 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13288 ___ ___ Python-bugs-list mailing list

[issue11812] transient socket failure to connect to 'localhost'

2011-10-31 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Any progress on this?. I still see frequent OpenIndiana Buildbots failures because of this. Is anybody activelly working on this?. Should I get involved? -- ___ Python tracker rep...@bugs.python.org

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2011-10-31 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Here's the error message: error: File not found: /tmp/tmpsga9lh/foo/build/bdist.linux-i686/rpm/BUILDROOT/foo-0.1-1.i386/usr/local/lib/python3.3/site-packages/foo.pyc Thanks. Some rpm tool is looking for byte-compiled files in the old

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-10-31 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: -def set_cdata_mode(self): +def set_cdata_mode(self, elem): Looks like an incompatible behavior change. Is it only an internal method that will never affect users’ code (even subclasses)? --

[issue9750] sqlite3 iterdump fails on column with reserved name

2011-10-31 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Sure, I can have a try at it and address the issues you pointed out. Nice! The URL to the guidelines you provided gives a 404. They’ve moved to http://docs.python.org/devguide meanwhile. I wouldn't mind either adding to the test suite, but

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-10-31 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Here's a patch using pseudo-random filenames. I used id(path) to generate a random name: it's faster than getpid(), and doesn't pollute strace's output (I'm one of strace's biggest fan :-). -- Added file:

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-10-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here's a patch using pseudo-random filenames. I used id(path) to generate a random name: it's faster than getpid(), and doesn't pollute strace's output (I'm one of strace's biggest fan :-). If you go that way, you should also modify

[issue11812] transient socket failure to connect to 'localhost'

2011-10-31 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Is anybody activelly working on this?. I don't think so. Should I get involved? Sure, if you have access to a machine on which you can reliably reproduce the problem, it'll be much easier. I would bet on a deficient name

[issue12797] io.FileIO and io.open should support openat

2011-10-31 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Updated patch: * checks for long overflow * raises original exception if opener returns null * makes it explicit that opener must return an open file descriptor. This looks good to me. You just need to add a versionchanged attribute in the

[issue13295] html5 template for Lib/http/server.py

2011-10-31 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I declare the original issue closed - there is no reason to switch to HTML 5 in this code. There are side issues, such as the HTML 3.2 perhaps being incorrect; people who want to commit patches in that respect can just go ahead.

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-10-31 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: (it does sound a bit overkill to me :-)) Well, it depends on what we want: - if having a stale bytecode file indefinitely is acceptable, then the '.tmp' suffix approach is OK - if not, then we should use pseudo-random files If you

  1   2   >