Roundup 1.4.20 released

2012-05-15 Thread Ralf Schlatterbeck
I'm proud to release version 1.4.20 of Roundup which can be seen as a security release. We've fixed several security issues, in particular some XSS issues. We've also dropped support for python 2.4 with this release. This release also introduces some minor features and, as usual, fixes some bugs:

Re: specify end of line character for readline

2012-05-15 Thread Ian Kelly
On Fri, May 11, 2012 at 1:32 PM, Jason ja...@deadtreepages.com wrote: Is there any way to specify the end of line character to use in file.readline() ? I would like to use '\r\n' as the end of line and allow either \r or \n by itself within the line. In Python 3 you can pass the argument

Re: specify end of line character for readline

2012-05-15 Thread Serhiy Storchaka
On 15.05.12 09:29, Ian Kelly wrote: In Python 3 you can pass the argument newline='\r\n' to the open function when you open the file. I don't know of anything comparable in Python 2. io.open supports newline argument. -- http://mail.python.org/mailman/listinfo/python-list

Re: Hashability questions

2012-05-15 Thread Chris Angelico
On Tue, May 15, 2012 at 3:27 PM, Ian Kelly ian.g.ke...@gmail.com wrote: Why?  I can't see any purpose in implementing __eq__ this way, but I don't see how it's broken (assuming that __hash__ is actually implemented somehow and doesn't just raise TypeError).  The requirement is that if two

ANNOUNCE: byteformat0.2a

2012-05-15 Thread Steven D'Aprano
I am pleased to announce a new release of byteformat. http://pypi.python.org/pypi/byteformat byteformat is a Python module for intelligently formatting numbers of bytes using common human-readable strings: from byteformat import format format(12000) '12 KB' format(510, style='ABBREV')

Re: ANNOUNCE: byteformat0.2a

2012-05-15 Thread Karim
Cool steven, very helpful I have a db which holds units data it will avoids me to do such format conversion. Thnx Cheers Karim Le 15/05/2012 10:30, Steven D'Aprano a écrit : I am pleased to announce a new release of byteformat. http://pypi.python.org/pypi/byteformat byteformat is a

Re: Hashability questions

2012-05-15 Thread Christian Heimes
Am 15.05.2012 07:27, schrieb Ian Kelly: Why? I can't see any purpose in implementing __eq__ this way, but I don't see how it's broken (assuming that __hash__ is actually implemented somehow and doesn't just raise TypeError). The requirement is that if two objects compare equal, then they

Re: Newby Python Programming Question

2012-05-15 Thread Jean-Michel Pichavant
Coyote wrote: CM writes: I don't know Spyder IDE, but I don't think this should happen; could there just be a simple mistake? Because you first refer to the .py file as 'file_utils.py' but then you refer to the file as 'pwd.py'...which is also the name of your function. Room for

Re: Sharing Data in Python

2012-05-15 Thread Jean-Michel Pichavant
raunakgu...@gmail.com wrote: I have some Pickled data, which is stored on disk, and it is about 100 MB in size. When my python program is executed, the picked data is loaded using the cPickle module, and all that works fine. If I execute the python multiple times using python main.py for

ucs2 and ucs4 python

2012-05-15 Thread Alan Kesselmann
Hello I tried using one compiled library and got this error: ImportError: /home/alan/Downloads/pdftron/PDFNetC64/Lib/ _PDFNetPython2.so: undefined symbol: PyUnicodeUCS2_AsUTF8String I googled around and found some info about the meaning of the error. The creators of PDFNet suggested i install

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-15 Thread Pascal Chambon
Hi, cool down, people, if anything gave FOSS a bad reputation, that's well the old pyjamas website (all broken, because wheel must be reinvented here), and most of all the terror management that occurred on its mailing list. Previously I had always considered open-source as a benevolent state

compiling Tkinter

2012-05-15 Thread Rita
Hello, I understand Tkinter is part of the python distribution but for me it always fails when I try to load the module. I get: import Tkinter ... import _tkinter # if this fails your Python may not be configured for Tk ImportError: No module named _tkinter So, here is how I am compiling

How to call and execute C code in Python?

2012-05-15 Thread David Shi
How to call and execute C code in Python? Is there any publication/documentation for this?   For the worst scenario, how many ways are there to call and execute C codes, in Python. For instance, having got hold some C codes, attempting to use Python to call and execute C codes.  I.e. 

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-15 Thread Tim Wintle
On Tue, 2012-05-15 at 12:39 +0200, Pascal Chambon wrote: believe me all this fuss is pitiful compared to the real harm that was done numerous time to willing newcomers, on pyjs' old ML, when they weren't aware about the heavy dogmas lying around. A demo sample (I quote it each time the

Re: How to call and execute C code in Python?

2012-05-15 Thread Chris Angelico
On Tue, May 15, 2012 at 10:08 PM, David Shi davidg...@yahoo.co.uk wrote: How to call and execute C code in Python? Is there any publication/documentation for this?   For the worst scenario, how many ways are there to call and execute C codes, in Python. For instance, having got hold some C

Re: Yet another split string by spaces preserving single quotes problem

2012-05-15 Thread Steven D'Aprano
On Sun, 13 May 2012 14:14:58 -0700, Massi wrote: Hi everyone, I know this question has been asked thousands of times, but in my case I have an additional requirement to be satisfied. I need to handle substrings in the form 'string with spaces':'another string with spaces' as a single token;

Re: Hashability questions

2012-05-15 Thread Bob Grommes
On Monday, May 14, 2012 8:35:36 PM UTC-5, alex23 wrote: It looks like this has changed between Python 2 and 3: If a class does not define an __eq__() method it should not define a __hash__() operation either; if it defines __eq__() but not __hash__(), its instances will not be usable as

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-15 Thread Daniel Fetchinson
Blatantly the pyjs ownership change turned out to be an awkward operation (as reactions on that ML show it), but a fork could also have very harmfully split pyjs-interested people, so all in all I don't think there was a perfect solution - dictatorships never fall harmlessly. You say fork

Re: ucs2 and ucs4 python

2012-05-15 Thread Miki Tebeka
Can someone point me towards a resource or two which will tell me how to do this - im not very good with whole linux/servers stuff. Im using ubuntu linux - if that makes any difference. Did not test, but this is the direction I would take: * Download Python sources * Open Terminal * Run the

Carbon Event Manager (Carbon.CarbonEvt module) - working?

2012-05-15 Thread msmucr
Hello, i would like to ask you for some information regarding Carbon Event Manager ( Carbon.CarbonEvt ) library in Python. I need to recieve and work with few Carbon events in my program. I've followed some examples on PyObjC site, but wasn't successful. I know, that both Carbon library and this

Re: Carbon Event Manager (Carbon.CarbonEvt module) - working?

2012-05-15 Thread John Gordon
In c4dc4a8f-52cc-4447-b199-dafcc296e...@e20g2000vbm.googlegroups.com msmucr msm...@gmail.com writes: Do I have something wrong or is it simply broken and unmaintained now? We have no idea if you did anything wrong, because you didn't tell us exactly what you did and exactly what error message

Re: Carbon Event Manager (Carbon.CarbonEvt module) - working?

2012-05-15 Thread Ned Deily
In article c4dc4a8f-52cc-4447-b199-dafcc296e...@e20g2000vbm.googlegroups.com, msmucr msm...@gmail.com wrote: i would like to ask you for some information regarding Carbon Event Manager ( Carbon.CarbonEvt ) library in Python. I need to recieve and work with few Carbon events in my program.

Re: Carbon Event Manager (Carbon.CarbonEvt module) - working?

2012-05-15 Thread Kevin Walzer
On 5/15/12 3:06 PM, msmucr wrote: Do I have something wrong or is it simply broken and unmaintained now? Support for Carbon Events was removed in Python 3.x and it does not work in 64-bit, to my knowledge--most of the Carbon API's are not supported by Apple anymore. -- Kevin Walzer Code by

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-15 Thread Mark Lawrence
On 15/05/2012 17:44, Daniel Fetchinson wrote: Blatantly the pyjs ownership change turned out to be an awkward operation (as reactions on that ML show it), but a fork could also have very harmfully split pyjs-interested people, so all in all I don't think there was a perfect solution -

Re: Carbon Event Manager (Carbon.CarbonEvt module) - working?

2012-05-15 Thread msmucr
On 15 kvě, 21:21, John Gordon gor...@panix.com wrote: In c4dc4a8f-52cc-4447-b199-dafcc296e...@e20g2000vbm.googlegroups.com msmucr msm...@gmail.com writes: Do I have something wrong or is it simply broken and unmaintained now? We have no idea if you did anything wrong, because you didn't

Re: Carbon Event Manager (Carbon.CarbonEvt module) - working?

2012-05-15 Thread Arnaud Delobelle
On 15 May 2012 20:55, Ned Deily n...@acm.org wrote: In article c4dc4a8f-52cc-4447-b199-dafcc296e...@e20g2000vbm.googlegroups.com,  msmucr msm...@gmail.com wrote: i would like to ask you for some information regarding Carbon Event Manager ( Carbon.CarbonEvt ) library in Python. I need to

Re: Carbon Event Manager (Carbon.CarbonEvt module) - working?

2012-05-15 Thread Ned Deily
In article caj6ck1bsvgimsrqndwxcev_ttwa8zjs6wpmdonehmbe5zvg...@mail.gmail.com, Arnaud Delobelle arno...@gmail.com wrote: This is what I have with system python 2.6: $ cat ~/bin/python_32 #! /bin/bash export VERSIONER_PYTHON_PREFER_32_BIT=yes /usr/bin/python $@ I use it for wxpython,

Re: Hashability questions

2012-05-15 Thread Ian Kelly
On Tue, May 15, 2012 at 3:25 AM, Christian Heimes li...@cheimes.de wrote: Code explains more than words. I've created two examples that some issues. Mutable values break dicts as you won't be able to retrieve the same object again: Sure, you'll get no argument from me on that. I was more

Re: %d not working in re at Python 2.7?

2012-05-15 Thread Tim Roberts
vacu vacu...@gmail.com wrote: I am frustrated to see %d not working in my Python 2.7 re.search, like this example: (re.search('%d', asdfdsf78asdfdf)).group(0) Traceback (most recent call last): File stdin, line 1, in module AttributeError: 'NoneType' object has no attribute 'group' \d works

[issue14810] Bug in tarfile

2012-05-15 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The tar file format does nt support timestamps before 1970. From http://sunsite.ualberta.ca/Documentation/Gnu/tar-1.13/html_chapter/tar_8.html POSIX tar format can represent time stamps in the range 1970-01-01 00:00:00 through 2242-03-16

[issue14811] compile fails - UTF-8 character decoding

2012-05-15 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: Forgot to mention that I was running on Windows, 64-bit. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14811 ___

[issue14802] Python fails to compile with VC11 ARM configuration

2012-05-15 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: In any case, there is a branch supporting Python as a metro app at http://hg.python.org/sandbox/loewis#win8app This may get folded back into Python at some point, but certainly not before Windows 8 is released. -- nosy: +loewis

[issue14798] pyclbr raises KeyError when the prefix of a dotted name is not a package

2012-05-15 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- keywords: +needs review nosy: +petri.lehtinen stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14798 ___

[issue14811] compile fails - UTF-8 character decoding

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

[issue14811] compile fails - UTF-8 character decoding

2012-05-15 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: Would you mind adding more information like the full traceback? By saying compilation error, I presume you mean the compilation of the t33a.py file into byte code (and not compilation of Python itself)? I can't reproduce it neither with the

[issue14133] improved PEP 409 implementation

2012-05-15 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I hope you're not disappointed when that PEP doesn't show up in the release notes :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14133

[issue8996] Add a default role to allow writing bare `len` instead of :func:`len`

2012-05-15 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8996 ___ ___ Python-bugs-list

[issue14804] Wrong defaults args notation in docs

2012-05-15 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Are you referring to #8350? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14804 ___ ___

[issue1294959] Problems with /usr/lib64 builds.

2012-05-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Éric Araujo wrote: Éric Araujo mer...@netwok.org added the comment: On Mar 29, 2011, at 10:12 PM, Matthias Klose wrote: no, it looks for headers and libraries in more directories. But really, this whole testing for paths is wrong.

[issue14674] Add link to RFC 4627 from json documentation

2012-05-15 Thread Chris Rebert
Chris Rebert pyb...@rebertia.com added the comment: New revision per Éric's Rietveld feedback. Sidenote: Is there any way to get notified of these reviews? I only saw it because I happened to click the review link on a lark. -- Added file:

[issue14674] Add link to RFC 4627 from json documentation

2012-05-15 Thread Chris Rebert
Chris Rebert pyb...@rebertia.com added the comment: The import jsons were left for uniformity with the other code samples in the module's docs. Also, here's what the pedantically-strict recipes might look like: def _reject_inf_nan(string): if string in {'-Infinity', 'Infinity', 'NaN'}:

[issue14674] Add link to RFC 4627 from json documentation

2012-05-15 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Thanks for the patch, I left more comments on the review page. IMHO it would be better to list the differences in a bullet list and expand later, rather than having a section for the parser and one for the generator. AFAIU the differences

[issue14674] Add link to RFC 4627 from json documentation

2012-05-15 Thread Chris Rebert
Chris Rebert pyb...@rebertia.com added the comment: Further copyediting. -- Added file: http://bugs.python.org/file25595/json.rst.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14674

[issue14674] Link to explain deviations from RFC 4627 in json module docs

2012-05-15 Thread Chris Rebert
Chris Rebert pyb...@rebertia.com added the comment: Reflect broader scope -- title: Add link to RFC 4627 from json documentation - Link to explain deviations from RFC 4627 in json module docs ___ Python tracker rep...@bugs.python.org

[issue14811] compile fails - UTF-8 character decoding

2012-05-15 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: There is no traceback. Here is the text of the Syntax error. d:\my\im\infilesc:\python32\python.exe d:\my\py\t33a.py -h File d:\my\py\t33a.py, line 2 SyntaxError: Non-UTF-8 code starting with '\xc3' in file d:\my\py\t33a.py on line 3,

[issue14805] Support display of both __cause__ and __context__

2012-05-15 Thread Patrick Westerhoff
Changes by Patrick Westerhoff patrickwesterh...@gmail.com: -- nosy: +poke ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14805 ___ ___

[issue14674] Add link to RFC 4627 from json documentation

2012-05-15 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: for key, value in pairs: if key in pairs: if key in obj:? -- title: Link to explain deviations from RFC 4627 in json module docs - Add link to RFC 4627 from json documentation

[issue14674] Add link to RFC 4627 from json documentation

2012-05-15 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: IMHO, it would be sufficient to have a simple bullet list of differences and notes or warnings in places where Python can generate non-standard JSON (top-level scalars, inf and nan, non-utf8 encoded strings). --

[issue14803] Enhanced command line features for the runpy module

2012-05-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: As Ned notes, to cover *implicit* creation of Python subprocesses an environment based solution would be needed to ensure the subprocesses adopt the desired settings. So why aren't you proposing an environment-based solution instead? :) To use

[issue14811] compile fails - UTF-8 character decoding

2012-05-15 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: You are right, file system encoding was platform dependent, not file encoding. This space-after-parentheses trigger is odd; I'm adding the Windows guys to the ticket. Please tell us also your exact version of Windows. -- components:

[issue14803] Add feature to allow code execution prior to __main__ invocation

2012-05-15 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Because I was thinking about a specific case where I *could* configure how the subprocesses were invoked (launching a test server for a web application). It took Ned's comment to remind me of the original use case (i.e. coverage statistics

[issue14803] Add feature to allow code execution prior to __main__ invocation

2012-05-15 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Actually, there's another use case for you: export PYTHONRUNFIRST=import faulthandler; faulthandler.enable() application.py All subprocesses launched by the application will now have faulthandler enabled, *without* modifying the application.

[issue14813] Can't build under VS2008 anymore

2012-05-15 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: I tried to build PC/VS9.0/pcbuild.sln using Visual Studio 2008, but it failed: 1-- Build started: Project: make_buildinfo, Configuration: Release Win32 -- 2-- Build started: Project: kill_python, Configuration: Debug x64 --

[issue14811] compile fails - UTF-8 character decoding

2012-05-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I tried to reproduce but failed to compile a Windows Python - see issue14813. -- components: +Windows nosy: +pitrou versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue14811] compile fails - UTF-8 character decoding

2012-05-15 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: I can reproduce it on Linux. Minimal example: $ ./python -c open('longline.py', 'w').write('#' + repr('\u00A1' * 4096) + '\n') $ ./python longline.py File longline.py, line 1 SyntaxError: Non-UTF-8 code starting with '\xc2' in file

[issue14810] Bug in tarfile

2012-05-15 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: This issue is related to issue13158 which deals with a GNU tar specific extension to the original tar format. In that issue a negative number in the uid/gid fields caused problems. In your case the problem is a negative mtime field. Reading

[issue14811] compile fails - UTF-8 character decoding

2012-05-15 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: And for Python 2.7 too. -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14811 ___

[issue14811] compile fails - UTF-8 character decoding

2012-05-15 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Function decoding_fgets (Parser/tokenizer.c) reads line in buffer of fixed size 8192 (line truncated to size 8191) and then fails because line is cut in the middle of a multibyte UTF-8 character. --

[issue14811] Syntax error on long UTF-8 lines

2012-05-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- title: compile fails - UTF-8 character decoding - Syntax error on long UTF-8 lines ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14811

[issue14803] Add feature to allow code execution prior to __main__ invocation

2012-05-15 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: For faulthandler and coverage would be more convenient option -M (run module with __name__='__premain__' (or something of the sort) and continue command line processing). -- ___ Python tracker

[issue14813] Can't build under VS2008 anymore

2012-05-15 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Building with VS 2008 isn't officially supported anymore. If users want to continue to use VS 2008, they need to contribute patches. Preferably, the project files would be generated from the VS2010 project files, but for the moment,

[issue14810] Bug in tarfile

2012-05-15 Thread Hans Werner May
Hans Werner May nc-may...@netcologne.de added the comment: Out of curiosity: where did you get a file that was last modified in 1956? No idea, this was a jpeg file, probably downloaded from internet. Btw, on Linux you can manipulate the creation date with the touch command, so it is possible

[issue14803] Add feature to allow code execution prior to __main__ invocation

2012-05-15 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: No, that increases complexity and coupling, because it would only work for modules that were designed to work that way. Execution of a simple statement will work for any global state that can be modified from pure Python code (including

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-15 Thread Thomas Kluyver
Thomas Kluyver tak...@gmail.com added the comment: I've submitted the contributor agreement, though I've not yet heard anything back about it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14777

[issue14813] Can't build under VS2008 anymore

2012-05-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Building with VS 2008 isn't officially supported anymore. If users want to continue to use VS 2008, they need to contribute patches. Well, VS 2010 is probably a multi-GB download and install. Besides, having to juggle between two different VS

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-15 Thread Thomas Kluyver
Thomas Kluyver tak...@gmail.com added the comment: ...And mere minutes after I said I hadn't heard anything, I've got the confirmation email. :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14777

[issue14809] Add HTTP status codes introduced by RFC 6585

2012-05-15 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: EungYun, After further research I've found two issue which you should fix before it can be checked in: - The multi-line strings are missing spaces at their line break (429 and 431). - The error codes are documented at

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-15 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: ...And mere minutes after I said I hadn't heard anything, I've got the confirmation email. :-) Congratulations! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14777

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-05-15 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: This issue tracks the incorporation of the ipaddress module into Python 3.3. Tasks to be completed: - add Lib/ipaddress.py from [1] - add Lib/test_ipaddress.py from [1] - create module reference docs from docstrings in [1] - add

[issue13952] mimetypes doesn't recognize .csv

2012-05-15 Thread Paul Cauchon
Changes by Paul Cauchon paulcauc...@gmail.com: -- nosy: +Paul.Cauchon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13952 ___ ___ Python-bugs-list

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

2012-05-15 Thread Martin v . Löwis
New submission from Martin v. Löwis mar...@v.loewis.de: random_seed has this code: long hash = PyObject_Hash(arg); On Win64, Py_hash_t is a 64-bit type, yet long is a 32-bit type, so this truncates. I think the computation should be done in Py_ssize_t. -- messages: 160720 nosy:

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

2012-05-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14815 ___ ___ Python-bugs-list

[issue14816] compilation failed on Ubuntu shared buildbot

2012-05-15 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: See http://www.python.org/dev/buildbot/all/builders/x86%20Ubuntu%20Shared%203.x First failing build is http://www.python.org/dev/buildbot/all/builders/x86%20Ubuntu%20Shared%203.x/builds/5955 -- components: Build messages: 160721 nosy:

[issue14777] Tkinter clipboard_get() decodes characters incorrectly

2012-05-15 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: I'm ok with last patch version. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14777 ___

[issue14804] Wrong defaults args notation in docs

2012-05-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Yes. Close as duplicate? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14804 ___ ___

[issue14804] Wrong defaults args notation in docs

2012-05-15 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: This issue is about documentation style of function signatures, not about missing keyword arguments in C functions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14804

[issue14494] __future__.py and its documentation claim absolute imports became mandatory in 2.7, but they didn't

2012-05-15 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14494 ___ ___ Python-bugs-list

[issue14773] fwalk breaks on dangling symlinks

2012-05-15 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: I just realized it doesn't really make sense because if a file disappears for real, we'll get another FileNotFoundException when checking whether it's a symlink and the continue is never reached. So behold v3. :) This time, I have tested it by

[issue14807] Move tarfile.filemode() into stat module

2012-05-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 492e6c6a01bb by Giampaolo Rodola' in branch 'default': #14807: move undocumented tarfile.filemode() to stat.filemode(). Add tarfile.filemode alias with deprecation warning.

[issue14807] Move tarfile.filemode() into stat module

2012-05-15 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14807

[issue14800] stat.py constant comments + docstrings

2012-05-15 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- assignee: - giampaolo.rodola keywords: +easy -patch stage: - committed/rejected status: open - closed type: - enhancement ___ Python tracker rep...@bugs.python.org

[issue14807] Move tarfile.filemode() into stat module

2012-05-15 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- assignee: - giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14807 ___ ___

[issue11959] smtpd cannot be used without affecting global state

2012-05-15 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: If asyncore and asynchat are (mostly?) supporting an alternate socket map, why is it necessary to copy create_socket? Shouldn't we be fixing create_socket in asyncore instead? Well, I don't see how this can be done along with keeping

[issue11959] smtpd cannot be used without affecting global state

2012-05-15 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Changing it in asyncore is fine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11959 ___

[issue14804] Wrong defaults args notation in docs

2012-05-15 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Indeed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14804 ___ ___ Python-bugs-list

[issue14773] fwalk breaks on dangling symlinks

2012-05-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14773 ___ ___

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-05-15 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814 ___ ___

[issue14773] fwalk breaks on dangling symlinks

2012-05-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset cbe7560d4443 by Hynek Schlawack in branch 'default': #14773: Fix os.fwalk() failing on dangling symlinks http://hg.python.org/cpython/rev/cbe7560d4443 -- nosy: +python-dev

[issue12541] Accepting Badly formed headers in urllib HTTPBasicAuth

2012-05-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3e10d0148f79 by Senthil Kumaran in branch '2.7': Issue #12541: Be lenient with quotes around Realm field with HTTP Basic Authentation in urllib2. http://hg.python.org/cpython/rev/3e10d0148f79 New changeset

[issue14809] Add HTTP status codes introduced by RFC 6585

2012-05-15 Thread EungJun Yi
Changes by EungJun Yi semtlen...@gmail.com: Added file: http://bugs.python.org/file25597/rfc6585.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14809 ___

[issue14809] Add HTTP status codes introduced by RFC 6585

2012-05-15 Thread EungJun Yi
EungJun Yi semtlen...@gmail.com added the comment: Hynek, I have fixed them and upload the patch, rfc6585-rev2.patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14809 ___

[issue11959] smtpd cannot be used without affecting global state

2012-05-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: But it is create_socket you want to change. So if we add a map argument to that and only pass it to socket if it is non-None, wouldn't that maintain backward compatibility with current asyncore behavior? Neither asyncore nor asynchat

[issue14813] Can't build under VS2008 anymore

2012-05-15 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Well, VS 2010 is probably a multi-GB download and install. Besides, having to juggle between two different VS versions will quickly become confusing. Sure. However, it is not feasible to keep the build systems for many VS versions

[issue14072] urlparse on tel: URI-s misses the scheme in some cases

2012-05-15 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Hi Ezio, The patch is fine and the check is correct. I was thinking if by removing int() based verification are we missing out anything on port number check. But looks like we wont as the int() previously is done to find the proper scheme

[issue14809] Add HTTP status codes introduced by RFC 6585

2012-05-15 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14809 ___ ___ Python-bugs-list

[issue14133] improved PEP 409 implementation

2012-05-15 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2012/5/15 Georg Brandl rep...@bugs.python.org: Georg Brandl ge...@python.org added the comment: I hope you're not disappointed when that PEP doesn't show up in the release notes :) It gives me more peace of mind than any release

[issue14072] urlparse on tel: URI-s misses the scheme in some cases

2012-05-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: it would helpful to add 'tel' to uses_netloc How so? The tel scheme does not use a netloc. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14072

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-05-15 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814 ___ ___

[issue14813] Can't build under VS2008 anymore

2012-05-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This is free software. If you don't want to care, you don't have to. Of course. I'm just pointing this out in relation with the fact that we don't have many Windows-based developers :-) I expect that most occasional contributors will find it

[issue12541] Accepting Badly formed headers in urllib HTTPBasicAuth

2012-05-15 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: this issue is taken care. Both in accepting unquoted Realm for basic auth leniently and then raising a UserWarning when encountering this case. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed

  1   2   >