[issue25352] Add 'make this my default python' to windows installs for Python3.5 and later

2015-10-09 Thread Laura Creighton
New submission from Laura Creighton: webmaster is hearing from children who have downloaded 3.5 but who are still getting 2.7 when they click on desktop Python icons, and type python at a console prompt. a checkbox on the installer saying 'make this my default python' that would then go off any

[issue25349] Use _PyBytesWriter for bytes%args

2015-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset b2f3cbdc0f2d by Victor Stinner in branch 'default': Issue #25349: Optimize bytes % args using the new private _PyBytesWriter API https://hg.python.org/cpython/rev/b2f3cbdc0f2d -- nosy: +python-dev ___

Re: change data in large excel file(more than 240 000 rows on sheet)

2015-10-09 Thread gall . pavgal . gall
Thanks Laura! But i need to change existing excel file and if i use the optimised reader, i can read data only, but i can't change data. -- https://mail.python.org/mailman/listinfo/python-list

Re: reg multiple login python

2015-10-09 Thread harirammanohar159
On Thursday, 1 October 2015 12:35:01 UTC+5:30, hariramm...@gmail.com wrote: > Hi All, > > Is there anyway i can login to remote servers at once and do the activity, i > can do one by one using for loop.. > > Thanks in advance. any way is there ??? --

[issue25349] Use _PyBytesWriter for bytes%args

2015-10-09 Thread STINNER Victor
STINNER Victor added the comment: bench_bytes_format.py: micro-benchmark testing a few formats. Some tests are focused on the implementation of _PyBytesWriter to ensure that the optimization is efficient. Except of a single test (which is not really revelant, it takes less than 500

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-09 Thread Gian Carlo Martinelli
Gian Carlo Martinelli added the comment: Terry, first of all thanks for trying to solve this. I usually start IDLE using Ubuntu's dash. The problem is with more than just the three characters. Others that I have tested and that don't work include "ç", "`", umlauts... There work in others

[issue25344] Enhancement to Logging - Logging Stack

2015-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3ad8a2d34d01 by Vinay Sajip in branch '2.7': Closes #25344: Added cookbook recipe to show buffering of logging events. https://hg.python.org/cpython/rev/3ad8a2d34d01 New changeset 7cc3a8141022 by Vinay Sajip in branch '3.4': Closes #25344: Added

[issue24402] input() uses sys.__stdout__ instead of sys.stdout for prompt

2015-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 425d81d10b13 by Martin Panter in branch '3.4': Issue #24402: Fix input() when stdout.fileno() fails; diagnosed by Eryksun https://hg.python.org/cpython/rev/425d81d10b13 New changeset e97d940a6543 by Martin Panter in branch '3.5': Issue #24402:

[issue24978] Contributing to Python 2x and 3x Documentation. Translation to Russian.

2015-10-09 Thread Sebastian A. Brachi
Sebastian A. Brachi added the comment: > I wrote a proposal to the board a while ago I couldn't find that proposal, could you post a link to it? Thanks! -- nosy: +Sebastian A. Brachi ___ Python tracker

[issue24402] input() uses sys.__stdout__ instead of sys.stdout for prompt

2015-10-09 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue22413] Bizarre StringIO(newline="\r\n") translation

2015-10-09 Thread Martin Panter
Martin Panter added the comment: Thanks for the feedback. Yeah, 2.7 is an independent branch, but I will try porting the changes there. -- assignee: docs@python -> martin.panter nosy: +berker.peksag stage: patch review -> commit review ___ Python

Re: Recover data over the network

2015-10-09 Thread Arshpreet Singh
On Saturday, 10 October 2015 04:40:27 UTC+5:30, Steven D'Aprano wrote: > What do you mean, "recover data from a server"? What has happened to the > server? Can it boot or is it in an unbootable state? Are the hard drives > physically damaged? What sort of hard drives? (Solid state, or magnetic

Re: Recover data over the network

2015-10-09 Thread Arshpreet Singh
On Saturday, 10 October 2015 04:40:27 UTC+5:30, Steven D'Aprano wrote: > What do you mean, "recover data from a server"? What has happened to the > server? Can it boot or is it in an unbootable state? Are the hard drives > physically damaged? What sort of hard drives? (Solid state, or magnetic

Re: Recover data over the network

2015-10-09 Thread Emile van Sebille
On 10/9/2015 7:47 PM, Arshpreet Singh wrote: On Friday, 9 October 2015 22:51:16 UTC+5:30, Emile van Sebille wrote: without extensive clues as to the nature of the data to be recovered you're not going to get much further with this. It is mostly /home partition data on disk. Those are user

Re: win32com.client .Cells

2015-10-09 Thread Irmen de Jong
On 9-10-2015 20:45, gall.pavgal.g...@gmail.com wrote: > Hi Guys, > > i wrote small function : > > Excel = win32com.client.Dispatch("Excel.Application") [...] > com_error: (-2147221008, 'CoInitialize has not been called.', None, None) > > Please, help me! :) > First hit on google when

Re: Recover data over the network

2015-10-09 Thread Steven D'Aprano
On Sat, 10 Oct 2015 04:12 am, Arshpreet Singh wrote: > Hello Python and People! > > I want to write a small Python application which will be able to 1.recover > data from server and 2.send it to another server. What do you mean, "recover data from a server"? What has happened to the server? Can

[issue24402] input() uses sys.__stdout__ instead of sys.stdout for prompt

2015-10-09 Thread Martin Panter
Martin Panter added the comment: Okay I plan to commit a modified version where I moved the input() test methods that use pseudo terminals to a new PtyTests class. The test_input() method stays in the original class, because it shares a helper method with other tests. I am resisting dropping

Re: Recover data over the network

2015-10-09 Thread Arshpreet Singh
On Friday, 9 October 2015 22:51:16 UTC+5:30, Emile van Sebille wrote: > without extensive clues as to the nature of the data to be recovered > you're not going to get much further with this. It is mostly /home partition data on disk. Those are user Configuration files.(user accounts,

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am not surprised that non-ascii chars fail also. But, all? or just a few (all symbol? or only diacriticals)? My first thought was that you have a european keyboard that is does not match your Ubuntu configuration. Or that you had an older tcl/tk that did

[issue25347] assert_has_calls output is formatted inconsistently

2015-10-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker ___

[issue25354] test_datetime failing

2015-10-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Maybe @shanmbic has a clock skew and _datetime.so does not get recompiled? I would try to do make clean or even make distclean and rebuild everything. -- ___ Python tracker

[issue25343] Document atomic operations on builtin types

2015-10-09 Thread R. David Murray
R. David Murray added the comment: I think you are correct, and I wouldn't be surprised if there is some in the stdlib as well. -- ___ Python tracker

[issue21264] test_compileall fails to build in the installed location

2015-10-09 Thread Brett Cannon
Brett Cannon added the comment: I consider this fixed by way of issue #25099. If that's wrong then feel free to open the issue again. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> test_compileall fails when run by unprivileged user

Re: Using pipe in a system call

2015-10-09 Thread Chris Angelico
On Fri, Oct 9, 2015 at 5:56 PM, Cecil Westerhof wrote: > My bad, I intended to mention that ORDER BY gives the wrong order (é > comes after z and with sort it comes after e), so that is why I use > the external sort command. Can you configure SQLite's locale? That ought to

[issue25287] test_crypt fails on OpenBSD

2015-10-09 Thread STINNER Victor
STINNER Victor added the comment: Hum, the test now fails differently :-( == FAIL: test_methods (test.test_crypt.CryptTestCase) -- Traceback (most recent call

[issue25306] test_huntrleaks_fd_leak() of test_regrtest hangs on Windows

2015-10-09 Thread STINNER Victor
STINNER Victor added the comment: Ok, it looks like the issue was fixed. -- keywords: +buildbot resolution: -> fixed status: open -> closed ___ Python tracker

Re: can't install Python 3.5 on windows

2015-10-09 Thread Oscar Benjamin
On Fri, 9 Oct 2015 08:48 Jay Brown wrote: Dear Python: I have been trying to install Python on my Windows computer. I tried both Python 2.7 and 3.5. No luck with either one. If I try to run Python I get a message asking me if I want to repair Python. The program never runs.

IPython Notebooks to Learn Python

2015-10-09 Thread Rajath Kumar
Greetings, I have written IPython Notebooks to learn Python interactively. I have covered all the basic concepts and it is everything one needs to get started with the language. Do check it out : https://github.com/rajathkumarmp/Python-Lectures - Rajath Kumar M.P --

[issue25277] test_sigwaitinfo() of test_eintr hangs on randomly on FreeBSD buildbots

2015-10-09 Thread STINNER Victor
STINNER Victor added the comment: The bug was reproduced with faulthandler: FAIL: test_all (test.test_eintr.EINTRTests) Timeout (0:10:00)! Thread 0x000802006400 (most recent call first): File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/eintrdata/eintr_tester.py", line

[issue25351] pyvenv activate script failure with specific bash option

2015-10-09 Thread s-wakaba
New submission from s-wakaba: When writing bash shellscripts, I always set options "set -ueC" for strict error checking. However, loading pyvenv's activate and deactivate scripts from bash with "-u" option, they are failure because they may refer undefined shell variables. I hope activate

can't install Python 3.5 on windows

2015-10-09 Thread Jay Brown
Dear Python: I have been trying to install Python on my Windows computer. I tried both Python 2.7 and 3.5. No luck with either one. If I try to run Python I get a message asking me if I want to repair Python. The program never runs. Can you help? -Jay Brown Jay C. Brown Department of

Re: Is there a Windows Python SIG?

2015-10-09 Thread Tim Golden
On 09/10/2015 03:41, Christopher Reimer wrote: > On 10/7/2015 10:49 PM, Chris Angelico wrote: >> Awesome! Contributors are always welcome. > > On a YouTube video from PyCon 2015, I think someone mentioned the need > for more people to look at Python on Windows. Does this mean that Python > on

[issue25328] ValueError in smtpd.py __init__() is not raised

2015-10-09 Thread Xiang Zhang
Xiang Zhang added the comment: I think this is a typo. The raise is left out. In test_smtpd.py, it only tests the raise condition in SMTPServer but not STMPChannel. I add the raise and a corresponding test in SMTPDChannelTest. -- keywords: +patch nosy: +xiang.zhang Added file:

Re: Is there a Windows Python SIG?

2015-10-09 Thread Christopher Reimer
On 10/7/2015 10:49 PM, Chris Angelico wrote: Awesome! Contributors are always welcome. On a YouTube video from PyCon 2015, I think someone mentioned the need for more people to look at Python on Windows. Does this mean that Python on Linux and/or Mac get more love than Python on Windows? I

Re: can't install Python 3.5 on windows

2015-10-09 Thread alister
On Thu, 08 Oct 2015 13:01:24 -0400, Jay Brown wrote: > Dear Python: > > I have been trying to install Python on my Windows computer. I tried > both Python 2.7 and 3.5. No luck with either one. If I try to run Python > I get a message asking me if I want to repair Python. The program never >

[issue25350] Stronger type enforcement (feature request)

2015-10-09 Thread John Michael Lafayette
New submission from John Michael Lafayette: With a lot of languages, I can tell that the type I am getting is an instance of the declared type I'm assigning it to. Example: Cat c = Factory.make("cat" Animal d = Factory.make("dog") Python: val c = Factory.make("cat") Problem with this is that

[issue25344] Enhancement to Logging - Logging Stack

2015-10-09 Thread Vinay Sajip
Vinay Sajip added the comment: This is already supported. There is a logging.handlers.MemoryHandler which allows you to buffer logging events and then pass the buffered events to another handler when some condition is met, such as e.g. buffer full or some severity threshold is exceeded.

Re: Is there a Windows Python SIG?

2015-10-09 Thread Chris Angelico
On Fri, Oct 9, 2015 at 1:41 PM, Christopher Reimer wrote: > On 10/7/2015 10:49 PM, Chris Angelico wrote: >> >> Awesome! Contributors are always welcome. > > > On a YouTube video from PyCon 2015, I think someone mentioned the need for > more people to look at Python

Karlsruhe (Germany) Python User Group, October 16th 2015, 7pm

2015-10-09 Thread Jürgen A . Erhard
The Karlsruhe Python User Group (KaPy) meets again. Friday, 2015-10-16 (October 16th) at 19:00 (7pm) in the rooms of Entropia eV (the local affiliate of the CCC). See http://entropia.de/wiki/Anfahrt on how to get there. For your calendars: meetings are held monthly, on the 3rd Friday. There's

Re: Using pipe in a system call

2015-10-09 Thread Cecil Westerhof
On Friday 9 Oct 2015 02:11 CEST, Dennis Lee Bieber wrote: > On Fri, 09 Oct 2015 00:03:36 +0200, Cecil Westerhof > declaimed the following: > >> I want to do the following Bash command in Python: sqlite3 >> spreekwoorden.sqlite "SELECT spreekwoord FROM spreekwoorden;" | >> sort

Re: Using pipe in a system call

2015-10-09 Thread Cecil Westerhof
On Friday 9 Oct 2015 00:26 CEST, Ian Kelly wrote: > On Thu, Oct 8, 2015 at 4:03 PM, Cecil Westerhof wrote: >> I want to do the following Bash command in Python: sqlite3 >> spreekwoorden.sqlite "SELECT spreekwoord FROM spreekwoorden;" | >> sort > spreekwoorden2.txt >> >> The

[issue25343] Document atomic operations on builtin types

2015-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: This question has been asked multiple times before. I think it should be documented that as far as the language goes, there is no answer. Raymond's answer is a start. Dima, where would you expect to find such a disclaimer (other than in the FAQ)?

[issue17908] Unittest runner needs an option to call gc.collect() after each test

2015-10-09 Thread Ankit Baruah
Changes by Ankit Baruah : -- nosy: +@nkit ___ Python tracker ___ ___

[issue24870] Optimize ascii and latin1 decoder with surrogateescape and surrogatepass error handlers

2015-10-09 Thread STINNER Victor
STINNER Victor added the comment: INADA Naoki: "I want to Python 3.4 and Python 3.5 solve this issue since it's critical problem for some people." On microbenchmarks, the optimization that I just implemented in Python 3.6 are impressive. The problem is that the implementation is quite

[issue25343] Document atomic operations on builtin types

2015-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, I was asking where to put the disclaimer. The thread docs would be approriate if there is nothing already. Guido has been very reluctant to put any performance guarantees in the language reference. I believe he said that O(f(n)) info even for CPython

[issue25352] Add 'make this my default python' to windows installs for Python3.5 and later

2015-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: There used to be such a checkbox, but apparently it had problems. But there is still something with that effect, at least in part. When I installed 3.5.0, 'python' was switched from 3.4 to 3.5. That did not happen with the preliminary releases, because I

[issue25354] test_datetime failing

2015-10-09 Thread shanmbic
shanmbic added the comment: make distclean worked. I guess too many reverts in hg caused some issue. :) -- ___ Python tracker ___

[issue25099] test_compileall fails when run by unprivileged user on installed Python

2015-10-09 Thread Brett Cannon
Brett Cannon added the comment: Thanks to Serhiy for all of the reviews! -- resolution: -> fixed stage: commit review -> resolved ___ Python tracker ___

[issue25099] test_compileall fails when run by unprivileged user on installed Python

2015-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 34bbd537b3e6 by Brett Cannon in branch '3.5': Issue #25099: Skip relevant tests in test_compileall when an entry on https://hg.python.org/cpython/rev/34bbd537b3e6 New changeset 21f3a92e0c6d by Brett Cannon in branch 'default': Merge for issue

[issue25354] test_datetime failing

2015-10-09 Thread R. David Murray
R. David Murray added the comment: Yes, I find that if there's something that might be a compilation problem, doing a make distclean and a build from scratch is a good idea to confirm it. -- ___ Python tracker

[issue25303] Add option to py_compile to compile for syntax checking without writing bytecode

2015-10-09 Thread Pavel Roskin
Pavel Roskin added the comment: That's what I have now: check: $(PYTHON) -m py_compile $(SOURCES) rm -f $(addsuffix c, $(SOURCES)) make check python -m py_compile redacted-build redacted-git-diff redacted-git-gc redacted-git-status redacted-init redacted-server

[issue24870] Optimize ascii and latin1 decoder with surrogateescape and surrogatepass error handlers

2015-10-09 Thread STINNER Victor
STINNER Victor added the comment: Short summary. Ok, I optimized ASCII, Latin1 and UTF-8 codecs (encoders and decoders) for the most common error handlers. * ASCII and Latin1 encoders: surrogateescape, replace, ignore, backslashreplace, xmlcharrefreplace * ASCII decoder: surrogateescape,

[issue25311] Add f-string support to tokenize.py

2015-10-09 Thread Ankit Baruah
Changes by Ankit Baruah : -- nosy: +@nkit ___ Python tracker ___ ___

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-09 Thread Gian Carlo Martinelli
Gian Carlo Martinelli added the comment: 1) Do the keys work in the Ubuntu console? Yes. 2) Do the keys work in interactive python (not IDLE), started with 'python' at the console prompt. Yes. 3) In IDLE, go to Help->About IDLE. What is the Tk version. Best if 8.6.x, if before 8.5.18,

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-09 Thread Ankit Baruah
Ankit Baruah added the comment: Yes same answers as Gian characters worked perfectly -- ___ Python tracker ___

[issue25354] test_datetime failing

2015-10-09 Thread Tim Peters
Changes by Tim Peters : -- components: +Library (Lib) -Extension Modules, ctypes resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue25303] Add option to py_compile to compile for syntax checking without writing bytecode

2015-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: On the side issue: While the example given, which uses the py_compile.compile defaults via the command line interface, is useless, I disagree that writing a .pyc file for a file without .py is a bug. Python will run python code with any filename as main

[issue25359] io.open() fails to open ascii file if LANG env not set

2015-10-09 Thread L
Changes by L : -- components: IO files: io.openBugEx.py nosy: sentinel priority: normal severity: normal status: open title: io.open() fails to open ascii file if LANG env not set type: crash versions: Python 2.7 Added file:

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ankit: the issue is where do they fail, why, and how to fix. Are you running Ubuntu also? G.C. How do you start IDLE? Is the problem with exactly those three chars? Do they fail in the Shell? an editor? search box? other entry box such as you get with

[issue25343] Document atomic operations on builtin types

2015-10-09 Thread R. David Murray
R. David Murray added the comment: I think what Terry was asking was, where would you expect to see the disclaimer that *no* operations are guaranteed to be atomic? That's what we're inclining toward (though we'll probably need a signoff from Guido). --

[issue25349] Use _PyBytesWriter for bytes%args

2015-10-09 Thread STINNER Victor
STINNER Victor added the comment: Ok, I implemented all optimizations which were already implemented in str % args. I close the issue. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-09 Thread Ankit Baruah
Ankit Baruah added the comment: Hello, i am totally new.I went through Pythons Developers guide and would like to learn so please tell me what i should learn to resolve this issue. -- nosy: +@nkit ___ Python tracker

[issue25099] test_compileall fails when run by unprivileged user on installed Python

2015-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added new comments. -- ___ Python tracker ___ ___ Python-bugs-list

Re: Errors installing xmiparser with Python 3.4 and windows - any help?

2015-10-09 Thread Mark Lawrence
On 09/10/2015 18:24, Gary Hanyzewski wrote: I am trying to install xmiparser-1.5.dev-r124826 into python 3.4.0 on a windows machine. When I try and install (either with pip or setup.py install) I get a number of syntax errors in the code ( below) Has anyone managed to install and use the

Re: Script To Remove Files Made Either By Python Or Git

2015-10-09 Thread Mark Lawrence
On 09/10/2015 16:44, Jason Swails wrote: On Fri, Oct 9, 2015 at 6:08 AM, Joshua Stokes > wrote: Hi Is there an available script to remove file created by either using the Python module or by using git? ​There's always

[issue24402] input() uses sys.__stdout__ instead of sys.stdout for prompt

2015-10-09 Thread Martin Panter
Martin Panter added the comment: Seems my test hangs the Free BSD 9 buildbot, although Free BSD 10 apparently passed. http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.x%203.4/builds/1128/steps/test/logs/stdio [390/390] test_builtin Timeout (1:00:00)! Thread 0x000801407400 (most

Re: Recover data over the network

2015-10-09 Thread William Ray Wing
> On Oct 9, 2015, at 10:44 PM, Arshpreet Singh wrote: > >> On Saturday, 10 October 2015 04:40:27 UTC+5:30, Steven D'Aprano wrote: >> >> What do you mean, "recover data from a server"? What has happened to the >> server? Can it boot or is it in an unbootable state? Are the

[issue24402] input() uses sys.__stdout__ instead of sys.stdout for prompt

2015-10-09 Thread Martin Panter
Martin Panter added the comment: I wrote this on Arch Linux, so I doubt your Ubuntu failure is valid. The error you see is what I would expect if the bug were not actually fixed. I suspect you need to recompile /Python/bltinmodule.c, which contains the bug fix. However, the test also hangs OS

[issue25360] pyw should search for pythonw to implement #!/usr/bin/env python

2015-10-09 Thread eryksun
New submission from eryksun: The Windows launcher searches PATH to implement the shebang "#!/usr/bin/env". Given "#!/usr/bin/env python", it always searches for L"python" (see issue 17903), even in pyw.exe. maybe_handle_shebang in PC/launcher.c should instead use a macro that's conditionally

[issue25357] Add an optional newline parameter to binascii.b2a_base64() to not add a newline

2015-10-09 Thread Martin Panter
Martin Panter added the comment: The “newline” name seems as good as any. The patch looks good in general. I left a few comments. I agree with not bothering for the UU encoder. That encoding has an embedded line length byte at the start of each line, so it makes less sense to omit newlines.

[issue25360] pyw should search for pythonw to implement #!/usr/bin/env python

2015-10-09 Thread eryksun
Changes by eryksun : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list

Re: Recover data over the network

2015-10-09 Thread Michael Torrie
On 10/09/2015 08:47 PM, Arshpreet Singh wrote: > On Friday, 9 October 2015 22:51:16 UTC+5:30, Emile van Sebille wrote: > >> without extensive clues as to the nature of the data to be recovered >> you're not going to get much further with this. > > It is mostly /home partition data on disk.

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-09 Thread Ankit Baruah
Ankit Baruah added the comment: Yes,i am using ubuntu. Thank you Terry for guiding me really appreciate your help. Sorry for not replying fell asleep. -- ___ Python tracker

[issue24402] input() uses sys.__stdout__ instead of sys.stdout for prompt

2015-10-09 Thread Xiang Zhang
Xiang Zhang added the comment: It's my fault. I forget to recompile. Now it works. -- ___ Python tracker ___

Strong typing implementation for Python

2015-10-09 Thread John Michael Lafayette
I would like Python to have a strong typing feature that can co-exist with the current dynamic typing system. Currently Python is like this: var animal = Factory.make("dog") #okay var dog = Factory.make("dog") #okay -- https://mail.python.org/mailman/listinfo/python-list

Strong typing implementation for Python

2015-10-09 Thread John Michael Lafayette
I would like Python to have a strong typing feature that can co-exist with the current dynamic typing system. Currently Python is like this: var animal = Factory.make("dog") # okay. var dog = Factory.make("dog") # okay. var cat = Factory.make("dog")# are you sure? I

[issue25194] Opt-in motivations & affiliations page for core contributors

2015-10-09 Thread Nick Coghlan
Nick Coghlan added the comment: The attached "Final draft" patch is the version I plan to commit tomorrow. Major differences from the previous draft: * accepted MAL's suggestion of using alphabetical order * as RDM suggested, explained the rationale for the cases where we encourage people to

[issue24402] input() uses sys.__stdout__ instead of sys.stdout for prompt

2015-10-09 Thread Xiang Zhang
Xiang Zhang added the comment: This test also fails on Ubuntu. [1/1] test_builtin test test_builtin failed -- Traceback (most recent call last): File "/home/angwer/my-cpython/Lib/test/test_builtin.py", line 1588, in test_input_no_stdout_fileno self.assertEqual(status, 0, output)

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-09 Thread Ankit Baruah
Ankit Baruah added the comment: Find in Files (grep) Yes can type `'^~. Output Window Yes seems to work can type `'^~ and other characters. -- ___ Python tracker

Re: Recover data over the network

2015-10-09 Thread Michael Torrie
On 10/09/2015 09:44 PM, William Ray Wing wrote: > I hesitate to mention this, but there _may_ be a communication > problem here. When American-English speakers refer to data recovery, > they usually are discussing reading data from a disk that has > suffered some catastrophic event, say a head

[issue24402] input() uses sys.__stdout__ instead of sys.stdout for prompt

2015-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset d8dd9015b086 by Martin Panter in branch '3.4': Issue #24402: Factor out PtyTests.run_child() in input() tests https://hg.python.org/cpython/rev/d8dd9015b086 New changeset 6a8f96b46dce by Martin Panter in branch '3.5': Issue #24402: Merge potential

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: IDLE uses tkinter which wraps the tcl/tk GUI framework. Tk handles key presses. So this is almost certainly not an IDLE bug, or even a tkinter bug. Unless you can demonstrate otherwise, I will closing this as a CPython issue. Since this is the first report

[issue25099] test_compileall fails when run by unprivileged user on installed Python

2015-10-09 Thread Brett Cannon
Brett Cannon added the comment: I have addressed Serhiy's comments again. -- Added file: http://bugs.python.org/file40736/issue25099.diff ___ Python tracker

[issue25336] Segmentation fault on Mavericks consistent crashing of software: Please HELP!!!!!

2015-10-09 Thread CM
CM added the comment: I understood what Ned meant, and I did seek advice from the third party software creator, it was the first thing I did because like you stated I thought it was an issue with the third party software and not python. Coming to this bug website was my last resort but I can

Re: Script To Remove Files Made Either By Python Or Git

2015-10-09 Thread Laura Creighton
In a message of Fri, 09 Oct 2015 21:08:22 +1100, Joshua Stokes writes: >Hi > >Is there an available script to remove file created by either using the Python >module or by using git? > >Thanks > >>From Joshua P Stokes No. A file is a file. It doesn't know which program created it. I can use

[issue25357] Add an optional newline parameter to binascii.b2a_base64() to not add a newline

2015-10-09 Thread STINNER Victor
New submission from STINNER Victor: The base64.b64encode() function calls binascii.b2a_base64() and then strips the newline. It would be more efficient to directly not add a newline. Attached patch adds an optional newline parameter to binascii.b2a_base64(). It also modifies

Re: Script To Remove Files Made Either By Python Or Git

2015-10-09 Thread Jason Swails
On Fri, Oct 9, 2015 at 6:08 AM, Joshua Stokes wrote: > Hi > > Is there an available script to remove file created by either using the > Python module or by using git? > ​There's always this nugget: git clean -fxd This will get rid of *all* untracked files in the

[issue25336] Segmentation fault on Mavericks consistent crashing of software: Please HELP!!!!!

2015-10-09 Thread R. David Murray
R. David Murray added the comment: I think Ned meant "it is *not* likely to be in the python interpreter or standard library", and that you should seek help from the third party people trying to track down the problem. *If* it turns out to be python or the stdlib, which means you've managed

Re: Script To Remove Files Made Either By Python Or Git

2015-10-09 Thread Grant Edwards
On 2015-10-09, Marko Rauhamaa wrote: >>> $ rm $(find . ) > > This is not safe since find might return pathnames with spaces in > them. Good point. > Also, the command fails if find should produce no matches. I just tried, it with a pattern that produced no matches, and it

[issue25352] Add 'make this my default python' to windows installs for Python3.5 and later

2015-10-09 Thread Laura Creighton
Laura Creighton added the comment: checking, these kids are using computers where, at some point, somebody moved the idle shortcut from their 2.7 folder to the desktop. Which was probably a very bad idea. But what should I tell them to do to get 3.5 there instead? (adding IDLE to 'Type')

[issue25303] py_compile disregards PYTHONDONTWRITEBYTECODE and -B

2015-10-09 Thread Éric Araujo
Éric Araujo added the comment: I had the same reasoning as RDM when I worked on byte-compilation in distutils2: https://hg.python.org/distutils2/rev/7c0a88497b5c Using py_compile or compileall means that you want to create pyc or pyo files. Defining PYTHONDONTWRITEBYTECODE or -B means that you

[issue25357] Add an optional newline parameter to binascii.b2a_base64() to not add a newline

2015-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: +1. Not sure about the parameter name, but if no one suggests better, it LGTM. Added comments on Rietveld. What about adding the same parameter to binascii.b2a_uu()? -- nosy: +ncoghlan, pitrou, serhiy.storchaka

Re: change data in large excel file(more than 240 000 rows on sheet)

2015-10-09 Thread alister
On Fri, 09 Oct 2015 01:21:37 -0700, gall.pavgal.gall wrote: > Thanks Laura! > But i need to change existing excel file and if i use the optimised > reader, i can read data only, but i can't change data. I know it does not help but if you have this amount of data being stored in a spreadsheet

[issue25353] Use _PyBytesWriter for unicode escape and raw unicode escape encoders

2015-10-09 Thread STINNER Victor
STINNER Victor added the comment: A few more encoders should be updated to use _PyBytesWriter API: * Code Page (Windows only) * Charmap * UTF-7 * UTF-16 * UTF-32 -- ___ Python tracker

[issue25353] Use _PyBytesWriter for unicode escape and raw unicode escape encoders

2015-10-09 Thread STINNER Victor
STINNER Victor added the comment: The _PyBytesWriter API was added in the issue #25318. See also the issue #25349 which optimized bytes % args. -- ___ Python tracker

Re: change data in large excel file(more than 240 000 rows on sheet)

2015-10-09 Thread harirammanohar159
On Wednesday, 7 October 2015 19:44:12 UTC+5:30, gall.pav...@gmail.com wrote: > Hi Guys, > I need to change data in large excel file(more than 240 000 rows on sheet), > it's possible through win32com.client, but i need use Linux OS ... > Please, could you advise some-thing suitable! > > best

Script To Remove Files Made Either By Python Or Git

2015-10-09 Thread Joshua Stokes
Hi Is there an available script to remove file created by either using the Python module or by using git? Thanks >From Joshua P Stokes -- https://mail.python.org/mailman/listinfo/python-list

[issue25318] Add _PyBytesWriter API to optimize Unicode encoders

2015-10-09 Thread STINNER Victor
STINNER Victor added the comment: Buildbots still like this new API :-) (no test failure recently) I reworked the API a little bit to make its usage simpler in Unicode encoders. I started to open new issues to using this new API in more functions producing byte strings. I consider that this

Re: change data in large excel file(more than 240 000 rows on sheet)

2015-10-09 Thread Laura Creighton
In a message of Fri, 09 Oct 2015 01:21:37 -0700, gall.pavgal.g...@gmail.com wri tes: >Thanks Laura! >But i need to change existing excel file and if i use the optimised reader, i >can read data only, but i can't change data. Hmmm. When I have this problem I have other problems as well, and

[issue25353] Use _PyBytesWriter for unicode escape and raw unicode escape encoders

2015-10-09 Thread STINNER Victor
New submission from STINNER Victor: Attached patch modifies unicode escape and raw unicode escape encoders to use the new _PyBytesWriter API. The patch is optimized to encode Latin1 characters: encoding Latin1 characters when no character is escaped should not have to call _PyByte_Resize() at

  1   2   >