tiffany 0.4 released

2012-06-16 Thread Christian Tismer
Tiffany - Read/Write Multipage-Tiff with PIL without PIL Tiffany stands for any tiff. The tiny module solves a large set of problems, has no dependencies and just works wherever Python works. Tiffany was developed in the course of the

IMDbPY 4.9

2012-06-16 Thread Davide Alberani
IMDbPY is a Python package useful to retrieve and manage the data of the IMDb movie database about movies, people, characters and companies. Version 4.9 can be downloaded from http://imdbpy.sf.net/ In this release: an urgent fix for the search queries, some new features like a gender field for

Re: Komodo, Python

2012-06-16 Thread Dieter Maurer
Isaac@AU ryanwoo1...@gmail.com writes: I just started learning python. I have komodo2.5 in my computer. And I installed python2.7. I tried to write python scripts in komodo. But every time I run the code, there's always the error: Traceback (most recent call last): File C:\Program

Re: Threads vs subprocesses

2012-06-16 Thread John O'Hagan
On Fri, 15 Jun 2012 16:34:57 -0400 Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Sat, 16 Jun 2012 03:24:13 +1000, John O'Hagan resea...@johnohagan.com declaimed the following in gmane.comp.python.general: I should have made it clear that I'm not using threads to speed anything up;

Re: Academic citation of Python

2012-06-16 Thread Olmo Hernández Cuba
Well, maybe something like: G. Van Rossum. The Python Language Reference Manual. Network Theory Ltd., September 2003. In other languages I use, the proper citation is obtained from the interpreter itself, and it points you to the language reference. Hope this helps. El Sat, 16 Jun 2012

Re: Create thumbnail image (jpg/png) of PDF file using Python

2012-06-16 Thread Chris Angelico
On Fri, Jun 15, 2012 at 9:15 AM, Dennis Lee Bieber wlfr...@ix.netcom.com wrote:        PDF is not an image file format; it is a program describing how to render each page. Some of the page contents can be image bitmap data, but a proper PDF has text AS text. Plus, JPG is very poor at handling

Re: is the same betweent python3 and python3.2?

2012-06-16 Thread Andrew Berg
On 6/15/2012 11:31 PM, contro opinion wrote: is the /usr/lib/python-3.2.3/bin/python3 same as /usr/lib/python-3.2.3/bin/python3.2? It should be. IIRC, ls -l will tell you if something is a link. You could also run python3 and it will tell you the version. -- CPython 3.3.0a4 | Windows NT

Re: Academic citation of Python

2012-06-16 Thread Mark Lawrence
On 16/06/2012 04:24, Mark Livingstone wrote: Hello! I wish to properly cite Python in an academic paper I am writing. Is there a preferred document etc to cite? Thanks in advance, MArkL The main website www.python.org and possibly the sites for Jython, IronPython and PyPY? -- Cheers.

Re: Academic citation of Python

2012-06-16 Thread J. Cliff Dyer
That's a rather vague question. What do you want to cite about python? If you're just mentioning python, that shouldn't warrant a citation, though a parenthetical note linking to python.org might be useful. The standard documentation should be acceptable, or possibly a link to the source code at

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-16 Thread Wolfgang Keller
On Thu, 14 Jun 2012 12:59:23 -0700 (PDT) CM cmpyt...@gmail.com wrote: On Jun 14, 2:25 pm, Wolfgang Keller felip...@gmx.net wrote: What is needed for domain specialists are frameworks and related tools such as GUI builders that allow them to write exclusively the domain-specific code

Re: Academic citation of Python

2012-06-16 Thread Rich Webb
On Sat, 16 Jun 2012 14:01:12 +0100, Mark Lawrence breamore...@yahoo.co.uk wrote: On 16/06/2012 04:24, Mark Livingstone wrote: Hello! I wish to properly cite Python in an academic paper I am writing. Is there a preferred document etc to cite? Thanks in advance, MArkL The main website

Re: Academic citation of Python

2012-06-16 Thread Emile van Sebille
Or copy a citation from Guido: http://www.python.org/~guido/Publications.html Emile -- http://mail.python.org/mailman/listinfo/python-list

python 3.3 bz2 decompression testing results

2012-06-16 Thread Pauli Rikula
I tested http://python.org/ftp/python/3.3.0/python-3.3.0a4.amd64.msi bz2 module's decompression using the bz2 -files from: https://www.ee.oulu.fi/research/ouspg/PROTOS_Test-Suite_c10-archive and found nothing. I did not use anything like Valgrind though. Should I try to run these tests again

Python 3.3.0a4, please add ru'...'

2012-06-16 Thread jmfauth
Please consistency. sys.version '3.3.0a4 (v3.3.0a4:7c51388a3aa7+, May 31 2012, 20:15:21) [MSC v.1600 32 bit (Intel)]' 'a' 'a' b'a' b'a' br'a' b'a' rb'a' b'a' u'a' 'a' ur'a' 'a' ru'a' SyntaxError: invalid syntax jmf -- http://mail.python.org/mailman/listinfo/python-list

Re: Academic citation of Python

2012-06-16 Thread Ben Finney
Olmo Hernández Cuba olmo.hernandez-c...@gmx.es writes: Well, maybe something like: G. Van Rossum. The Python Language Reference Manual. Network Theory Ltd., September 2003. Are you referencing material from that document? If so, go ahead and reference that document's URL. In other

Re: Academic citation of Python

2012-06-16 Thread Terry Reedy
On 6/15/2012 11:24 PM, Mark Livingstone wrote: Hello! I wish to properly cite Python in an academic paper I am writing. Is there a preferred document etc to cite? At present, I would use something like Rossum, Guido van, et al, *The Python Language Reference*, Python Software Foundation;

Re: Academic citation of Python

2012-06-16 Thread Christian Heimes
Am 16.06.2012 22:44, schrieb Terry Reedy: Rossum, Guido van, et al, *The Python Language Reference*, Python Software Foundation; http://docs.python.org/py3k/reference/index.html Actually it's van Rossum, Guido, not Rossum, Guido van. The van is part of the family name, not a middle name. It's

Re: Academic citation of Python

2012-06-16 Thread Terry Reedy
On 6/16/2012 5:01 PM, Christian Heimes wrote: Am 16.06.2012 22:44, schrieb Terry Reedy: Rossum, Guido van, et al, *The Python Language Reference*, Python Software Foundation; http://docs.python.org/py3k/reference/index.html Actually it's van Rossum, Guido, not Rossum, Guido van. The van is

Re: is the same betweent python3 and python3.2?

2012-06-16 Thread contro opinion
root@debian:/home/debian# find / -name 'python3' /usr/lib/python-3.2.3/bin/python3 root@debian:/home/debian# /usr/lib/python-3.2.3/bin/python3 Python 3.2.3 (default, Jun 16 2012, 10:59:54) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. it is the same

Smart quote character replacement for those with deficient sed-fu.

2012-06-16 Thread smitty1e
Use case: === 1. OSX 10.7, bunch of .tex files culled from a blog via some cruddy old Perl script. .tex files are utf-8 encoded, which means the quotes and apostrophes drop out going through pdflatex. 2. Recommend using git to manage the .tex files, which are all in a /src directory in the

Is that safe to use ramdom.random() for key to encrypt?

2012-06-16 Thread Yesterday Paid
I'm making cipher program with random.seed(), random.random() as the key table of encryption. I'm not good at security things and don't know much about the algorithm used by random module. Is it really random or safe enough to keep my data safe? --

Re: Is that safe to use ramdom.random() for key to encrypt?

2012-06-16 Thread Chris Angelico
On Sun, Jun 17, 2012 at 12:15 PM, Yesterday Paid howmuchisto...@gmail.com wrote: I'm making cipher program with random.seed(), random.random() as the key table of encryption. I'm not good at security things and don't know much about the algorithm used by random module. For security, you don't

Re: Pythonic cross-platform GUI desingers ?? la Interface Builder (Re: what gui designer is everyone using)

2012-06-16 Thread Chris Angelico
On Fri, Jun 15, 2012 at 7:47 AM, Dietmar Schwertberger n...@schwertberger.de wrote: The point is, that if you want to promote Python as replacement for e.g. VB, Labview etc., then an easy-to-use GUI builder is required. The typical GUI programs will just have an input mask, a button and one or

Re: Is that safe to use ramdom.random() for key to encrypt?

2012-06-16 Thread Paul Rubin
Yesterday Paid howmuchisto...@gmail.com writes: I'm making cipher program with random.seed(), random.random() as the key table of encryption... Is it really random or safe enough to keep my data safe? No. Use os.urandom instead. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is that safe to use ramdom.random() for key to encrypt?

2012-06-16 Thread Jon Clements
On Sun, 17 Jun 2012 12:31:04 +1000, Chris Angelico wrote: On Sun, Jun 17, 2012 at 12:15 PM, Yesterday Paid howmuchisto...@gmail.com wrote: I'm making cipher program with random.seed(), random.random() as the key table of encryption. I'm not good at security things and don't know much about

Re: Python 3.3.0a4, please add ru'...'

2012-06-16 Thread Steven D'Aprano
On Sat, 16 Jun 2012 10:36:42 -0700, jmfauth wrote: Please consistency. There is no point asking here. Feature requests and bug reports must go on the tracker, or they are unlikely to be noticed or remembered by anyone who can fix it. http://bugs.python.org/ Given that 3.3's feature-freeze

Re: Is that safe to use ramdom.random() for key to encrypt?

2012-06-16 Thread Steven D'Aprano
On Sat, 16 Jun 2012 19:15:34 -0700, Yesterday Paid wrote: I'm making cipher program with random.seed(), random.random() as the key table of encryption. I'm not good at security things and don't know much about the algorithm used by random module. Start by reading the Fine Manual:

Re: Smart quote character replacement for those with deficient sed-fu.

2012-06-16 Thread Steven D'Aprano
On Sat, 16 Jun 2012 18:39:42 -0700, smitty1e wrote: [...] python charfix.py `ls src/*.tex` charfix.py code: Thanks for that. You might like to also publish it on the ActiveState Python recipes site, where people are more likely to find it in the future.

Re: Is that safe to use ramdom.random() for key to encrypt?

2012-06-16 Thread Chris Angelico
On Sun, Jun 17, 2012 at 2:18 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Safe from what? What is your threat model? Are you worried about your little sister reading your diary? Or the NSA discovering your plans to assassinate the President? Or something in between?

[issue15081] No documentation for PyState_FindModule()

2012-06-16 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: It's in PEP 3121, but it never made it to the documentation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15081 ___

[issue15082] [httplib] httplib.BadStatusLine on any HTTPS connection in certain unknown cases.

2012-06-16 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I can reproduce this, and it seems to stem from the openssl version used (0.9.8l). Running openssl s_client -connect grooveshark.com:443 with 0.9.8l gives CONNECTED(0003) depth=3 /L=ValiCert Validation Network/O=ValiCert,

[issue15084] Add option to os.makefile to not raise an exception for existing directories

2012-06-16 Thread Raymond Hettinger
New submission from Raymond Hettinger raymond.hettin...@gmail.com: I commonly see the code pattern: try: os.mkdir(dirname) except OSError: pass It would be nice to have this instead: os.mkdir(dirname, ignore_if_existing=True) There's probably a better name for the keyword

[issue15075] XincludeTest failure in test_xml_etree

2012-06-16 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: File /home/eliben/python-src/33/Lib/test/regrtest.py, line 710 in main File /home/eliben/python-src/33/Lib/test/regrtest.py, line 1829 in module File /home/eliben/python-src/33/Lib/runpy.py, line 75 in _run_code File

[issue15084] Add option to os.makefile to not raise an exception for existing directories

2012-06-16 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Agree. First, the use of parameter is shorter (1 line instead of 4). Second, try/except idiom hides possible real OS errors (no rights to create the directory, a non-directory file with the same name already exists, illegal filename, too

[issue15084] Add option to os.makefile to not raise an exception for existing directories

2012-06-16 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: +1. Raymond, is there a reason you put that for 3.4? I'd try to get it in before beta1 next week, it's trivial enough. Regarding the name: os.makedirs() uses exist_ok, we shouldn't invent new ones. -- assignee: - hynek nosy: +hynek

[issue15084] Add option to os.mkdir to not raise an exception for existing directories

2012-06-16 Thread Hynek Schlawack
Changes by Hynek Schlawack h...@ox.cx: -- title: Add option to os.makefile to not raise an exception for existing directories - Add option to os.mkdir to not raise an exception for existing directories ___ Python tracker rep...@bugs.python.org

[issue15026] Faster UTF-16 encoding

2012-06-16 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Thank you for pushing. :-) Are you interested in a faster UTF-32 codec? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15026 ___

[issue15026] Faster UTF-16 encoding

2012-06-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thank you for pushing. :-) Are you interested in a faster UTF-32 codec? Not much :) I know you posted issues on that, but I think UTF-32 is quite low priority. -- ___ Python tracker

[issue15068] fileinput requires two EOF when reading stdin

2012-06-16 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15068 ___ ___ Python-bugs-list

[issue15085] set.union accepts not set iterables for all but the first argument.

2012-06-16 Thread Stefan Krastanov
New submission from Stefan Krastanov krastanov.ste...@gmail.com: set.union(set([1,2]), [3]) set([1, 2, 3]) set.union([1,2], [3]) TypeError: descriptor 'union' requires a 'set' object but received a 'list' It seems a bit inconsistent. Is it justified somehow? -- components: None

[issue15084] Add option to os.mkdir to not raise an exception for existing directories

2012-06-16 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: I looked into the code. Assuming it should be added, we're facing the fact that os.mkdir() is C code ATM and the handling of the error would require to implement it for NT and Unix separately. Therefore it would make sense to add a Python

[issue15084] Add option to os.mkdir to not raise an exception for existing directories

2012-06-16 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I agree that this is already covered by the exist_ok parameter (which is new to 3.2). Existing code just hasn't been ported to this API. -- resolution: - wont fix status: open - closed ___

[issue15050] Python 3.2.3 fail to make

2012-06-16 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Martin, do I understand that you are saying that this is not a Python problem, and should be closed? No. I'm saying that I don't know whether it's a Python problem. It hasn't been fully analyzed. I actually only suspect that it's a

[issue15075] XincludeTest failure in test_xml_etree

2012-06-16 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: No need, the cause for the segfault is known. What happens is that Element objects from the Python module get intermixed with Element objects from the C module, and these are incompatible. The C module traversal functions assume they can cast

[issue15054] bytes literals erroneously tokenized

2012-06-16 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15054 ___

[issue15054] bytes literals erroneously tokenized

2012-06-16 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Here is a patch (for Python 3.3). -- keywords: +patch nosy: +storchaka Added file: http://bugs.python.org/file26025/tokenize_bytes.patch ___ Python tracker rep...@bugs.python.org

[issue14992] os.makedirs expect_ok=True test_os failure when directory has S_ISGID bit set

2012-06-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: See also issue 13498. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14992 ___

[issue15054] bytes literals erroneously tokenized

2012-06-16 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Here is a patch for Python 2. -- Added file: http://bugs.python.org/file26026/tokenize_bytes_py2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15054

[issue15054] bytes literals erroneously tokenized

2012-06-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file26025/tokenize_bytes.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15054 ___

[issue15054] bytes literals erroneously tokenized

2012-06-16 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: And here is a better patch for Python 3. -- Added file: http://bugs.python.org/file26027/tokenize_bytes_py3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15054

[issue15084] Add option to os.mkdir to not raise an exception for existing directories

2012-06-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Note that the implementation of makedirs exist_ok has a significant bug (issue 13498) which renders it mostly useless in practice. Parties interested in this issue might be interested in figuring out how to fix that bug :) --

[issue15085] set.union accepts not set iterables for all but the first argument.

2012-06-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: By calling 'set.union' you are calling the method on the class. When you call a method directly on a class object, you have to explicitly pass in 'self'. Thus the first argument when you call it like that must be a set object.

[issue9679] unicode DNS names in urllib, urlopen

2012-06-16 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: The werkzeug.urls module has examples of such conversion IRI-to-URI: https://github.com/mitsuhiko/werkzeug/blob/master/werkzeug/urls.py#L109,L205 -- ___ Python tracker

[issue15054] bytes literals erroneously tokenized

2012-06-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file26027/tokenize_bytes_py3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15054 ___

[issue15054] bytes literals erroneously tokenized

2012-06-16 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: And here is an even better patch for Python 3. -- Added file: http://bugs.python.org/file26028/tokenize_bytes_py3.patch ___ Python tracker rep...@bugs.python.org

[issue805255] remove/discard method for dict objects.

2012-06-16 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue805255 ___ ___ Python-bugs-list

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

2012-06-16 Thread Hynek Schlawack
Changes by Hynek Schlawack h...@ox.cx: -- nosy: +hynek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13498 ___ ___ Python-bugs-list mailing list

[issue14055] Implement __sizeof__ for etree Element

2012-06-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14055 ___ ___ Python-bugs-list

[issue14055] Implement __sizeof__ for etree Element

2012-06-16 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14055 ___ ___ Python-bugs-list

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2012-06-16 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13241 ___ ___ Python-bugs-list

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-16 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15048 ___ ___ Python-bugs-list

[issue14850] The inconsistency of codecs.charmap_decode

2012-06-16 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14850 ___ ___ Python-bugs-list

[issue15063] Source code links for JSON documentation

2012-06-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The source links were added by Raymond for selected modules that he judged readable, well-written and useful companions to the documentation. For the json.encoder and decoder modules, I don’t think this is the case: the rst doc should explain

[issue15062] argparse: option for a positional argument

2012-06-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I wouldn’t use the syntax used by find, dd or other very old and peculiar commands as an example for anything new :) -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org

[issue14874] Faster charmap decoding

2012-06-16 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14874 ___ ___ Python-bugs-list mailing

[issue15082] [httplib] httplib.BadStatusLine on any HTTPS connection in certain unknown cases.

2012-06-16 Thread George Stephanos
George Stephanos gaf.stepha...@gmail.com added the comment: I can confirm that. I built a 1.0.1c version of both _ssl.pyd and _ssl.lib and now the problem's solved (they're attached if ever needed). Thanks! Can't the next Python 2.7 release include 1.0.1c instead ? -- Added file:

[issue15054] bytes literals erroneously tokenized

2012-06-16 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +meador.inge stage: needs patch - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15054 ___

[issue15008] PEP 362 Signature Objects reference implementation

2012-06-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: One small thing: can we find a name for the function that starts with a verb? It’s the recommended naming style for functions, and would help making a difference between the class and the function. I also expect people to use “signature” and

[issue15063] Source code links for JSON documentation

2012-06-16 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti resolution: - rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15063 ___

[issue14055] Implement __sizeof__ for etree Element

2012-06-16 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Out of curiosity, why don't the constituents of Element (i.e. the tag, the attributes dict, etc.) count for its size? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14055

[issue15086] Ubuntu bot: error while loading shared libraries

2012-06-16 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: The Ubuntu shared buildbot fails to run the tests: using PTY: True ./python: error while loading shared libraries: libpython3.3dm.so.1.0: cannot open shared object file: No such file or directory make: *** [Python/importlib.h] Error

[issue15036] mailbox.mbox fails to pop two items in a row, flushing in between

2012-06-16 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Yes, this is what I tried to say. It's hard for me to find a good wording, so what would you suggest? I also noticed now that there's a typo in the commit messages. But those cannot be fixed anymore. --

[issue15062] argparse: option for a positional argument

2012-06-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: What alternate syntax would you suggest for a find type command then (other than replacing -long by --long)? -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org

[issue14657] Avoid two importlib copies

2012-06-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Unless someone plans to do further work on this, I'd like to commit unique_importlib3.patch. A working solution is better than nothing. -- ___ Python tracker rep...@bugs.python.org

[issue14055] Implement __sizeof__ for etree Element

2012-06-16 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: __sizeof__ is supposed to account for just the object, not for the size of any object it refers to. If you want to compute total memory consumption, you should get a list of all objects, and then sum up __sizeof__. If some object would

[issue15036] mailbox.mbox fails to pop two items in a row, flushing in between

2012-06-16 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Mailbox no longer throws an error if a flush is done between operations when removing or changing multiple items in mbox, MMDF, or Babyl mailboxes. -- ___ Python tracker rep...@bugs.python.org

[issue14928] Fix importlib bootstrapping issues

2012-06-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch for the separate C executable approach. There are a couple of small complications in order to avoid any circular dependency (either at the Makefile level, or at the _frozen_importlib / Py_Initialize level). The proposed -X or

[issue15054] bytes literals erroneously tokenized

2012-06-16 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Patches updated with tests. -- Added file: http://bugs.python.org/file26031/tokenize_bytes_py2-2.patch Added file: http://bugs.python.org/file26032/tokenize_bytes_py3-2.patch ___ Python tracker

[issue15054] bytes literals erroneously tokenized

2012-06-16 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: test needed - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15054 ___ ___

[issue14874] Faster charmap decoding

2012-06-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thank you for the patch! Now pushed to 3.3. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue14874] Faster charmap decoding

2012-06-16 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 8f3a5308f50b by Antoine Pitrou in branch 'default': Issue #14874: Restore charmap decoding speed to pre-PEP 393 levels. http://hg.python.org/cpython/rev/8f3a5308f50b -- nosy: +python-dev

[issue15054] bytes literals erroneously tokenized

2012-06-16 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: The Python 3 patch looks OK, except that several of the tests are duplicated. I am looking at the Python 2 patch now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15054

[issue15054] bytes literals erroneously tokenized

2012-06-16 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Nevermind, the tests are OK. I missed the swapped quotes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15054 ___

[issue15054] bytes literals erroneously tokenized

2012-06-16 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: The Python 3 patch looks OK, except that several of the tests are duplicated. What tests? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15054

[issue1229239] optionally allow mutable builtin types

2012-06-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Greg, I am closing this because you seem to have found an alternate solution and have dropped the issue. If you do want to pursue a change for 3.4, I suggest you refresh your patch and post to python-ideas (new list since you posted this). As

[issue14815] random_seed uses only 32-bits of hash on Win64

2012-06-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14815 ___ ___ Python-bugs-list

[issue730473] Add Py_AtInit() startup hook for extenders

2012-06-16 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Patrick, its been 5 years since you promised a 2nd patch (which would now have to be against the current 3.3 tip). If you have lost interested, perhaps we should close this. -- nosy: +terry.reedy versions: +Python 3.4 -Python 3.2

[issue15054] bytes literals erroneously tokenized

2012-06-16 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Python 2 patch looks OK too. I will commit these later today. Thanks for the patches! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15054

[issue15054] bytes literals erroneously tokenized

2012-06-16 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: LGTM too. Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15054 ___ ___

[issue15086] Ubuntu bot: error while loading shared libraries

2012-06-16 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15086 ___ ___ Python-bugs-list

[issue15086] Ubuntu bot: error while loading shared libraries

2012-06-16 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Rebuilding importlib.h fails: -- Python/importlib.h needs to be rebuilt, but no interpreter is available to do so. Leaving the previous version in place. You may want to run

[issue15086] Ubuntu bot: error while loading shared libraries

2012-06-16 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3680b3423aa3 by Antoine Pitrou in branch 'default': Try to fix issue #15086: build failure on Ubuntu shared buildbot. http://hg.python.org/cpython/rev/3680b3423aa3 -- nosy: +python-dev

[issue15086] Ubuntu bot: error while loading shared libraries

2012-06-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Looks fixed. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15086

[issue14815] random_seed uses only 32-bits of hash on Win64

2012-06-16 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: rhettinger - loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14815 ___

[issue730473] Add Py_AtInit() startup hook for extenders

2012-06-16 Thread Patrick Miller
Patrick Miller patmil...@users.sourceforge.net added the comment: Just languishing for lo on these 5 years -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue730473

[issue14657] Avoid two importlib copies

2012-06-16 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: It's actually at the top of my list, but may still be a week or two until I can get to it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14657

[issue14815] random_seed uses only 32-bits of hash on Win64

2012-06-16 Thread Larry Hastings
Changes by Larry Hastings la...@hastings.org: -- nosy: +larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14815 ___ ___ Python-bugs-list mailing

[issue14769] Add test to automatically detect missing format units in skipitem()

2012-06-16 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Ping. Benjamin, should I find another reviewer? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14769 ___

[issue15087] Add gzip function to read gzip'd strings

2012-06-16 Thread Raymond Hettinger
New submission from Raymond Hettinger raymond.hettin...@gmail.com: The API for the gzip module is convenient for reading gzipped file but is rather awkward for reading bytes downloaded from a socket: import gzip, io from urllib.request import urlopen, Request u =

[issue15087] Add gzip function to read gzip'd strings

2012-06-16 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: There is already such a function, gzip.decompress() - it was added in 3.2. -- nosy: +nadeem.vawda resolution: - invalid stage: - committed/rejected status: open - pending ___ Python tracker

  1   2   >