[issue24844] Python 3.5rc1 compilation error with Apple clang 4.2 included with Xcode 4

2015-08-11 Thread Larry Hastings
Larry Hastings added the comment: I'd need to see the patch to be certain, but yes my assumption is I'd accept a pull request for this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24844

[issue9232] Allow trailing comma in any function argument list.

2015-08-11 Thread Larry Hastings
Larry Hastings added the comment: With PEP 448, we can now have fronkulate(**kwargs, **kwargs2) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9232 ___

[issue24844] Python 3.5rc1 compilation error with Apple clang 4.2 included with Xcode 4

2015-08-11 Thread Ned Deily
Ned Deily added the comment: This is a regression from previous releases of Python. It was introduced by fbe87fb071a6 (for Issue22038) which added the use of C built-in functions for atomic memory access for additional architectures like x86_64. It seems that the relatively early version of

Re: pyjs - a compiler from Python to JavaScript

2015-08-11 Thread Chris Angelico
On Wed, Aug 12, 2015 at 5:08 AM, Fabio Zadrozny fabi...@gmail.com wrote: As it's just a way to convert from a Python-like syntax to JavaScript syntax you can even switch to plain JavaScript later on if you want -- in fact, when you debug the code you'll be debugging JavaScript and not Python

[issue24847] Can't import tkinter in Python 3.5.0rc1

2015-08-11 Thread Matthew Barnett
New submission from Matthew Barnett: I'm unable to import tkinter in Python 3.5.0rc1. The console says: C:\Python35python Python 3.5.0rc1 (v3.5.0rc1:1a58b1227501, Aug 10 2015, 05:18:45) [MSC v.1900 64 bit (AMD64)] on win32 Type help, copyright, credits or license for more information. import

[issue12892] UTF-16 and UTF-32 codecs should reject (lone) surrogates

2015-08-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are two causes: 1. UTF-16 and UTF-32 are based on 2- and 4-bytes units. If the surrogateescape error handler will support UTF-16 and UTF-32, encoding could produce the data that can't be decoded back correctly. For example '\udcac \udcac' -

[issue24843] 2to3 not working

2015-08-11 Thread gladman
gladman added the comment: I have now got it working using the command line: C:\Program Files\Python35\Tools\scriptsC:\Program Files\Python34\python 2to3.py --help I am not sure why the default Windows invocation of Python doesn't work with 2to3 as this works fine with other python scripts

Re: Pipes

2015-08-11 Thread Laura Creighton
In a message of Mon, 10 Aug 2015 15:43:26 -0500, E.D.G. writes: I needed a program that could generate data regarding the locations of the sun and the moon in the sky in response to specific times entered. Roger developed the basic equations with some help from another researcher. And

[issue24842] Mention SimpleNamespace in namedtuple docs

2015-08-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: The NT docs are already very long and I don't think an additional crossref is beneficial (NTs are closer to tuples and SNs are closer to dicts). Also, the uptake for SNs are nearly zero. -- ___ Python tracker

Re: Is Django the way to go for a newbie?

2015-08-11 Thread Laura Creighton
In a message of Tue, 11 Aug 2015 09:49:01 +0800, Dwight GoldWinde writes: Thank you, Gary, for this new information. I will be looking into virtualenv and vertualenvwrapper. I thought that Django was an IDE. But, it seems that an IDE is one more thing that I need that I didn¹t know I needed!?

Re: Sorry folks, minor hiccup for Python 3.5.0rc1

2015-08-11 Thread Larry Hastings
On 08/10/2015 05:55 PM, Larry Hastings wrote: I yanked the tarballs off the release page as soon as I suspected something. I'm rebuilding the tarballs and the docs now. If you grabbed the tarball as soon as it appeared, it's slightly out of date, please re-grab. p.s. I should have

Sorry folks, minor hiccup for Python 3.5.0rc1

2015-08-11 Thread Larry Hastings
I built the source tarballs with a slightly-out-of-date tree. We slipped the release by a day to get two fixes in, but the tree I built from didn't have those two fixes. I yanked the tarballs off the release page as soon as I suspected something. I'm rebuilding the tarballs and the docs

[issue24842] Mention SimpleNamespace in namedtuple docs

2015-08-11 Thread Stefan Behnel
Stefan Behnel added the comment: Also, the uptake for SNs are nearly zero. That suggests to me that pointing users to it could help. It's currently hidden in the types module and if I didn't know it existed, I could end up looking in collections, and failing to find it there, write my own.

ANN: Eliot 0.8, the logging system with causality

2015-08-11 Thread Itamar Turner-Trauring
Most logging systems can tell you what happened; Eliot tells you *why* it happened: $ python linkcheck.py | eliot-tree 4c42a789-76f5-4f0b-b154-3dd0e3041445 +-- check_links@1/started `-- urls: [u'http://google.com', u'http://nosuchurl'] +-- download@2,1/started `-- url:

[RELEASED] Python 3.5.0rc1 is now available

2015-08-11 Thread Larry Hastings
On behalf of the Python development community and the Python 3.5 release team, I'm relieved to announce the availability of Python 3.5.0rc1, also known as Python 3.5.0 Release Candidate 1. Python 3.5 has now entered feature freeze. By default new features may no longer be added to Python

[issue24843] 2to3 not working

2015-08-11 Thread gladman
New submission from gladman: when I try to use the 2to3 script on the command line on Windows x64, I get the response: C:\Program Files\Python34\Tools\scripts2to3 C:\Users\brian\Downloads\puzzles.py At least one file or directory argument required. Use --help to show usage. When I ask

[issue24840] implement bool conversion for enums to prevent odd edge case

2015-08-11 Thread Mike Lundy
Mike Lundy added the comment: @serhiy.storchaka: It's somewhat of a special case, to be sure. However, I do think it's justified to put it into the base (rather than a user type) for three reasons: 1) It makes IntEnum and Enum consistent. IntEnum actually already handles this case just fine,

Flan definition collision

2015-08-11 Thread smahabole--- via Python-list
I am importing two modules, each of which is defining flags (command line arguments) with the same name. This makes it impossible to import both the modules at once, because of flag name definition conflict. Is there any way which doesn't involve modifying the flag names in these modules? --

Re: Pipes

2015-08-11 Thread Laura Creighton
The O'Reilly book Effective Computation in Physics that Larry Hudson recommended looks really good. It also occurs to me that another way to get familiar with the scientific python world is to attend a Scientific Python conference. EuroSciPy is the end of this month in Cambridge.

[issue9232] Allow trailing comma in any function argument list.

2015-08-11 Thread Adam Bartoš
Adam Bartoš added the comment: Some remarks: • A trailing comma after a non-empty argument list is allowed in every call form, including class statement and optional call in decorator syntax. In the grammar, this correponds to `arglist`. • In function definition, trailing comma is allowed

Re: Data integrity problem with sqlite3

2015-08-11 Thread Frank Millman
Chris Angelico wrote in message news:CAPTjJmrHmj2bsdSm4CQ=orgxutmyctk3w3e3n-qxolg2tvq...@mail.gmail.com... On Tue, Aug 11, 2015 at 9:33 PM, Frank Millman fr...@chagford.com wrote: I have added 'set_trace_callback' to see exactly what is going on, and in the middle of my series of commands

[issue24843] 2to3 not working

2015-08-11 Thread Steve Dower
Steve Dower added the comment: If this occurs in 3.5 then it needs to be fixed (though I thought I'd already fixed it once...). I'll take a look. -- assignee: - steve.dower status: closed - open versions: +Python 3.5, Python 3.6 -Python 3.4 ___

Re: Flan definition collision

2015-08-11 Thread Joel Goldstick
On Tue, Aug 11, 2015 at 2:28 AM, smahabole--- via Python-list python-list@python.org wrote: I am importing two modules, each of which is defining flags (command line arguments) with the same name. This makes it impossible to import both the modules at once, because of flag name definition

[issue24843] 2to3 not working

2015-08-11 Thread gladman
gladman added the comment: Thanks for the explanation. My apologies for this posting, which I will now close -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24843 ___

[issue24769] Interpreter doesn't start when dynamic loading is disabled

2015-08-11 Thread Larry Hastings
Larry Hastings added the comment: Uh, Nick? You didn't add me to this bug. -- nosy: +larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24769 ___

Re: Data integrity problem with sqlite3

2015-08-11 Thread Chris Angelico
On Tue, Aug 11, 2015 at 9:33 PM, Frank Millman fr...@chagford.com wrote: I have added 'set_trace_callback' to see exactly what is going on, and in the middle of my series of commands I find the following - COMMIT BEGIN IMMEDIATE According to the docs, the sqlite3 module commits

Re: looking for standard/builtin dict-like data object

2015-08-11 Thread Chris Angelico
On Tue, Aug 11, 2015 at 10:06 PM, Vladimir Ignatov kmis...@gmail.com wrote: I also thought the stdlib had some kind of namespace class with this kind of API, but I can't find it now:-( It does - types.SimpleNamespace(). It accepts keyword arguments, and will let you create more attributes

[issue12892] UTF-16 and UTF-32 codecs should reject (lone) surrogates

2015-08-11 Thread tmp12342
tmp12342 added the comment: Serhiy, I understand the first reason, but https://docs.python.org/3/library/codecs.html says applicable to text encodings: [...] This code will then be turned back into the same byte when the 'surrogateescape' error handler is used when encoding the data.

Re: Flan definition collision

2015-08-11 Thread Luca Menegotto
Il 11/08/2015 08:28, smahab...@google.com ha scritto: I am importing two modules, each of which is defining flags (command line arguments) with the same name. This makes it impossible to import both the modules at once, because of flag name definition conflict. If you use 'import', and

ANN python-taiga 0.5.0

2015-08-11 Thread Andrea Stagi
Python-taiga 0.5.0 released! python-taiga is a python module for communicating with Taiga.io, a new project management platform! For more info https://taiga.io/ This release includes minfixes and API importer support. You can find python-taiga code on Github https://github.com/nephila/python-

Re: looking for standard/builtin dict-like data object

2015-08-11 Thread Vladimir Ignatov
I also thought the stdlib had some kind of namespace class with this kind of API, but I can't find it now:-( It does - types.SimpleNamespace(). It accepts keyword arguments, and will let you create more attributes on the fly (unlike a namedtuple). Yes, that's it. Thanks! Ah, sad, sad,

Re: Data integrity problem with sqlite3

2015-08-11 Thread Chris Angelico
On Tue, Aug 11, 2015 at 10:37 PM, Frank Millman fr...@chagford.com wrote: My PostgreSQL is inaccessible at the moment as I am moving machines around, but I have tested it with MS SQL Server, and it behaves as expected – the transaction is fully rolled back and nothing is committed to the

Re: Data integrity problem with sqlite3 - solved

2015-08-11 Thread Frank Millman
Frank Millman wrote in message news:mqcmie$po9$1...@ger.gmane.org... Hi all I have a 'data integrity' problem with sqlite3 that I have been battling with for a while. I have not got to the bottom of it yet but I do have some useful info, so I thought I would post it here in the hope that

Re: Pipes

2015-08-11 Thread Tim Golden
On 11/08/2015 10:58, Laura Creighton wrote: The O'Reilly book Effective Computation in Physics that Larry Hudson recommended looks really good. It also occurs to me that another way to get familiar with the scientific python world is to attend a Scientific Python conference. EuroSciPy is the

[issue24843] 2to3 not working

2015-08-11 Thread eryksun
eryksun added the comment: Your .py file association isn't configured to pass command-line arguments. Revert to using the Python.File type that was created by Python's installer. The associated command should be something like C:\Windows\py.exe %1 %* depending on where py.exe is

[issue24839] platform._syscmd_ver raises DeprecationWarning

2015-08-11 Thread Larry Hastings
Larry Hastings added the comment: They are currently in sync, yes. The 3.5 branch has been a ghost town the last day or two, which tbh has been pleasant for me.helpfu -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24839

[issue24839] platform._syscmd_ver raises DeprecationWarning

2015-08-11 Thread Larry Hastings
Larry Hastings added the comment: Merged. Please forward-port to 3.5.1 and 3.6. Thanks! (See? Already I can tell this rc-cycle is going to be way easier on me than 3.4 was.) -- ___ Python tracker rep...@bugs.python.org

Data integrity problem with sqlite3

2015-08-11 Thread Frank Millman
Hi all I have a 'data integrity' problem with sqlite3 that I have been battling with for a while. I have not got to the bottom of it yet but I do have some useful info, so I thought I would post it here in the hope that someone with some knowledge of the internals of the python sqlite3 module

Re: pyjs - a compiler from Python to JavaScript

2015-08-11 Thread Uri Even-Chen
Thanks for the feedback. Actually I asked this question also in the django-users mailing list and Russell Keith-Magee told me about Brython, Skulpt and PyPy.js (I hope it's OK that I reply to these 3 mailing lists) but I also asked if I can use JavaScript scripts such as jQuery, jQuery UI and

[issue24840] implement bool conversion for enums to prevent odd edge case

2015-08-11 Thread R. David Murray
R. David Murray added the comment: I agree that it seems odd that testing a 'value' that is false for its truth value would return True. It is surprising, even if it is an edge case. -- ___ Python tracker rep...@bugs.python.org

[issue21167] float('nan') returns 0.0 on Python compiled with icc

2015-08-11 Thread R. David Murray
R. David Murray added the comment: Note that Chris' patch is coming from Intel. (The ICC buildbots are currently building with -fp-model strict, by the way.) Mark, Stefan, what do you think? Is this a good idea? IIUC we would then not have to worry about differentiating between the python

[issue24843] 2to3 not working

2015-08-11 Thread gladman
gladman added the comment: Hi Steve, The behaviour I reported was the same on Python 3.4 and 3.5rc1. But eryksun was correct in suggesting that this was a problem in the way my file association for Python was set up. My py_auto_file association was set to: C:\Program

[issue21167] float('nan') returns 0.0 on Python compiled with icc

2015-08-11 Thread Chris Hogan
Chris Hogan added the comment: Producing NaN by Py_HUGE_VAL / Py_HUGE_VAL as in the suggested patch is unsafe as it can generate a FP exception during runtime. Also aggresive compiler FP optimizations can eliminate this calculation on compile-time. For this reason, we've used constant

[issue24842] Mention SimpleNamespace in namedtuple docs

2015-08-11 Thread R. David Murray
R. David Murray added the comment: I use SimpleNamespace in just about every project I'm currently working on. I would *not* say that their uptake is nearly zero :) And yes, I wouldn't be aware of it if I hadn't been following python-dev when it was introduced, and had (before it was

EuroPython 2015: Videos are online

2015-08-11 Thread M.-A. Lemburg
Thanks to our Media Work Group (WG) and especially Anthon and Luis, the conference videos are now cut, edited and uploaded to our YouTube channel as well as our archive.org collection: http://europython.tv http://archive.europython.tv A total of 173 talk videos were processed, so there’s

[issue9232] Allow trailing comma in any function argument list.

2015-08-11 Thread Guido van Rossum
Guido van Rossum added the comment: I'm +1 on adding this. I don't believe it requires a PEP. A trailing comma in definitions is already supported in some places, so I don't buy the argument that it catches errors. During the moratorium we were perhaps too strict. -- nosy: +gvanrossum

[issue24798] _msvccompiler.py doesn't properly support manifests

2015-08-11 Thread R. David Murray
R. David Murray added the comment: Please open a new issue, referencing this one. Priority should be set to release blocker. (I forget if regular users can do that; if you can't I will.) -- nosy: +r.david.murray ___ Python tracker

[issue24798] _msvccompiler.py doesn't properly support manifests

2015-08-11 Thread Christoph Gohlke
Christoph Gohlke added the comment: This change broke all my builds that link statically against 3rd party libraries built with the `/MD` flag. `/MD` was used at least since Python 2.3 and is the default for static libraries in Visual Studio 2015. Some of the broken builds: lxml, pillow,

[issue24844] Python 3.5rc1 compilation error on OS X 10.8

2015-08-11 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- nosy: +benjamin.peterson, ned.deily, yselivanov priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24844 ___

[issue24843] 2to3 not working

2015-08-11 Thread eryksun
Changes by eryksun eryk...@gmail.com: -- resolution: - not a bug status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24843 ___

[issue24640] no ensurepip in embedded Windows distribution

2015-08-11 Thread Steve Dower
Steve Dower added the comment: Updated the documentation and it should be in 3.5.0rc1's docs on using with Windows. -- resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org

[issue24844] Python 3.5rc1 compilation error on OS X 10.8

2015-08-11 Thread David Beazley
New submission from David Beazley: Just a note that Python-3.5.0rc1 fails to compile on Mac OS X 10.8.5 with the following compiler: bash$ clang --version Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn) Target: x86_64-apple-darwin12.6.0 Thread model: posix bash$ Here is the

[issue24843] 2to3 not working

2015-08-11 Thread Steve Dower
Steve Dower added the comment: Yes, I see. Thanks for clarifying, it seems all the installers are fine but Windows will generate associations that don't forward arguments. -- assignee: steve.dower - resolution: - not a bug status: open - closed versions: -Python 3.5, Python 3.6

Re: pyjs - a compiler from Python to JavaScript

2015-08-11 Thread Fabio Zadrozny
On Tue, Aug 11, 2015 at 8:55 AM, Uri Even-Chen u...@speedy.net wrote: Thanks for the feedback. Actually I asked this question also in the django-users mailing list and Russell Keith-Magee told me about Brython, Skulpt and PyPy.js (I hope it's OK that I reply to these 3 mailing lists) but I

[issue24385] libpython27.a in python-2.7.10 i386 (windows msi release) contains 64-bit objects

2015-08-11 Thread Steve Dower
Steve Dower added the comment: Doesn't seem to be anything left to do here, so closing as fixed. -- resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24385

[issue24843] 2to3 not working

2015-08-11 Thread Steve Dower
Steve Dower added the comment: I'm afraid there's no easy way to revert it. I may get to invest the time for 3.6's launcher[1] to make it available in Default Programs, but I've always struggled to get that to work properly. Explorer should always use the per-user command if it's there, and

[issue23626] Windows per-user install of 3.5a2 doesn't associate .py files with the new launcher

2015-08-11 Thread Steve Dower
Steve Dower added the comment: I haven't seen this at all, so until we see a repro of it, I'm closing. -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23626

[issue20362] longMessage attribute is ignored in unittest.TestCase.assertRegexpMatches etc

2015-08-11 Thread Ilia Kurenkov
Ilia Kurenkov added the comment: Bump :) Let's close this one, guys! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20362 ___ ___

[issue24760] IDLE settings dialog shouldn't be modal

2015-08-11 Thread Mark Roseman
Mark Roseman added the comment: The attached demodalize.patch (which includes the changes from the previously posted decouple_config.patch) changes both the settings dialog and the about dialog to be non-modal. There's a new class UIFactory which is responsible for launching these kinds of

testfixtures 4.2.0 Released!

2015-08-11 Thread Chris Withers
Hi All, I'm pleased to announce the release of testfixtures 4.2.0. This is a feature release that fixes the following: - A new MockPopen mock for use when testing code that uses subprocess.Popen. - ShouldRaiss now subclasses object, so that subclasses of it may use super(). - Support

[issue24843] 2to3 not working

2015-08-11 Thread eryksun
eryksun added the comment: My py_auto_file association Oh, it's that auto filetype again. Steve, when you say you fixed this for 3.5, does that means there's a simple command or API to revert this automatic ProgId back to the Python.File type? This problem shows up repeatedly on Stack

[issue24843] 2to3 not working

2015-08-11 Thread eryksun
Changes by eryksun eryk...@gmail.com: -- versions: +Python 3.4 -Python 3.5, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24843 ___ ___

Re: pyjs - a compiler from Python to JavaScript

2015-08-11 Thread Fabio Zadrozny
Hi Uri, No, I'm not related to it. -- I'm the PyDev/Eclipse maintainer... that already takes a lot of my time ;) It's license is BSD (so, no need to pay). As it's just a way to convert from a Python-like syntax to JavaScript syntax you can even switch to plain JavaScript later on if you want --

Re: pyjs - a compiler from Python to JavaScript

2015-08-11 Thread Uri Even-Chen
Thanks Fabio, it's very interesting. Are you related to Pyjeon Software? Do we have to pay to use RapydScript? Is it ready for production? *Uri Even-Chen* [image: photo] Phone: +972-54-3995700 Email: u...@speedy.net Website: http://www.speedysoftware.com/uri/en/

[issue21167] float('nan') returns 0.0 on Python compiled with icc

2015-08-11 Thread Mark Dickinson
Mark Dickinson added the comment: Looks fine to me. IIRC, we moved the PyFloat_FromString implementation away from using Py_NAN in Python 3 for exactly this reason. On this point, though: An aggressively optimizing compiler could treat 0 * x = 0 no matter what x is. Wouldn't such a

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2015-08-11 Thread William Scullin
William Scullin added the comment: This would likely improve life for folks with cross-compile toolchains. -- nosy: +wscullin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23968 ___

Re: pyjs - a compiler from Python to JavaScript

2015-08-11 Thread Uri Even-Chen
Thanks Fabio, we'll check RapydScript and we might use it for Speedy Mail Software as well! I will check with the other developers (which are on the speedy-mail-software list). In the past I had Speedy Mail online from 2000 to 2005 and it was based on a Perl script (Perl was popular in 2000). But

[issue9232] Allow trailing comma in any function argument list.

2015-08-11 Thread Robert Collins
Robert Collins added the comment: The patch had some conflicts in the reference docs, I think I resolved it correctly: if someone wanted to cross check my work that would be great. However I was feeling (perhaps wrongly :)) confident so I have committed it as-is. -- resolution: -

[issue9232] Allow trailing comma in any function argument list.

2015-08-11 Thread Adam Bartoš
Adam Bartoš added the comment: Do we want to allow a trailing comma after *args or **kwargs in a function definition? Unlike in a call, **kwargs is always the last thing in the list and nothing can be added after that. Just asking. -- ___ Python

[issue24845] IDLE functional/integration testing

2015-08-11 Thread Mark Roseman
Mark Roseman added the comment: I've attached functionaltests.patch which provides a starting point, using Tk introspection and event generation to exercise the running application. The heart of it is the (very much in progress) TkTestCase class which provides a bunch of Tkinter-specific

[issue9232] Allow trailing comma in any function argument list.

2015-08-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 419ceb531bab by Robert Collins in branch 'default': Issue #9232: Support trailing commas in function declarations. https://hg.python.org/cpython/rev/419ceb531bab -- nosy: +python-dev ___ Python tracker

[issue24845] IDLE functional/integration testing

2015-08-11 Thread Mark Roseman
New submission from Mark Roseman: This is a placeholder issue for adding automated functional/integration tests to complement the existing unit tests. -- messages: 248428 nosy: kbk, markroseman, roger.serwy, terry.reedy priority: normal severity: normal status: open title: IDLE

[issue24845] IDLE functional/integration testing

2015-08-11 Thread Mark Roseman
Changes by Mark Roseman m...@markroseman.com: -- components: +IDLE keywords: +patch Added file: http://bugs.python.org/file40164/functionaltests.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24845

[issue16296] Patch to fix building on Win32/64 under VS 2010

2015-08-11 Thread Mark Lawrence
Mark Lawrence added the comment: I think this can now be closed as out of date. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16296 ___ ___

Re: AttributeError

2015-08-11 Thread leo kirotawa
assign using () creates tuple not a list. Tuples have not .sort() method. correct would be: ncount = [key,val] On Tue, Aug 11, 2015 at 9:01 PM, Ltc Hotspot ltc.hots...@gmail.com wrote: Hi Everyone, What is the list equivalent to line 12: ncount.sort(reverse=True) count = dict() fname =

Re: AttributeError

2015-08-11 Thread MRAB
On 2015-08-12 01:01, Ltc Hotspot wrote: Hi Everyone, What is the list equivalent to line 12: ncount.sort(reverse=True) count = dict() fname = raw_input(Enter file name: )# handle = open (fname, 'r')# for line in handle: if line.startswith(From ): address = line.split()[5]

Re: AttributeError

2015-08-11 Thread Chris Angelico
On Wed, Aug 12, 2015 at 10:43 AM, Ltc Hotspot ltc.hots...@gmail.com wrote: Python can pull the hour from the 'From ' line by finding the time and then splitting the string a second time using a colon, i.e., From stephen.marqu...@uct.ac.za Sat Jan 5 09:14:16 2008 Finally, accumulated the

Re: AttributeError

2015-08-11 Thread Ltc Hotspot
Message heard loud and clear: There are no error messages, the output is the issue. Question: What sorted function should I write to produce the desired output, below: Desired output: 04 3 06 1 07 1 09 2 10 3 11 6 14 1 15 2 16 4 17 2 18 1 19 1 Latest revised code: count = dict() fname =

AttributeError

2015-08-11 Thread Ltc Hotspot
Hi Everyone, What is the list equivalent to line 12: ncount.sort(reverse=True) count = dict() fname = raw_input(Enter file name: )# handle = open (fname, 'r')# for line in handle: if line.startswith(From ): address = line.split()[5] line = line.rstrip()

[issue24847] Can't import tkinter in Python 3.5.0rc1

2015-08-11 Thread Steve Dower
Steve Dower added the comment: Zach has the best chance of being able to review, if only because he can probably build the installer. I've added all the Windows experts just in case. There's quite a bit of MSBuild magic involved here though - I have trouble getting good reviews of this kind

Re: AttributeError

2015-08-11 Thread Mark Lawrence
On 12/08/2015 01:49, Chris Angelico wrote: On Wed, Aug 12, 2015 at 10:43 AM, Ltc Hotspot ltc.hots...@gmail.com wrote: Python can pull the hour from the 'From ' line by finding the time and then splitting the string a second time using a colon, i.e., From stephen.marqu...@uct.ac.za Sat Jan 5

Re: AttributeError

2015-08-11 Thread Ltc Hotspot
Chris, Check the code and the visualize execution of the code, available at http://tinyurl.com/p8tgd5h message reads: NameError: name 'collections' is not defined Regards, Hal On Tue, Aug 11, 2015 at 5:49 PM, Chris Angelico ros...@gmail.com wrote: On Wed, Aug 12, 2015 at 10:43 AM, Ltc

Re: AttributeError

2015-08-11 Thread Ltc Hotspot
The Assignment: I'm trying to write Python code to read through a data file and figure out the distribution by hour of the dat for each message in the data file. Python can pull the hour from the 'From ' line by finding the time and then splitting the string a second time using a colon, i.e.,

Re: AttributeError

2015-08-11 Thread MRAB
On 2015-08-12 01:43, Ltc Hotspot wrote: The Assignment: I'm trying to write Python code to read through a data file and figure out the distribution by hour of the dat for each message in the data file. Python can pull the hour from the 'From ' line by finding the time and then splitting

[issue22699] cross-compilation of Python3.4

2015-08-11 Thread William Scullin
William Scullin added the comment: I thought this was originally a help request and was going to re-direct this. Cross-compile with 3.4.3 and later seems broken. Procedure followed: wget https://www.python.org/ftp/python/3.5.0/Python-3.5.0rc1.tgz tar -xf Python-3.5.0rc1.tgz mkdir

[issue24840] implement bool conversion for enums to prevent odd edge case

2015-08-11 Thread Ethan Furman
Ethan Furman added the comment: Thanks for finding that, Mike. I'll review and merge in the next few days. -- assignee: - ethan.furman stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24840

[issue24847] Can't import tkinter in Python 3.5.0rc1

2015-08-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3cb97ffd9ddf by Steve Dower in branch '3.5': Issue #24847: Fixes tcltk installer layout of VC runtime DLL https://hg.python.org/cpython/rev/3cb97ffd9ddf New changeset 13ceedb92923 by Steve Dower in branch 'default': Issue #24847: Fixes tcltk

[issue24847] Can't import tkinter in Python 3.5.0rc1

2015-08-11 Thread Steve Dower
Steve Dower added the comment: Pull request for 3.5.0 is at https://bitbucket.org/larry/cpython350/pull-requests/3/issue-24847-fixes-tcltk-installer-layout/diff. When merged, this can change back to normal priority for the rest of the fix. Long term (probably 3.5.1, possibly 3.5.0rc2 if I can

Re: AttributeError

2015-08-11 Thread Chris Angelico
On Wed, Aug 12, 2015 at 1:05 PM, Ltc Hotspot ltc.hots...@gmail.com wrote: Check the code and the visualize execution of the code, available at http://tinyurl.com/p8tgd5h message reads: NameError: name 'collections' is not defined I've no idea why you made this Frankenstein monster out of

[issue16296] Patch to fix building on Win32/64 under VS 2010

2015-08-11 Thread Steve Dower
Steve Dower added the comment: It doesn't apply to 3.5 or later, so it's up to Martin whether he wants to apply it for 3.4. (I suspect not, but I'm not about to preempt his call.) -- versions: -Python 3.5 ___ Python tracker rep...@bugs.python.org

[issue24846] Add tests for ``from ... import ...` code

2015-08-11 Thread Brett Cannon
New submission from Brett Cannon: issue24492 showed that we need some more tests for ceval regarding ``from ... import ...`` code. -- components: Interpreter Core messages: 248435 nosy: brett.cannon priority: normal severity: normal stage: test needed status: open title: Add tests for

[issue24492] using custom objects as modules: AttributeErrors new in 3.5

2015-08-11 Thread Brett Cannon
Brett Cannon added the comment: Created https://bitbucket.org/larry/cpython350/pull-requests/2/issue-24492-make-sure-that-from-import/diff without the PyUnicode_FromFormat() change as I realized that was conflating two changes in one patch and it wasn't even being tested (verified all tests

[issue24847] Can't import tkinter in Python 3.5.0rc1

2015-08-11 Thread Steve Dower
Steve Dower added the comment: Yep, this is my fix for the same issue pre-RC1 not quite working out (I'm guessing some difference between my dev box and my build box). If you go into your DLLs directory there's an extra subdirectory (Microsoft.VC140.CRT or similar) with a single DLL in it.

[issue16041] poplib: unlimited readline() from connection

2015-08-11 Thread Stephen Coulson
Stephen Coulson added the comment: Broke for me today. Hacked the _MAXLINE to get around it. I don't see any size limit on multi-line in rfc. Only requirement is dot-stuffing. I think this fix might need a rethink. -- nosy: +scoulson ___ Python

[issue24847] Can't import tkinter in Python 3.5.0rc1

2015-08-11 Thread Matthew Barnett
Matthew Barnett added the comment: Yes, I can confirm that that works for me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24847 ___ ___

[issue24847] Can't import tkinter in Python 3.5.0rc1

2015-08-11 Thread Mark Lawrence
Mark Lawrence added the comment: Works fine for me, also on Windows 10 Home 64 bit. c:\Python35python.exe Python 3.5.0rc1 (v3.5.0rc1:1a58b1227501, Aug 10 2015, 05:18:45) [MSC v.1900 64 bit (AMD64)] on win32 Type help, copyright, credits or license for more information. import tkinter

[issue24847] Can't import tkinter in Python 3.5.0rc1

2015-08-11 Thread Steve Dower
Steve Dower added the comment: Mark, IIRC you've got VS 2015? Anyone with VS 2015 installed (or the full CRT redistributable) is unaffected because the required file is already in their system path - this includes my build machine, which is why all my tkinter tests passed before pushing the

Re: AttributeError

2015-08-11 Thread Mark Lawrence
On 12/08/2015 04:05, Ltc Hotspot wrote: Chris, Check the code and the visualize execution of the code, available at http://tinyurl.com/p8tgd5h message reads: NameError: name 'collections' is not defined Which is why we kept telling you over on the tutor mailing list to show us your