ANN: unicode 0.9.6

2012-07-31 Thread garabik-news-2005-05
unicode is a simple python command line utility that displays properties for a given unicode character, or searches unicode database for a given name. It was written with Linux in mind, but should work almost everywhere (including MS Windows and MacOSX), UTF-8 console is recommended.

Re: OT: accessibility (was Re: simplified Python parsing question)

2012-07-31 Thread Ian Kelly
On Mon, Jul 30, 2012 at 8:54 PM, Tim Chase python.l...@tim.thechases.com wrote: I've tried a similar experiment and am curious on your input device. Eye-tracking/dwell-clicking? A sip/puff joystick? Of the various input methods I tried, I found that Dasher[1] was the most intuitive, had a

Re: Is Python a commercial proposition ?

2012-07-31 Thread Steven D'Aprano
On Mon, 30 Jul 2012 21:45:51 -0700, Paul Rubin wrote: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: And at that level, you aren't going to write your app in Python anyway, and not because of the GIL. (These microcontrollers are unlikely to have multiple cores -- why the hell

on django deployment

2012-07-31 Thread Yzr
Hi, guys: which solution is better, concerning memory usage and concurrency when deploying django ? 1) nginx + uWSGI + django 2) nginx + tornado + django thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list

Re: Linux shell to python

2012-07-31 Thread Mark Lawrence
On 31/07/2012 02:20, Dennis Lee Bieber wrote: On Mon, 30 Jul 2012 22:56:48 +, Dan Stromberg drsali...@gmail.com declaimed the following in gmane.comp.python.general: Sigh, and I'm also not keen on multi-line list comprehensions, specifically because I think they tend to make less readable

Re: Linux shell to python

2012-07-31 Thread Chris Angelico
On Tue, Jul 31, 2012 at 5:15 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 31/07/2012 02:20, Dennis Lee Bieber wrote: should be pecked to death by a dead parrot. Any particular species? I'm sure that, if you're in Norway, you could find an appropriate bird. But for those of us for

Re: argparse limitations

2012-07-31 Thread Benoist Laurent
Well sorry about that but it seems I was wrong. It was Friday evening and I guess I've not been careful. Actually when you specify nargs=?, the doc says One argument will be consumed from the command line if possible, and produced as a single item. So you can't pass several arguments to the

Re: argparse limitations

2012-07-31 Thread Oscar Benjamin
On Jul 31, 2012 10:32 AM, Benoist Laurent beno...@ibpc.fr wrote: Well sorry about that but it seems I was wrong. It was Friday evening and I guess I've not been careful. Actually when you specify nargs=?, the doc says One argument will be consumed from the command line if possible, and

Re: argparse limitations

2012-07-31 Thread Benoist Laurent
Really sorry about that. So, for the community, below is the full code for a tool that behaves like a Unix standard tool. It takes in argument the files to process and a command. Just to setup a command-line parser that acts just like a unix standard tool. import argparse import sys def

Re: argparse limitations

2012-07-31 Thread Benoist Laurent
Finally. The code I proposed doesn't work in this case: if you add any positional argument to one of the subparsers, then the parsing doesn't work anymore. The reason seems to be that argparse thinks the last argument of the first parser is the last but one argument. Hence, if a subparser takes

Re: Linux shell to python

2012-07-31 Thread Alister
On Tue, 31 Jul 2012 08:15:32 +0100, Mark Lawrence wrote: On 31/07/2012 02:20, Dennis Lee Bieber wrote: On Mon, 30 Jul 2012 22:56:48 +, Dan Stromberg drsali...@gmail.com declaimed the following in gmane.comp.python.general: Sigh, and I'm also not keen on multi-line list comprehensions,

NameError vs AttributeError

2012-07-31 Thread Ulrich Eckhardt
Hi! Using Python 2.7, I stumbled across the fact that 'self.xy' raises an AttributeError if self doesn't have an 'xy' as attribute, but 'xy' will instead raise a NameError. To some extent, these two are very similar, namely that the name 'xy' couldn't be resolved in a certain context, but

Re: argparse limitations

2012-07-31 Thread Oscar Benjamin
On 31 July 2012 12:03, Benoist Laurent beno...@ibpc.fr wrote: Finally. The code I proposed doesn't work in this case: if you add any positional argument to one of the subparsers, then the parsing doesn't work anymore. The reason seems to be that argparse thinks the last argument of the first

Re: OT: accessibility (was Re: simplified Python parsing question)

2012-07-31 Thread Eric S. Johansson
On 7/30/2012 10:54 PM, Tim Chase wrote: On 07/30/12 21:11, Eric S. Johansson wrote: the ability for multiple people to work on the same document at the same time is really important. Can't do that with Word or Libre office. revision tracking in traditional word processors are unpleasant to

Re: Is Python a commercial proposition ?

2012-07-31 Thread Roy Smith
In article 50177b4d$0$29867$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Do they consider that perhaps there are alternatives to threads? There's basically two reasons people use threads. First is because it's a convenient way to multiplex

Re: profiling and optimizing

2012-07-31 Thread Chris Angelico
On Tue, Jul 31, 2012 at 10:13 PM, Rita rmorgan...@gmail.com wrote: It seems majority of the time is taking in the deep copy but that seems to come from a function (or functions) in the code. Is there a way to optimize that? Why is the program deep-copying things? Rather than making deepcopy

Re: profiling and optimizing

2012-07-31 Thread Stefan Behnel
Rita, 31.07.2012 14:13: I recently inherented a large python process and everything is lovely. As a learning experience I would like to optimize the code so I ran it thru the profiler python -m cProfile myscript.py It seems majority of the time is taking in the deep copy but that seems to

Re: profiling and optimizing

2012-07-31 Thread Oscar Benjamin
On 31 July 2012 13:13, Rita rmorgan...@gmail.com wrote: hello, I recently inherented a large python process and everything is lovely. As a learning experience I would like to optimize the code so I ran it thru the profiler python -m cProfile myscript.py It seems majority of the time is

Re: argparse limitations

2012-07-31 Thread Benoist Laurent
Le Jul 31, 2012 à 1:45 PM, Oscar Benjamin a écrit : On 31 July 2012 12:03, Benoist Laurent beno...@ibpc.fr wrote: Finally. The code I proposed doesn't work in this case: if you add any positional argument to one of the subparsers, then the parsing doesn't work anymore. The reason

Re: py2c - an open source Python to C/C++ is looking for developers

2012-07-31 Thread Stefan Behnel
Stefan Behnel, 31.07.2012 07:23: From a look at the source code, it seems hard to bring it together with anything. It looks very monolithic. Hmm, sorry, I mixed it up with 2c.py, which is yet another of those Python-to-C compilers with an all too similar name.

Re: argparse limitations

2012-07-31 Thread Oscar Benjamin
On 31 July 2012 13:51, Benoist Laurent beno...@ibpc.fr wrote: Le Jul 31, 2012 à 1:45 PM, Oscar Benjamin a écrit : On 31 July 2012 12:03, Benoist Laurent beno...@ibpc.fr wrote: Finally. The code I proposed doesn't work in this case: if you add any positional argument to one of the

Re: argparse limitations

2012-07-31 Thread Benoist Laurent
The standard way, however, is to have a parser that takes the first non-option argument as a subcommand name and parses the remaining arguments according to that subcommand. Your command line users are more likely to be able to understand how to use the program if it works that way. I'll

Re: profiling and optimizing

2012-07-31 Thread Peter Otten
Rita wrote: I recently inherented a large python process and everything is lovely. As a learning experience I would like to optimize the code so I ran it thru the profiler python -m cProfile myscript.py It seems majority of the time is taking in the deep copy but that seems to come from

docx/lxml

2012-07-31 Thread cyrille . leroux
Hello, I'm trying to use the docx package to generate documents containing some text and tables. I don't want to install any module since I just want my coworkers to copy a directory and run a script, without installing tons of softwares (Just python2.7 which is already installed). First, I

Re: Is Python a commercial proposition ?

2012-07-31 Thread David
On 30/07/2012, lipska the kat lip...@yahoo.co.uk wrote: On 30/07/12 14:06, Roy Smith wrote: These days, I'm working on a fairly large web application (songza.com). We are very sorry to say that due to licensing constraints we cannot allow access to Songza for listeners located outside of the

Re: docx/lxml

2012-07-31 Thread Pedro Kroger
On Jul 31, 2012, at 10:36 AM, cyrille.ler...@gmail.com wrote: - Do you know any *easy to use*, *easy to deploy* package to generate .doc like documents ? - Do you have any suggestion to do it differently (maybe with native packages ?) - As a python newby, I don't understand why you have

Firefox 3.6 [OT] (was: Re: [ANN] pyknon: Simple Python library to generate music in a hacker friendly way.)

2012-07-31 Thread Andrew Berg
On 7/30/2012 9:25 PM, Steven D'Aprano wrote: I don't. But in my experience, the risk of security breaches is *much* less than the chance that the new version will break functionality, introduce bugs, have a worse user interface, and generally be a step backwards rather than forward. 4.0

Re: Pass data to a subprocess

2012-07-31 Thread andrea crotti
def procs(): mp = MyProcess() # with the join we are actually waiting for the end of the running time mp.add([1,2,3]) mp.start() mp.add([2,3,4]) mp.join() print(mp) I think I got it now, if I already just mix the start before another add, inside the

Re: Pass data to a subprocess

2012-07-31 Thread Laszlo Nagy
I think I got it now, if I already just mix the start before another add, inside the Process.run it won't see the new data that has been added after the start. So this way is perfectly safe only until the process is launched, if it's running I need to use some multiprocess-aware data

Re: docx/lxml

2012-07-31 Thread Cyrille Leroux
On Tuesday, July 31, 2012 4:00:25 PM UTC+2, Pedro Kroger wrote: On Jul 31, 2012, at 10:36 AM, Cyrille Leroux wrote: - Do you know any *easy to use*, *easy to deploy* package to generate .doc like documents ? - Do you have any suggestion to do it differently (maybe with native

Re: Search and replace text in XML file?

2012-07-31 Thread Paul Rudin
Terry Reedy tjre...@udel.edu writes: ... a proper text-editor* * ... Notepad++ is one such on Windows. Surely emacs is the only such on any platform? :) -- http://mail.python.org/mailman/listinfo/python-list

Re: docx/lxml

2012-07-31 Thread Stefan Behnel
Cyrille Leroux, 31.07.2012 17:01: I'm giving pip a try : 1/ Linux (debian lenny) - (as root) sh setuptools-0.6c11-py2.7.egg (ok) - (as root) cd pip-1.1 ; python setup.py install (ok) - pip : ImportError : No module named pkg_resources - damn, I guess it's going to be a pain, again - ...

Re: Pass data to a subprocess

2012-07-31 Thread andrea crotti
2012/7/31 Laszlo Nagy gand...@shopzeus.com: I think I got it now, if I already just mix the start before another add, inside the Process.run it won't see the new data that has been added after the start. So this way is perfectly safe only until the process is launched, if it's running I need

Re: docx/lxml

2012-07-31 Thread Cyrille Leroux
On Tuesday, July 31, 2012 5:13:12 PM UTC+2, Stefan Behnel wrote: Cyrille Leroux, 31.07.2012 17:01: I'm giving pip a try : 1/ Linux (debian lenny) - (as root) sh setuptools-0.6c11-py2.7.egg (ok) - (as root) cd pip-1.1 ; python setup.py install (ok) - pip : ImportError

Re: Is Python a commercial proposition ?

2012-07-31 Thread lipska the kat
On 31/07/12 14:52, David wrote: On 30/07/2012, lipska the katlip...@yahoo.co.uk wrote: On 30/07/12 14:06, Roy Smith wrote: These days, I'm working on a fairly large web application (songza.com). We are very sorry to say that due to licensing constraints we cannot allow access to Songza for

Re: Linux shell to python

2012-07-31 Thread 88888 Dihedral
Mark Lawrence於 2012年7月31日星期二UTC+8下午3時15分32秒寫道: On 31/07/2012 02:20, Dennis Lee Bieber wrote: On Mon, 30 Jul 2012 22:56:48 +, Dan Stromberg drsali...@gmail.com declaimed the following in gmane.comp.python.general: Sigh, and I'm also not keen on multi-line list

Re: NameError vs AttributeError

2012-07-31 Thread Terry Reedy
On 7/31/2012 6:36 AM, Ulrich Eckhardt wrote: Hi! Using Python 2.7, I stumbled across the fact that 'self.xy' raises an AttributeError if self doesn't have an 'xy' as attribute, but 'xy' will instead raise a NameError. To some extent, these two are very similar, namely that the name 'xy'

Re: NameError vs AttributeError

2012-07-31 Thread Chris Kaynor
On Tue, Jul 31, 2012 at 1:21 PM, Terry Reedy tjre...@udel.edu wrote: Another example: KeyError and IndexError are both subscript errors, but there is no SubscriptError superclass, even though both work thru the same mechanism -- __getitem__. The reason is that there is no need for one. In

Why 'Flat is better than nested'

2012-07-31 Thread Terry Reedy
import this prints 'The Zen of Python', a poem by Tim Peters that consists of python proverbs such as Flat is better than nested. (Others things being equal) why? Because it is a restatement of the principle of parsimony, of not multiplying entities without necessity. Suppose we have a

Re: Why 'Flat is better than nested'

2012-07-31 Thread Ifthikhan Nazeem
*as many as (about) 2*N - log2(N) parent child relationships* * * I would like to know how did you come up with the above formula? Forgive my ignorance. -- Thanks and Best Regards, Iftikhan Nazeem *Skype* : iftecan2000 On Tue, Jul 31, 2012 at 11:04 PM, Terry Reedy tjre...@udel.edu wrote:

Re: Why 'Flat is better than nested'

2012-07-31 Thread Ian Kelly
On Tue, Jul 31, 2012 at 3:28 PM, Ifthikhan Nazeem iftecan2...@gmail.com wrote: as many as (about) 2*N - log2(N) parent child relationships I would like to know how did you come up with the above formula? Forgive my ignorance. I come up with 2N - 2 myself. If there are N leaf nodes and N - 1

Re: simplified Python parsing question

2012-07-31 Thread Chris Angelico
On Tue, Jul 31, 2012 at 11:54 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Google Docs is, in my opinion, a nasty piece of rubbish that doesn't run on any of my browsers. As far as I'm concerned, I'd rather download a Word doc, because at least I can open that in OpenOffice

Re: Is Python a commercial proposition ?

2012-07-31 Thread David
On 01/08/2012, lipska the kat lip...@yahoo.co.uk wrote: On 31/07/12 14:52, David wrote: [1] as in beer [2] for research purposes There's one (as in 1 above) in the pump for you. Great, more beer = better research = \o/\o/\o/ But, pump sounds a bit extreme .. I usually sip contentedly from a

Re: Why 'Flat is better than nested'

2012-07-31 Thread Terry Reedy
On 7/31/2012 5:49 PM, Ian Kelly wrote: On Tue, Jul 31, 2012 at 3:28 PM, Ifthikhan Nazeem iftecan2...@gmail.com wrote: as many as (about) 2*N - log2(N) parent child relationships I would like to know how did you come up with the above formula? Forgive my ignorance. By non-rigorous

Re: NameError vs AttributeError

2012-07-31 Thread Terry Reedy
On 7/31/2012 4:49 PM, Chris Kaynor wrote: On Tue, Jul 31, 2012 at 1:21 PM, Terry Reedy tjre...@udel.edu mailto:tjre...@udel.edu wrote: Another example: KeyError and IndexError are both subscript errors, but there is no SubscriptError superclass, even though both work thru the same

Re: Linux shell to python

2012-07-31 Thread Barry Scott
On 30 Jul 2012, at 23:56, Dan Stromberg drsali...@gmail.com wrote: On Mon, Jul 30, 2012 at 9:26 PM, Barry Scott ba...@barrys-emacs.org wrote: lspci gets all its information from the files in /sys/bus/pci/devices. You can use os.listdir() to list all the files in the folder and then open

missing python-config and building python on Windows

2012-07-31 Thread Damon Register
I am attempting to build gtk and glade using mingw/msys. It seems that some of the packages require python. I installed 2.7.3 using the installer from python.org. That worked for some of the packages but now I am trying to do one that needs python-config which I don't find in the installation

Re: [ANN] pyknon: Simple Python library to generate music in a hacker friendly way.

2012-07-31 Thread Peter Billam
On 2012-07-30, Pedro Kroger kro...@pedrokroger.net wrote: Pyknon is a simple music library for Python hackers. With Pyknon you can generate Midi files quickly and reason about musical proprieties. It works with Python 2.7 and 3.2. ... a basic example to create 4 notes and save into a MIDI

Re: missing python-config and building python on Windows

2012-07-31 Thread Mark Hammond
On 1/08/2012 10:48 AM, Damon Register wrote: I am attempting to build gtk and glade using mingw/msys. It seems that some of the packages require python. I installed 2.7.3 using the installer from python.org. That worked for some of the packages but now I am trying to do one that needs

Re: [ANN] pyknon: Simple Python library to generate music in a hacker friendly way.

2012-07-31 Thread Pedro Kroger
On Aug 1, 2012, at 12:19 AM, Peter Billam pe...@www.pjb.com.au wrote: I'll check it out. It probably fits into a whole software ecosystem that you're putting together … yes, I use it for my book, Music for Geeks and Nerds and for teaching. It's a crowded area, e.g. my midi stuff is at:

why the different output in Eclipse and Python Shell?

2012-07-31 Thread levi nie
my code in Eclipse: dict.fromkeys(['China','America']) print dict is,dict output: dict is type 'dict' my code in Python Shell: dict.fromkeys(['China','America']) output:{'America': None, 'China': None} Output in Python Shell is what i wanna,but why not in Eclipse? --

[issue15502] Meta path finders and path entry finders are different, but share an ABC

2012-07-31 Thread Eric Snow
Eric Snow added the comment: Yeah, but right now the API of importlib.abc.Finder is strictly find_module(name, path=None). I would expect that to remain the same for MetaPathFinder (bikeshedding aside :). So what would be left in importlib.abc.Finder if the ultimate plan is that

[issue15425] Another strange Tracebacks with importlib

2012-07-31 Thread Eric Snow
Eric Snow added the comment: For instance, http://buildbot.python.org/all/builders/x86%20XP-4%203.x/builds/7214/steps/test/logs/stdio 4 cases of ImportError: No module named '_parent_foo'. Failing on import _parent_foo.bar and from _parent_foo import bar. Unfortunately I don't have an XP

[issue15481] Add exec_module() as part of the import loader API

2012-07-31 Thread Eric Snow
Eric Snow added the comment: This isn't going to be worth it. -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15481 ___

[issue8847] crash appending list and namedtuple

2012-07-31 Thread STINNER Victor
STINNER Victor added the comment: I noticed when building with VC++ 2010 Express on the PGI/PGO builds that it warns about PGO not being available. Even if PGO is not available, wrap_binaryfunc() and wrap_binaryfunc_l() functions get the same address when Python is compiled in PGUpdate mode.

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-31 Thread Eli Bendersky
Eli Bendersky added the comment: I'm looking at the docs. Started with the HOWTO (Doc/howto/ipaddress.rst) This example: net4 = ipaddress.ip_network('192.0.2.0/24') for x in net4.iterhosts(): print(x) Seems to be wrong: ... Traceback (most recent call last): File stdin, line 1,

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-31 Thread Eli Bendersky
Eli Bendersky added the comment: P.S. I intend to prepare patch(es) eventually, but I will document the problems I find here, in case anyone is interested to discuss. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-31 Thread Eli Bendersky
Eli Bendersky added the comment: Ah, probably hosts() replaced iterhosts() -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814 ___ ___

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-31 Thread Eli Bendersky
Eli Bendersky added the comment: Attaching a patch for the howto -- Added file: http://bugs.python.org/file26612/ipaddr_howto.1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814 ___

[issue8847] crash appending list and namedtuple

2012-07-31 Thread Martin v . Löwis
Martin v. Löwis added the comment: Do we even use PGO to the fullest extent? Does someone actually build an instrumented Python, run training inputs on it, and then rebuild with the training data to take advantage of the profile-guided optimizations? Yes, I do, on every release of Python.

[issue15511] _decimal does not build in PGUpdate mode

2012-07-31 Thread Stefan Krah
New submission from Stefan Krah: _decimal does not build in PGUpdate mode. I didn't notice this because I've always used the Release mode so far: msbuild PCbuild\pcbuild.sln /p:Configuration=PGInstrument /p:Platform=x64 msbuild PCbuild\pcbuild.sln /p:Configuration=PGUpdate /p:Platform=x64

[issue8847] crash appending list and namedtuple

2012-07-31 Thread Stefan Krah
Stefan Krah added the comment: Martin v. L??wis rep...@bugs.python.org wrote: If not, then I doubt PGO is buying us anything anyway. It was originally added because people reported measurable speedups when profile-guided optimization is used, for VS 2008. For libmpdec/64-bit I've measured

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-31 Thread Eli Bendersky
Eli Bendersky added the comment: FWIW I would prefer this HOWTO to be part of the document itself. Splitting a document to two parts and keeping them separated is problematic exactly for the same reasons as external documentation in general - it can be forgotten when things get updated.

[issue15507] test_subprocess assumes SIGINT is not being ignored.

2012-07-31 Thread Richard Oudkerk
Richard Oudkerk added the comment: Couldn't the preexec_fn argument of Popen be used instead? -- nosy: +sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15507 ___

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-31 Thread Eli Bendersky
Eli Bendersky added the comment: The docs don't mention that addresses can also be packed in bytes -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814 ___

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-31 Thread Nick Coghlan
Nick Coghlan added the comment: No, the HOWTO should be separate. Having them in the same document makes for something that is worse as both a tutorial and as an API reference (just look at argparse). Yes, that means there are three places to update (code, reference, tutorial). There are

[issue15511] _decimal does not build in PGUpdate mode

2012-07-31 Thread Martin v . Löwis
Martin v. Löwis added the comment: I can't reproduce this. It builds fine for me. Are you sure you did PGInstrument before? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15511 ___

[issue15511] _decimal does not build in PGUpdate mode

2012-07-31 Thread Martin v . Löwis
Martin v. Löwis added the comment: Also, can you try building from the GUI, rather than from the command line? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15511 ___

[issue15511] _decimal does not build in PGUpdate mode

2012-07-31 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- priority: release blocker - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15511 ___ ___

[issue15512] Correct __sizeof__ support for parser

2012-07-31 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here is a patch that implements correct __sizeof__ for ST objects in parser module. -- components: Interpreter Core, Library (Lib) files: parser_sizeof.patch keywords: patch messages: 166978 nosy: benjamin.peterson, storchaka priority: normal

[issue15512] Correct __sizeof__ support for parser

2012-07-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file26614/parser_sizeof-2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15512 ___

[issue15513] Correct __sizeof__ support for pickle

2012-07-31 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here is a patch that implements correct __sizeof__ for Pickler and Unpickler in pickler module. -- components: Library (Lib) files: pickle_sizeof-3.3.patch keywords: patch messages: 166979 nosy: alexandre.vassalotti, pitrou, storchaka priority:

[issue15513] Correct __sizeof__ support for pickle

2012-07-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file26616/pickle_sizeof-3.2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15513 ___

[issue15513] Correct __sizeof__ support for pickle

2012-07-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file26617/pickle_sizeof-2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15513 ___

[issue15511] _decimal does not build in PGUpdate mode

2012-07-31 Thread Stefan Krah
Stefan Krah added the comment: _decimal-pgo.diff sort of solves the problem. It might be a good idea to regenerate _decimal.vcproj using the GUI. I've created it in true Unix fashion by modifying an existing vcproj... I'm always building using the command line. If you say that the GUI build

[issue15514] Correct __sizeof__ support for cpu_set

2012-07-31 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here is a patch that implements correct __sizeof__ for cpu_set class in os module. This is 3.3-only issue. -- components: Library (Lib) files: cpu_set_sizeof.patch keywords: patch messages: 166981 nosy: loewis, storchaka priority: normal severity:

[issue15507] test_subprocess assumes SIGINT is not being ignored.

2012-07-31 Thread Richard Oudkerk
Richard Oudkerk added the comment: Couldn't the preexec_fn argument of Popen be used instead? Actually, since Python 3.2 you can just use restore_signals=True. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15507

[issue15511] _decimal does not build in PGUpdate mode

2012-07-31 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- keywords: +needs review -patch stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15511 ___

[issue15511] _decimal does not build in PGUpdate mode

2012-07-31 Thread Stefan Krah
Stefan Krah added the comment: Using MSVC Professional 2010 and the GUI, I'm getting the same error: 1) Select PGInstrument|x64. Clean the solution. 2) Select PGUpdate|x64. Clean the solution. 3) Select PGInstrument|x64. Build the solution. 4) Select PGUpdate|x64. Build the solution. -

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If this issue is not yet closed, here are a patch with few edits: using int.to_bytes/from_bytes instead struct.pack/unpack and using enumerate() instead range(len()). -- Added file: http://bugs.python.org/file26620/ipaddress-modernize.patch

[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2012-07-31 Thread Hynek Schlawack
Hynek Schlawack added the comment: So, IMHO if someone calls os.makedirs with a mode != 0o777, they expect to have the directories having those modes afterward. So raising no error if they exist and have the wrong mode would be a plain bug. Python 3.3 already has a helpful error message:

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-31 Thread Eli Bendersky
Eli Bendersky added the comment: I disagree about the HOWTO vs. doc thing, but I don't see it as a major issue so I won't dwell on it. I'm now in the process of throwing together a patch for the reference doc - also bundling the address objects together, the network objects together, etc.

[issue15511] VS 2010 Professional: _decimal does not build in PGUpdate mode

2012-07-31 Thread Stefan Krah
Stefan Krah added the comment: Ok, Microsoft dropped PGO support in VS 2010 Professional. In VS 2008 *Professional* it was present. So I'll jump through the hoops of the marketing department and install Ultimate. The patch is of limited value then: _decimal does build in the Professional

[issue15486] Standardised mechanism for stripping importlib frames from tracebacks

2012-07-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 62033490ca0f by Nick Coghlan in branch 'default': Close #15486: Simplify the mechanism used to remove importlib frames from tracebacks when they just introduce irrelevant noise http://hg.python.org/cpython/rev/62033490ca0f -- nosy:

[issue15425] Another strange Tracebacks with importlib

2012-07-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8a0eb395e725 by Nick Coghlan in branch 'default': Issue #15425: Don't rely on the assumption that the current working directory is on sys.path (this will hopefully appease the XP buildbots) http://hg.python.org/cpython/rev/8a0eb395e725 --

[issue15425] Another strange Tracebacks with importlib

2012-07-31 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15425 ___ ___ Python-bugs-list

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-31 Thread Eli Bendersky
Eli Bendersky added the comment: Alright, attaching an attempt at improving the reference docs. This only handles the address objects for now: 1. Grouping address objects together, network objects together, interface objects together 2. Explain that everything IPv4Address exposes is also

[issue15498] Eliminate the use of deprecated OS X APIs in getpath.c

2012-07-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: Removing the dependency on NSLookupAndBindSymbol (and related APIs) is easier than I expected. The attached patch (issue15498-v1.txt) uses dladdr to get symbol information for Py_Initialize and that information includes the path for the library where that

[issue13759] Python 3.2.2 Mac installer version doesn't accept multibyte character in interactive mode

2012-07-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: To reproduce this issue you could use the Unicode Hex Input input source (enable this in the Language Text prefpane, switch between sources either using CMD-space or the menu bar icon). I can あ by keeping ALT pressed and typing 3042. This works fine with a

[issue11486] Add option to not install into /Applications

2012-07-31 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- keywords: +needs review versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11486 ___

[issue13371] Some Carbon extensions don't build on OSX 10.7

2012-07-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: Patch is already applied (ages ago), forgot to close this issue. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-31 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks Eli, that looks like a great start to me. And yeah, the separate vs integrated tutorial argument is an ongoing one that isn't going to be resolved by this issue :) -- ___ Python tracker rep...@bugs.python.org

[issue15511] _decimal does not build in PGUpdate mode

2012-07-31 Thread Stefan Krah
Stefan Krah added the comment: Well, I have Ultimate now and encounter the same problem. Also, when I start PCbuild\x64-pgi\python.exe it exits immediately without displaying an error. The PC\VS9.0 PGUpdate build works fine. -- title: VS 2010 Professional: _decimal does not build in

[issue12507] tkSimpleDialog problem

2012-07-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: Closing because this issue is a bug in Tk, not a bug in Python. -- resolution: - wont fix stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue15295] Import machinery documentation

2012-07-31 Thread Brett Cannon
Brett Cannon added the comment: While saying default path importer vs. meta path finder somewhat muddles the term importer, it definitely gets the point across that PathFinder does a lot more than any other default meta path finder. While _we_ might know that import does nothing more than

[issue15511] _decimal does not build in PGUpdate mode

2012-07-31 Thread Martin v . Löwis
Martin v. Löwis added the comment: Make sure you clean all build directories; then rebuild. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15511 ___

[issue15295] Import machinery documentation

2012-07-31 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jul 29, 2012, at 05:10 AM, Nick Coghlan wrote: I would title the new section Import system rather than Import machinery as it is meant to be a specification documentation rather than an implementation description. Import system it is. The statement that

[issue15511] _decimal does not build in PGUpdate mode

2012-07-31 Thread Martin v . Löwis
Martin v. Löwis added the comment: clean = manually delete, e.g. from explorer -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15511 ___ ___

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-31 Thread Eli Bendersky
Eli Bendersky added the comment: Thanks Nick. I've addressed your review comments and will be pushing the doc update. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814 ___

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 586eb57e06ba by Eli Bendersky in branch 'default': Issue #14814: reorganize ipaddress documentation and document all attributes of IPv[46]Address objects http://hg.python.org/cpython/rev/586eb57e06ba --

  1   2   3   >