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
> punctuator_regexes.sor
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
>
> https://github.com/
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 it to the official
Python bug
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 process:
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 abo
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
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 make loan
payments periodicall
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 soon
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
what
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
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 much?
You/We should thank $
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
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 c
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. Nobody is "correct" here. There
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 that it doesn't matter if so
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 \
>> x
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
l
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 preference.
>
>I will take that as
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 \
>
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, not before it. http://pep8.
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~
--
https://mail.pyt
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 i
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 obvious that there is more t
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 de
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
>> wrote:
>>> >> On Fri, Mar 4, 2016 at 8:38 A
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
functio
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:
>> >> On Fri, Mar 4, 2016 at 8:38 AM, MRAB
> wrote:
>> >>> Is it
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()
##root1.geomet
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 splitting a condition s
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 comp
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 condition such as
> >> >> thi
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
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
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 10:
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
> st
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 module in the Python stand
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 Science.
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
generat
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, when splitting a condition such as
this,
people te
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 mass is the rest mass plus the
>> mass associat
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.
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 library. You see, this is a
P
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 condition such as
>>> >> this,
>>> >> people tend t
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:
> >>> Is it even possible to zip a link?
> >>>
> >>> A quick search came up
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 Mar 2016 13:35:12 +1100, Chris Angelico wrote:
> 1
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 each line.
>> >>
>> >>
>
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
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 state
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 state
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."
https://en.wikipedia.org/w
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) patch
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 a
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 that quickly on any modern
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 "D:\Patch\ctyp
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 up with this:
>>>
>>> Are hard links possible within a zip archive?
>>>
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 class.
> # It's a little f
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. Go
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 "D:\Patch\ctypesgen-master\ctypesgencore\parser\lex.py
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:
>
> https://doeidoei.word
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
distribution of Python-base
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 energy" of the particles.
>
> [...]
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
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 preferred place to break
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 mass (+
>> LOTTS of e
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: The
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 an
66 matches
Mail list logo