On Fri, 29 Jul 2016 12:23 am, Sivan Greenberg wrote:
> 1. When is the use of functools.partial beneficial? When can it be a
> hindrance? Perhaps it can save on func argument evaluation time when
> creating many invocations for asycn exec?
I'm not sure that partial is intended as an optimization.
On Fri, Jul 29, 2016 at 2:06 PM, Mushirahmed Shaikh wrote:
> Thanks for your reply..
> I dont want to update python2.3 to python2.7.
> I have following scenario..
> I have /mnt/flash/diskroot
> I am using chroot /mnt/flash/diskroot to get into this.
> In /mnt/flash/diskroot python2.3 is installed
On Wednesday, July 27, 2016 at 10:00:47 PM UTC-4, Rick Johnson wrote:
> On Wednesday, July 27, 2016 at 7:15:20 PM UTC-5, MRAB wrote:
> > On 2016-07-28 00:13, huey.y.ji...@gmail.com wrote:
> > > On Wednesday, July 27, 2016 at 4:18:29 PM UTC-4, huey.y...@gmail.com
> > > wrote:
> > >> Hi Folks,
> > >
On Fri, 29 Jul 2016 12:23 am, Sivan Greenberg wrote:
> Hi All,
>
> First apologies for the rather off topic but I grep'd over the existing
> mailing lists and couldn't find one that's suitable, at least judging by
> the titles.
Too many UNRELATED questions! Split them over separate posts!
Resp
In fact, the issue is well defined, "Missing parentheses in call to
'print'", in this case, you have to add the parentheses when you call
'print'.
print("In Python3, you must to add the parentheses")
On 07/28, Cai Gengyang wrote:
How to debug this ?
print "This line will be printed."
Sy
On 28Jul2016 19:28, Gordon Levi wrote:
Arshpreet Singh wrote:
I am writing Imdb scrapper, and getting available list of titles from IMDB
website which provide txt file in very raw format, Here is the one part of
file(http://pastebin.com/fpMgBAjc) as the file provides tags like
Distribution
On Thu, 28 Jul 2016 10:40:28 -0700, Cai Gengyang wrote:
> How to debug this ?
>
print "This line will be printed."
> SyntaxError: Missing parentheses in call to 'print'
You are probably using Python 3, while the syntax is for Python 2.
Use print("This line will be printed.") instead.
--
htt
Thank you Laurent!
- Original message -
From: Laurent Pointal
With __name__ you will have one logger per source file (module), with
corresponding filtering possibilities, and organized hierarchically as
are
packages (logging use . to built its loggers hierarchy).
Without __name__, y
Hi Eryk,
Awesome! Thank you very much for your detailed answer!!
Malcolm
Linux has the O_TMPFILE open() flag [1]. This creates an anonymous file
that gets automatically deleted when the last open file descriptor is
closed. If the file isn't opened O_EXCL, then you can make it permanent
by linki
On Thu, Jul 28, 2016 at 6:40 PM, Chris Angelico wrote:
> On Fri, Jul 29, 2016 at 1:47 AM, Enjoys Math wrote:
>> I've manually set breakpoints and traced this app crash back to this
>> function:
>>
>> def loadLSobjsOfType(self, objType, listJ):
>> if listJ != None:
>> for o
On Thu, Jul 28, 2016, at 11:47, Enjoys Math wrote:
> So what's the proper way to get the return value of an exec call when
> there is one?
Exec calls do not have return values.
If you need to pass an object out of the exec call to the surrounding
context, you can wrap it in an exception and throw
On Fri, Jul 29, 2016 at 6:01 AM, Rob Gaddi
wrote:
> Chris Angelico wrote:
>
>> On Sat, Jul 23, 2016 at 9:13 PM, Marko Rauhamaa wrote:
One less thing to be programmed, one less thing for the user to
remember. Just require pass any time you have an empty block, rather
than try to rem
Chris Angelico wrote:
> On Sat, Jul 23, 2016 at 9:13 PM, Marko Rauhamaa wrote:
>>> One less thing to be programmed, one less thing for the user to
>>> remember. Just require pass any time you have an empty block, rather
>>> than try to remember where it is required and were it is optional.
>>
>>
On 2016-07-28 19:29, Chris Angelico wrote:
On Thu, Jul 28, 2016 at 10:14 PM, Mushirahmed Shaikh wrote:
Dear All,
I am sending email using smtplib.SMTP_SSL method in python2.3.
But it gives the error i.e Attribute error for SMTP_SSL.
Please help me to call SMTP_SSL method in python2.3.
I dont wa
On Fri, Jul 29, 2016 at 1:47 AM, Enjoys Math wrote:
> I've manually set breakpoints and traced this app crash back to this
> function:
>
> def loadLSobjsOfType(self, objType, listJ):
> if listJ != None:
> for objJ in listJ:
> _locals = locals()
>
On Thu, Jul 28, 2016 at 10:14 PM, Mushirahmed Shaikh wrote:
> Dear All,
> I am sending email using smtplib.SMTP_SSL method in python2.3.
> But it gives the error i.e Attribute error for SMTP_SSL.
> Please help me to call SMTP_SSL method in python2.3.
> I dont want to update the python version.
>
I've manually set breakpoints and traced this app crash back to this
function:
def loadLSobjsOfType(self, objType, listJ):
if listJ != None:
for objJ in listJ:
_locals = locals()
exec('obj = ' + objType + '(self)', None, _locals)
Dear All,
I am sending email using smtplib.SMTP_SSL method in python2.3.
But it gives the error i.e Attribute error for SMTP_SSL.
Please help me to call SMTP_SSL method in python2.3.
I dont want to update the python version.
Thanking You,
Mushirahmed
--
https://mail.python.org/mailman/listinfo/py
On Thu, Jul 28, 2016 at 11:40 AM, Cai Gengyang wrote:
> How to debug this ?
>
print "This line will be printed."
This is Python 2 print statement syntax.
> SyntaxError: Missing parentheses in call to 'print'
This indicates that you're trying to run the above in Python 3.
--
https://mail.p
On Thu, Jul 28, 2016 at 1:40 PM, Cai Gengyang wrote:
> How to debug this ?
>
print "This line will be printed."
> SyntaxError: Missing parentheses in call to 'print'
> --
> https://mail.python.org/mailman/listinfo/python-list
You are using python 3.x. print is a function. Use print("this l
How to debug this ?
>>> print "This line will be printed."
SyntaxError: Missing parentheses in call to 'print'
--
https://mail.python.org/mailman/listinfo/python-list
This works extremely well I recently tried that.
http://stackoverflow.com/questions/16923281/pandas-writing-dataframe-to-csv-file
Sivan
On 23 Jun 2016 23:35, "David Shi via Python-list"
wrote:
> Has anyone tested on Pandas to CSV and .dbf lately?
> I am looking for proven, tested examples to o
On Thu, Jul 28, 2016 at 11:53 PM, Random832 wrote:
> On Thu, Jul 28, 2016, at 03:21, Steven D'Aprano wrote:
>> Well, kinda sorta. I'm not really pulling your leg. But Perl has a
>> feature that if you tell it to run a file with a hashbang line, it
>> will call the given executable to run that file
Hi All,
First apologies for the rather off topic but I grep'd over the existing
mailing lists and couldn't find one that's suitable, at least judging by
the titles.
My inquiry is both technical and social, first for the technical stuff:
1. When is the use of functools.partial beneficial? When
Hi,
Am 07/28/2016 um 03:48 PM schrieb Larry Martell:
Thanks, but I have abandoned using pickle. I am now converting my
objects to JSON, writing them to files, passing the file names to
the process and reading them in and converting them back to objects
there. In addition to that working, it make
On Thu, Jul 28, 2016 at 8:51 AM, Nobody wrote:
> On Wed, 27 Jul 2016 22:47:15 -0400, Larry Martell wrote:
>
>> Also let me add that initially I was calling Popen with shell=False and
>> the arguments in a list, and that was failing with:
>>
>> arg 2 must contain only strings
>
> That indicates tha
On Thu, Jul 28, 2016, at 03:21, Steven D'Aprano wrote:
> Well, kinda sorta. I'm not really pulling your leg. But Perl has a
> feature that if you tell it to run a file with a hashbang line, it
> will call the given executable to run that file. That's now been
> improved to recognise Perl6 as an ext
On Wed, 27 Jul 2016 22:47:15 -0400, Larry Martell wrote:
> Also let me add that initially I was calling Popen with shell=False and
> the arguments in a list, and that was failing with:
>
> arg 2 must contain only strings
That indicates that you're calling Popen() incorrectly.
> And when I debug
On Thu, Jul 28, 2016 at 1:58 AM, Steven D'Aprano
wrote:
> On Thursday 28 July 2016 12:39, Larry Martell wrote:
>
>> I have an object of type Target:
>>
>> (Pdb) type(target)
>>
>>
>> And I pickle it like this:
>>
>> (Pdb) type(pickle.dumps(target))
>>
>>
>> And then it looks like this:
>>
>> (Pd
Arshpreet Singh wrote:
>I am writing Imdb scrapper, and getting available list of titles from IMDB
>website which provide txt file in very raw format, Here is the one part of
>file(http://pastebin.com/fpMgBAjc) as the file provides tags like Distribution
> Votes,Rank,Title I want to parse titl
I am trying from 2 days and I don't get a result. I have 3 thermometer and I
repeat the measurement for 5 days.
I have a file of 2 columns: the first is the thermometer number, the second is
the value of the thermometer.
For example:
1 25
2 37
3 24
1 18
2 36
3 48
1 37
2 24
3 15
It is clear that
Am 28.07.16 um 04:12 schrieb huey.y.ji...@gmail.com:
On Wednesday, July 27, 2016 at 4:18:29 PM UTC-4, huey.y...@gmail.com wrote:
Hi Folks,
It is common to put a BUTTON on a canvas by the means of coding. However, in my
application, I need to draw a circle on canvas, and then make this circle t
Lutz Horn writes:
> Hi,
>
> Am 07/28/2016 um 09:21 AM schrieb Steven D'Aprano:
>> But Perl has a feature that if you tell it to run a file with a
>> hashbang line, it will call the given executable to run that
>> file. That's now been improved to recognise Perl6 as an external
>> executable, inste
On Thu, Jul 28, 2016 at 5:21 PM, Steven D'Aprano
wrote:
> Perl 5.24 is now 100% forwards compatible with Perl 6.
>
> The Perl community is agreed that Perl 6 is, in fact, a completely different
> language than Perl 5. Unlike Python 3 which differs only in a few minor (but
> important) ways from Py
Hi,
Am 07/28/2016 um 09:21 AM schrieb Steven D'Aprano:
But Perl has a feature that
if you tell it to run a file with a hashbang line, it will call the given
executable to run that file. That's now been improved to recognise Perl6 as an
external executable, instead of trying to run it as Perl 5 c
On 27Jul2016 22:12, Arshpreet Singh wrote:
I am writing Imdb scrapper, and getting available list of titles from IMDB
website which provide txt file in very raw format, Here is the one part of
file(http://pastebin.com/fpMgBAjc) as the file provides tags like Distribution
Votes,Rank,Title I wa
Perl 5.24 is now 100% forwards compatible with Perl 6.
The Perl community is agreed that Perl 6 is, in fact, a completely different
language than Perl 5. Unlike Python 3 which differs only in a few minor (but
important) ways from Python 2, Perl 6 is a significant break from the past,
enough to
37 matches
Mail list logo