On 7/22/20 4:46 PM, Mathiyazhagan S wrote:
Dear Sir/Madam,
I'm new to the python program.
I'm trying to install the "numby" or anything to add into the library by
using the windows command prompt I'm getting some error please find the
attachment.
So please help me to resolve this issue.
Dear Sir/Madam,
I'm new to the python program.
I'm trying to install the "numby" or anything to add into the library by
using the windows command prompt I'm getting some error please find the
attachment.
So please help me to resolve this issue.
Thank you
--
https://mail.python.org/mailman/
On 7/22/20 1:31 PM, Stavros Macrakis wrote:
I see how to limit the *depth* in pretty-printing:
import pprint
pprint.PrettyPrinter(depth=2).pprint(((11,12,13),(21,22,23,(241,242,243),25,26,27)))
((11, 12, 13),
(21, 22, 23, (...), 25, 26, 27))
But I would also like to limit the *length, *someth
I see how to limit the *depth* in pretty-printing:
import pprint
pprint.PrettyPrinter(depth=2).pprint(((11,12,13),(21,22,23,(241,242,243),25,26,27)))
((11, 12, 13),
(21, 22, 23, (...), 25, 26, 27))
But I would also like to limit the *length, *something like this:
pprint.PrettyPrinter(depth=2,le
On Wed, Jul 22, 2020 at 11:04 AM Tim Chase
wrote:
>
> I know for ints, cpython caches something like -127 to 255 where `is`
> works by happenstance based on the implementation but not the spec
> (so I don't use `is` for comparison there because it's not
> guaranteed by the language spec). On the o
I know for ints, cpython caches something like -127 to 255 where `is`
works by happenstance based on the implementation but not the spec
(so I don't use `is` for comparison there because it's not
guaranteed by the language spec). On the other hand, I know that None
is a single object that can (and
On 7/21/20 9:32 PM, Peter Slížik wrote:
Hi list, two related questions:
1. Why do functions used to iterate over collections or dict members return
specialized objects like
type(dict.keys()) -> class 'dict_keys'
type(dict.values()) -> class 'dict_values'
type(dict.items()) -> class 'dict_items'
On 7/22/20 7:16 AM, Dennis Lee Bieber wrote:
On Tue, 21 Jul 2020 06:38:55 -0700 (PDT), ksikor14--- via Python-list
declaimed the following:
Since this is apparently a homework assignment, I'm not going to
provide fixes -- just some comments.
Logic error?
(not entirely poking-fun: is
On 7/21/2020 5:32 AM, Peter Slížik wrote:
Hi list, two related questions:
1. Why do functions used to iterate over collections or dict members return
specialized objects like
type(dict.keys()) -> class 'dict_keys'
type(dict.values()) -> class 'dict_values'
type(dict.items()) -> class 'dict_item
Remember to reply-all, so that python-list is included and can still see
responses and offer help.
If Python won't open them, then how do you know the scripts work? They work on
someone else's computer you mean?
Please provide the basics then so we can try to help out.
What OS are you using?
H
On 7/21/2020 11:08 AM, MRAB wrote:
On 2020-07-21 14:38, ksikor14--- via Python-list wrote:
I can't seem to figure out what I am doing wrong. I have tried
everything. This is what it is supposed to do:
[snip]
I get this error:
Traceback (most recent call last):
File "main.py", line 1, in
> im having problems when running python scripts
>
> When running the scripts it always closes immediately
If you're running it in Windows, and running it by double clicking on a .py
file, then it will pop up a console window while it's running, and then
immediately close that window when the s
Id like to do exe files, so the pythin interpreter has not tob e installed.
Thats why I use cx-freeze, but installing Python 3.8 after using Python 3.6
does not work.
Can you tell me how I can make cx-freeze in Python 3.8 or how I can produce
exe files for Windows 7 32 / 64 Bit and Win10?
im having problems when running python scripts
When running the scripts it always closes immediately
--
https://mail.python.org/mailman/listinfo/python-list
Hi list, two related questions:
1. Why do functions used to iterate over collections or dict members return
specialized objects like
type(dict.keys()) -> class 'dict_keys'
type(dict.values()) -> class 'dict_values'
type(dict.items()) -> class 'dict_items'
type(filter(..., ...)) -> class 'filter'
On 2020-07-13 17:21:40 +1200, dn via Python-list wrote:
> On 12/07/20 10:10 PM, Barry Scott wrote:
> > I'd expect to see something like this:
> >
> > def mail_label( person, address ):
> > first_name = person.first_name
> > # or if you want a function interface
> > first_line_of_address = address.
On 2020-07-12 08:56:47 +1200, DL Neil via Python-list wrote:
> On 12/07/20 8:13 AM, Peter J. Holzer wrote:
> > On 2020-07-11 09:54:33 +1200, dn via Python-list wrote:
> > > Questions:
> > >
> > > Is the idea of limiting the number of parameters passed across an
> > > interface
> > > a real concer
On 2020-07-21 14:38, ksikor14--- via Python-list wrote:
I can't seem to figure out what I am doing wrong. I have tried everything.
This is what it is supposed to do:
(1) Prompt the user for a title for data. Output the title. (1 pt)
Ex:
Enter a title for the data:
Number of Novels Authored
I can't seem to figure out what I am doing wrong. I have tried everything.
This is what it is supposed to do:
(1) Prompt the user for a title for data. Output the title. (1 pt)
Ex:
Enter a title for the data:
Number of Novels Authored
You entered: Number of Novels Authored
(2) Prompt the use
Our designer Jessica has created a beautiful conference booklet for
you to use during the conference and keep as a memory afterwards. It
provides all details, schedule, keynotes, sponsor listings, etc. in a
single PDF.
* EuroPython 2020 Conference Booklet *
https://ep2020.e
On Tue, 21 Jul 2020 at 06:01, Inada Naoki wrote:
> On Tue, Jul 21, 2020 at 5:07 AM Marco Sulla wrote:
> >
> > I just finished to improve the performance of frozendict creation. The
> result is very promising.
> >
> > The speedup is about 30% for small dicts (8 items). For large dicts (1k
> items
21 matches
Mail list logo