On 29 September 2012 14:24, Eli Bendersky wrote:
> On Sat, Sep 29, 2012 at 5:18 AM, Georg Brandl wrote:
>> On behalf of the Python development team, I'm delighted to announce the
>> Python 3.3.0 final release.
>>
>
> Yay :)
Agreed - this is a really nice release, thanks to all who put it togethe
I'm trying to get information on what registry entries are set up by
the Python Windows installer, and what variations exist. I don't know
enough about MSI to easily read the source, so I'm hoping someone who
knows can help :-)
As far as I can see on my PC, the installer puts entries
HKLM\Softwar
On 2 February 2012 00:28, Mark Hammond wrote:
> For setting PYTHONPATH it uses both - HKEY_CURRENT_USER is added before
> HKEY_LOCAL_MACHINE. I can't recall which one distutils generated
> (bdist_wininst) installers will use - it may even offer the choice.
[...]
> Yep, I think that is correct.
T
I've got a build of Python (3.3) on my Windows PC. Everything is
built, I believe (core, all modules, HTML help, etc). I want to
"install" it on my PC (because tools like virtualenv expect a standard
install layout, and the checkout basically isn't).
I tried using Tools/msi/msi.py to build an inst
On Feb 2, 2:09 pm, Michal Hantl wrote:
> I've been looking for something similar to CoffeeScript, but for python.
>
> Does anyone know of such project?
Isn't CoffeeScript just a compiler to convert a cleaner syntax into
Javascript? If so, why would you need such a thing for Python, where
the syn
I want to package up some of my Python 3 scripts to run standalone,
without depending on a system-installed Python. For my development, I
use virtualenv and install all my dependencies in the virtualenv,
develop the script and test it. When I'm done, I want to build an
executable which can run with
I'm trying to reverse-engineer some pretty complex code. One thing that would
help me a lot is if I could instrument a key class, so that I'd get a report of
when and how each method was called and any properties or attributes were
accessed during a typical run.
I could do this relatively easil
I'm doing some training for a colleague on Python, and I want to look
at a bit of object orientation. For that, I'm thinking of a small
project to write a series of classes simulating objects moving round
on a chess-style board of squares.
I want to concentrate on writing the classes and their beh
On 11 September 2017 at 13:07, Chris Angelico wrote:
> Fortunately, it's not that hard to type "python3" all the time. OS
> distributions can progressively shift to using that name, and then
> eventually not ship a Py2 until/unless something depends on it, all
> without losing backward compatibili
On 11 September 2017 at 13:13, Stefan Ram wrote:
> Paul Moore writes:
>>write a series of classes simulating objects
>
> I'd say "write classes for objects".
Yeah, that's just me not being precise in my mail. Sorry.
>>objects moving round on a chess-s
On 11 September 2017 at 14:52, Christopher Reimer
wrote:
>> On Sep 11, 2017, at 3:58 AM, Paul Moore wrote:
>>
>> I'm doing some training for a colleague on Python, and I want to look
>> at a bit of object orientation. For that, I'm thinking of a small
>&
On 11 September 2017 at 15:53, Dennis Lee Bieber wrote:
>
> As for Windows itself... I use the ActiveState installers and see:
>
> Directory of c:\Python35
>
>
> 06/26/2017 07:22 PM41,240 python.exe
> 06/26/2017 07:22 PM41,240 python3.5.exe
> 06/26/2017 07:18 P
On 11 September 2017 at 16:32, Dennis Lee Bieber wrote:
> This leads to a subtle question... If the focus strictly on OOP, or do
> you intend to supply some precursor OOAD stuff. OOP is just implementation
> and usage, but without some understanding of OOAD the concepts may come
> across a
On 12 September 2017 at 13:47, Leam Hall wrote:
> A few months ago my manager asked about what direction I recommended for the
> team. I'm the opinionated old guy who is new to this team. At the time I was
> really enjoying Ruby; just so dang fun!
>
> I told my manager that we should use python. I
On 12 September 2017 at 16:03, Rick Johnson
wrote:
> Chris Angelico wrote:
>> Rick Johnson wrote:
>> > Ruby:
>> > farray = [1.5, 1.9, 2.0, 1.0]
>> > uniqueIntegers = farray.map{|f| f.to_i()}.uniq.length
>> >
>> > Python:
>> > flist = [1.5, 1.9, 2.0, 1.0]
>> > uniqueIntegers = len(s
On 12 September 2017 at 18:52, Rick Johnson
wrote:
> In any event, i believe my point -- that complex statements
> in Ruby follow a more intuitive left-to-right comprehension
> flow, whereas Python, which due to a reliance on built-in
> functions as opposed to Object methods is directly
> responsi
On 13 September 2017 at 17:05, Ian Kelly wrote:
> On Tue, Sep 12, 2017 at 10:39 PM, Rick Johnson
> wrote:
>>> > board[r,c] = lbl
>>
>> Dude, that tuple is naked! And nudity in public places is
>> not cool; unless of course your code is a Ms. America model,
>> or it resides in a nudis
On 17 September 2017 at 12:38, Leam Hall wrote:
> On 09/17/2017 07:25 AM, Steve D'Aprano wrote:
>>
>> On Sun, 17 Sep 2017 08:03 pm, Leam Hall wrote:
>>
>>> I'm still trying to figure out how to convert a string to unicode in
>>> Python 2.
>>
>>
>>
>> A Python 2 string is a string of bytes, so you
On 18 September 2017 at 09:03, pizza python wrote:
> Your error occurs because what the "external service" has delivered
> it not what "speech-to-text" has expected. More precisely,
> "speech-to-text" has excepted as result a dict with a "results" key --
> but this is missing (
With that information, my guess would be that the way the web service
reports errors has changed, and the Python library is failing to
handle errors nicely for you, but the basic functionality still works.
So that's somewhat good news, as you can at least handle anything that
*would* work, even if
On 18 September 2017 at 14:30, Antoon Pardon wrote:
> Well that you reduce an object to a boolean value is not obvious to
> begin with. A TypeError because you are treating a non-boolean as
> a boolean would have been more obvious to me.
More obvious, possibly - that's essentially a matter of wha
On 20 September 2017 at 13:58, alister via Python-list
wrote:
> On Tue, 19 Sep 2017 14:40:17 -0400, leam hall wrote:
>
>> On Tue, Sep 19, 2017 at 2:37 PM, Stephan Houben <
>> stephan...@gmail.com.invalid> wrote:
>>
>>> Op 2017-09-19, Steven D'Aprano schreef >> pearwood.info>:
>>>
>>> > There is a
On 21 September 2017 at 09:59, Hartmut Goebel
wrote:
> Hello,
>
> I just discovered that CPython now uses Misc/NEWS.d/next to collect
> changes an there are a lot of Misc/NEWS/*.rst files for the respective
> released version. I'm investigating whether to adopt this for PyInstaller.
>
> What is th
On 22 September 2017 at 10:05, Thomas Jollans wrote:
> On 2017-09-22 10:55, Ganesh Pal wrote:
>> I have two possible values for Z_block in the block code i.e
>> disk_object.data.data.di_data[0] or block.data.data.di_data.data[0][0]
>>
>>
>> def get_block():
>> ''' Get Z block ''
>>
>> if b
On 23 September 2017 at 12:37, Steve D'Aprano
wrote:
> 95% of Python is unchanged from Python 2 to 3. 95% of the remaining is a
> trivial
> renaming or other change which can be mechanically translated using a tool
> like
> 2to3. Only the remaining 5% of 5% is actually tricky to migrate. If your
I'm trying to work out a good algorithm to code a calculation I need
to do. I can see brute force ways of handling the problem, but I keep
getting bogged down in details, and the question seems like it's
something that should have been solved plenty of times in the past, I
just don't know where to
On 25 September 2017 at 14:23, Ian Kelly wrote:
> You have a DAG, so you can sort it topologically. Then you can process
> it in that order so that everything that uses X will be processed
> before X so that when you get to X you'll know exactly how much of it
> you need and you don't have to worr
On 25 September 2017 at 15:20, Paul Moore wrote:
> On 25 September 2017 at 14:23, Ian Kelly wrote:
>> You have a DAG, so you can sort it topologically. Then you can process
>> it in that order so that everything that uses X will be processed
>> before X so that when you
You're using Python 3, and I suspect that you're working from
instructions that assume Python 2. In Python 3, the result of map() is
a generator, not a list (which is what Python 2's map returned). In
order to get an actual list (which appears to be what you need for
your plot call) you just need t
On 26 September 2017 at 19:47, Irmen de Jong wrote:
> Any thoughts on this? Is it a good idea or something horrible? Has
> someone attempted something like this before perhaps?
When I've done this, I've bundled my dependencies in with my zipapp.
Of course that's trickier if you have binary depend
On 26 September 2017 at 23:48, Irmen de Jong wrote:
> On 09/26/2017 10:49 PM, Paul Moore wrote:
>> On 26 September 2017 at 19:47, Irmen de Jong wrote:
>>> Any thoughts on this? Is it a good idea or something horrible? Has
>>> someone attempted something like this befo
19:03, Irmen de Jong wrote:
> On 09/27/2017 09:50 AM, Paul Moore wrote:
>
>>>> What you could do is pip install your binary dependencies into a
>>>> directory in $TEMP using --target, then add that directory to
>>>> sys.path. Probably easier than building
On 27 September 2017 at 17:41, leam hall wrote:
> Hehe...I've been trying to figure out how to phrase a question. Knowing I'm
> not the only one who gets frustrated really helps.
>
> I'm trying to learn to be a programmer. I can look at a book and read basic
> code in a few languages but it would
On 28 September 2017 at 06:56, Bill wrote:
> Steve D'Aprano wrote:
>>
>>
>> Similarly for break and continue.
>>
>>> I can still see their
>>> use causing potential trouble in (really-long) real-world code.
>>
>> How so?
>>
>> Besides, if your code is "really long", you probably should factorise
My intuition is that the lambda creates a closure that captures the
value of some_seq. If that value is mutable, and "modify some_seq"
means "mutate the value", then I'd expect each element of seq to be
tested against the value of some_seq that is current at the time the
test occurs, i.e. when the
On 3 October 2017 at 16:38, Neal Becker wrote:
> I'm not certain that it isn't behaving as expected - my code is quite
> complicated.
OK, so I'd say the filtering would follow any changes made to some_seq
- not because it's a documented guarantee as such, but simply as a
consequence of the behavi
On 4 October 2017 at 13:30, leam hall wrote:
> On Wed, Oct 4, 2017 at 7:15 AM, Ben Finney
> wrote:
>
>> Leam Hall writes:
>>
>> > Folks on IRC have suggested using virtualenv to test code under
>> > different python versions. Sadly, I've not found a virtualenv tutorial
>> > I understand. Anyone
I've not had this problem myself, but py.test has the idea of "autouse
fixtures" which would work for this situation. Define your setup call
in a function, declare it with the pytest.fixture decorator with
autouse=True, and it'll be run before every test. The declaration goes
in a conftest.py file
On 4 October 2017 at 14:02, Robin Becker wrote:
> On 04/10/2017 11:57, Rhodri James wrote:
>>
>> On 04/10/17 10:01, Robin Becker wrote:
>>>
>>> Given the prevalence of the loop and a half idea in python I wonder why
>>> we don't have a "do" or "loop" statement to start loops without a test.
>>
>>
On 4 October 2017 at 16:03, bartc wrote:
> No error. Some would perceive all this as an advantage, but it means you
> can't just declare a lightweight struct or record 'Point' with exactly two
> fields x and y. You have to use other solutions ('namedtuples' or whatever,
> which probably are immuta
On 4 October 2017 at 16:08, Steve D'Aprano wrote:
> On Wed, 4 Oct 2017 08:19 pm, Thomas Nyberg wrote:
>
>> Hello,
>>
>> I was wondering if anyone here knew of any python libraries with
>> interfaces similar to the bzip2 module which is also multithreaded in
>> (de)compression? Something along the
On 4 October 2017 at 16:35, Steve D'Aprano wrote:
> I've been programming in Python for twenty years, and I don't think I have
> ever once read from a file using a while loop.
Twenty years isn't long enough :-) The pattern the OP is talking about
was common in "Jackson Structured Programming" fro
On 4 October 2017 at 17:02, Rhodri James wrote:
> Actually you can:
>
class Point:
> ... __slots__ = ("x", "y")
> ... def __init__(self, x, y):
> ... self.x = x
> ... self.y = y
> ... def __str__(self):
> ... return "({0},{1})".format(self.x, self.y)
> ...
p = Point(3,4
On 4 October 2017 at 17:15, Ian Kelly wrote:
> On Wed, Oct 4, 2017 at 9:08 AM, Steve D'Aprano
> wrote:
>> But in large projects, especially those where you cannot trust every module
>> in
>> the project to obey the naming convention, I can see that this lack might
>> contribute to the perception
On 6 October 2017 at 04:52, Prabu T.S. wrote:
> On Thursday, October 5, 2017 at 9:00:19 PM UTC-4, MRAB wrote:
>> On 2017-10-06 01:37, Prabu T.S. wrote:
>> > On Thursday, October 5, 2017 at 8:33:02 PM UTC-4, MRAB wrote:
>> >> On 2017-10-05 23:32, Prabu T.S. wrote:
>> >> > On Thursday, October 5, 20
On 6 October 2017 at 06:51, Chris Angelico wrote:
> Cloud computing is the answer.
>
> If you don't believe me, just watch the sky for a while - new clouds
> get added without the sky turning off and on again.
The sky reboots every 24 hours, and the maintenance window's about
8-12 hours. Not exac
On 6 October 2017 at 09:36, Peter J. Holzer wrote:
> On 2017-10-06 08:09, Steve D'Aprano wrote:
>> What are the right ways for a Python script to detect these sorts of
>> situations?
>>
>> (1) Standard input is coming from a pipe;
>>
>> (2) Stdin is being read from a file;
>>
>> (3) Stdin is comi
On 6 October 2017 at 10:14, Marko Rauhamaa wrote:
> Generally, you shouldn't condition the program too much on such
> environmental details, although it is done. For example, the "ls"
> command outputs the directory listing in a (colorful) multi-column
> format when stdout is a terminal and in a (
On 6 October 2017 at 12:42, Chris Angelico wrote:
> Generally, you should not have to worry about the behaviour of a
> program being drastically different if you append "| cat" to the
> command line. Which means you don't want TOO much difference between
> interactive mode and non-interactive mode
On 6 October 2017 at 13:22, Steve D'Aprano wrote:
>> Yep. My real beef with ls is multi-column vs single-column.
>> Paul
>
> You don't think multiple columns in interactive mode is useful? I'm surprised,
> because I find it invaluable.
Interactively, I use ls -l 99.9% of the time. When I use raw
On 6 October 2017 at 13:44, ROGER GRAYDON CHRISTMAN wrote:
> Despite the documentation, I would still be tempted to say that range is a
> function.
> Taking duck-typing to the meta-level, every time I use range, I use its name
> followed
> by a pair of parentheses enclosing one to three parameters
On 6 October 2017 at 13:56, bartc wrote:
> If you don't like the word 'crude', try 'lazy'. Take this example of the gcc
> C compiler:
>
> > gcc -E program.c
>
> This preprocesses the code and shows the result. Typical programs will have
> many thousands of lines of output, but it just dumps it to
On 8 October 2017 at 11:36, bartc wrote:
> Frustrating for whom?
Well, me as well as Steve, if we're counting votes for who finds your
attitude frustrating...
> It seems to me that it's pretty much everyone here who has an overbearing
> sense of superiority in that everything that Unix or Linux
On 8 October 2017 at 17:43, Marko Rauhamaa wrote:
> It is not at all easy for the Linux user to figure out what
> configuration options there are, and which ones are intended for
> end-user configuration. More and more, such tuning needs to be
> done via systemd unit files (or applicable GUI facil
On 9 October 2017 at 04:25, wrote:
> Did you find out the answer for that?
Nothing much beyond the pointer to PyQt (which basically said "a lot
of the info on the web is out of date" so I should check the latest
docs). I didn't take it much further, though, as it was a hobby
project and the lear
On 9 October 2017 at 17:22, John Black wrote:
> I want sep="" to be the default without having to specify it every time I
> call print. Is that possible?
def myprint(*args, **kw):
print(*args, sep="", **kw)
If you want, assign print=myprint.
Paul
--
https://mail.python.org/mailman/listinf
On 9 October 2017 at 01:37, boB Stepp wrote:
> I follow this list in an effort to learn as much as I can even though
> I am usually a fish out of water here. But this thread in all its
> twists and turns and various subject line changes seems to have gotten
> totally out of hand. Even though I a
On 10 October 2017 at 13:44, bartc wrote:
>> Can you not see how frustrating this is for people who
>> have spent good chunks of their lives trying to do the best they can
>> on these software systems?
>
> Only if they concede I might have a point. I haven't seen much sign of that!
You have a poi
On 10 October 2017 at 15:37, xieyuheng wrote:
> 1. 'setattr(o, name, value)' can be used for what kind of objects ?
>
>section '2. Built-in Functions'
>of the official documentation says :
>
>> The function assigns the value to the attribute, provided the object
> allows it.
Anything
On 10 October 2017 at 16:07, oliver wrote:
> Can you elaborate what is not sufficient with Qt's web components?
I can't, sorry. Douglas was resurrecting a thread from a year ago. At
the time I was trying to do a quick proof of concept project and asked
for help on here. The project never really w
On 10 October 2017 at 21:37, Michael Cuddehe wrote:
> I have tried multiple versions, 32 & 64 bit. Same problem.
>
> "This app can't run on your PC. To find a version for your PC, check with
> the software publisher."
It's difficult to know what to say - it runs fine for me (Windows 10,
Python 3.
Agreed. I was being lazy and didn't check precisely which exception
was raised before writing the code. "Making this code production ready
is left as an exercise for the reader" :-)
On 11 October 2017 at 01:59, Steve D'Aprano wrote:
> On Wed, 11 Oct 2017 02:15 am, Paul
On 11 October 2017 at 15:46, Michael Cuddehe wrote:
> - What exactly did you install?
>>> Latest install: Python 3.5.4 (v3.5.4:3f56838, Aug 8 2017, 02:17:05) [MSC
> v.1900 64 bit (AMD64)] on win32
>>> Downloaded from python.org.
> - Can you start the Python interpreter?
>>> Yes...works fine.
>
bit Windows 10.
> Re-installed Python 3.6.3 - Download Windows x86-64 web-based installer. Same
> problem.
> Screen capture attached.
>
>
> -Original Message-
> From: Paul Moore [mailto:p.f.mo...@gmail.com]
> Sent: Wednesday, October 11, 2017 10:10 AM
> To: Micha
As a specific suggestion, I assume the name of the created file is a
string object constructed in the C extension code, somehow. The fact
that you're getting the segfault with some uses of that string
(specifically, passing it to %-formatting) suggests that there's a bug
in the C code that construc
On 13 October 2017 at 12:18, Vincent Vande Vyvre
wrote:
> Le 13/10/17 à 12:39, Paul Moore a écrit :
>>
>> As a specific suggestion, I assume the name of the created file is a
>> string object constructed in the C extension code, somehow. The fact
>> that you're get
On 13 October 2017 at 13:54, Gregory Ewing wrote:
> Neil Cerutti wrote:
>>
>> I can tell at a glance if a parameter is expected to be
>> modifiable just by looking at the function signature.
>
>
> The question is why doesn't anyone feel the need to be
> able to do that for Python functions? Whethe
On 14 October 2017 at 16:06, Vincent Vande Vyvre
wrote:
> I think I've found the problem, the string (a file path) is modified in c
> with "sprintf, snprintf, ..." And I plan to change that with some CPython
> equivalent function.
Nice :-) Glad you found it.
Paul
--
https://mail.python.org/mailm
On 16 October 2017 at 15:41, Grant Edwards wrote:
> On 2017-10-16, Terry Reedy wrote:
>> On 10/15/2017 10:50 PM, Andrew Z wrote:
>>> Gents,
>>> how do i get this group in a newsreader?
>>
>> Point your newsreader to news.gmane.org,
>
> That, IMO, is the only sane way to read mailing lists. If
On 16 October 2017 at 16:07, Grant Edwards wrote:
> On 2017-10-16, Paul Moore wrote:
>> Unless you work regularly on multiple PCs, as there's no newsreader I
>> know of that maintains your settings (what articles you have read, in
>> particular) across multiple ins
On 19 October 2017 at 19:18, Skip Montanaro wrote:
> I'm not understanding something fundamental about absolute/relative
> imports. Suppose I have an application, fribble.py, and it has a
> corresponding package full of goodies it relies on, also named fribble.
> From the fribble package, the appl
On 23 October 2017 at 10:32, wrote:
> According to this website. This is an uncompressable stream.
>
> https://en.m.wikipedia.org/wiki/Incompressible_string
>
> 12344321
>
> It only takes seven 8 bit bytes to represent this
Would you care to provide the seven 8-bit bytes you propose to u
On 23 October 2017 at 15:29, wrote:
> I'm really not trolling, and even though some are sarcastic i sm learning
> from your comments.
I'm willing to believe that, but if you're trying to claim you have
"compressed" data (in a way that satisfies the technical,
information-theoretic meaning of th
On 24 October 2017 at 09:43, Gregory Ewing wrote:
> Paul Moore wrote:
>>
>> But that's not "compression", that's simply using a better encoding.
>> In the technical sense, "compression" is about looking at redundancies
>> that go beyond th
On 24 October 2017 at 11:23, Ben Bacarisse wrote:
> For example, run the complete works of Shakespeare through your program.
> The result is very much not random data, but that's the sort of data
> people want to compress. If you can compress the output of your
> compressor you have made a good s
On 24 October 2017 at 12:04, Ben Bacarisse wrote:
> Paul Moore writes:
>
>> On 24 October 2017 at 11:23, Ben Bacarisse wrote:
>>> For example, run the complete works of Shakespeare through your program.
>>> The result is very much not random data, but that's
On 2 November 2017 at 07:17, Chris Angelico wrote:
> On Thu, Nov 2, 2017 at 5:50 PM, Noah wrote:
>> Hi,
>>
>> I am trying to install a python package with about 80 dependencies on a
>> server that is not connected to the internet and has no local proxy. I can
>> ssh to it via VPN.
>>
>> I was ab
On 5 November 2017 at 01:19, Steve D'Aprano wrote:
> On Sun, 5 Nov 2017 06:42 am, Stefan Ram wrote:
>
>> What is the one way to do it?
>
> There is no philosophy of "one way to do it" in Python, that is a
> misunderstanding (possibly deliberate...) spread about by Perl users, to
> contrast Python
On 5 November 2017 at 01:22, Steve D'Aprano wrote:
> On Sun, 5 Nov 2017 04:32 am, Steve D'Aprano wrote:
>
>> I'm trying to dump a Firefox IndexDB sqlite file to text using Python 3.5.
>>
>>
>> import sqlite3
>> con = sqlite3.connect('foo.sqlite')
>> with open('dump.sql', 'w') as f:
>> for line
On 5 November 2017 at 13:54, Stefan Ram wrote:
> Paul Moore writes:
>>But regardless, the Zen isn't intended to be taken quite as literally
>>as the OP was trying to do. It's a statement of principles, not a set
>>of rules.
>
> What I am looking f
On 7 November 2017 at 11:16, Chris Angelico wrote:
> Thanks for the FUD. I love it when someone, on the basis of one failed
> experiment, trash-talks an excellent piece of software that would
> solve the OP's problem.
It *is* true that the learning curve for Cython is steeper than that
of ctypes.
On 7 November 2017 at 15:39, ast wrote:
> Hello
>
> Here is my module tmp.py:
>
> a=0
>
> def test():
>global a
>print(a)
>a+=1
>
> If I import function "test" from module "tmp" with:
>
from tmp import test
>
>
> it works
>
test()
>
> 0
test()
>
> 1
>
> But where va
On 8 November 2017 at 11:15, Karsten Hilbert wrote:
> On Wed, Nov 08, 2017 at 09:26:04AM +, David Shi via Python-list wrote:
>
>> I am trying to gain a clear understanding on pd.merge(df,df2, on=['Code',
>> 'Region']).
>> Can anyone assist?
>
> ncq@hermes:~$ python
> Python 2
On 9 November 2017 at 05:08, Ben Finney wrote:
> Marko Rauhamaa writes:
>
>> Jon Ribbens :
>> > It is my experience of this group/list that if one disagrees with any
>> > of you, Steve and Chris, you all rally round and gang up on that
>> > person to insult and belittle them. This makes the atmos
On 12 November 2017 at 19:58, Mary Ann via Python-list
wrote:
>
> trying to install and run Python 3.5.2 (64 bit) and keep getting error
> message:
>
> the program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing
> from your computer. Try reintalling the program to fix this probl
On 17 November 2017 at 12:36, Stefan Ram wrote:
> A web page says:
>
> “The argument to pydoc can be the name of a function,
> module, or package, or a dotted reference to a class,
> method, or function within a module or module in a package.”
[...]
> , but not for »pi«:
>
> from math import p
On 17 November 2017 at 15:52, Marko Rauhamaa wrote:
> Paul Moore :
>> numbers don't have docstrings.
>
> There's no reason they couldn't:
In the sense that the Python object model could be amended to attach
docstrings to instances of classes like "int", a
I haven't tried it, but a quick Google search found PyPDF2 -
https://stackoverflow.com/questions/34837707/extracting-text-from-a-pdf-file-using-python
You don't give much detail about what you tried and how it failed, so
if the above doesn't work for you, I'd suggest providing more detail
as to wh
On 27 November 2017 at 18:13, Skip Montanaro wrote:
>> If you have a Windows key, you can assign it to be
>> the Compose key.
>
> Would this be true on a machine running Windows? My work environment
> has me developing on Linux, with a Windows desktop. It's not clear to
> me that any sort of xmodm
On 27 November 2017 at 20:20, Martin Schöön wrote:
> Den 2017-11-26 skrev Cameron Simpson :
>> On 26Nov2017 10:00, nospam.Martin Schöön wrote:
>>>
>>>Hmm, I seem to remember not being able to install packages with pip unless I
>>>did sudo pip.
>>
>> And this is exactly what I'm warning about. Man
On 27 November 2017 at 19:05, Paul Moore wrote:
> On 27 November 2017 at 18:13, Skip Montanaro wrote:
>>> If you have a Windows key, you can assign it to be
>>> the Compose key.
>>
>> Would this be true on a machine running Windows? My work environment
>
On 30 November 2017 at 18:49, Michael Torrie wrote:
> As for running Windows applications in a Windows container, this is not
> possible using any container technology I'm aware of. I'm sure MS could
> one day build Windows-centric containerization into Windows, but there's
> no support now. I g
On 2 December 2017 at 03:32, Peng Yu wrote:
> Where is `?reload=true` from? How to just get the redict URL that one
> would get from the browser? Thanks.
>
>> 'http://ieeexplore.ieee.org:80/document/771073/?reload=true'
The reload=true comes because
http://ieeexplore.ieee.org/document/771073/ is
On 4 December 2017 at 20:13, Jason Maldonis wrote:
> And I'll be honest -- I like the implementation of the LazyList I wrote
> above. I think it's pretty logical, because it allows you to think about
> the lazy list like this: "Treat the list like a norma list. If you run out
> of bounds, get mor
On 7 December 2017 at 18:28, Ethan Furman wrote:
> The simple answer is No, and all the answers agree on that point.
>
> It does beg the question of what an identity function is, though.
>
> My contention is that an identity function is a do-nothing function that
> simply returns what it was given
On 7 December 2017 at 20:35, Chris Angelico wrote:
> Because it's impossible to return multiple values. IMO the "identity
> function" is defined only in terms of one single argument, so all of
> this is meaningless.
Indeed, this is the key point. The Python language only allows
returning one valu
On 15 December 2017 at 13:25, ast wrote:
> On my computer it takes roughtly 4 s, mesured with a watch.
Is your computer particularly old? On my PC, the time it takes to run
x=123456**123456 at the Python interpreter prompt is barely
noticeable.
> I can't do "len(str(x))" to know the size, I have
When I took a quick look at the code, it seemed to be based on a
pretty old version of Python. What version are you using? If it's 2.7
(or better still, Python 3!) then you should have pip available. In
which case you may be better off using pypiwin32, which is a
rebundling of pywin32 as a wheel. "
On 28 December 2017 at 17:49, Skip Montanaro wrote:
> pip install py2exe_py2 pypiwin32 Pillow lockfile
> Collecting py2exe_py2
> Could not find a version that satisfies the requirement py2exe_py2
> (from versions: )
>
> That error message isn't telling me much about why the requirement
> isn't sat
On 29 December 2017 at 16:04, Skip Montanaro wrote:
>> Thanks. I'll shoot Thomas Heller an email...
>
>
> Actually, make that Christopher Toth. Seems he's the current maintainer.
If you get no joy there, then in a week or two, when I next get access
to a system with a Python 2.x build environment
1 - 100 of 410 matches
Mail list logo