Re: PEP 450 Adding a statistics module to Python

2013-08-10 Thread Stefan Behnel
Ben Finney, 10.08.2013 07:05: Skip Montanaro writes: Given that installing numpy or scipy is generally no more difficult that executing pip install (scipy|numpy) I'm not really feeling the need for a battery here... See the Rationale of PEP 450 for more reasons why “install NumPy” is not a

Re: Get filename using filefialog.askfilename

2013-08-10 Thread cheirasacan
Sarcastic what the kcuf ¿?¿?¿? My english is SO bad? Do you know me? I can not understand this paranoia i only was giving thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3 and SSH Tunnel

2013-08-10 Thread D. Xenakis
What about the security though? To be specific, i need to create an application (python 3.3 strictly) where users will save/load their settings online to a remote hosted database. I do not wish to change the database from listening to any other thing than localhost for security reasons, so i

Python 3.3 + QtSql + ssh tunnel - Connection problem

2013-08-10 Thread D. Xenakis
Im using python 3.3 on win7 64bit and trying to connect to a MySQL database on a remote server through a putty ssh tunnel. Running the script below im getting Physical connection to the database did not activate!. What im i doing wrong?! I tried to find a working example but couldnt find one.

Re: ftplib returns EOFError

2013-08-10 Thread Dorian MJ
print \t\tUploading file %s... % newname try: self.ftp.storbinary(STOR %s % newname, open(file)) except EOFError: # yep?? self.ftp.connect(self.ftpServ) # reconnecting self.ftp.login(ftpUser, ftpPass) self.ftp.storbinary(STOR %s % newname, open(file)) print \t\tFile %s uploaded % newname --

Re: PEP 450 Adding a statistics module to Python

2013-08-10 Thread Roy Smith
In article mailman.417.1376104455.1251.python-l...@python.org, Skip Montanaro s...@pobox.com wrote: Given that installing numpy or scipy is generally no more difficult that executing pip install (scipy|numpy) I'm not really feeling the need for a battery here... I just tried installing numpy

Re: Get filename using filefialog.askfilename

2013-08-10 Thread Joshua Landau
On 10 August 2013 11:37, cheirasa...@gmail.com wrote: Sarcastic what the kcuf ¿?¿?¿? My english is SO bad? Do you know me? I can not understand this paranoia i only was giving thanks. Sarcasm and a lack thereof is very hard to see over the Internet. It's probably just a

Re: PEP 450 Adding a statistics module to Python

2013-08-10 Thread Oscar Benjamin
On 10 August 2013 12:50, Roy Smith r...@panix.com wrote: In article mailman.417.1376104455.1251.python-l...@python.org, Skip Montanaro s...@pobox.com wrote: Given that installing numpy or scipy is generally no more difficult that executing pip install (scipy|numpy) I'm not really feeling the

Re: PEP 450 Adding a statistics module to Python

2013-08-10 Thread Roy Smith
Skip Montanaro s...@pobox.com wrote: installing numpy or scipy is generally no more difficult that executing pip install (scipy|numpy) I described the problems I had trying to follow that advice. In article mailman.425.1376137459.1251.python-l...@python.org, Oscar Benjamin

Re: PEP 450 Adding a statistics module to Python

2013-08-10 Thread Oscar Benjamin
On 10 August 2013 13:43, Roy Smith r...@panix.com wrote: In article mailman.425.1376137459.1251.python-l...@python.org, Oscar Benjamin oscar.j.benja...@gmail.com wrote: You should use apt-get for numpy/scipy on Ubuntu. Although unfortunately IIRC this doesn't work as well as it should since

Calling Py_Main() and parsing the output from C

2013-08-10 Thread Gisle Vanem
Hello Python C-experts. I'm trying to embed python27.dll in a C-program written in MingW-gcc 4.7.2. I've successfully done these initial steps: typedef int (*Py_Main_t) (int argc, char **argv); handle = LoadLibrary (python27.dll); py_main = (Py_Main_t) GetProcAddress (handle, Py_Main);

Python Basic Doubt

2013-08-10 Thread Krishnan Shankar
Hi Fellow Python Friends, I am new to Python and recently subscribed to the mailing list.I have a doubt regarding the basics of Python. Please help me in understanding the below concept. So doubt is on variables and their contained value. Why does in the below example from Interpreter

Re: Python Basic Doubt

2013-08-10 Thread Tim Chase
On 2013-08-10 21:03, Krishnan Shankar wrote: a=10 id(a) 21665504 b=a id(b) 21665504 c=10 id(c) 21665504 I am actually assigning new value to c. But from the value of id() all three variables take same location. With variables a and b it is ok. But why c taking the same

Re: Python Basic Doubt

2013-08-10 Thread Roy Smith
In article mailman.428.1376151419.1251.python-l...@python.org, Krishnan Shankar i.am.song...@gmail.com wrote: Hi Fellow Python Friends, I am new to Python and recently subscribed to the mailing list.I have a doubt regarding the basics of Python. Please help me in understanding the below

Re: Python Basic Doubt

2013-08-10 Thread Chris Angelico
On Sat, Aug 10, 2013 at 4:33 PM, Krishnan Shankar i.am.song...@gmail.com wrote: Hi Fellow Python Friends, I am new to Python and recently subscribed to the mailing list.I have a doubt regarding the basics of Python. Please help me in understanding the below concept. So doubt is on variables

Re: Python Basic Doubt

2013-08-10 Thread Terry Reedy
On 8/10/2013 11:33 AM, Krishnan Shankar wrote: Hi Fellow Python Friends, I am new to Python and recently subscribed to the mailing list.I have a doubt regarding the basics of Python. Please help me in understanding the below concept. So doubt is on variables and their contained value. It

Re: Python Basic Doubt

2013-08-10 Thread Xavi
Hello, El 10/08/2013 18:40, Tim Chase escribió: Generally, if you are using the is operator to compare against anything other than None, you're doing it wrong. There are exceptions to this, but it takes knowing the particulars. Now I have one doubt, I use 'is' to compare basic types in python

The meaning of doubt, was Re: Python Basic Doubt

2013-08-10 Thread Peter Otten
Terry Reedy wrote: On 8/10/2013 11:33 AM, Krishnan Shankar wrote: Hi Fellow Python Friends, I am new to Python and recently subscribed to the mailing list.I have a doubt regarding the basics of Python. Please help me in understanding the below concept. So doubt is on variables and their

Re: The meaning of doubt, was Re: Python Basic Doubt

2013-08-10 Thread Roy Smith
In article mailman.433.1376159810.1251.python-l...@python.org, Peter Otten __pete...@web.de wrote: Quoting http://en.wikipedia.org/wiki/Indian_English doubt = question or query; e.g. one would say, 'I have a doubt' when one wishes to ask a question. I'd say if Brits can cope (hard

Re: Python 3 and SSH Tunnel

2013-08-10 Thread Veritatem Ignotam
I think I missed an earlier thread of this and I'm not quite sure what your application is, but properly allocating user permissions on your databases should eliminate any security concerns there. Also, for the tunnel, whether you're using one account or multiple (one for each user), those

Re: Python Basic Doubt

2013-08-10 Thread Steven D'Aprano
On Sat, 10 Aug 2013 20:00:58 +0200, Xavi wrote: Now I have one doubt, I use 'is' to compare basic types in python 3, for example .- v = [] if type(v) is list: print('Is list...') No, do not do this. This is unnecessarily restrictive. Because I think it is more clear and faster than

Re: The meaning of doubt, was Re: Python Basic Doubt

2013-08-10 Thread Alister
On Sat, 10 Aug 2013 20:36:52 +0200, Peter Otten wrote: Terry Reedy wrote: On 8/10/2013 11:33 AM, Krishnan Shankar wrote: Hi Fellow Python Friends, I am new to Python and recently subscribed to the mailing list.I have a doubt regarding the basics of Python. Please help me in understanding

Re: Python Basic Doubt

2013-08-10 Thread Terry Reedy
On 8/10/2013 2:00 PM, Xavi wrote: Hello, El 10/08/2013 18:40, Tim Chase escribió: Generally, if you are using the is operator to compare against anything other than None, you're doing it wrong. There are exceptions to this, but it takes knowing the particulars. Now I have one doubt, I use

Re: The meaning of doubt, was Re: Python Basic Doubt

2013-08-10 Thread Terry Reedy
On 8/10/2013 2:36 PM, Peter Otten wrote: Terry Reedy wrote: On 8/10/2013 11:33 AM, Krishnan Shankar wrote: Hi Fellow Python Friends, I am new to Python and recently subscribed to the mailing list.I have a doubt regarding the basics of Python. Please help me in understanding the below

How many times does unittest run each test?

2013-08-10 Thread Josh English
I am working on a library, and adding one feature broke a seemingly unrelated feature. As I already had Test Cases written, I decided to try to incorporate the logging module into my class, and turn on debugging at the logger before the newly-broken test. Here is an example script: # -

Re: How many times does unittest run each test?

2013-08-10 Thread Roy Smith
In article f7b24010-f3f4-4e86-b6c4-9ddb503d0...@googlegroups.com, Josh English joshua.r.engl...@gmail.com wrote: I am working on a library, and adding one feature broke a seemingly unrelated feature. As I already had Test Cases written, I decided to try to incorporate the logging module

Re: Python Basic Doubt

2013-08-10 Thread Roy Smith
In article mailman.439.137613.1251.python-l...@python.org, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: Because id(n) is not giving you the address of the NAME. It is giving you the address of the 10 Actually, it is giving you the id of the int(10) object. Maybe it's an address, maybe

Re: The meaning of doubt, was Re: Python Basic Doubt

2013-08-10 Thread Cousin Stanley
Peter Otten wrote: doubt Oh bother, said Pooh, what's in a word ? http://en.wikipedia.org/wiki/Curry https://pypi.python.org/pypi/curry/ http://en.wikipedia.org/wiki/Currying -- Stanley C. Kitching Human Being Phoenix, Arizona --

Re: Python Basic Doubt

2013-08-10 Thread Chris Angelico
On Sat, Aug 10, 2013 at 7:00 PM, Xavi jara...@gmail.com wrote: Now I have one doubt, I use 'is' to compare basic types in python 3, for example .- v = [] if type(v) is list: print('Is list...') Because I think it is more clear and faster than .- type(v) == [].__class__ ... or ...

Re: Python Basic Doubt

2013-08-10 Thread Gary Herron
On 08/10/2013 11:00 AM, Xavi wrote: Hello, El 10/08/2013 18:40, Tim Chase escribió: Generally, if you are using the is operator to compare against anything other than None, you're doing it wrong. There are exceptions to this, but it takes knowing the particulars. Now I have one doubt, I use

Re: Python Basic Doubt

2013-08-10 Thread Chris Angelico
On Sat, Aug 10, 2013 at 10:48 PM, Gary Herron gary.her...@islandtraining.com wrote: This is an oversimplification, but generally useful for all beginner (and most advanced) programmers: Don't use is for comparisons. Use ==. It 20 years of programming Python, I've *needed* to use is ...

Re: How many times does unittest run each test?

2013-08-10 Thread Josh English
On Saturday, August 10, 2013 1:40:43 PM UTC-7, Roy Smith wrote: In article f7b24010-f3f4-4e86-b6c4-9ddb503d0...@googlegroups.com, Josh English wrote: The first thing to do is get this down to some minimal amount of code that demonstrates the problem. For example, you drag in the

Re: How many times does unittest run each test?

2013-08-10 Thread Josh English
Aha. Thanks, Ned. This is the answer I was looking for. I use logging in the real classes, and thought that turning setting the level to logging.DEBUG once was easier than hunting down four score of print statements. Josh On Sat, Aug 10, 2013 at 3:52 PM, Ned Batchelder n...@nedbatchelder.com

Re: How many times does unittest run each test?

2013-08-10 Thread Roy Smith
On Saturday, August 10, 2013 1:40:43 PM UTC-7, Roy Smith wrote: For example, you drag in the logging module, and do some semi-complex configuration. Are you SURE your tests are getting run multiple times, or maybe it's just that they're getting LOGGED multiple times. Tear out all the

Re: How many times does unittest run each test?

2013-08-10 Thread Chris Angelico
On Sun, Aug 11, 2013 at 12:14 AM, Roy Smith r...@panix.com wrote: Maybe you've got two different handlers which are both getting the same logging events and somehow they both end up in your stderr stream. Likely? Maybe not, but if you don't have any logging code in the test at all, it becomes

Re: How many times does unittest run each test?

2013-08-10 Thread Ned Batchelder
On 8/10/13 4:40 PM, Roy Smith wrote: In article f7b24010-f3f4-4e86-b6c4-9ddb503d0...@googlegroups.com, Josh English joshua.r.engl...@gmail.com wrote: I am working on a library, and adding one feature broke a seemingly unrelated feature. As I already had Test Cases written, I decided to try

Re: How many times does unittest run each test?

2013-08-10 Thread Josh English
On Saturday, August 10, 2013 4:14:09 PM UTC-7, Roy Smith wrote: I don't understand the whole SimpleChecker class. You've created a class, and defined your own __call__(), just so you can check if a string is in a list? Couldn't this be done much simpler with a plain old function:

Re: Python Basic Doubt

2013-08-10 Thread Gary Herron
On 08/10/2013 03:09 PM, Chris Angelico wrote: On Sat, Aug 10, 2013 at 10:48 PM, Gary Herron gary.her...@islandtraining.com wrote: This is an oversimplification, but generally useful for all beginner (and most advanced) programmers: Don't use is for comparisons. Use ==. It 20 years of

Re: How many times does unittest run each test?

2013-08-10 Thread Josh English
On Saturday, August 10, 2013 4:21:35 PM UTC-7, Chris Angelico wrote: On Sun, Aug 11, 2013 at 12:14 AM, Roy Smith wrote: Maybe you've got two different handlers which are both getting the same loggingvents and somehow they both end up in your stderr stream. Likely? Maybe not, but if you

Re: Python Basic Doubt

2013-08-10 Thread Chris Angelico
On Sun, Aug 11, 2013 at 1:42 AM, Gary Herron gary.her...@islandtraining.com wrote: On 08/10/2013 03:09 PM, Chris Angelico wrote: _notpassed = object() def frob(appendage, device=_notpassed): Use some appendage to frob some device, or None to frob nothing. Omit device to frob

Re: How many times does unittest run each test?

2013-08-10 Thread Chris Angelico
On Sun, Aug 11, 2013 at 1:52 AM, Josh English joshua.r.engl...@gmail.com wrote: I'm using logging for debugging, because it is pretty straightforward and can be activated for a small section of the module. My modules run long (3,000 lines or so) and finding all those dastardly print

Re: Python Basic Doubt

2013-08-10 Thread Terry Reedy
On 8/10/2013 8:42 PM, Gary Herron wrote: But for each of your examples, using == is equivalent to using is. Each of if something == None if device == _not passed if device != None would all work as expected. In none of those cases is is actually needed. class EqualAll: def

Re: Python Basic Doubt

2013-08-10 Thread Chris Angelico
On Sun, Aug 11, 2013 at 2:25 AM, Terry Reedy tjre...@udel.edu wrote: On 8/10/2013 8:42 PM, Gary Herron wrote: But for each of your examples, using == is equivalent to using is. Each of if something == None if device == _not passed if device != None would all work as

Am I not seeing the Error?

2013-08-10 Thread Devyn Collier Johnson
I am checking my 1292-line script for syntax errors. I ran the following commands in a terminal to check for errors, but I do not see the error. collier@Nacho-Laptop:/media/collier/AI/Pysh$ python3 -m py_compile ./beta_engine File ./beta_engine, line 344 JOB_WRITEURGFILES =

Re: Am I not seeing the Error?

2013-08-10 Thread Chris Angelico
On Sun, Aug 11, 2013 at 3:19 AM, Devyn Collier Johnson devyncjohn...@gmail.com wrote: am checking my 1292-line script for syntax errors. I ran the following commands in a terminal to check for errors, but I do not see the error. collier@Nacho-Laptop:/media/collier/AI/Pysh$ python3 -m

Re: Am I not seeing the Error?

2013-08-10 Thread Roy Smith
In article mailman.452.1376188442.1251.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: When you get a syntax error you can't understand, look at the previous line of code. Perhaps something there is incomplete; maybe you have mismatched parentheses, so this line is considered

Re: Am I not seeing the Error?

2013-08-10 Thread Chris Angelico
On Sun, Aug 11, 2013 at 3:43 AM, Roy Smith r...@panix.com wrote: In article mailman.452.1376188442.1251.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: When you get a syntax error you can't understand, look at the previous line of code. Perhaps something there is incomplete;

Re: Am I not seeing the Error?

2013-08-10 Thread Terry Reedy
On 8/10/2013 10:19 PM, Devyn Collier Johnson wrote: I am checking my 1292-line script for syntax errors. I ran the following commands in a terminal to check for errors, but I do not see the error. collier@Nacho-Laptop:/media/collier/AI/Pysh$ python3 -m py_compile ./beta_engine File

Re: Python Basic Doubt

2013-08-10 Thread Krishnan Shankar
Thanks Tim, This takes me to one more question. 'is' operator is used to compare objects and it should not be used to compare data. So can it be compared with 'False'. i.e. Is this code possible if a is False: print 'Yes' if b is False: print 'No' Because i recommended this should

Re: Python Basic Doubt

2013-08-10 Thread Chris Angelico
On Sun, Aug 11, 2013 at 4:09 AM, Krishnan Shankar i.am.song...@gmail.com wrote: i.e. Is this code possible if a is False: print 'Yes' if b is False: print 'No' You would use that if you want to check if a/b is the exact bool value False. Normally you would simply spell it thus: if

Re: Python Basic Doubt

2013-08-10 Thread Gary Herron
On 08/10/2013 08:09 PM, Krishnan Shankar wrote: Thanks Tim, This takes me to one more question. 'is' operator is used to compare objects and it should not be used to compare data. So can it be compared with 'False'. i.e. Is this code possible if a is False: print 'Yes' if b is False:

Re: Python Basic Doubt

2013-08-10 Thread Gary Herron
On 08/10/2013 06:00 PM, Chris Angelico wrote: On Sun, Aug 11, 2013 at 1:42 AM, Gary Herron gary.her...@islandtraining.com wrote: On 08/10/2013 03:09 PM, Chris Angelico wrote: _notpassed = object() def frob(appendage, device=_notpassed): Use some appendage to frob some device, or None to

Re: Python Basic Doubt

2013-08-10 Thread Michael Torrie
On 08/10/2013 09:09 PM, Krishnan Shankar wrote: i.e. Is this code possible if a is False: print 'Yes' if b is False: print 'No' Because i recommended this should not be done. But my colleagues say it is correct. You are probably correct in your believe that this idiom should

Elegant compare

2013-08-10 Thread Jason Friedman
class my_class: def __init__(self, attr1, attr2): self.attr1 = attr1 #string self.attr2 = attr2 #string def __lt__(self, other): if self.attr1 other.attr1: return True else: return self.attr2 other.attr2 I will run into problems if

Re: Python Basic Doubt

2013-08-10 Thread Chris Angelico
On Sun, Aug 11, 2013 at 4:21 AM, Gary Herron gary.her...@islandtraining.com wrote: On 08/10/2013 06:00 PM, Chris Angelico wrote: Wrong. If you do equality comparisons, it's entirely possible for something to be passed in that compares equal to the RHS without actually being it, so is is

Re: Elegant compare

2013-08-10 Thread Chris Angelico
On Sun, Aug 11, 2013 at 4:41 AM, Jason Friedman jsf80...@gmail.com wrote: class my_class: def __init__(self, attr1, attr2): self.attr1 = attr1 #string self.attr2 = attr2 #string def __lt__(self, other): if self.attr1 other.attr1: return True

Re: Python Basic Doubt

2013-08-10 Thread Joshua Landau
On 11 August 2013 04:43, Chris Angelico ros...@gmail.com wrote: On Sun, Aug 11, 2013 at 4:21 AM, Gary Herron gary.her...@islandtraining.com wrote: On 08/10/2013 06:00 PM, Chris Angelico wrote: All it takes is a slightly odd or buggy __eq__ implementation and the == versions will misbehave. To

Re: Python Basic Doubt

2013-08-10 Thread Gary Herron
On 08/10/2013 08:43 PM, Chris Angelico wrote: On Sun, Aug 11, 2013 at 4:21 AM, Gary Herron gary.her...@islandtraining.com wrote: On 08/10/2013 06:00 PM, Chris Angelico wrote: Wrong. If you do equality comparisons, it's entirely possible for something to be passed in that compares equal to the

Re: Python Basic Doubt

2013-08-10 Thread Chris Angelico
On Sun, Aug 11, 2013 at 5:04 AM, Joshua Landau jos...@landau.ws wrote: On 11 August 2013 04:43, Chris Angelico ros...@gmail.com wrote: The distinction between the two is important when the objects are mutable (so they have an identity that's distinct from their current values). I don't

Re: Python Basic Doubt

2013-08-10 Thread Chris Angelico
On Sun, Aug 11, 2013 at 5:29 AM, Gary Herron gary.her...@islandtraining.com wrote: A beginner, on his first program or two, can understand 1, and perhaps parrot 2 without understanding (or needing to). But the step from there to 3 is huge. It's folly to dump that on a first-time programmer.

Re: Paramiko Help. Execute command to Interactive Shell which is opened by SSHClient()

2013-08-10 Thread sagar varule
On Thursday, August 8, 2013 12:50:25 PM UTC+5:30, sagar varule wrote: Hi All, Im using Paramiko for my SSH automation. Im using method that is shown in demo_simple.py example which comes with Paramiko. Below is code from demo_simple.py. As you can make out, below code opens SSH

[issue18647] re.error: nothing to repeat

2013-08-10 Thread Armin Rigo
Armin Rigo added the comment: Just a side note for 2.7: could I recommend people to be really extra, extra careful when changing what kind of regexps are accepted and what kind of regexps are outright rejected? I believe the risk of making long-existing and working 2.7 programs suddenly

[issue17741] event-driven XML parser

2013-08-10 Thread Stefan Behnel
Stefan Behnel added the comment: I gave the implementation a try and attached an incomplete patch. Some tests are failing. It turns out that it's not entirely easy to do this. As Antoine noticed, the hack in the C implementation of the TreeBuilder makes it tricky to integrate with other

[issue18647] re.error: nothing to repeat

2013-08-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Serhiy, yup, that regexp is slow, but it does finish - so the engine is doing something to avoid _unbounded_ repetitive matching of an empty string. Yes, it finish, but it has exponential computation complexity. Increase the length of the string to 21,

[issue18695] os.statvfs() not working well with unicode paths

2013-08-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 2.7.x is a minor version, not 2.7. We fixed Unicode issues in Python 2 bugfixes many times. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18695 ___

[issue18701] Remove outdated PY_VERSION_HEX checks

2013-08-10 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here is a patch which removes PY_VERSION_HEX checks in Modules/_ctypes/_ctypes.c, Modules/_sre.c, Objects/stringlib/unicodedefs.h and removes the Modules/_sqlite/sqlitecompat.h file. _sre.c checks support Python versions 2.2, 2.2 or 1.6 which doesn't made

[issue18702] Report skipped tests as skipped

2013-08-10 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Some tests in Python testsuite are silently skipped if requirements is not satisfied. The proposed patch adds explicit skipUnless() and raise SkipTest() so that these tests now reported as skipped. I.e. the code like if not condition: def

[issue18268] ElementTree.fromstring non-deterministically gives unicode text data

2013-08-10 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18268 ___

[issue18668] Properly document setting m_size in PyModuleDef

2013-08-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset f55ba27776d4 by Eli Bendersky in branch '3.3': Issue #18668: Further clarify m_size setting for non-negative values http://hg.python.org/cpython/rev/f55ba27776d4 New changeset d43435e82e21 by Eli Bendersky in branch 'default': Issue #18668: Further

[issue18418] Thread.isAlive() sometimes True after fork

2013-08-10 Thread A. Jesse Jiryu Davis
A. Jesse Jiryu Davis added the comment: Bump. I think my most recent patch (August 4) addresses all of Charles-François's comments. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18418

[issue17909] Autodetecting JSON encoding

2013-08-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17909 ___ ___

[issue16400] update default PyPI behavior in docs re: listing versions

2013-08-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset dd0d751cc7f1 by Christian Heimes in branch 'default': Issue #16400: Add command line option for isolated mode. http://hg.python.org/cpython/rev/dd0d751cc7f1 -- ___ Python tracker rep...@bugs.python.org

[issue8713] multiprocessing needs option to eschew fork() under Linux

2013-08-10 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: Added file: http://bugs.python.org/file31214/c7aa0005f231.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8713 ___

[issue16499] CLI option for isolated mode

2013-08-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 06c39789061e by Christian Heimes in branch 'default': typo, changeset dd0d751cc7f1 belongs to issue #16499 not issue #16400 http://hg.python.org/cpython/rev/06c39789061e -- nosy: +python-dev ___ Python

[issue16400] update default PyPI behavior in docs re: listing versions

2013-08-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 06c39789061e by Christian Heimes in branch 'default': typo, changeset dd0d751cc7f1 belongs to issue #16499 not issue #16400 http://hg.python.org/cpython/rev/06c39789061e -- ___ Python tracker

[issue8713] multiprocessing needs option to eschew fork() under Linux

2013-08-10 Thread Richard Oudkerk
Richard Oudkerk added the comment: The forkserver process is now started using _posixsubprocess.fork_exec(). This should fix the order dependent problem mentioned before. Also the forkserver tests are now reenabled on OSX. -- ___ Python tracker

[issue16499] CLI option for isolated mode

2013-08-10 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16499 ___

[issue18504] IDLE:Improvements- Improving Mock_Text

2013-08-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: test needed - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18504 ___

[issue15651] PEP 3121, 384 refactoring applied to elementtree module

2013-08-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8a060e2de608 by Eli Bendersky in branch 'default': Issue #15651: PEP 3121 refactoring for _elementtree http://hg.python.org/cpython/rev/8a060e2de608 -- nosy: +python-dev ___ Python tracker

[issue15651] PEP 3121, 384 refactoring applied to elementtree module

2013-08-10 Thread Eli Bendersky
Eli Bendersky added the comment: Antoine, I committed your patch (with a bit of comments added), *leaving the module caching in*. This is because removing it breaks the tests, unfortunately. The _elementtree tests are so crooked that they manage to create a situation in which the module under

[issue18483] Add hour-24 type of time to test_http2time_formats in test_http_cookiejar.py

2013-08-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset ab8da1936297 by Ezio Melotti in branch '3.3': #18483: add one more date format in test_http2time_formats. Patch by Vajrasky Kok. http://hg.python.org/cpython/rev/ab8da1936297 New changeset 5c3708f23351 by Ezio Melotti in branch 'default': #18483:

[issue18483] Add hour-24 type of time to test_http2time_formats in test_http_cookiejar.py

2013-08-10 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- assignee: - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed type: - enhancement versions: +Python 3.3 ___ Python

[issue18484] No unit test for iso2time function from http.cookiejar module

2013-08-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset fe5d105eba4b by Ezio Melotti in branch '3.3': #18484: improve test coverage of http.cookiejar. Patch by Vajrasky Kok. http://hg.python.org/cpython/rev/fe5d105eba4b New changeset 7bf1f8892df5 by Ezio Melotti in branch 'default': #18484: merge with

[issue18484] No unit test for iso2time function from http.cookiejar module

2013-08-10 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: patch review - committed/rejected status: open - closed type: - enhancement versions: +Python 3.3 ___ Python

[issue18466] Spelling mistakes in various code comments.

2013-08-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18466 ___

[issue18465] There are unused variables and unused import in Lib/test/test_minidom.py

2013-08-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4daa18b5ad49 by Ezio Melotti in branch '3.3': #18465: fix unused variables in test_minidom. Patch by Vajrasky Kok. http://hg.python.org/cpython/rev/4daa18b5ad49 New changeset 47770b408321 by Ezio Melotti in branch 'default': #18465: merge with

[issue18465] There are unused variables and unused import in Lib/test/test_minidom.py

2013-08-10 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- assignee: - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed type: - enhancement versions: +Python 3.3 ___ Python

[issue18453] There are unused variables inside DateTimeTestCase class in test_xmlrpc.py

2013-08-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 28c756093a63 by Ezio Melotti in branch '3.3': #18453: fix unused variables in test_xmlrpc. Patch by Vajrasky Kok. http://hg.python.org/cpython/rev/28c756093a63 New changeset 9f7581816890 by Ezio Melotti in branch 'default': #18453: merge with 3.3.

[issue18453] There are unused variables inside DateTimeTestCase class in test_xmlrpc.py

2013-08-10 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- assignee: - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed type: - enhancement versions: +Python 3.3 ___ Python

[issue18516] Typos in Lib/email/generator.py and Lib/email/architecture.rst

2013-08-10 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed in 168f6ac90abf (3.3) and 40ef5ce25d08 (default). Thanks for the report! -- assignee: docs@python - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed type: - enhancement versions: +Python 3.3

[issue18512] sys.stdout.write does not allow bytes in Python 3.x

2013-08-10 Thread Ezio Melotti
Ezio Melotti added the comment: You can do sys.stdout.buffer.write(bhello) Note that this might not work when sys.stdout has been replaced with something else (e.g. a StringIO). -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org

[issue18667] missing HAVE_FCHOWNAT

2013-08-10 Thread Larry Hastings
Larry Hastings added the comment: Here's a patch for trunk. It's essentially what salinger wrote, but as a patch file so it works for review. I poked around a little to make sure we weren't going to have another baffling situation like fchmodat. AFAICT, nope, it's fine, it's as simple as

[issue18667] missing HAVE_FCHOWNAT

2013-08-10 Thread Larry Hastings
Larry Hastings added the comment: And here's a patch for 3.3. I should have mentioned--both these patches pass the same tests as an unmodified trunk. So I think it's just ready to go in. -- Added file: http://bugs.python.org/file31216/larry.have_fchownat.3.3.patch.1.txt

[issue18505] Duplicate function names in test_email.py

2013-08-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 53d54503fc06 by Ezio Melotti in branch '3.3': #18505: fix duplicate name and remove duplicate test. Patch by Vajrasky Kok. http://hg.python.org/cpython/rev/53d54503fc06 New changeset cb0fba5c7828 by Ezio Melotti in branch 'default': #18505: merge

[issue18505] Duplicate function names in test_email.py

2013-08-10 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- assignee: - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed type: - enhancement versions: +Python 3.3 ___ Python

[issue18696] In unittest.TestCase.longMessage doc remove a redundant sentence

2013-08-10 Thread Ezio Melotti
Ezio Melotti added the comment: Agreed, closing. -- nosy: +ezio.melotti resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18696

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2013-08-10 Thread Tim Golden
Tim Golden added the comment: I attach a patch against 3.3; this is substantially Dave Chambers' original patch with a trivial test added and a doc change. This means that HKCR is scanned to determine extensions and these will override anything in the mimetypes db. The doc change highlights

[issue8112] xmlrpc.server: ServerHTMLDoc.docroutine uses (since 3.0) deprecated function inspect.getargspec()

2013-08-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset bc49e82ee013 by R David Murray in branch '3.3': #8112: Update the documenting xmlrpc server to use getfullargspec. http://hg.python.org/cpython/rev/bc49e82ee013 New changeset 69e515209fa9 by R David Murray in branch 'default': Merge #8112: Update

[issue8112] xmlrpc.server: ServerHTMLDoc.docroutine uses (since 3.0) deprecated function inspect.getargspec()

2013-08-10 Thread R. David Murray
R. David Murray added the comment: Thanks, Claudio. -- resolution: - fixed stage: test needed - committed/rejected status: open - closed versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8112

[issue8112] xmlrpc.server: ServerHTMLDoc.docroutine uses (since 3.0) deprecated function inspect.getargspec()

2013-08-10 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- Removed message: http://bugs.python.org/msg194816 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8112 ___

  1   2   >