[ANN] pyspread 0.2.1

2012-03-13 Thread Martin Manns
== pyspread 0.2.1 == Pyspread 0.2.1 is released. The new version improves GPG integration. About pyspread == Pyspread is a non-traditional spreadsheet application that is based on and written in the programming language Python. The goal of pyspread is to

Re: PyCrypto builds neither with MSVC nor MinGW

2012-03-13 Thread Alec Taylor
Nope, I have C:\Python27 (and C:\Python27\Scripts) in my PATH. C:\workingdir\pycryptowhere python C:\Python27\python.exe On Tue, Mar 13, 2012 at 4:44 PM, Case Van Horsen cas...@gmail.com wrote: On Mon, Mar 12, 2012 at 9:57 PM, Alec Taylor alec.tayl...@gmail.com wrote: Hmm, I just tried that

Windows Contextmenu

2012-03-13 Thread Szabo, Patrick (LNG-VIE)
Hi, I wrote the following Script which I want to run from the open with contextmenu in Windows. For that purpose I used py2exe to make an exe out of it. import sys, time, webbrowser def main(): for para in sys.argv[1:]: print sys.argv print

Re: How to break long method name into more than one line?

2012-03-13 Thread Jean-Michel Pichavant
Chris Angelico wrote: Just never treat them as laws of physics (in Soviet Physics, rules break you!). ChrisA hum ... I wonder how this political message is relevant to the OP problem. JM -- http://mail.python.org/mailman/listinfo/python-list

Re: How to break long method name into more than one line?

2012-03-13 Thread Chris Angelico
On Tue, Mar 13, 2012 at 9:30 PM, Jean-Michel Pichavant jeanmic...@sequans.com wrote: Chris Angelico wrote: Just never treat them as laws of physics (in Soviet Physics, rules break you!). hum ... I wonder how this political message is relevant to the OP problem. Ehh, it's a reference to the

Re: Windows Contextmenu

2012-03-13 Thread Tim Golden
On 13/03/2012 09:41, Szabo, Patrick (LNG-VIE) wrote: I wrote the following Script which I want to run from the open with contextmenu in Windows. For that purpose I used py2exe to make an exe out of it. [... snip ...] Now the script runs fine but I don’t get all arguments from sys.argv. No

Re: are int, float, long, double, side-effects of computer engineering?

2012-03-13 Thread Albert van der Horst
In article 5aaded58-af09-41dc-9afd-56d7b7ced...@d7g2000pbl.googlegroups.com, Xah Lee xah...@gmail.com wrote: SNIP what i meant to point out is that Mathematica deals with numbers at a high-level human way. That is, one doesn't think in terms of float, long, int, double. These words are never

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!

2012-03-13 Thread Kiuhnm
On 3/12/2012 20:00, Albert van der Horst wrote: In article4f5df4b3$0$1375$4fafb...@reader1.news.tin.it, Kiuhnmkiuhnm03.4t.yahoo.it wrote: On 3/12/2012 12:27, Albert van der Horst wrote: Interestingly in mathematics associative means that it doesn't matter whether you use (a.b).c or a.(b.c).

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!

2012-03-13 Thread Kiuhnm
On 3/12/2012 20:00, Albert van der Horst wrote: In article4f5df4b3$0$1375$4fafb...@reader1.news.tin.it, Kiuhnmkiuhnm03.4t.yahoo.it wrote: On 3/12/2012 12:27, Albert van der Horst wrote: Interestingly in mathematics associative means that it doesn't matter whether you use (a.b).c or a.(b.c).

concatenate function

2012-03-13 Thread ferreirafm
Hi List, I've coded three functions that I would like to concatenate. I mean, run them one after another. The third function depends on the results of the second function, which depends on the results of the first one. When I call one function after another, python runs them at the same time

Re: concatenate function

2012-03-13 Thread Ian Kelly
On Tue, Mar 13, 2012 at 8:35 AM, ferreirafm ferreir...@lim12.fm.usp.br wrote: Hi List, I've coded three functions that I would like to concatenate. I mean, run them one after another. The third function depends on the results of the second function, which depends on the results of the first

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots Af

2012-03-13 Thread Seymour J.
In m0scsu@spenarnc.xs4all.nl, on 03/12/2012 at 07:00 PM, Albert van der Horst alb...@spenarnc.xs4all.nl said: I know, but what the mathematicians do make so much more sense: Not really; Mathematical notation is a matter of convention, and the conventions owe as much to History as they do

Re: concatenate function

2012-03-13 Thread Robert Kern
On 3/13/12 2:35 PM, ferreirafm wrote: Hi List, I've coded three functions that I would like to concatenate. I mean, run them one after another. The third function depends on the results of the second function, which depends on the results of the first one. When I call one function after another,

Re: concatenate function

2012-03-13 Thread ferreirafm
Hi Ian, That what I have: burst.py Your job 46665 (top_n_pdb.qsub) has been submitted Your job 4 (extr_pdb.qsub) has been submitted Your job 46667 (combine_top.qsub) has been submitted The first job runs quite well. The second is still runing and the third issue the following: more

Re: concatenate function

2012-03-13 Thread James Elford
On 13/03/12 14:35, ferreirafm wrote: Hi List, I've coded three functions that I would like to concatenate. I mean, run them one after another. The third function depends on the results of the second function, which depends on the results of the first one. When I call one function after

Re: concatenate function

2012-03-13 Thread ferreirafm
Hi Robert, Thanks for you kind replay and I'm sorry for my semantic mistakes. Indeed, that's what I'm doing: qsub-ing different cshell scripts. Certainly, that's not the best approach and the only problem. I've unsuccessfully tried to set an os.environ and call qsub from it. However,

Re: concatenate function

2012-03-13 Thread ferreirafm
Hi James, thank you for your replay. Indeed, the problem is qsub. And as warned by Robert, I don't have functions properly, but just scripts. -- View this message in context: http://python.6.n6.nabble.com/concatenate-function-tp4574176p4574511.html Sent from the Python - python-list mailing

Re: Software Engineer -

2012-03-13 Thread Paul Rudin
Chris Withers ch...@simplistix.co.uk writes: On 11/03/2012 09:00, Blue Line Talent wrote: Blue Line Talent is looking for a mid-level software engineer with experience in a combination of Please don't spam this list with jobs, use the Python job board instead:

Re: concatenate function

2012-03-13 Thread James Elford
On 13/03/12 16:02, ferreirafm wrote: Hi James, thank you for your replay. Indeed, the problem is qsub. And as warned by Robert, I don't have functions properly, but just scripts. -- View this message in context: http://python.6.n6.nabble.com/concatenate-function-tp4574176p4574511.html

Re: concatenate function

2012-03-13 Thread Robert Kern
On 3/13/12 3:59 PM, ferreirafm wrote: Hi Robert, Thanks for you kind replay and I'm sorry for my semantic mistakes. Indeed, that's what I'm doing: qsub-ing different cshell scripts. Certainly, that's not the best approach and the only problem. It's not a problem to write out a script and have

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!

2012-03-13 Thread Kiuhnm
On 3/12/2012 20:00, Albert van der Horst wrote: [...] Sorry for triple posting. I hadn't noticed the follow up and I was blaming my newsserver. BTW, Python is the next language (right after Perl) I'm going to learn. Then I'll probably have a look at Ruby... Kiuhnm --

Re: Installing Python Apps on Mac Lion

2012-03-13 Thread dilvanezanardine
Sábado, 25 de Junho de 2011 02h20min49s UTC+1, JKPeck escreveu: The Lion version of the OS on the Mac comes with Python 2.7 installed, but it is in /System/Library/Frameworks/..., and this area is not writable by third party apps. So is there a consensus on what apps that typically install

Re: Software Engineer -

2012-03-13 Thread Pedro H. G. Souto
On 2012-03-13 12:44 PM, Paul Rudin wrote: Just out of interest why do people object to job adverts here? Seems harmless enough... Wannabe list admins... Or list admins with a need to proof themselves... Or none of the above. -- http://mail.python.org/mailman/listinfo/python-list

Re: Software Engineer -

2012-03-13 Thread Neil Cerutti
On 2012-03-13, Pedro H. G. Souto phgso...@gmail.com wrote: On 2012-03-13 12:44 PM, Paul Rudin wrote: Just out of interest why do people object to job adverts here? Seems harmless enough... Wannabe list admins... Or list admins with a need to proof themselves... Or none of the above. A job

RE: Windows Contextmenu

2012-03-13 Thread Prasad, Ramit
Now the script runs fine but I don't get all arguments from sys.argv. No mather how many files I mark in the explorer I only get one as an argument. You're missing out vital information: * How have you attached this code to the context menu? What was the exact registry entry (or

Re: concatenate function

2012-03-13 Thread ferreirafm
Robert Kern-2 wrote When you report a problem, you should copy-and-paste the output that you got and also state the output that you expected. I have no idea what you mean when you say subprocess.Popen seems not accept to run qsub over a second program. Code goes here:

Re: Installing Python Apps on Mac Lion

2012-03-13 Thread Benjamin Kaplan
On Tue, Mar 13, 2012 at 12:42 PM, dilvanezanard...@gmail.com wrote: Sábado, 25 de Junho de 2011 02h20min49s UTC+1, JKPeck escreveu: The Lion version of the OS on the Mac comes with Python 2.7 installed, but it is in /System/Library/Frameworks/..., and this area is not writable by third

Re: Windows Contextmenu

2012-03-13 Thread Terry Reedy
On 3/13/2012 5:41 AM, Szabo, Patrick (LNG-VIE) wrote: Hi, I wrote the following Script which I want to run from the open with contextmenu in Windows. Now the script runs fine but I don’t get all arguments from sys.argv. No mather how many files I mark in the explorer I only get one as an

Re: concatenate function

2012-03-13 Thread Robert Kern
On 3/13/12 6:01 PM, ferreirafm wrote: Robert Kern-2 wrote When you report a problem, you should copy-and-paste the output that you got and also state the output that you expected. I have no idea what you mean when you say subprocess.Popen seems not accept to run qsub over a second program.

Re: concatenate function

2012-03-13 Thread Chris Rebert
On Tue, Mar 13, 2012 at 1:35 PM, Robert Kern robert.k...@gmail.com wrote: On 3/13/12 6:01 PM, ferreirafm wrote: Robert Kern-2 wrote When you report a problem, you should copy-and-paste the output that you got and also state the output that you expected. I have no idea what you mean when you

Re: Fast file data retrieval?

2012-03-13 Thread Jorgen Grahn
On Mon, 2012-03-12, MRAB wrote: On 12/03/2012 19:39, Virgil Stokes wrote: I have a rather large ASCII file that is structured as follows header line 9 nonblank lines with alphanumeric data header line 9 nonblank lines with alphanumeric data ... ... ... header line 9 nonblank lines with

Enchancement suggestion for argparse: intuit type from default

2012-03-13 Thread Roy Smith
Using argparse, if I write: parser.add_argument('--foo', default=100) it seems like it should be able to intuit that the type of foo should be int (i.e. type(default)) without my having to write: parser.add_argument('--foo', type=int, default=100) Does this seem like a reasonable

Re: Enchancement suggestion for argparse: intuit type from default

2012-03-13 Thread Ben Finney
r...@panix.com (Roy Smith) writes: Using argparse, if I write: parser.add_argument('--foo', default=100) it seems like it should be able to intuit that the type of foo should be int (i.e. type(default)) […] -0.5. That feels too magical to me. I don't see a need to special-case that

[ANN] pyspread 0.2.1

2012-03-13 Thread Martin Manns
== pyspread 0.2.1 == Pyspread 0.2.1 is released. The new version improves GPG integration. About pyspread == Pyspread is a non-traditional spreadsheet application that is based on and written in the programming language Python. The goal of pyspread is to

Re: Adopting ‘lockfile’

2012-03-13 Thread Ben Finney
Chris Withers ch...@simplistix.co.uk writes: On 03/03/2012 21:43, Ben Finney wrote: I don't see a need to horse around with Git either :-) It's currently in Subversion, right? Can you not export the VCS history from Google Code's Subversion repository […] What's wrong with a git svn

Re: Python-list Digest, Vol 102, Issue 64

2012-03-13 Thread David Shi
I am looking very simple and straightforward open source Python REST and SOAP demo modules. I really need things which are very simple and convincing.   I want to demonstrate these to other people. I want to promote you guys' interest.   I find asp and others frustrating and occupy too much

Re: are int, float, long, double, side-effects of computer engineering?

2012-03-13 Thread John Nagle
On 3/7/2012 2:02 PM, Russ P. wrote: On Mar 6, 7:25 pm, rusirustompm...@gmail.com wrote: On Mar 6, 6:11 am, Xah Leexah...@gmail.com wrote: I might add that Mathematica is designed mainly for symbolic computation, whereas IEEE floating point numbers are intended for numerical computation.

[issue14284] unicodeobject error on macosx in build process

2012-03-13 Thread Hervé Coatanhay
New submission from Hervé Coatanhay herve.coatan...@gmail.com: On a fresh install from mercurial on macosx. ./python -SE -m sysconfig --generate-posix-vars Could not find platform dependent libraries exec_prefix Consider setting $PYTHONHOME to prefix[:exec_prefix] Assertion failed:

[issue14284] unicodeobject error on macosx in build process

2012-03-13 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: See #13241. -- nosy: +ezio.melotti resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7) ___ Python

[issue14285] Traceback wrong on ImportError while executing a package

2012-03-13 Thread Marc Schlaich
New submission from Marc Schlaich marc.schla...@googlemail.com: It is very simple to reproduce this error. There is an executable package: package/ __init__.py __main__.py The __init__ imports a missing module: import missing_module And the __main__ imports from it: from .

[issue14257] minor error in glossary wording regarding __hash__

2012-03-13 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 0f146020d8e9 by Senthil Kumaran in branch '3.2': closes issue14257 - Grammatical fix http://hg.python.org/cpython/rev/0f146020d8e9 New changeset c5833f277258 by Senthil Kumaran in branch 'default': closes issue14257

[issue14246] Accelerated ETree XMLParser cannot handle io.StringIO

2012-03-13 Thread Stefan Behnel
Stefan Behnel sco...@users.sourceforge.net added the comment: FWIW, lxml also has support for parsing Unicode strings. It doesn't encode the input, however, but parses straight from the underlying buffer (after detecting the buffer layout etc. at module init time - and yes, I still haven't

[issue5758] fileinput.hook_compressed returning bytes from gz file

2012-03-13 Thread Tatiana Al-Chueyr
Tatiana Al-Chueyr tatiana.alchu...@gmail.com added the comment: Improved patch, according to eric.araujo's suggestions and mnewman's guidance. -- Added file: http://bugs.python.org/file24815/issue5758_fileinput_gzip_with_encoding_v2.patch ___ Python

[issue12890] cgitb displays p tags when executed in text mode

2012-03-13 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: Did this ever get committed? Is there anything left for me to do here? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12890 ___

[issue14246] Accelerated ETree XMLParser cannot handle io.StringIO

2012-03-13 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Stefan, Thanks a lot for taking the time to review the patch. As you correctly say, the current pathch's goal is just to align with existing behavior in the Python implementation of ET. I understand the problem you are describing, but at

[issue1666318] shutil.copytree doesn't give control over directory permissions

2012-03-13 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: I made the change suggested in the last comment, patch is attached. Trying to clean up any bugs I've got my name on! -- keywords: +patch Added file: http://bugs.python.org/file24816/makedirs_function.patch

[issue14281] Add unit test for cgi.escape method

2012-03-13 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 757afb3af762 by Senthil Kumaran in branch '2.7': Fix closes Issue14281 - Test for cgi.escape by Brian Landers http://hg.python.org/cpython/rev/757afb3af762 New changeset 13922f6d87f2 by Senthil Kumaran in branch

[issue12365] URLopener should support context manager protocol

2012-03-13 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: Documentation patch to outline the use of context manager protocol attached. Trying to cleanup any bugs with my name on them. -- keywords: +patch Added file: http://bugs.python.org/file24817/urllib_request_doc.patch

[issue10050] urllib.request still has old 2.x urllib primitives

2012-03-13 Thread Jeff McNeil
Changes by Jeff McNeil j...@jmcneil.net: -- nosy: -mcjeff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10050 ___ ___ Python-bugs-list mailing

[issue14262] Allow using decimals as arguments to `timedelta`

2012-03-13 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: The PEP 410 was rejected. See also the issue #13882. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14262 ___

[issue14273] distutils2: logging handler not properly initialized

2012-03-13 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I cannot reproduce this, and in fact couldn't find anywhere in packaging in the default branch where a distutils2 logger is set up. I used grep to look for getLogger.*(distutils2|__name__), could some other logic be in use to construct

[issue1429] FD leak in SocketServer

2012-03-13 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: In an effort to walk through bugs in my nosy list, I dug into this and tried to reproduce it to no avail. Also, as the handle_error method is supposed to handle problems gracefully, calling shutdown on handle_error exception is probably

[issue14272] ast.c: windows compile error

2012-03-13 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Looks fixed in 6bee4eea1efa. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14272

[issue14262] Allow using decimals as arguments to `timedelta`

2012-03-13 Thread Ram Rachum
Ram Rachum r...@rachum.com added the comment: I'm not proposing that `timedelta` will use `Decimal` internally, but that it would handle the conversion to `float` itself, instead of the user having to do it. -- ___ Python tracker

[issue14286] xxlimited.obj: unresolved external symbol __imp__PyObject_New

2012-03-13 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: Linking fails on Windows 64-bit. Perhaps Py_LIMITED_API ifdefs are missing. Creating library C:\Users\stefan\hg\cpython\PCbuild\\amd64\\xxlimited.lib and object C:\Users\stefan\hg\c python\PCbuild\\amd64\\xxlimited.exp

[issue1762561] unable to serialize Infinity or NaN on ARM using marshal

2012-03-13 Thread Nir Soffer
Nir Soffer nir...@gmail.com added the comment: As someone who has to develop on ARM OABI, I find this won't fix policy rather frustrating. If you happen to need this patch on 2.7, this is the same patch as arm-float2.diff, which can be applied cleanly to release 2.7.2. Changes from

[issue13889] str(float) and round(float) issues with FPU precision

2012-03-13 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I've looked at the latest patch: It seems that new_387controlword is not set if old_387controlword already has the desired precision and rounding mode. Attached is a revised patch that uses the same logic as the Linux version. A couple

[issue10945] bdist_wininst depends on MBCS codec, unavailable on non-Windows

2012-03-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The proposition of using other C functions and changing the bdist_wininst code looks risky to me, especially as I don’t know how compatibility would be affected (see my previous message). We are free to improve the wininst code in distutils2,

[issue8954] wininst regression: errors when building on linux

2012-03-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Sean: In msg135902 I am merely explaining why I removed 2.6 from the list of versions. Only 2.7, 3.2 and 3.3 can get fixed. If you look at my previous message or the list of dependencies, you can see that #10945 needs to be fixed first before

[issue14260] re.groupindex available for modification and continues to work, having incorrect data inside it

2012-03-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I can get code from anywhere I am afraid I don’t understand. Could you start again and explain what bug you ran into, i.e. what behavior does not match what the docs say? At present this report looks like it is saying “when I put random

[issue14282] lib2to3.fixer_util.touch_import('__future__', ...) can lead to SyntaxError in code

2012-03-13 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I think that's actually a bug in python-modernize, not in touch_import - or, rather, touch_import shouldn't be used to add future imports. Instead, I think there should be a touch_future function which adds a future import, taking into

[issue5758] fileinput.hook_compressed returning bytes from gz file

2012-03-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks. Unless another core dev wants to do a complementary review I will slightly tweak the patch and commit it. I need to finish waking up and eat some food before I do that :) Technically adding a new argument means that this is a new

[issue12890] cgitb displays p tags when executed in text mode

2012-03-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’ll apply it shortly. -- assignee: - eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12890 ___

[issue14267] TimedRotatingFileHandler chooses wrong file name due to daylight saving time spring forward

2012-03-13 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset a5c4b8ccca8b by Vinay Sajip in branch '2.7': Closes #14267: Corrected computation of rollover filename. http://hg.python.org/cpython/rev/a5c4b8ccca8b New changeset a1d9466441ff by Vinay Sajip in branch '3.2': Closes

[issue14202] The docs of xml.dom.pulldom are almost nonexistent

2012-03-13 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: I reviewed the patch in http://bugs.python.org/review/14202/show -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14202 ___

[issue13885] CVE-2011-3389: _ssl module always disables the CBC IV attack countermeasure

2012-03-13 Thread Tomas Hoger
Tomas Hoger tho...@redhat.com added the comment: Is the final patch going to enable empty fragments unconditionally and will ofter no way to disable them? curl did that recently and ended up adding option to allow users to disable empty fragments when they break compatibility:

[issue14180] Factorize code to convert int/float to time_t, timeval or timespec

2012-03-13 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1e9cc1a03365 by Victor Stinner in branch 'default': Close #14180: Factorize code to convert a number of seconds to time_t, timeval or timespec http://hg.python.org/cpython/rev/1e9cc1a03365 -- nosy:

[issue14180] Factorize code to convert int/float to time_t, timeval or timespec

2012-03-13 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset ed73006bac42 by Victor Stinner in branch 'default': Issue #14180: Remove commented code http://hg.python.org/cpython/rev/ed73006bac42 -- ___ Python tracker

[issue14262] Allow using decimals as arguments to `timedelta`

2012-03-13 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Attached patch changes timedelta constructor to accept decimal.Decimal. See also the issue #14180. -- keywords: +patch Added file: http://bugs.python.org/file24820/timedelta_decimal.patch

[issue10945] bdist_wininst depends on MBCS codec, unavailable on non-Windows

2012-03-13 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Would the proposed change mean that a bdist_wininst built with 3.2.0 won’t work with a patched 3.2.3? The installer doesn't use distutils to read its configuration, so such binary runs with any installed Python version. bdist_msi

[issue10148] st_mtime differs after shutil.copy2

2012-03-13 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: This issue is a duplicate of #14127. -- nosy: +haypo resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10148

[issue14127] os.stat and os.utime: allow preserving exact metadata

2012-03-13 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: I'm lost in all issues related to os.stat/utime and nanosecond, here is a list: - #10148: duplicate - #11457: closed (was related the the rejected PEP 410) - #12904: closed, it was the first step to fix os.stat/os.utime - #13882:

[issue13964] os.utimensat() and os.futimes() should accept (sec, nsec), drop os.futimens()

2012-03-13 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: This issue is a duplicate of #14127. -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13964

[issue14127] add st_*time_ns fileds to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds

2012-03-13 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: os.stat and os.utime: allow preserving exact metadata - add st_*time_ns fileds to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds ___ Python

[issue14282] lib2to3.fixer_util.touch_import('__future__', ...) can lead to SyntaxError in code

2012-03-13 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Instead of changing touch_import, I propose to add a function similar to https://github.com/loewis/python-modernize/commit/0db885e616807d0cc6859b4035d81fd260b06a67 -- ___ Python tracker

[issue14127] add st_*time_ns fileds to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds

2012-03-13 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: The following changes has to be done to fix this issue: - add st_atime_ns, st_mtime_ns and st_ctime_ns fileds to os.stat() result: number of nanoseconds since Epoch (1970.1.1), an integer - change os.*utime*() functions (see below)

[issue14262] Allow using decimals as arguments to `timedelta`

2012-03-13 Thread Ram Rachum
Ram Rachum r...@rachum.com added the comment: Thanks for the patch! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14262 ___ ___

[issue13889] str(float) and round(float) issues with FPU precision

2012-03-13 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: BTW, the MSDN documentation at http://msdn.microsoft.com/en-us/library/e9b52ceh(v=vs.100).aspx is a bit confusing. Question 1: when doing __control87_2(new, mask, old, NULL), does the resulting value in old reflect the *new* FPU state or

[issue14217] text output pretends to be code

2012-03-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This issue does not apply to 2.7 docs because they lack the local/nonlocal assignment example; do you agree it would be good to backport that? Tshepang, if you find more instances of the same problem, please report them. Thanks! --

[issue14287] sys.stdin.readline and KeyboardInterrupt on windows

2012-03-13 Thread Musashi Tamura
New submission from Musashi Tamura yuri.musashi.miwa.tam...@gmail.com: I run z.py and press Ctrl-C. '' Traceback (most recent call last): File z.py, line 7, in module print(repr(x)) KeyboardInterrupt I think '' should not be printed. This sometimes occurs on Python 3.2.2 and 2.7.2

[issue1666318] shutil.copytree doesn't give control over directory permissions

2012-03-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Patch looks good. I don’t know if I should fix this in 3.3 with your patch or go back to the first idea of adding a copystat(src, dst) after the mkdir call. I just don’t know if it’s important that this behavior does not change in stable

[issue14273] distutils2: logging handler not properly initialized

2012-03-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: We didn’t give enough info, sorry. This bug is not reproducible with packaging, it only shows when using the distutils2 repository with Python 2.5, 2.6 or 3.1. I think it’s related to the absence of built-in handler of last resort.

[issue12365] URLopener should support context manager protocol

2012-03-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the patch. - This function returns a file-like object with two additional methods from + This function returns a file-like object that supports the Context Manager + protocol, with two additional methods from The

[issue14180] Factorize code to convert int/float to time_t, timeval or timespec

2012-03-13 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1eaf6e899f02 by Victor Stinner in branch 'default': Issue #14180: Fix select.select() compilation on BSD and a typo in kqueue_queue_control() http://hg.python.org/cpython/rev/1eaf6e899f02 --

[issue13889] str(float) and round(float) issues with FPU precision

2012-03-13 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Mark Dickinson rep...@bugs.python.org wrote: http://msdn.microsoft.com/en-us/library/e9b52ceh(v=vs.100).aspx Question 1: when doing __control87_2(new, mask, old, NULL), does the resulting value in old reflect the *new* FPU state or

[issue5758] fileinput.hook_compressed returning bytes from gz file

2012-03-13 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: For 3.2 could we use the same fix, but without exposing the ability to *change* the encoding? That is, we use TextIOWrapper but always with the default None for encoding. It also occurs to me that this really exposes a weakness in the

[issue13889] str(float) and round(float) issues with FPU precision

2012-03-13 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Stefan Krah rep...@bugs.python.org wrote: Stefan Krah stefan-use...@bytereef.org added the comment: Mark Dickinson rep...@bugs.python.org wrote: http://msdn.microsoft.com/en-us/library/e9b52ceh(v=vs.100).aspx Question 1: when

[issue14127] add st_*time_ns fileds to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds

2012-03-13 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Larry, are you sprinting on this? I'd love to help. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14127 ___

[issue14273] distutils2: logging handler not properly initialized

2012-03-13 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Yes, the whole package only uses one logger, and we don’t want to stop messages: the application (pysetup, pip, etc.) must be able to set the level.  I’ll remove the code that sets a level on the logger and write a test to make

[issue5758] fileinput.hook_compressed returning bytes from gz file

2012-03-13 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It also occurs to me that this fix makes the charset hook look rather odd. We could render it redundant by passing charset to open in the non-openhook case, and mark it deprecated. There is also a bug in the hook_encoding docs. It

[issue14273] distutils2: logging handler not properly initialized

2012-03-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I think you might mean sets a level on the handler - the logger should still have the level set IIUC the logger should be set to DEBUG, otherwise even if e.g. pip wants to get INFO messages it won’t see them. Is that right? --

[issue5758] fileinput.hook_compressed returning bytes from gz file

2012-03-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: For 3.2 could we use the same fix, but without exposing the ability to *change* the encoding? That is, we use TextIOWrapper but always with the default None for encoding. Yes! It also occurs to me that this really exposes a weakness in the

[issue14180] Factorize code to convert int/float to time_t, timeval or timespec

2012-03-13 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset cb1c877a27f2 by Victor Stinner in branch 'default': Issue #14180: Fix another typo in kqueue_queue_control() http://hg.python.org/cpython/rev/cb1c877a27f2 -- ___ Python

[issue14288] Make iterators pickleable

2012-03-13 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson krist...@ccpgames.com: A common theme in many talks last year about cloud computing was the need to suspend execution, pickle state, and resume it on a different node. This patch is the result of last year's stackless sprint at pycon, finally

[issue14262] Allow using decimals as arguments to `timedelta`

2012-03-13 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: I am -0 on the feature and -1 on the implementation. Conversion from Decimal to float is explicit by design. Decimal gives the user fine control over rounding issues allowing for either exact arithmetics (trapping inexact

[issue1666318] shutil.copytree doesn't give control over directory permissions

2012-03-13 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: Ah, understood. I kind of like the idea of having the added functionality behind a custom callable, but if it's generally just a bug then copystat is a good solution, too. -- ___ Python tracker

[issue14062] UTF-8 Email Subject problem

2012-03-13 Thread Tatiana Al-Chueyr
Tatiana Al-Chueyr tatiana.alchu...@gmail.com added the comment: Hi msladek! I tried to reproduce your bug using Python 3.2.2 on MacOS X, but didn't manage - all worked fine. I used gmail both to send and receive the message, on SSL: smtpPort = '465' smtpSrv = 'smtp.gmail.com' As I'm

[issue8536] Support new features of ZLIB 1.2.4

2012-03-13 Thread Jason Killen
Jason Killen jsnk...@gmail.com added the comment: Given this is marked as good for a newbie and easy I figured I'd take a crack at it but I'm confused. As example I don't see where inflateReset2 would be useful. I don't see anywhere inflateReset is used and would need to be replaced by

[issue14180] Factorize code to convert int/float to time_t, timeval or timespec

2012-03-13 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 760cf150bb99 by Victor Stinner in branch 'default': Issue #14180: Fix pythoncore.vcproj, Modules/_time.[ch] have been removed http://hg.python.org/cpython/rev/760cf150bb99 --

[issue14127] add st_*time_ns fileds to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds

2012-03-13 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I don't want to remove os.futimens() and os.utimensat() because they add a feature: UTIME_NOW and UTIME_OMIT flags. I'm not sure how this could work: UTIME_NOW and UTIME_OMIT have typically values such as ((1l 30) - 2l) which could be

  1   2   3   >