Hey,
Packt Publishing is inviting the tech world to explore its extensive library of
eBooks and video courses for one amazing price. For the rest of December and
into the New Year, every single eBook and video course Packt has ever created
will be available on the publisher's website for just $
On Tue, Dec 22, 2015 at 10:29 PM, Random832 wrote:
>
> This is surprising to anyone accustomed to the POSIX C remove
> function, which can remove either files or directories. Is there
> any known rationale for this decision?
Guido added os.remove as a synonym for os.unlink in version 1.4 (1996)
gavin.pa...@gmail.com writes:
> Packt Publishing is inviting the tech world to explore its extensive...
This looks like affiliate spam (shortened link omitted). Direct link:
https://www.packtpub.com
They do have some good stuff there.
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, 23 Dec 2015 03:14 pm, Rodrick Brown wrote:
> Tried a few things but can't seem to get it right any help ?
>
> let times = (...matrices) =>
>
> matrices.reduce(
>
> ([a,b,c], [d,e,f]) => [a*d + b*e, a*e + b*f, b*e + c*f]
>
> );
Are you expecting us to guess what language this
I'm a bit surprised that an object() can't have attributes:
In [30]: o = object()
In [31]: o.x = 2
---
AttributeErrorTraceback (most recent call last)
in ()
> 1 o.x = 2
AttributeError: 'objec
Hi there,
I am maters student in India, I have installed python 3.5 in my windows 10
64bit machine. Everything works fine except package installing. When in use
“pip install numpy” is shows unable to find *‘vcvarsall.bat’* I don’t know
how to fix it. I tried several things nothing works.
Plea
On Wed, Dec 23, 2015 at 5:38 PM, Ankit Deshmukh wrote:
> I am maters student in India, I have installed python 3.5 in my windows 10
> 64bit machine. Everything works fine except package installing. When in use
> “pip install numpy” is shows unable to find *‘vcvarsall.bat’* I don’t know
> how to fi
On Wed, Dec 23, 2015 at 11:46 PM, Neal Becker wrote:
> Sometimes I want to collect attributes on an object. Usually I would make
> an empty class for this. But it seems unnecessarily verbose to do this. So
> I thought, why not just use an Object? But no, an instance of Object
> apparantly can'
On 23 December 2015 at 07:38, Ankit Deshmukh wrote:
> Hi there,
>
>
>
> I am maters student in India,
We don’t care (expect that you made a typo there).
> I have installed python 3.5 in my windows 10
> 64bit machine. Everything works fine except package installing. When in use
> “pip install num
On Wednesday, 23 December 2015 12:46:43 UTC, Ankit Deshmukh wrote:
> I am maters student in India, I have installed python 3.5 in my windows 10
> 64bit machine. Everything works fine except package installing. When in use
> "pip install numpy" is shows unable to find *'vcvarsall.bat'* I don't know
slight progress:
i reinstalled ticking precompile options in the "Advanced features".
Now I get this:
icrosoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.
C:\Users\Nick>python -m idlelib
C:\Python\Python35\python.exe: Error while finding spec for
'idlelib.__ma
On 23/12/2015 06:38, Ankit Deshmukh wrote:
Hi there,
I am maters student in India, I have installed python 3.5 in my windows 10
64bit machine. Everything works fine except package installing. When in use
“pip install numpy” is shows unable to find *‘vcvarsall.bat’* I don’t know
how to fix it. I
On Thu, 24 Dec 2015 12:00 am, Chris Warrick wrote:
> And know better than putting a
> phone number in their e-mail signature for the whole world to see.
You mean, like putting their phone number in the phone book, e-card or
website for the whole world to see?
--
Steven
--
https://mail.python
Wow, you can find cyber bullies just about anywhere...
On Wed, Dec 23, 2015 at 8:00 AM, Chris Warrick wrote:
> On 23 December 2015 at 07:38, Ankit Deshmukh wrote:
> > Hi there,
> >
> >
> >
> > I am maters student in India,
>
> We don’t care (expect that you made a typo there).
>
> > I have inst
On Wed, Dec 23, 2015 at 7:16 AM, Nicky Mac wrote:
> C:\Python\Python35\python.exe: Error while finding spec for
> 'idlelib.__main__' (: bad magic number in 'idlelib':
> b'\x03\xf3\r\n'); 'idlelib' is a package and cannot be directly executed
0xf303 (62211) is for Python 2.7. Make sure you don't h
On 23-12-2015 13:58, Chris Angelico wrote:
> On Wed, Dec 23, 2015 at 11:46 PM, Neal Becker wrote:
>> Sometimes I want to collect attributes on an object. Usually I would make
>> an empty class for this. But it seems unnecessarily verbose to do this. So
>> I thought, why not just use an Object?
On Thu, Dec 24, 2015 at 2:49 AM, Irmen de Jong wrote:
> Hey, nice, didn't know about SimpleNamespace. I was about to suggest
> collections.namedtuple but that one is probably more than Neal asked for.
>
> Alternatively, you can still put attributes on a function, so this works as
> well (but I
>
On Wed, Dec 23, 2015 at 11:46 PM, Neal Becker wrote:
> I'm a bit surprised that an object() can't have attributes:
>
> In [30]: o = object()
>
> In [31]: o.x = 2
> ---
> AttributeErrorTraceback (mos
On Dec 23, 2015 7:00 AM, "Chris Angelico" wrote:
> On Wed, Dec 23, 2015 at 11:46 PM, Neal Becker wrote:
> > Sometimes I want to collect attributes on an object. Usually I would make
> > an empty class for this. But it seems unnecessarily verbose to do this. So
> > I thought, why not just use a
Chris Warrick writes:
>> I am maters student in India,
>
> We don’t care (expect that you made a typo there).
Oh, really? Surprisingly, he's not alone :-)
ciao, lele.
--
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi
Chris Warrick writes:
> On 23 December 2015 at 07:38, Ankit Deshmukh wrote:
> > I am maters student in India,
>
> We don’t care (expect that you made a typo there).
>
> > […] When in use “pip install numpy” is shows unable to find
> > *‘vcvarsall.bat’* I don’t know how to fix it. I tried several
On Wed, Dec 23, 2015 at 8:38 AM, Nicky Mac wrote:
>
> I removed the old python2.7 entries in system Path, the PYTHON variables you
> mentioned are not present.
> All I have is Python35 in the PATH.
Maybe there's still a stale directory on sys.path for another reason.
Print sys.path from the comma
dear Python team
thanks for your amazing support!
no sign of old Py2.7 anywhere :-
C:\Users\Nick>python -c "import sys; print(*sys.path, sep='\n')"
C:\Python\Python35\python35.zip
C:\Python\Python35\DLLs
C:\Python\Python35\lib
C:\Python\Python35
C:\Python\Python35\lib\site-packages
On 23 Decemb
On Wed, Dec 23, 2015 at 1:51 PM, Nicky Mac wrote:
>
> no sign of old Py2.7 anywhere :-
>
> C:\Users\Nick>python -c "import sys; print(*sys.path, sep='\n')"
>
> C:\Python\Python35\python35.zip
> C:\Python\Python35\DLLs
> C:\Python\Python35\lib
> C:\Python\Python35
> C:\Python\Python35\lib\site-pack
Howdy all,
When I want to wrap a binary stream to provide a text stream, such as
the ‘Popen.stdout’ attribute from a subprocess, I can use
‘io.TextIOWrapper’.
That works on Python 3::
$ python3
Python 3.4.4rc1 (default, Dec 7 2015, 11:09:54)
[GCC 5.3.1 20151205] on linux
Type "h
I left the Subject field with the wrong question. The immediate answer
is “it presents the ‘file’ interface”. The consequent questions remain:
Ben Finney writes:
> $ python2
[…]
> >>> gnupg_stdout = io.TextIOWrapper(gnupg_subprocess.stdout)
> Traceback (most recent call last):
>
Hello,
Can someone please explain this code below. I am new at Python .
Thanks
def receive_messages(self, msgs, time):
for msg in msgs:
msg.set_recv_time(time)
self.msgs_received.extend(msgs)
--
https://mail.python.org/mailman/listinfo/python-list
Michael Torrie wrote:
A country in which citizens only expect things from the country and
never think about their ability to change and benefit the country is a
week country indeed.
Yep, definitely won't last more than 7 days. :-)
--
Greg
--
https://mail.python.org/mailman/listinfo/pyth
On Wednesday, December 23, 2015 at 7:53:43 PM UTC-6, Qurrat ul Ainy wrote:
> Hello,
>
> Can someone please explain this code below. I am new at Python .
> Thanks
>
>
> def receive_messages(self, msgs, time):
> for msg in msgs:
> msg.set_recv_time(time)
> self.msgs_received.
On Wed, Dec 23, 2015 at 7:36 PM, Ben Finney wrote:
> So how do I get from a Python 2 ‘file’ object, to whatever
> ‘io.TextIOWrapper’ wants?
I would dup the file descriptor and close the original file. Then open
the file descriptor using io.open:
>>> p = subprocess.Popen(['uname'], stdout=sub
eryk sun writes:
> On Wed, Dec 23, 2015 at 7:36 PM, Ben Finney
> wrote:
> > So how do I get from a Python 2 ‘file’ object, to whatever
> > ‘io.TextIOWrapper’ wants?
>
> I would dup the file descriptor and close the original file. Then open
> the file descriptor using io.open
Thanks. Okay, now
Michael Torrie at 2015/12/23 UTC+8 12:22:23PM wrote:
> In the American way of thinking, the country *is* the people. So it was
> neither a lie nor a bad thing that Kennedy proclaimed. Maybe this is
> not true for other countries, but I think most Americans would feel it
> is true for their count
32 matches
Mail list logo