Re: Pass variable by reference

2014-05-06 Thread Steven D'Aprano
On Mon, 05 May 2014 17:39:44 -0700, Satish Muthali wrote: Hello experts, I have a burning question on how to pass variable by reference in Python. I understand that the data type has to be mutable. Python provides neither pass-by-reference nor pass-by-value argument passing. Please read

Re: Add Received: header to email msg in correct position?

2014-05-06 Thread Steven D'Aprano
On Tue, 06 May 2014 02:13:09 +, Grant Edwards wrote: There's is a somewhat messy way to do it by calling msg.items() to retrieve all the current headers, removing all of them, and then adding them all back (includeing the new one) in the order I want them. Does msg.items() return the

Mapping of node numbers

2014-05-06 Thread varun7rs
Hello Everyone, I need to map the node ID to a number. I am using this xml file as of now. http://sndlib.zib.de/coredata.download.action?objectName=germany50format=xmlobjectType=network Also, I need to use the same node number whenever there is a node occurrence in the source and destination.

Re: Pass variable by reference

2014-05-06 Thread Marko Rauhamaa
Steven D'Aprano st...@pearwood.info: On Mon, 05 May 2014 17:39:44 -0700, Satish Muthali wrote: I have a burning question on how to pass variable by reference in Python. I understand that the data type has to be mutable. [...] To get an effect *similar* to pass-by-reference, you can wrap

Re: Add Received: header to email msg in correct position?

2014-05-06 Thread alister
On Mon, 05 May 2014 19:51:15 +, Grant Edwards wrote: I'm working on a Python app that receives an e-mail message via SMTP, does some trivial processing on it, and forwards it to another SMTP server. I'd like to do the polite thing and add a Received: header, but I can't figure out how

Re: Add Received: header to email msg in correct position?

2014-05-06 Thread Chris Angelico
On Tue, May 6, 2014 at 7:15 PM, alister alister.nospam.w...@ntlworld.com wrote: On Mon, 05 May 2014 19:51:15 +, Grant Edwards wrote: I'm working on a Python app that receives an e-mail message via SMTP, does some trivial processing on it, and forwards it to another SMTP server. I'd like

Re: Pass variable by reference

2014-05-06 Thread Chris Angelico
On Tue, May 6, 2014 at 7:11 PM, Marko Rauhamaa ma...@pacujo.net wrote: Steven D'Aprano st...@pearwood.info: On Mon, 05 May 2014 17:39:44 -0700, Satish Muthali wrote: I have a burning question on how to pass variable by reference in Python. I understand that the data type has to be mutable.

Re: Add Received: header to email msg in correct position?

2014-05-06 Thread alister
On Tue, 06 May 2014 19:47:54 +1000, Chris Angelico wrote: On Tue, May 6, 2014 at 7:15 PM, alister alister.nospam.w...@ntlworld.com wrote: On Mon, 05 May 2014 19:51:15 +, Grant Edwards wrote: I'm working on a Python app that receives an e-mail message via SMTP, does some trivial

Re: Pass variable by reference

2014-05-06 Thread Marko Rauhamaa
Chris Angelico ros...@gmail.com: characters, words, lines = stats.read() That's not really pass-by-reference, though. What you're doing is output parameters, which are usually implemented in C with pointers, but in Python with a return tuple. Correct, but it is worth questioning the

Re: Add Received: header to email msg in correct position?

2014-05-06 Thread Chris Angelico
On Tue, May 6, 2014 at 8:26 PM, alister alister.nospam.w...@ntlworld.com wrote: On Tue, 06 May 2014 19:47:54 +1000, Chris Angelico wrote: On Tue, May 6, 2014 at 7:15 PM, alister alister.nospam.w...@ntlworld.com wrote: On Mon, 05 May 2014 19:51:15 +, Grant Edwards wrote: I'm working on a

Re: Pass variable by reference

2014-05-06 Thread Chris Angelico
On Tue, May 6, 2014 at 8:38 PM, Marko Rauhamaa ma...@pacujo.net wrote: Chris Angelico ros...@gmail.com: characters, words, lines = stats.read() That's not really pass-by-reference, though. What you're doing is output parameters, which are usually implemented in C with pointers, but in

A Question about Python

2014-05-06 Thread doaa eman
hello; I'm a researcher from Cairo University (Information science Dep.) i want to know how can i use Paython language on CiteULike i need to use it for extracting only tagged articles in the field of medicine for example for my Ph.D research. another question please : can this webpage help me

Re: A Question about Python

2014-05-06 Thread Rustom Mody
On Tuesday, May 6, 2014 5:39:25 PM UTC+5:30, doaa eman wrote: hello; I'm a researcher from Cairo University (Information science Dep.) i want to know how can i use Paython language on CiteULike i need to use it for extracting only tagged articles in the field of medicine for example for

Re: A Question about Python

2014-05-06 Thread Denis McMahon
On Tue, 06 May 2014 05:09:25 -0700, doaa eman wrote: I'm a researcher .. Obviously part of your PhD research is going to be whether the citeulike_api 0.1.3dev python package can help you extract the information you want from http://citeulike.org/ We look forwards to seeing your

(question) How to use python get access to google search without query quota limit

2014-05-06 Thread shrikant aher
hey, will u please send me the code that you write. actually i'm trying to learn use of google search api but i'm not getting so please mail me the code. my mail id is shrikan...@gmail.com -- Shrikant -- https://mail.python.org/mailman/listinfo/python-list

Re: Add Received: header to email msg in correct position?

2014-05-06 Thread Grant Edwards
On 2014-05-06, Steven D'Aprano st...@pearwood.info wrote: On Tue, 06 May 2014 02:13:09 +, Grant Edwards wrote: There's is a somewhat messy way to do it by calling msg.items() to retrieve all the current headers, removing all of them, and then adding them all back (includeing the new one)

Re: Add Received: header to email msg in correct position?

2014-05-06 Thread Grant Edwards
On 2014-05-06, alister alister.nospam.w...@ntlworld.com wrote: On Mon, 05 May 2014 19:51:15 +, Grant Edwards wrote: I'm working on a Python app that receives an e-mail message via SMTP, does some trivial processing on it, and forwards it to another SMTP server. I'd like to do the

Re: Add Received: header to email msg in correct position?

2014-05-06 Thread Grant Edwards
On 2014-05-06, Grant Edwards invalid@invalid.invalid wrote: On 2014-05-06, alister alister.nospam.w...@ntlworld.com wrote: On Mon, 05 May 2014 19:51:15 +, Grant Edwards wrote: I'm working on a Python app that receives an e-mail message via SMTP, does some trivial processing on it, and

Re: Add Received: header to email msg in correct position?

2014-05-06 Thread Chris Angelico
On Wed, May 7, 2014 at 12:15 AM, Grant Edwards invalid@invalid.invalid wrote: On 2014-05-06, alister alister.nospam.w...@ntlworld.com wrote: On Mon, 05 May 2014 19:51:15 +, Grant Edwards wrote: I'm working on a Python app that receives an e-mail message via SMTP, does some trivial

Re: Add Received: header to email msg in correct position?

2014-05-06 Thread Yimr Zero
If you use Python 2.7, you should add urllib, urllib2 modules. If you use Python 3, the two modules mentioned above are included in urllib. -- https://mail.python.org/mailman/listinfo/python-list

Re: Significant digits in a float?

2014-05-06 Thread Mark H Harris
On 5/1/14 9:06 PM, Dennis Lee Bieber wrote: The N4-ES and the N4-T (mine) are essentially the same rule. The N4-ES on the site is yellow (mine is white) and the site rule indicates Picket Eckel Inc. (that's where the E comes from) Also the the ES states Chicage Ill USA where the T states Made

Re: Significant digits in a float?

2014-05-06 Thread Mark H Harris
On 5/1/14 8:47 PM, Dennis Lee Bieber wrote: On Wed, 30 Apr 2014 22:54:21 -0500, Mark H Harris harrismh...@gmail.com declaimed the following: My high school '74 was the last class to learn the slide-rule using the Sterling (we paid a deposit to use the school's). Since

Re: Add Received: header to email msg in correct position?

2014-05-06 Thread Burak Arslan
On 05/06/14 12:47, Chris Angelico wrote: On Tue, May 6, 2014 at 7:15 PM, alister alister.nospam.w...@ntlworld.com wrote: On Mon, 05 May 2014 19:51:15 +, Grant Edwards wrote: I'm working on a Python app that receives an e-mail message via SMTP, does some trivial processing on it, and

Re: (question) How to use python get access to google search without query quota limit

2014-05-06 Thread alister
On Tue, 06 May 2014 19:37:14 +0530, shrikant aher wrote: hey, will u please send me the code that you write. actually i'm trying to learn use of google search api but i'm not getting so please mail me the code. my mail id is shrikan...@gmail.com it does not work like that here you show us

Re: Add Received: header to email msg in correct position?

2014-05-06 Thread alister
On Tue, 06 May 2014 14:15:08 +, Grant Edwards wrote: I'd like to do it the right way whether it's required by the letter of the law or not. So do I , although i might have left a cosmetic issue until the rest of the app was functioning as desired. As wiser minds than mine have now

Re: Significant digits in a float?

2014-05-06 Thread alister
On Tue, 06 May 2014 09:51:25 -0500, Mark H Harris wrote: On 5/1/14 9:06 PM, Dennis Lee Bieber wrote: The N4-ES and the N4-T (mine) are essentially the same rule. The N4-ES on the site is yellow (mine is white) and the site rule indicates Picket Eckel Inc. (that's where the E comes from)

Re: Add Received: header to email msg in correct position?

2014-05-06 Thread Grant Edwards
On 2014-05-06, Burak Arslan burak.ars...@arskom.com.tr wrote: On 05/06/14 12:47, Chris Angelico wrote: On Tue, May 6, 2014 at 7:15 PM, alister alister.nospam.w...@ntlworld.com wrote: On Mon, 05 May 2014 19:51:15 +, Grant Edwards wrote: I'm working on a Python app that receives an e-mail

How does apache runs a application when a request comes in?

2014-05-06 Thread Norah Jones
Hi, I have a python web application running on apache2 deployed with `mod_wsgi`. The application has a thread continuously running. This thread is a ZeroMQ thread and listening to a port in loop. The application is not maintaining session. Now if I open the browser and sends a request to the

xmlrpc: problems with socket handling, close, shutdown of server, TIME_WAIT, ...

2014-05-06 Thread thomas . lehmann . private
Hi, taking the xml-rpc derived from standard example is working - basically - but with following scenario I do not understand the problem. Maybe you can help: - one Unittest that does create the xmlrpc server in a thread in setUp and shutdown of it in tearDown. The xml-rcp server does

Re: Significant digits in a float?

2014-05-06 Thread Joel Goldstick
HP 35. $350 in 1973 or 4. Still have it somewhere. Tom yay! On May 6, 2014 11:20 AM, alister alister.nospam.w...@ntlworld.com wrote: On Tue, 06 May 2014 09:51:25 -0500, Mark H Harris wrote: On 5/1/14 9:06 PM, Dennis Lee Bieber wrote: The N4-ES and the N4-T (mine) are essentially the same

[OT] Silde rules [was Re: Significant digits in a float?]

2014-05-06 Thread Steven D'Aprano
On Tue, 06 May 2014 09:59:22 -0500, Mark H Harris wrote: [...] I used my rule well into college; the first calculator I owned was the Rockwell 63R --- The Big green numbers, and the little rubber feet! Guys, heaven knows I'm guilty of the occasional off-topic post myself, and I'm not

Re: Significant digits in a float?

2014-05-06 Thread Mark H Harris
On 5/1/14 10:53 AM, William Ray Wing wrote: I’m surprised no one has jumped in to defend/tout the Dietzgen slide rules (which I always thought were the ultimate). Mine (their Vector Log Log) is one of their Microglide series that had teflon rails inserted in the body and is still totally

Re: Why Python 3?

2014-05-06 Thread Thomas Lehmann
Hi, I can't give you the advise for a concrete version anyway there are lot of arguments given by the other posters. BUT there is a way how you can circumvent the problem to some extend: Are you intending to use Jenkins? I don't want to convince you here why to use Jenkins but maybe I don't

multiprocessing in a while loop?

2014-05-06 Thread Johan Llewellyn
hi, I am struggling to understand how to leverage python's multiprocessing module in a while loop.  the examples I have found seem to assume it is known ahead of time how many items need to be processed. specifically, I am reading from an external queue.  I currently process items one at a

Re: Problems with ZODB, I can not persist and object accessed from 2 threads

2014-05-06 Thread dieter
Ariel Argañaraz arieli...@gmail.com writes: Hello, I am sorry I am stuck in this. And I need some help I want to persist an Object with ZODB, the object can be accessed from 2 different threads. The ZODB manual says: A multi-threaded program should open a separate Connection instance for

Re: Pass variable by reference

2014-05-06 Thread Terry Reedy
On 5/5/2014 8:39 PM, Satish Muthali wrote: Hello experts, I have a burning question on how to pass variable by reference in Python. Python passes objects to functions. CPython implements this by passing object pointers. In one sense, your request is impossible. In another, it already

Re: Add Received: header to email msg in correct position?

2014-05-06 Thread Terry Reedy
On 5/5/2014 4:58 PM, Grant Edwards wrote: On 2014-05-05, Ethan Furman et...@stoneleaf.us wrote: I don't know that it matters, but which Python version? I usually does these days. Sorry, should have mentioned it: 2.7.5 email has been improved with successive 3.x versions.

Re: (question) How to use python get access to google search without query quota limit

2014-05-06 Thread Mark Lawrence
On 06/05/2014 15:07, shrikant aher wrote: hey, will u please send me the code that you write. actually i'm trying to learn use of google search api but i'm not getting so please mail me the code. my mail id is shrikan...@gmail.com mailto:shrikan...@gmail.com -- Shrikant Sure but it's USD

Re: Joining centos 6.5 member Domain Controller to an existing Windows Domain

2014-05-06 Thread Jerry Hill
On Mon, May 5, 2014 at 11:18 AM, Joshua Knights christcade...@yahoo.com.dmarc.invalid wrote: Here is my Issue and I think it may be a python path bug? It's not a bug in Python. It looks to me like a configuration problem. I'm going to assume you have a good reason for bypassing your OS's

Re: Pass variable by reference

2014-05-06 Thread Ned Batchelder
On 5/6/14 12:42 AM, Gary Herron wrote: This gets confusing, but in fact the most accurate answer is that Python does not have variables, so there is no such thing as passing variables by reference or any other method. Python *does* have names bound to values, but that's a very different thing.

Re: (question) How to use python get access to google search without query quota limit

2014-05-06 Thread Mark H Harris
On 5/6/14 2:27 PM, Mark Lawrence wrote: will u please send me the code that you write. actually i'm trying to learn use of google search api but i'm not getting so please mail me the code. Sure but it's USD 1,000 cash or cheque made payable to the Python Software Foundation, backed up by

Re: Pass variable by reference

2014-05-06 Thread Michael Torrie
On 05/05/2014 06:39 PM, Satish Muthali wrote: I want to nuke /var/lib/postgresql/9.3.4/main/data , however programatically I want it to be as: /var/lib/postgresql/value of pgversion/main/data Any help is appreciated. Not sure really. But if you want to pass a some data around that can be

Re: Pass variable by reference

2014-05-06 Thread Mark H Harris
On 5/6/14 3:31 PM, Ned Batchelder wrote: On 5/6/14 12:42 AM, Gary Herron wrote: This gets confusing, but in fact the most accurate answer is that Python does not have variables, so there is no such thing as passing variables by reference or any other method. Python *does* have names bound to

Re: Pass variable by reference

2014-05-06 Thread Ned Batchelder
On 5/6/14 5:00 PM, Mark H Harris wrote: On 5/6/14 3:31 PM, Ned Batchelder wrote: On 5/6/14 12:42 AM, Gary Herron wrote: This gets confusing, but in fact the most accurate answer is that Python does not have variables, so there is no such thing as passing variables by reference or any other

Re: [ANNC] pybotwar-0.9 : now using pybox2d-2.3b0

2014-05-06 Thread Josh English
I loved RoboWar on my Mac, many ages ago. I wrote a Stack based language very similar to the one RoboWar used. If you're interested, let me know. Josh English On Saturday, May 3, 2014 3:28:34 PM UTC-7, Lee Harr wrote: pybotwar is a fun and educational game where players write computer

Re: Pass variable by reference

2014-05-06 Thread Chris Angelico
On Wed, May 7, 2014 at 7:00 AM, Mark H Harris harrismh...@gmail.com wrote: What does the word variable mean. Think BASIC variables. You can set them, you can reset them, you can delete them, you can change them. ... because they are variable. Python has names bound to objects... some of

The “does Python have variables?” debate (was: Pass variable by reference)

2014-05-06 Thread Ben Finney
Ned Batchelder n...@nedbatchelder.com writes: This meme bugs me so much. Python has variables. They work differently than variables in C. Which is why it's useful to intervene right at the start when someone comes in with assumptions about “variables”; it's better that they discard that

Re: [OT] Silde rules

2014-05-06 Thread Ben Finney
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: Guys, heaven knows I'm guilty of the occasional off-topic post myself, and I'm not obsessive about these things, but there comes a time in every off-topic thread where the right thing to do is to label it off-topic. And this

Re: The “does Python have variables?” debate (was: Pass variable by reference)

2014-05-06 Thread Chris Angelico
On Wed, May 7, 2014 at 9:55 AM, Ben Finney b...@benfinney.id.au wrote: If you want to insist that Python has no variables, you will have to also say that neither do Javascript, Ruby, Java, PHP, etc. I don't know enough Ruby to comment there. For Java, Javascript, PHP, they *do* have variables

Re: Add Received: header to email msg in correct position?

2014-05-06 Thread Chris Angelico
On Wed, May 7, 2014 at 4:16 AM, Terry Reedy tjre...@udel.edu wrote: If the prepend requirement is covered by The email package is a library for managing email messages, including MIME and other RFC 2822-based message documents. It is specifically not designed to do any sending of email

Re: Pass variable by reference

2014-05-06 Thread Steven D'Aprano
On Tue, 06 May 2014 16:31:35 -0400, Ned Batchelder wrote: On 5/6/14 12:42 AM, Gary Herron wrote: This gets confusing, but in fact the most accurate answer is that Python does not have variables, so there is no such thing as passing variables by reference or any other method. Python *does*

Re: The “does Python have variables?” debate

2014-05-06 Thread Ned Batchelder
On 5/6/14 7:55 PM, Ben Finney wrote: Ned Batchelder n...@nedbatchelder.com writes: This meme bugs me so much. Python has variables. They work differently than variables in C. Which is why it's useful to intervene right at the start when someone comes in with assumptions about “variables”;

Re: Pass variable by reference

2014-05-06 Thread Steven D'Aprano
On Tue, 06 May 2014 15:16:54 -0400, Terry Reedy wrote: On 5/5/2014 8:39 PM, Satish Muthali wrote: Hello experts, I have a burning question on how to pass variable by reference in Python. Python passes objects to functions. CPython implements this by passing object pointers. In one sense,

Re: Pass variable by reference

2014-05-06 Thread Rustom Mody
On Wednesday, May 7, 2014 5:16:16 AM UTC+5:30, Chris Angelico wrote: On Wed, May 7, 2014 at 7:00 AM, Mark H Harris wrote: Is this code mutating or rebinding? x = 1.1 y = 2.2 x = x + y Heh! Neat example! What language did I write that in? Is there really a fundamental difference

Python under the sea and in space

2014-05-06 Thread Jessica McKellar
Hi folks, I'm trying to determine the greatest depth (in the ocean or underground) and highest altitude at which Python code has been executed. Please note that I'm interested in where the code was executed, and not, say, where data that Python analyzed was acquired. I know for example that NASA

Re: Pass variable by reference

2014-05-06 Thread Chris Angelico
On Wed, May 7, 2014 at 12:18 PM, Rustom Mody rustompm...@gmail.com wrote: Wrong conclusion! These 3 lines look the same and amount to much the same in python and C. But as the example widens to something beyond 3 lines, the difference will become more and more significant Python, C, REXX,

Re: Pass variable by reference

2014-05-06 Thread Rustom Mody
On Wednesday, May 7, 2014 8:09:34 AM UTC+5:30, Chris Angelico wrote: On Wed, May 7, 2014 at 12:18 PM, Rustom Mody wrote: Wrong conclusion! These 3 lines look the same and amount to much the same in python and C. But as the example widens to something beyond 3 lines, the difference will

Re: Pass variable by reference

2014-05-06 Thread Steven D'Aprano
On Tue, 06 May 2014 19:54:28 -0700, Rustom Mody wrote: The number of possible concepts is infinite The number of words is finite (even assuming unicode!!) Not true. If you allow longer and longer words, with no upper limit, the number of words is also infinite. If you allow compound words

[issue18314] Have os.unlink remove junction points

2014-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, new issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18314 ___ ___ Python-bugs-list mailing list

[issue21445] Some asserts in test_filecmp have the wrong messages

2014-05-06 Thread Steven Barker
New submission from Steven Barker: While working on a fix for issue 1234674, I found that the first test method in Lib/test/test_filecmp.py (FileCompareTestCase.test_matching) has switched up messages in its AssertEquals calls. The first two asserts have the message that should belong to the

[issue21435] Segfault with cyclic reference and asyncio.Future

2014-05-06 Thread STINNER Victor
STINNER Victor added the comment: Similar(?) issue #20526: Modules/gcmodule.c:379: visit_decref: Assertion `((gc)-gc.gc_refs (1)) != 0' failed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21435

[issue21233] Add *Calloc functions to CPython memory allocation API

2014-05-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 358a12f4d4bc by Victor Stinner in branch 'default': Issue #21233: Fix _PyObject_Alloc() when compiled with WITH_VALGRIND defined http://hg.python.org/cpython/rev/358a12f4d4bc -- ___ Python tracker

[issue21446] Update reload fixer to use importlib instead of imp

2014-05-06 Thread Berker Peksag
New submission from Berker Peksag: Since imp.reload() was deprecated in issue 18193, the reload fixer (added in issue 11797) needs to be updated to use importlib.reload() instead of imp.reload(). -- components: 2to3 (2.x to 3.x conversion tool) files: reload-fixer.diff keywords: patch

[issue21444] __len__ can't return big numbers

2014-05-06 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21444 ___ ___ Python-bugs-list mailing list

[issue21444] __len__

2014-05-06 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- title: __len__ can't return big numbers - __len__ ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21444 ___

[issue21444] __len__ can't return big numbers

2014-05-06 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- title: __len__ - __len__ can't return big numbers ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21444 ___

[issue21444] __len__ can't return big numbers

2014-05-06 Thread Mark Dickinson
Mark Dickinson added the comment: Whoops; sorry -- accidental title change by typing `__len__` into something that wasn't the search box. Stupid fingers... (I suspect this issue is a duplicate of an existing issue.) -- nosy: +mark.dickinson ___

[issue18314] Have os.unlink remove junction points

2014-05-06 Thread eryksun
eryksun added the comment: Nevermind, strike seems to work; it doesn't work without the \?? prefix. I stupidly assumed the DeviceIoControl call would validate the substitute name. Of course it doesn't; it happily creates a broken junction. Opening the junction with CreateFile fails with

[issue18314] Have os.unlink remove junction points

2014-05-06 Thread Tim Golden
Tim Golden added the comment: Thanks, eryksun: failed experiments are still useful data for future reference! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18314 ___

[issue21440] Use support.rmtree in test_zipfile

2014-05-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4ebf97299b18 by Tim Golden in branch 'default': Issue21440 Use support.rmtree in test_zipfile test_tarfile http://hg.python.org/cpython/rev/4ebf97299b18 -- nosy: +python-dev ___ Python tracker

[issue21393] Python/random.c: close hCryptProv at exit

2014-05-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2b18f6c37a68 by Tim Golden in branch 'default': Issue21393 Use CryptReleaseContext to release Crypt handle on Windows http://hg.python.org/cpython/rev/2b18f6c37a68 -- ___ Python tracker

[issue21264] test_compileall fails to build in the installed location

2014-05-06 Thread Matthias Klose
Matthias Klose added the comment: what happens here: PYTHONPATH=$(pwd) python3.4 -X faulthandler -S -m compileall Skipping current directory Listing '/home/packages/python/3.4/x'... Compiling '/home/packages/python/3.4/x/foo.py'... Listing '/usr/lib/python3.4/'... Listing

[issue21442] Win32 compiler warning in PyBytes_Concat

2014-05-06 Thread Zachary Ware
Zachary Ware added the comment: Declaring oldsize as Py_ssize_t instead of size_t at Objects/bytesobject.c:2812 takes care of the warning, but I'm not comfortable saying that's a correct change. -- ___ Python tracker rep...@bugs.python.org

[issue21442] Win32 compiler warning in PyBytes_Concat

2014-05-06 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21442 ___ ___ Python-bugs-list

[issue21393] Python/random.c: close hCryptProv at exit

2014-05-06 Thread Tim Golden
Tim Golden added the comment: Use CryptReleaseContext to release Crypt handle on Windows -- resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21393

[issue21440] Use support.rmtree in test_zipfile

2014-05-06 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21440 ___

[issue20752] Difflib should provide the option of overriding the SequenceMatcher

2014-05-06 Thread R. David Murray
R. David Murray added the comment: Well, it would be 3.5, so there's plenty of time yet. We are hoping for an answer from Tim Peters, but if we don't get one someone else will review it as time allows. Pinging the issue like this was good; do it again in another month if there's no further

[issue21444] __len__ can't return big numbers

2014-05-06 Thread R. David Murray
R. David Murray added the comment: Mark: I thought it was too, but the two I noted were the closest I could find. Maybe you'll find something even more on point :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21444

[issue21366] Document that return in finally overwrites prev value

2014-05-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset faaa8d569664 by Zachary Ware in branch '3.4': Issue #21366: Document the fact that ``return`` in a ``finally`` clause http://hg.python.org/cpython/rev/faaa8d569664 New changeset 685f92aad1dc by Zachary Ware in branch 'default': Issue #21366:

[issue21366] Document that return in finally overwrites prev value

2014-05-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7fabe3652ee0 by Zachary Ware in branch '2.7': Issue #21366: Document the fact that ``return`` in a ``finally`` clause http://hg.python.org/cpython/rev/7fabe3652ee0 -- ___ Python tracker

[issue21366] Document that return in finally overwrites prev value

2014-05-06 Thread Zachary Ware
Zachary Ware added the comment: Done. Thanks pointing out just how redundant that parenthetical was (I don't know how that slipped through my brain...), David. And thank you Jon for the report! -- resolution: - fixed stage: patch review - resolved status: open - closed versions:

[issue21446] Update reload fixer to use importlib instead of imp

2014-05-06 Thread Brett Cannon
Brett Cannon added the comment: I don't think that's necessarily obvious since that will make your code tied to Python 3.4. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21446 ___

[issue21444] __len__ can't return big numbers

2014-05-06 Thread akira
akira added the comment: If `len()` signature can't be changed to return Python int objects (unlimited) then the OverflowError may contain the actual `.length` property instead (based on msg66459 by Antoine Pitrou) operator.length(): def length(sized): Return the true (possibly

[issue13702] relative symlinks in tarfile.extract broken (windows)

2014-05-06 Thread Andreas Gäer
Andreas Gäer added the comment: Is there any progress to the question if the problem should be fixed in os.symlink or in tarfile? Because this currently seems to break installing source packages that contain symlinks with pip under Windows. Try: pip install networkx==1.8.1 for example

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2014-05-06 Thread Yury Selivanov
Yury Selivanov added the comment: Thanks, I'll take a look at the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1218234 ___ ___

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2014-05-06 Thread R. David Murray
R. David Murray added the comment: Note that there has never been a strict correspondence between linecache/getsource, the module in memory, and the code on disk. If the file is changed before a traceback is generated, for example, you will get the new source. That doesn't mean fixing the

[issue21442] Win32 compiler warning in PyBytes_Concat

2014-05-06 Thread Tim Golden
Tim Golden added the comment: Well PyBytes_GET_SIZE is documented as returning a Py_ssize_t so I'd say it's perfectly valid. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21442 ___

[issue21377] PyBytes_Concat could try to concat in-place

2014-05-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6234f4caba57 by Zachary Ware in branch 'default': Issue #21442: Fix MSVC compiler warning introduced by issue21377. http://hg.python.org/cpython/rev/6234f4caba57 -- ___ Python tracker

[issue21442] Win32 compiler warning in PyBytes_Concat

2014-05-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6234f4caba57 by Zachary Ware in branch 'default': Issue #21442: Fix MSVC compiler warning introduced by issue21377. http://hg.python.org/cpython/rev/6234f4caba57 -- nosy: +python-dev ___ Python tracker

[issue21442] Win32 compiler warning in PyBytes_Concat

2014-05-06 Thread Zachary Ware
Zachary Ware added the comment: I should have looked a little harder, thanks Tim! -- assignee: - zach.ware resolution: - fixed stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org

[issue21382] Signal module doesnt raises ValueError Exception

2014-05-06 Thread Tim Golden
Tim Golden added the comment: To be honest I can't get excited about this one. The only sensible change is to remove the rather specific comment about ValueError and just leave the fact that only certain signals are valid. Because the C code defines module-level constants on the basis of

[issue19643] shutil rmtree fails on readonly files in Windows

2014-05-06 Thread Tim Golden
Tim Golden added the comment: Ok, so to move this forward we have essentially two proposals: 1) Add a remove_readonly flag 2) Add a doc example which shows how to use the onerror handler to remove a recalcitrant file. I'm -0.5 on (1) because it feels like Windows-specific clutter; and +0 on

[issue20758] mimetypes initialization order

2014-05-06 Thread Tim Golden
Tim Golden added the comment: Fixed by issue9291 -- resolution: - duplicate stage: - resolved status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20758

[issue1528593] Printing: No print dialog or page setup

2014-05-06 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- nosy: -tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1528593 ___ ___ Python-bugs-list

[issue21423] concurrent.futures.ThreadPoolExecutor should accept an initializer argument

2014-05-06 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +bquinlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21423 ___ ___ Python-bugs-list mailing list

[issue21447] Intermittent asyncio.open_connection / futures.InvalidStateError

2014-05-06 Thread Ryder Lewis
New submission from Ryder Lewis: Intermittently, when using asyncio.wait_for() with asyncio.open_connection() to cancel the open_connection() task after a timeout period, an asyncio.futures.InvalidStateError is raised. It seems to be a race condition, if the open_connection() call succeeds

[issue21121] -Werror=declaration-after-statement is added even for extension modules through setup.py

2014-05-06 Thread Ned Deily
Ned Deily added the comment: I don't have a *really* strong opinion against it. It's just that I find the current plethora of configuration flags to be non-intuitive and confusing (and there are plenty of open issues agreeing with that sentiment) and adding another with the name

[issue21121] -Werror=declaration-after-statement is added even for extension modules through setup.py

2014-05-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: I share Ned's sentiment on this. The amount of information exposed through sysconfig is too large as it is because a lot of that information is only useful during the built of python itself. I'm pretty sure that have been patches in the past where users

[issue21444] __len__ can't return big numbers

2014-05-06 Thread Mark Dickinson
Mark Dickinson added the comment: That's pretty evil. :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21444 ___ ___ Python-bugs-list mailing

[issue21447] Intermittent asyncio.open_connection / futures.InvalidStateError

2014-05-06 Thread Ryder Lewis
Ryder Lewis added the comment: Another run raised a different exception, again running ./example.py http://www.yahoo.com/ Timed out with 0.05-second timeout HTTP header HTTP/1.0 301 Redirect HTTP header Date: Tue, 06 May 2014 18:58:53 GMT HTTP header Connection: close HTTP header Via: http/1.1

  1   2   >