Re: Any comment on using ctypesgen package?

2016-03-04 Thread Chris Angelico
On Sat, Mar 5, 2016 at 4:35 PM, wrote: > After taking Chris's suggestion, the installation is pushing forward a little > and then bump into another error: > -- > File "D:\Patch\ctypesgen-master\ctypesgencore\parser\pplexer.py", line 123, in > punctuator_regex >

Re: Any comment on using ctypesgen package?

2016-03-04 Thread jfong
Peter Otten 2016/3/4 UTC+8 8:36:02PM worte: > """ > The 2to3 route is not likely to apply since ctypesgen actually writes Python > code and the 2to3 utility will probably miss a good portion of that logic. > """ > > But as someone else seems to have done the work already > >

Re: Continuing indentation

2016-03-04 Thread Ben Finney
srinivas devaki writes: > thought i should add this here so that people will get to this after > someone decides a standard way to do this :P No, you've wasted that effort. If you want a request to be acted on by those who maintain the official Python source, submit

Re: Continuing indentation

2016-03-04 Thread srinivas devaki
thought i should add this here so that people will get to this after someone decides a standard way to do this :P look for second if condition in the source code of subprocess.Popen(*args, **kwargs).communicate def communicate(self, input=None, timeout=None): """Interact with

Re: creating zipfile with symlinks

2016-03-04 Thread Michael Torrie
On 03/04/2016 05:18 AM, Larry Martell wrote: > Unfortunately very slow - around 8 minutes to zip a 7GB dir using the > command line zip vs. 13 seconds with the python zipfile module. And likely Python's zipfile is just giving up and storing the file without compression. What does unzip -v say

Re: Lookahead while doing: for line in fh.readlines():

2016-03-04 Thread Veek. M
MRAB wrote: > On 2016-03-04 13:04, Veek. M wrote: >> Terry Reedy wrote: >> >>> On 2/27/2016 4:39 AM, Veek. M wrote: I want to do something like: #!/usr/bin/env python3 fh = open('/etc/motd') for line in fh.readlines(): print(fh.tell()) why doesn't

Re: [Still off-top] Physics [was Requests author discusses MentalHealthError exception]

2016-03-04 Thread Chris Angelico
On Sat, Mar 5, 2016 at 1:51 PM, Gregory Ewing wrote: > Conservation of energy would be one reason. If you > put two particles together and got more energy out than > went in, where did the extra energy come from? You borrowed it from the bank, of course. You have to

Re: [Still off-top] Physics [was Requests author discusses MentalHealthError exception]

2016-03-04 Thread Gregory Ewing
Oscar Benjamin wrote: If we want to be precise then it's pointless to even refer to the "rest mass" of something that is never at rest. Which just shows that the term "rest mass" is a bit silly. It came from some confused thinking very early in the development of relativity. The physicists

Re: Continuing indentation

2016-03-04 Thread Tim Chase
On 2016-03-04 17:17, sohcahto...@gmail.com wrote: > x \ > = \ > 5 > if \ > y \ > == \ > z: > print \ > 'this is terrible' > print \ > 'but still not incorrect > > It would be terrible, still but not incorrect. And has the sociopathic benefit that the diffs make it quite clear

Re: Continuing indentation

2016-03-04 Thread Ben Finney
sohcahto...@gmail.com writes: > Arguing whether or not a style guide is "incorrect" is as silly as > arguing over whether lima beans are delicious. I think they're > disgusting, but you can't make a statement of fact about the topic. Yet there *are* many relevant facts that bear on the choice of

[issue25907] Documentation i18n: Added trans tags in sphinx templates

2016-03-04 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: -> resolved ___ Python tracker ___

Re: creating zipfile with symlinks

2016-03-04 Thread Wildman via Python-list
On Fri, 04 Mar 2016 13:31:52 -0700, Ian Kelly wrote: > On Fri, Mar 4, 2016 at 11:50 AM, crankypuss wrote: >> I don't know about that, but you've certainly shown that what I was told >> about this group being helpful and non-combative is bullshit. > > Look in a mirror

Re: Continuing indentation

2016-03-04 Thread Ethan Furman
On 03/04/2016 05:17 PM, sohcahto...@gmail.com wrote: I just can't understand why so many people get their panties all up in a bunch over how other people choose to format their code. s/panties/undies/g ;) -- ~Ethan~ -- https://mail.python.org/mailman/listinfo/python-list

Re: Continuing indentation

2016-03-04 Thread Erik
Hi Ben, On 05/03/16 01:05, Ben Finney wrote: Certainly you are allowed. You should not expect that suggestion to be compelling unless it is accompanied by *factual*, rather than emotive, argument. I thought I had done that. I pointed out that LHS (whitespace) is significant when it comes to

Re: Continuing indentation

2016-03-04 Thread sohcahtoa82
On Friday, March 4, 2016 at 4:43:57 PM UTC-8, Simon Ward wrote: > On 4 March 2016 23:31:43 GMT+00:00, Erik wrote: > >On 04/03/16 21:14, sohcahto...@gmail.com wrote: > >> You guys are spending way too much time fighting over something that > >is clearly subjective.

Re: Continuing indentation

2016-03-04 Thread Ben Finney
Erik writes: > On 05/03/16 00:23, Simon Ward wrote: > > Style guides are always going to be considered incorrect by some > > people, but they should aim more for consistency (the hobgoblin that > > may be), which is what makes code easier to grok. > > So you're saying

Re: Continuing indentation

2016-03-04 Thread Ethan Furman
On 03/04/2016 04:30 PM, Ben Finney wrote:> sohcahto...@gmail.com writes: >> On Friday, March 4, 2016 at 3:41:29 PM UTC-8, Ben Finney wrote: >>> We can't put the binary operator in multiple places, >> >> >> >> Who are you, the binary operator police? Watch me! >> >> if x == y and \ >>

Re: Continuing indentation

2016-03-04 Thread Erik
On 05/03/16 00:23, Simon Ward wrote: Style guides are always going to be considered incorrect by some people, but they should aim more for consistency (the hobgoblin that may be), which is what makes code easier to grok. So you're saying that it doesn't matter if something is good or bad, as

[issue25702] Link Time Optimizations support for GCC and CLANG

2016-03-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: Piping up from the peanut gallery here: If your use case is not doing release builds for production use, i.e. "casual use", don't bother with either PGO or LTO. It won't matter. Your final build that you Q ship should absolutely use those. (nobody's going

Re: Continuing indentation

2016-03-04 Thread Simon Ward
On 4 March 2016 23:31:43 GMT+00:00, Erik wrote: >On 04/03/16 21:14, sohcahto...@gmail.com wrote: >> You guys are spending way too much time fighting over something that >is clearly subjective. Nobody is "correct" here. There's no right and >wrong, just simple

[issue26484] Broken table in /2.7/library/sets.html#set-objects

2016-03-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: thanks for reporting this! -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue26484] Broken table in /2.7/library/sets.html#set-objects

2016-03-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset f7a2f81a190c by Gregory P. Smith in branch '2.7': issue26484 - fix the broken table in the doc about len(). https://hg.python.org/cpython/rev/f7a2f81a190c -- nosy: +python-dev ___ Python tracker

Re: Continuing indentation

2016-03-04 Thread Ben Finney
sohcahto...@gmail.com writes: > On Friday, March 4, 2016 at 3:41:29 PM UTC-8, Ben Finney wrote: > > We can't put the binary operator in multiple places, > > > > Who are you, the binary operator police? Watch me! > > if x == y and \ > x == z and \ > a > b \ > or b > c \ >

[issue25702] Link Time Optimizations support for GCC and CLANG

2016-03-04 Thread INADA Naoki
INADA Naoki added the comment: > For sure you are not the only user that has active workloads on the physical > machine while you do benchmarks :) I think largest machine type I chosen (32core) can avoid sharing physical machine with other users. > On the other hand, the path you are going

[issue25907] Documentation i18n: Added trans tags in sphinx templates

2016-03-04 Thread Julien
Changes by Julien : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue26485] Missing newline, raising a warning, in /Doc/license.rst

2016-03-04 Thread Julien
New submission from Julien: o/ While fixing sphinx-doc warnings, I found this missing newline. Yet the documentation is still correctly rendered. -- assignee: docs@python components: Documentation files: missing_newline_in_licence.rst messages: 261204 nosy: docs@python, sizeof

[issue26446] Mention in the devguide that core dev stuff falls under the PSF CoC

2016-03-04 Thread Brett Cannon
Brett Cannon added the comment: The PSF board passed a resolution in January 2014 that all web-related stuff falls under the CoC: https://www.python.org/psf/records/board/minutes/2014-01-06/#management-of-the-psfs-web-properties. I'm still pushing to get the CoC mentioned in the devguide but

Re: Continuing indentation

2016-03-04 Thread sohcahtoa82
On Friday, March 4, 2016 at 3:41:29 PM UTC-8, Ben Finney wrote: > alister writes: > > > On Fri, 04 Mar 2016 10:23:37 +0900, INADA Naoki wrote: > > > > > Because PEP8 says: > > > > > >> The preferred place to break around a binary operator is after the > > >> operator,

[issue26484] Broken table in /2.7/library/sets.html#set-objects

2016-03-04 Thread Julien
New submission from Julien: Hi, Since: https://github.com/python/cpython/commit/5fdcdab5794d18adc4c66abdce8639440433ed24#diff-c191394dee92fb4800d40d9a8ba431ee the table is broken (...Doc/library/sets.rst:76: ERROR: Malformed table.

Re: Continuing indentation

2016-03-04 Thread Ethan Furman
On 03/04/2016 03:45 PM, Mark Lawrence wrote: > PEP8 is not a standard that must be adhered to under all > cicumstances, it is only a style guide [...] Not only that, it's a style guide for code /in the stdlib/. Make your own style guide for your own projects. ;) -- ~Ethan~ --

Re: Continuing indentation

2016-03-04 Thread Mark Lawrence
On 04/03/2016 23:31, Erik wrote: On 04/03/16 21:14, sohcahto...@gmail.com wrote: You guys are spending way too much time fighting over something that is clearly subjective. Nobody is "correct" here. There's no right and wrong, just simple preference. I will take that as a vote +1 that PEP8

Re: Continuing indentation

2016-03-04 Thread Ben Finney
alister writes: > On Fri, 04 Mar 2016 10:23:37 +0900, INADA Naoki wrote: > > > Because PEP8 says: > > > >> The preferred place to break around a binary operator is after the > >> operator, not before it. http://pep8.org/#maximum-line-length > > and that is to make it

Re: Continuing indentation

2016-03-04 Thread Erik
On 04/03/16 21:14, sohcahto...@gmail.com wrote: You guys are spending way too much time fighting over something that is clearly subjective. Nobody is "correct" here. There's no right and wrong, just simple preference. I will take that as a vote +1 that PEP8 is wrong (*). ;) E. (*) PEP8

Re: creating zipfile with symlinks

2016-03-04 Thread Peter Otten
Larry Martell wrote: > On Fri, Mar 4, 2016 at 9:22 AM, Gene Heskett wrote: >> On Friday 04 March 2016 07:18:57 Larry Martell wrote: >> >>> On Thu, Mar 3, 2016 at 10:32 PM, Larry Martell >> wrote: >>> > On Thu, Mar 3, 2016 at 4:58 PM, Chris Angelico

[issue24909] Windows: subprocess.Popen: race condition for leaking inheritable handles

2016-03-04 Thread Jack O'Connor
Changes by Jack O'Connor : -- nosy: +oconnor663 ___ Python tracker ___ ___

Re: exit from Tkinter mainloop Python 2.7

2016-03-04 Thread Peter Otten
kevind0...@gmail.com wrote: > > > Christian & Others: > > Thanks for your attention to this matter. > My code now look like this: > > from Tkinter import * > > > def butContinue(): > dbUser = entryName.get() Here you set the local variable dbUser (every name you rebind inside a

Re: creating zipfile with symlinks

2016-03-04 Thread Larry Martell
On Fri, Mar 4, 2016 at 9:22 AM, Gene Heskett wrote: > On Friday 04 March 2016 07:18:57 Larry Martell wrote: > >> On Thu, Mar 3, 2016 at 10:32 PM, Larry Martell > wrote: >> > On Thu, Mar 3, 2016 at 4:58 PM, Chris Angelico > wrote: >>

[issue25973] Segmentation fault with nonlocal and two underscores

2016-03-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Only security fixes are accepted for 3.4. -- ___ Python tracker ___ ___

Re: exit from Tkinter mainloop Python 2.7

2016-03-04 Thread kevind0718
Christian & Others: Thanks for your attention to this matter. My code now look like this: from Tkinter import * def butContinue(): dbUser = entryName.get() pWord = entryPWord.get() print dbUser print pWord root1.quit() dbUser = "" pWord = "" root1 = Tk()

[issue25973] Segmentation fault with nonlocal and two underscores

2016-03-04 Thread Antti Haapala
Antti Haapala added the comment: So no fix for 3.4 for an obvious SIGSEGV? % python3 Python 3.4.3 (default, Mar 26 2015, 22:03:40) [GCC 4.9.2] on linux Type "help", "copyright", "credits" or "license" for more information. >>> class A: ... def f(self): ...

Re: Continuing indentation

2016-03-04 Thread Mark Lawrence
On 04/03/2016 21:14, sohcahto...@gmail.com wrote: On Friday, March 4, 2016 at 6:03:48 AM UTC-8, alister wrote: On Fri, 04 Mar 2016 10:12:58 +, cl wrote: Steven D'Aprano wrote: On Fri, 4 Mar 2016 12:23 pm, INADA Naoki wrote: Indeed. I don't understand why, when

Re: Help

2016-03-04 Thread Mark Lawrence
On 04/03/2016 21:06, Tom P wrote: On 02/29/2016 01:53 PM, tomwilliamson...@gmail.com wrote: Thanks. If a word appears more than once how would I bring back both locations? for i, str in enumerate(l): . . . . When replying would everybody please quote some context. All of the above is

Re: Continuing indentation

2016-03-04 Thread sohcahtoa82
On Friday, March 4, 2016 at 6:03:48 AM UTC-8, alister wrote: > On Fri, 04 Mar 2016 10:12:58 +, cl wrote: > > > Steven D'Aprano wrote: > >> On Fri, 4 Mar 2016 12:23 pm, INADA Naoki wrote: > >> > >> > >> >> > >> >> Indeed. I don't understand why, when splitting a

Re: Help

2016-03-04 Thread Tom P
On 02/29/2016 01:53 PM, tomwilliamson...@gmail.com wrote: Thanks. If a word appears more than once how would I bring back both locations? for i, str in enumerate(l): . . . . -- https://mail.python.org/mailman/listinfo/python-list

[issue26483] docs unclear on difference between str.isdigit() and str.isdecimal()

2016-03-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes. For details you need to read The Unicode Standard. And every decimal character is accepted by the int() constructor, but non-decimal digits are not. >>> for d in decimals: x = int(d) ... >>> for d in set(digits) - set(decimals): ... try: ...

[issue26483] docs unclear on difference between str.isdigit() and str.isdecimal()

2016-03-04 Thread Ethan Furman
Ethan Furman added the comment: I like those code snippets! Thanks, Serhiy! Just to make sure I have understood correctly: every decimal char is also a digit char, but some digit chars are not decimal chars. -- ___ Python tracker

Re: creating zipfile with symlinks

2016-03-04 Thread Ian Kelly
On Fri, Mar 4, 2016 at 11:50 AM, crankypuss wrote: > I don't know about that, but you've certainly shown that what I was told > about this group being helpful and non-combative is bullshit. Look in a mirror much? -- https://mail.python.org/mailman/listinfo/python-list

[issue26483] docs unclear on difference between str.isdigit() and str.isdecimal()

2016-03-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: >>> chars = ''.join(map(chr, range(sys.maxunicode+1))) >>> digits = ''.join(filter(str.isdigit, chars)) >>> digits

[issue26483] docs unclear on difference between str.isdigit() and str.isdecimal()

2016-03-04 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> docs@python components: +Documentation, Unicode nosy: +docs@python, ezio.melotti, haypo stage: -> needs patch type: -> enhancement versions: +Python 3.6 ___ Python tracker

[issue26483] docs unclear on difference between str.isdigit() and str.isdecimal()

2016-03-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- title: docs unclear on difference between isdigt() and isdecimal() -> docs unclear on difference between str.isdigit() and str.isdecimal() ___ Python tracker

[issue26459] Windows build instructions are very inaccurate

2016-03-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: I built 2.7.11 on Win10 last Jan 16 with MCS v.1500 32 bit. I believe that is VS2008. Besides TortoiseHG, which I think is great, I downloaded SlikSVN minimal client only. I somewhat arbitrarily picked it from some svn list.

[issue26483] docs unclear on difference between isdigt() and isdecimal()

2016-03-04 Thread Ethan Furman
New submission from Ethan Furman: The docs use different explanations for what constitutes a decimal verses a digit character; consequently I can't tell if they are the same or different, and if different what the differences are. ---

Re: [Still off-top] Physics [was Requests author discusses MentalHealthError exception]

2016-03-04 Thread André Roberge
This discussion about energy and masses of particles has nothing to do with Python, and I am hoping that it will be dropped. That being said, I feel compelled to correct what are completely wrong statements. On Friday, 4 March 2016 13:36:11 UTC-4, Oscar Benjamin wrote: > On 4 March 2016 at

Re: ANN: Wing IDE 5.1.10 released

2016-03-04 Thread Mario R. Osorio
On Friday, February 26, 2016 at 9:57:21 AM UTC-5, Wingware wrote: > Hi, > > Wingware has released version 5.1.10 of Wing IDE, our cross-platform > integrated development environment for the Python programming language. > > Wing IDE features a professional code editor with vi, emacs, visual >

Re: creating zipfile with symlinks

2016-03-04 Thread crankypuss
Grant Edwards wrote: > On 2016-03-04, crankypuss wrote: >> Larry Martell wrote: > [...] >>> Which I don't love as a solution. Anyone know a cleaner way to get >>> zipfile to zip the links? >> >> I don't even know what "zipfile" is, is that a Windows command? > > It's a

Re: The Real-Time Use of Python in Data Science World!

2016-03-04 Thread Mario R. Osorio
On Friday, February 26, 2016 at 2:36:26 PM UTC-5, Anita Goyal wrote: > This course will help you to expertise the usage of Python in Data Science > world. > > Carter your Python Knowledge so that it can be utilized to get the Insights > of Data using Methodologies and Techniques of Data

[issue26482] Restore pickling recursive dequeues

2016-03-04 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Pickling recursive dequeues was added in issue1062279. But then it was reverted in 73f49656420b (unknown issue number). Proposed patch restores pickling recursive dequeues. -- assignee: rhettinger components: Library (Lib) files:

Re: Lookahead while doing: for line in fh.readlines():

2016-03-04 Thread MRAB
On 2016-03-04 13:04, Veek. M wrote: Terry Reedy wrote: On 2/27/2016 4:39 AM, Veek. M wrote: I want to do something like: #!/usr/bin/env python3 fh = open('/etc/motd') for line in fh.readlines(): print(fh.tell()) why doesn't this work as expected.. fh.readlines() should return a

[issue26478] dict views don't implement subtraction correctly

2016-03-04 Thread wim glenn
wim glenn added the comment: Well that was patched quickly, impressive turnaround on this -- nosy: +wim.glenn ___ Python tracker ___

Re: Continuing indentation

2016-03-04 Thread Ethan Furman
On 03/04/2016 07:25 AM, Ian Kelly wrote: On Fri, Mar 4, 2016 at 7:03 AM, alister wrote: On Fri, 04 Mar 2016 10:12:58 +, cl wrote: Steven D'Aprano wrote: On Fri, 4 Mar 2016 12:23 pm, INADA Naoki wrote: Indeed. I don't understand why,

Re: [Still off-top] Physics [was Requests author discusses MentalHealthError exception]

2016-03-04 Thread Oscar Benjamin
On 4 March 2016 at 10:38, Marko Rauhamaa wrote: > Oscar Benjamin : > >> The mass is carried by the new particles. The new particles may have a >> total *rest mass* which differs from the total rest mass of the >> previous particles. However the total

[issue26481] unittest discovery process not working without .py source files

2016-03-04 Thread Stefan Seefeld
New submission from Stefan Seefeld: The unittest test discovery right now only looks into sub-packages if they contain a `__init__.py` file. That's an unnecessary requirement, as packages are also importable if only `__init__.pyc` is present. -- components: Library (Lib) messages:

[issue26480] add a flag that will not give the set a sys.stdin

2016-03-04 Thread Brett Cannon
Changes by Brett Cannon : -- type: behavior -> enhancement ___ Python tracker ___ ___

[issue26480] add a flag that will not give the set a sys.stdin

2016-03-04 Thread yuriy_levchenko
Changes by yuriy_levchenko : -- type: -> behavior ___ Python tracker ___ ___

[issue26480] add a flag that will not give the set a sys.stdin

2016-03-04 Thread yuriy_levchenko
New submission from yuriy_levchenko: i have Fatal Error "Py_Initialize: can't initialize sys standard streams" because fail to create fd = fileno(stdin); std = create_stdio(iomod, fd, 0, "", encoding, errors); I do not need to create this input|output if i comment this code, and setup

Re: looking into python...

2016-03-04 Thread Terry Reedy
On 3/3/2016 8:39 AM, Steven D'Aprano wrote: I don't think there has ever been a version of Python that ran on DOS :-) Yep. That is what I started with (1.3). It ran fine with 2 megabytes of memory and a 10 or 20 MB disk. No unicode module, database, or codecs. Perhaps no tcl/tk/tkinter.

[issue25702] Link Time Optimizations support for GCC and CLANG

2016-03-04 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: You are doing measurements on a virtual machine... For sure you are not the only user that has active workloads on the physical machine while you do benchmarks :) On the other hand, the path you are going with just LTO is nice for experiments, but for

Re: creating zipfile with symlinks

2016-03-04 Thread Grant Edwards
On 2016-03-04, crankypuss wrote: > Larry Martell wrote: [...] >> Which I don't love as a solution. Anyone know a cleaner way to get >> zipfile to zip the links? > > I don't even know what "zipfile" is, is that a Windows command? It's a module in the Python standard

[issue25702] Link Time Optimizations support for GCC and CLANG

2016-03-04 Thread INADA Naoki
INADA Naoki added the comment: The machine is Google Compute Engine n1-highcpu-32 (Intel Ivy Bridge) Linux bench 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) x86_64 GNU/Linux cpuinfo: processor : 31 vendor_id : GenuineIntel cpu family : 6 model :

Re: Continuing indentation

2016-03-04 Thread Ian Kelly
On Fri, Mar 4, 2016 at 7:03 AM, alister wrote: > On Fri, 04 Mar 2016 10:12:58 +, cl wrote: > >> Steven D'Aprano wrote: >>> On Fri, 4 Mar 2016 12:23 pm, INADA Naoki wrote: >>> >>> >>> >> >>> >> Indeed. I don't understand why, when splitting a

[issue17720] pickle.py's load_appends should call append() on objects other than lists

2016-03-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why this patch was not applied to 2.7? What is the spec of APPENDS? -- ___ Python tracker ___

Re: creating zipfile with symlinks

2016-03-04 Thread Gene Heskett
On Friday 04 March 2016 07:18:57 Larry Martell wrote: > On Thu, Mar 3, 2016 at 10:32 PM, Larry Martell wrote: > > On Thu, Mar 3, 2016 at 4:58 PM, Chris Angelico wrote: > >> On Fri, Mar 4, 2016 at 8:38 AM, MRAB wrote: >

Re: [Off-topic] Requests author discusses MentalHealthError exception

2016-03-04 Thread alister
On Thu, 03 Mar 2016 18:02:04 -0500, William Ray Wing wrote: >> On Mar 3, 2016, at 3:20 PM, alister wrote: >> >> On Thu, 03 Mar 2016 11:03:55 -0700, Ian Kelly wrote: >> >>> On Thu, Mar 3, 2016 at 10:21 AM, alister >>> wrote: On Thu, 03

Re: Continuing indentation

2016-03-04 Thread alister
On Fri, 04 Mar 2016 10:12:58 +, cl wrote: > Steven D'Aprano wrote: >> On Fri, 4 Mar 2016 12:23 pm, INADA Naoki wrote: >> >> >> >> >> >> Indeed. I don't understand why, when splitting a condition such as >> >> this, >> >> people tend to put the operator at the end of

Re: Continuing indentation

2016-03-04 Thread alister
On Fri, 04 Mar 2016 10:23:37 +0900, INADA Naoki wrote: >> >> Indeed. I don't understand why, when splitting a condition such as >> this, >> people tend to put the operator at the end of each line. >> >> > Because PEP8 says: > >> The preferred place to break around a binary operator is after the

[issue18987] distutils.utils.get_platform() for 32-bit Python on a 64-bit machine

2016-03-04 Thread Michael Felt
Michael Felt added the comment: FYI: build as 64-bit (and shall only build as 64-bit from now I expect) and the output works as: == aixtools.python:aixtools.python.man.en_US:2.7.11.0::I:C:N:man pages0::

[issue26479] Init documentation typo "may be return" > "may NOT be returned"

2016-03-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: The text appears to be correct as it is. What is says is that __init__ must not return any value other than None and that is correct, you will get an exception when you return a value that is not None. >>> class C(): ...def __init__(self): return 42 ...

Re: cx_Oracle + array parameter

2016-03-04 Thread sandrof66
I did your solution. I created a varray like this: TYPE LIST_IDS IS TABLE OF INT INDEX BY BINARY_INTEGER, but when I try to use in a sql statement SELECT appears an oracle error cannot access row in nested table. I use oracle 11g and I read that you can use a varray declare in plsql to sql

Re: cx_Oracle + array parameter

2016-03-04 Thread sandrof66
I did your solution. I created a varray like this: TYPE LIST_IDS IS TABLE OF INT INDEX BY BINARY_INTEGER, but when I try to use in a sql statement SELECT appears an oracle error cannot access row in nested table. I use oracle 11g and I read that you can use a varray declare in plsql to sql

Re: [Still off-top] Physics [was Requests author discusses MentalHealthError exception]

2016-03-04 Thread Dan Sommers
On Fri, 04 Mar 2016 12:38:28 +0200, Marko Rauhamaa wrote: > As for the existence of a negative mass, it is interesting to note > that the (rest) mass of an alpha particle is less than the sum of the > (rest) masses of its constituents. About 1% of the mass is "missing."

[issue26479] Init documentation typo "may be return" > "may NOT be returned"

2016-03-04 Thread Samuel Colvin
New submission from Samuel Colvin: https://docs.python.org/3/reference/datamodel.html#object.__init__ "no non-None value may be returned by __init__();" should read "no non-None value may *not* be returned by __init__();" -- assignee: docs@python components: Documentation messages:

Re: (Initial) Questions about sysconfig.*

2016-03-04 Thread Michael Felt
Thanks for the quick reply. My mailer lost it (rather remembered it originiated as a reply to something else, and stored it there) - :) I would reply between the text below - but, mainly thanks for showing the use of 'inspect' - will be extremely handy as I learn enough to make a (local)

Re: Lookahead while doing: for line in fh.readlines():

2016-03-04 Thread Veek. M
Terry Reedy wrote: > On 2/27/2016 4:39 AM, Veek. M wrote: >> I want to do something like: >> >> #!/usr/bin/env python3 >> >> fh = open('/etc/motd') >> for line in fh.readlines(): >> print(fh.tell()) >> >> why doesn't this work as expected.. fh.readlines() should return a >> generator object

ANN Nanpy 0.9.6 - Use your Arduino board with Python

2016-03-04 Thread Andrea Stagi
Nanpy 0.9.6 is out! Nanpy is a library that use your Arduino as a slave, controlled by a master device where you run your scripts, such as a PC, a Raspberry Pi etc. The main purpose of Nanpy is making programmers' life easier, providing them a powerful library to create prototypes faster and make

Re: creating zipfile with symlinks

2016-03-04 Thread Chris Angelico
On Fri, Mar 4, 2016 at 11:18 PM, Larry Martell wrote: > Unfortunately very slow - around 8 minutes to zip a 7GB dir using the > command line zip vs. 13 seconds with the python zipfile module. 13 seconds? That sounds wrong for 7GB. I doubt you can deflate that much data

Re: Any comment on using ctypesgen package?

2016-03-04 Thread Peter Otten
jf...@ms4.hinet.net wrote: > I try to test this package but with no luck. This module was written for > Python 2.x but mine is 3.4 so I use the 2To3 to "upgrade" it first (it > seems OK). Then I run "python setup.py install" and get the following > error: >... >... >File

Re: creating zipfile with symlinks

2016-03-04 Thread Larry Martell
On Thu, Mar 3, 2016 at 10:32 PM, Larry Martell wrote: > On Thu, Mar 3, 2016 at 4:58 PM, Chris Angelico wrote: >> On Fri, Mar 4, 2016 at 8:38 AM, MRAB wrote: >>> Is it even possible to zip a link? >>> >>> A quick search came

Re: Any comment on using ctypesgen package?

2016-03-04 Thread Chris Angelico
On Fri, Mar 4, 2016 at 10:08 PM, wrote: > Below is the troubled codes in file lex.py: > Note: In original codes (before 2To3 modify), there is "types.ObjectType" > instead of "object". > - > # Available instance types. This is used when lexers are defined by a

Re: creating zipfile with symlinks

2016-03-04 Thread Tim Golden
On 04/03/2016 11:03, crankypuss wrote: > Larry Martell wrote: > >> I have a script that creates zip files of dirs containing symlinks. I >> was surprised to find that the zipfiles have zipped the targets of the >> links as opposed to the links themselves, which is what I wanted and >> expected.

Any comment on using ctypesgen package?

2016-03-04 Thread jfong
I try to test this package but with no luck. This module was written for Python 2.x but mine is 3.4 so I use the 2To3 to "upgrade" it first (it seems OK). Then I run "python setup.py install" and get the following error: ... ... File

Re: creating zipfile with symlinks

2016-03-04 Thread crankypuss
Larry Martell wrote: > I have a script that creates zip files of dirs containing symlinks. I > was surprised to find that the zipfiles have zipped the targets of the > links as opposed to the links themselves, which is what I wanted and > expected. Googling I found this: > >

Re: looking into python...

2016-03-04 Thread crankypuss
Steven D'Aprano wrote: > On Thu, 3 Mar 2016 09:45 pm, crankypuss wrote: > >> Ben Finney wrote: >> >>> crankypuss writes: >>> "Python code can be packaged into stand-alone executable programs for some of the most popular operating systems, allowing the

Re: [Still off-top] Physics [was Requests author discusses MentalHealthError exception]

2016-03-04 Thread Marko Rauhamaa
Oscar Benjamin : > The mass is carried by the new particles. The new particles may have a > total *rest mass* which differs from the total rest mass of the > previous particles. However the total mass is the rest mass plus the > mass associated with the "kinetic

Re: (Initial) Questions about sysconfig.*

2016-03-04 Thread Peter Otten
Michael Felt wrote: > First, a simple one: > > sysconfig.is_python_build() > > Return True if the current Python installation was built from source. > sysconfig.is_python_build() > False > > Now, not earth shattering, but I did build this from source - so can > someone help me with

Re: Continuing indentation

2016-03-04 Thread cl
Steven D'Aprano wrote: > On Fri, 4 Mar 2016 12:23 pm, INADA Naoki wrote: > > >> > >> > >> Indeed. I don't understand why, when splitting a condition such as this, > >> people tend to put the operator at the end of each line. > >> > >> > > Because PEP8 says: > > > >> The

Re: [Still off-top] Physics [was Requests author discusses MentalHealthError exception]

2016-03-04 Thread Oscar Benjamin
On 4 March 2016 at 00:04, Steven D'Aprano wrote: > On Fri, 4 Mar 2016 07:20 am, alister wrote: > >> On Thu, 03 Mar 2016 11:03:55 -0700, Ian Kelly wrote: > >>> Antimatter has positive mass. >> >> Are you sure? >> mix 1 atom of hydrogen + 1 of anti hydrogen & you end up with 0

(Initial) Questions about sysconfig.*

2016-03-04 Thread Michael Felt
First, a simple one: sysconfig.is_python_build() Return True if the current Python installation was built from source. sysconfig.is_python_build() False Now, not earth shattering, but I did build this from source - so can someone help me with understanding why Python says no? FYI:

Confirm: About python Registration

2016-03-04 Thread Jonathan Qin
Dear Manager, (Please forward this to your CEO, because this is urgent. Thanks!) This is Jonathan Qin---the manager of domain name registration and solution center in China. On February 29th, 2016, we received an application from Baiyao Holdings Ltd requested “python” as their internet keyword

[issue26456] import _tkinter + TestForkInThread leaves zombie with stalled thread

2016-03-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: But please add a reference to this issue. -- ___ Python tracker ___ ___