On Wed, May 15, 2013 at 1:58 PM, Chris “Kwpolska” Warrick
wrote:
> On Tue, May 14, 2013 at 9:14 PM, Skip Montanaro wrote:
>> I haven't touched the SpamBayes setup for the usenet-to-mail gateway
>> in a long while. For whatever reason, this message was either held
>> and then approved by the curr
On Wed, Jun 5, 2013 at 10:14 AM, Armando Montes De Oca
wrote:
> On Wednesday, June 5, 2013 10:40:52 AM UTC-4, Armando Montes De Oca wrote:
>> Traceback (most recent call last):
>>
>> File "Guessing_Game.py", line 32, in
>>
>> input (enter)
>>
>> File "", line 0
>>
>> ^
>>
>> SyntaxErr
On Wed, Jun 5, 2013 at 10:35 AM, Armando Montes De Oca
wrote:
> Thank You now the program exits with:
> (program exited with code: 0)
> Press return to continue
>
>
> Is there a way to get the line (program exited with code: 0) to say something
>
> like: "The game will end now"
>
> Press return to
On Mon, Jun 10, 2013 at 10:37 AM, Yunfei Dai wrote:
> Hi all,
Hi Yunfei,
>
> I have some questions on "import":
>
> 1."from datetime import datetime" works well. But I am confused why "import
> datetime.datetime" leads to importerror. "from xlrd import open_workbook"
> could be replaced by "fr
On Sat, Jun 15, 2013 at 2:44 PM, wrote:
> I'm currently trying to make sense of Python's Timsort function. From the
> wikipedia page I was told the algorithm is located somewhere here:
> http://hg.python.org/cpython/file/default/Objects/listobject.c
>
> So of all the functions in there, could s
On Mon, Jul 15, 2013 at 8:11 AM, Mcadams, Philip W
wrote:
> I’m attempting to create a Python 64-bit Windows Installer. Following the
> instructions here: http://docs.python.org/2/distutils/builtdist.html I’m to
> navigate to my Python folder and user command:
>
>
>
> python setup.py build --plat
On Mon, Jul 15, 2013 at 10:50 AM, Jack Bates wrote:
> Hello,
>
> Is the following code supposed to be an UnboundLocalError?
> Currently it assigns the value 'bar' to the attribute baz.foo
>
>foo = 'bar'
>class baz:
> foo = foo
No bug. It's not an error because of differences in the
On Mon, Jul 15, 2013 at 1:02 PM, Mcadams, Philip W
wrote:
> Thanks for the reply Zachery. We have decided to just use another solution.
> Out of curiosity though I wanted to clarification on your statement:
>
> just stick the hg modules somewhere on PYTHONPATH.
>
> Are you saying that I would jus
(Side note: Please avoid top-posting in future. Bottom-posting keeps
context more clearly)
On Mon, Jul 15, 2013 at 2:27 PM, Mcadams, Philip W
wrote:
> Yes. My goal was to create the installer to put the modified python on my
> Mercurial server. So I could have effectively copied over the wit
On Wed, Aug 10, 2016 at 12:39 PM, Cai Gengyang wrote:
> I managed to get this piece of code to work :
>
print("This program calculates mpg.")
> This program calculates mpg.
milesdriven = input("Enter miles driven:")
> Enter miles driven: 50
milesdriven = float(milesdriven)
gall
On Sep 10, 2016 09:56, "Steve D'Aprano" wrote:
>
> I'm trying to build from source using:
>
> ./configure --with-pydebug && make -s -j2
>
>
> At first the output is okay, then I get a whole heap of similar errors:
>
> Python/dtrace_stubs.o: In function `PyDTrace_LINE':
> /home/steve/python/python-
On Oct 1, 2016 06:25, "Steve D'Aprano" wrote:
>
> Long story short: I have no working systems capable of compiling the
latest
> Python 3.6, and no time to upgrade my usual machines to something which
> will work.
Since you're working on a pure-Python module (statistics), I'd recommend
updating to
On Tue, Oct 11, 2016 at 7:07 PM, Steve D'Aprano
wrote:
> I've just installed Python 3.5 from the source tarball and received an
> unexpected error related to pip. On Linux, as a regular user (except for
> the last line):
>
>
> wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
> tar xvf
On Mon, Oct 24, 2016 at 6:49 PM, Rob Gaddi
wrote:
> On a Linux (Ubuntu) system, with no concerns for Python < 3.4, how do I
> a) Add a directory to the system-wide (rather than per-user) module
> path?
This is the trickier part. There are a couple of ways to do it, but
which is better is a mat
On Thu, Oct 27, 2016 at 10:11 AM, Daiyue Weng wrote:
> Hi, I installed Python 2.7 and Python 3.5 64 bit versions on Win 10. Under
>
> C:\Python35
>
> C:\Python27
>
> Both have been set in environment variable Path.
>
> When I type python in cmd, it only gives me python 2.7, I am wondering how
> to
On Mon, Nov 28, 2016 at 6:48 AM, Steve D'Aprano
wrote:
> What am I doing wrong?
Give yourself a bit more to debug with, since you're going to want to
do something with the result your expensive calculation anyway:
import asyncio
class Counter:
def __init__(self, i):
self.count = 10
On Thu, Dec 1, 2016 at 10:30 AM, Cecil Westerhof wrote:
> I would prefer when it would generate:
> '[
> "An array",
> "with several strings",
> "as a demo"
> ]'
>
> Is this possible, or do I have to code this myself?
https://docs.python.org/3/library/json.html?highlight=in
On Thursday, March 31, 2016, Simon Martin wrote:
>
> Hi
>
> I have been having issues trying to run python 3.5.1 and pyscripter 2.6.
> Giving the error message that it cannot initialize python.
>
> I have tried to re-install multiple versions of both python and pyscripter to
> no avail. Any advi
On Thu, Mar 31, 2016 at 12:51 PM, Terry Reedy wrote:
> On 3/31/2016 11:24 AM, Peter Otten wrote:
>> try...except to the rescue:
>>
> def get(seq, index, default=None):
>>
>> ... try: return seq[index]
>> ... except IndexError: return default
>
>
> Replace IndexError with (IndexError, K
Hi Gustaf,
On Mon, Apr 4, 2016 at 9:38 PM, Gustaf Nilsson
wrote:
> Hi!
>
> The only 3.5.1 versio that works for me is the 32 bits version, will it be
> a problem to use the 32 bits version for 64 bits computer?
>From your mention of a 'launcher' I'm assuming you're on Windows.
It's perfectly fin
On Thu, Apr 21, 2016 at 11:35 AM, Random832 wrote:
> I was trying to write a proof of concept on including descriptors (e.g.
> a "sys.recursionlimit" instead of set/get methods) in the sys module,
> and couldn't figure out how to "properly" define a type using
> PyType_FromSpecWithBases. Everythin
Hi Pierre,
On Wed, Apr 27, 2016 at 6:23 AM, Pierre wrote:
> Hello,
>
> I installed Python(x,y) 64 bit version and ran it using a library that
> requires Python 64 bit.
> I got an error which indicated that I am using Python 32 bit.
>
> So, is the python used by Python(x,y) 64 bit, using Python 6
Hi Peter,
On Fri, May 6, 2016 at 6:22 AM, Peter Toye wrote:
> I'm trying to install Python under Windows 7 so that I can use git-review and
> have found a few niggling issues.
>
> 1) Apparently (according to the git-review pages) pip has a problem with
> directories with spaces in their names.
On Mon, May 16, 2016 at 6:22 AM, wrote:
> I have a Linux system (Mint 17.3 based in Ubuntu 14.04) on which I wish to do
> some Python development. The system has Python 2.7.6 installed already (there
> is a Python 3 installation too but I won't be needing to use that to start
> with).
Not wha
On Mon, May 16, 2016 at 4:28 PM, wrote:
> Thanks Zach, that's a big help. The only reason I want to get a Python 2.7
> environment working first is because I'll be working on third party code and
> that's the platform it uses. For any new projects I would use Python 3.
Fair enough :)
> After
On Fri, May 20, 2016 at 3:09 AM, Erik wrote:
> On 20/05/16 00:51, Gregory Ewing wrote:
>>
>> It's not so bad with "else" because you need to look back
>> to find out what condition the "else" refers to anyway.
>
>
> With my tongue only slightly in my cheek, if it was desirable to
> "fix"/clarify t
On Thu, May 26, 2016 at 12:16 AM, Steven D'Aprano
wrote:
> I have a timedelta object, and I want to display it in a nice human-readable
> format like 03:45:17 for "three hours, forty five minutes, 17 seconds".
>
> Is there a standard way to do this?
>>> timedelta(100)
datetime.timedelta(100
On Fri, May 27, 2016 at 11:21 AM, Steven D'Aprano wrote:
> On Thu, 26 May 2016 03:28 pm, Zachary Ware wrote:
>> On Thu, May 26, 2016 at 12:16 AM, Steven D'Aprano
>> wrote:
>>> I have a timedelta object, and I want to display it in a nice
>>> human-rea
On Jun 17, 2016 6:56 PM, "Chris via Python-list"
wrote:
>
> I have been trying to write a simple Hello World script on my Mac at work
with TextEdit.
TextEdit is not just a simple text editor, it defaults to rich text mode.
You can either attempt to get TextEdit out of rich text mode and into plai
Hi Michael,
On Wed, Jun 22, 2016 at 11:41 AM, Michael Smolen <8smo...@tds.net> wrote:
> Folks:
> I can't wait to start programming with Python.
Welcome to Python!
> However, I am having difficulty installing on my XP operating system.
This unsolicited advice is rather beside the point, but I wo
On Wed, Jun 22, 2016 at 4:05 PM, Christian Gollwitzer wrote:
> BTW, the Tkinter wrapper is a bit clumsy for this option. In the original
> Tk, the sticky option is just a string. You can still pass that and do
>
> sticky='nsew'
>
> instead of the clumsy
>
> sticky=Tkinter.N+Tkinter
On Fri, Jun 24, 2016 at 1:35 PM, Steven Truppe wrote:
> So back to my first question now that you saw everything worked fine, but
> there is no python.so file, did i miss something when using ./configure ?
Try `./configure --enable-shared`.
--
Zach
--
https://mail.python.org/mailman/listinfo/p
On Fri, Jun 24, 2016 at 2:28 PM, Steven Truppe wrote:
> That gives me many .so files but no python*.so* file :(
Where are you finding these many .so files? There should be
libpython3.5m.so in the root of the source tree (alongside `python`).
By the way, I'm not sure how you're accessing the lis
On Saturday, June 25, 2016, Steven Truppe wrote:
>
> i hope this email works like you expected!
Not quite, but closer. You've quoted me properly, but you added your
reply above the quote, so-called "top-posting".
A: Because you have to read things in reverse order.
Q: Why?
A: Top-posting.
Q: Wh
On Mon, Jun 27, 2016 at 7:32 PM, Chris Angelico wrote:
> If you're primarily worried about classes and functions, here's a neat
> trick you can use:
>
> __all__ = []
> def all(thing):
> __all__.append(thing.__name__)
> return thing
Barry Warsaw has written a nice decorator called 'public'
On Tue, Jun 28, 2016 at 12:02 AM, Ben Finney wrote:
> Howdy all,
>
> I want an explicit replacement for a common decorator idiom.
>
> There is a clever one-line decorator that has been copy-pasted without
> explanation in many code bases for many years::
>
> decorator_with_args = lambda decora
On Wed, Jun 29, 2016 at 11:12 PM, Steven D'Aprano wrote:
> On Thu, 30 Jun 2016 11:28 am, Chris Angelico wrote:
>
>> On Thu, Jun 30, 2016 at 10:27 AM, Steven D'Aprano
>> wrote:
>>> Following os.abort(), the interpreter exits in the hardest, quickest
>>> manner possible.
>>
>> os.kill(os.getpid(),
On Thu, Aug 4, 2016 at 8:25 PM, Lawrence D’Oliveiro
wrote:
> On Tuesday, August 2, 2016 at 8:21:57 PM UTC+12, Valeria Munoz wrote:
>>
>> I have downloaded Python 3.6.0a3 on a Mac 10.9.5 and realized that I also
>> need to download an Active Tcl for it.
>
> Python should already come with Tk
>
On Sun, Aug 7, 2016 at 9:11 PM, Steven D'Aprano
wrote:
> I have cloned the Python source repo, and build CPython, as described here:
>
> https://docs.python.org/devguide/
>
>
> Now a little bit later, I want to update the repo, so I run:
>
> hg fetch
According to the hg docs [1], you should proba
On Mon, Aug 8, 2016 at 2:25 PM, Terry Reedy wrote:
> Last January, I wrote a batch file to build all three versions with the
> 'optional' extensions. I started rebuilding more often after this.
>
> 36\pcbuild\build.bat -e -d
> 35\pcbuild\build.bat -e -d
> 27\pcbuild\build.bat -e -d
>
> Thanks for
On Tue, Aug 9, 2016 at 2:55 AM, Terry Reedy wrote:
> This works great. Might there be any way to collect together
> the warning messages? There were perhaps 100 for the changes in
> the last few weeks. (People on non-windows seems to routinely write code
> that msc does not like.)
Glad it work
On Wed, Nov 13, 2013 at 12:27 PM, superchromix wrote:
>
>
> hi all,
>
> I've been thinking about learning Python for scientific programming.. but all
> of these flame war type posts make the user community look pretty lame. How
> did all of these nice packages get written when most of the user
On Thu, Nov 14, 2013 at 1:12 PM, Russell E. Owen wrote:
> I'm building python from source and trying to figure out how to test the
> result. I must be overlooking something obvious, but I looked through
> the documentation and source and tried some google searches (which turn
> up plenty about wri
On Thu, Dec 12, 2013 at 11:15 PM, jennifer stone
wrote:
> greetings
> I am a novice who is really interested in contributing to Python projects.
> How and where do I begin?
> thanking you in anticipation
If you're interested in contributing to Python itself, you can consult
the Python devguide [1
On Mon, Jan 27, 2014 at 12:02 AM, me wrote:
> On Mon, 27 Jan 2014 00:36:20 -0500, Dave Angel wrote:
>
>> sys.exit() raises an exception, and you're deliberately eating
>> that exception.
>>
>
> I can buy that sys.exit (may) be throwing an exception...My point of
> contention isn't that I may be
On Mon, Jan 27, 2014 at 12:46 AM, me wrote:
>
> In any case, thanks for the answers guys. I'm satisfied that the except:
> syntax yields undefined behavior, and in my mind it shouldn't be
> syntactically allowed then.
It's not undefined, though; it is explicitly defined. See my other
message, a
On Mon, Jan 27, 2014 at 1:17 AM, me wrote:
> It's the intendation specific requirements that throw me. I haven't seen
> such a hork since RPG. ;^)
Best I can tell, the only thing RPG and Python have in common is the
fact that they're "programming languages", though I'm being a little
generous to
On Thu, Jan 30, 2014 at 7:26 AM, Peter Clark wrote:
> There is probably an easy solution to this – but I have not found it.
>
> Trying to terminate a literal in a print statement (from the tutorial).
>
> The literal should be enclosed in double quotes “ “
>
> the initial double quote seems to be O
t".
In fact, most links to the Python documentation will link to the 2.7
version to maintain compatibility. Here's a link to the Python 3
version of the tutorial, which should work much better for you!
http://docs.python.org/3/tutorial/
You can also find the docs in your Python install
On Mon, Feb 3, 2014 at 12:48 PM, Chris Angelico wrote:
> On Tue, Feb 4, 2014 at 2:50 AM, Christian Heimes wrote:
>> On 03.02.2014 16:14, Ram Rachum wrote:
>>> Worked! Thanks Ervin!
>>
>>$ sudo apt-get build-dep python3.3
>>
>> will install everything you need to compile Python 3.4 on Debian a
On Tue, Feb 4, 2014 at 9:45 AM, Steven D'Aprano
wrote:
> Before I bother Python-Dev with this, can anyone else confirm that
> building Python 3.4 from source using the latest version in the source
> repository fails?
>
> # Get the source code
> hg clone http://hg.python.org/cpython
>
> # Build Pyt
On Tue, Feb 4, 2014 at 10:49 AM, Chris Angelico wrote:
> Are there any buildbots that configure --with-pydebug? This could be a
> debug-only issue.
Only all of them :). As far as I know, the only 'bot that does a
non-debug build is the "x86 Gentoo Non-Debug" bot.
> That said, though, I just did
On Tue, Feb 11, 2014 at 12:13 PM, Travis Griggs wrote:
> So here’s my basic question. Is there anyway to programatically query that
> information in python code?
>
> inspect.signature(datetime.datetime.now)
>
> just gives a ValueError. inspect must only be good for the python code that I
> write
On Tue, Nov 24, 2015 at 9:46 AM, Marc Aymerich wrote:
> if __name__ == '__main__':
> loop_container = {}
> handler = threading.Thread(target=run_loop, args=(loop_container, ))
> handler.start()
> try:
> time.sleep(1)
> finally:
> loop_container['loop'].stop(
On Tue, Nov 24, 2015 at 12:37 PM, Marc Aymerich wrote:
> still it appears to work only if the main thread is in the foreground
> (as of calling Thread() with deamon=True), I don't get why it behaves
> differently :( maybe it is waiting for other stuff, but no idea how to
> confirm this with strace
On Wed, Nov 25, 2015 at 8:10 AM, Marc Aymerich wrote:
> problem solved !
> Just found out that threads should be started by fuse.init() in order
> to run when fuse is backgrounded.
Glad you found it; I would not have, not being a pyfuse user :)
--
Zach
--
https://mail.python.org/mailman/listin
On Wed, Nov 25, 2015 at 2:23 PM, Cecil Westerhof wrote:
> I wanted to install python myself. I started with 2.7.10. If that
> works I also will install 3.5.0.
>
> I did:
> ./configure --prefix=/usr
> make
> make altinstall
>
> I have:
> /usr/bin/python2.7
>
> But when I execute thi
On Wed, Nov 25, 2015 at 3:52 PM, Cecil Westerhof wrote:
> My system python was all-ready damaged: that is why I wanted to build
> myself.
Then you should try to repair the system Python install via the system
package manager. It's not worth the hassle to try to replace it; it
almost certainly wo
On Thu, Nov 26, 2015 at 3:39 PM, Cecil Westerhof wrote:
> On Thursday 26 Nov 2015 12:07 CET, Dave Farrance wrote:
>> zypper in -f
>>
>> So you'll want to try package names like "python" and "python2.7".
>
> Sadly that also only installs only libraries and no applications.
Try "python-base". (Se
On Mon, Nov 30, 2015 at 10:44 AM, fl wrote:
> The content inside parenthesis in last line is strange to me.
>
> "button %s" % i, callback
https://docs.python.org/library/stdtypes.html#printf-style-string-formatting
--
Zach
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, Nov 30, 2015 at 10:53 AM, Zachary Ware
wrote:
> On Mon, Nov 30, 2015 at 10:44 AM, fl wrote:
>> The content inside parenthesis in last line is strange to me.
>>
>> "button %s" % i, callback
>
> https://docs.python.org/library/stdtypes.html#printf-s
On Fri, Dec 4, 2015 at 10:37 AM, Ian Kelly wrote:
> On Fri, Dec 4, 2015 at 10:21 AM, d...@forestfield.co.uk
> wrote:
>> Python 3.5 will not run under Windows XP, but what about applications
>> created using py2exe or cx_freeze under Windows 7, 8 or 10, is there any
>> knowledge of whether they
On Fri, Dec 4, 2015 at 12:02 PM, Ali Zarkesh wrote:
> My pip can't download or upgrade anything
> I use python 3.5 (win 32) and my pip version is 7.1.2.
> The error message is this:
>
> Exception:
> Traceback (most recent call last):
> ...
> PermissionError: [Errno 13] Permission denied: 'c:\progr
On Dec 9, 2015 3:36 AM, "Chris Harwood" wrote:
>
> Hi,
>
> Python » 3.5.0 Documentation » The Python Standard Library » 25.
Graphical User Interfaces with Tk » states that "You can check that tkinter
is properly installed on your system by running python -m tkinter from the
command line; this shou
On Fri, Dec 11, 2015 at 10:30 AM, Jay Hamm wrote:
> Hi
>
> I was trying to use your windows version of python 3.5.1 x64.
>
> It has a conflict with a notepad++ plugin NppFTP giving
> api-ms-win-crt-runtime-I1-1-0.dll error on start up.
>
> This seems pretty well documented on the web. The work ar
On Fri, Dec 11, 2015 at 11:53 AM, Jay Hamm wrote:
> It is an issue that borks your install. That seems like your issue which
> involves notepad++. You might want to talk with them about it or more likely
> since they've not fixed it in a while - develop a work around or at least a
> message tha
On Fri, Dec 18, 2015 at 1:43 AM, Chris Angelico wrote:
> On Fri, Dec 18, 2015 at 6:12 PM, Serhiy Storchaka wrote:
>> Agreed. Please open an issue.
>>
>> Using non-ASCII apostrophes and like in docstrings may be considered a bug.
>
> http://bugs.python.org/issue25899
>
> Also noticed this. Is this
On Mon, Dec 21, 2015 at 6:49 AM, Mark Lawrence wrote:
> On 19/12/2015 17:45, Renato Emanuel Dysangco wrote:
>>
>> hello
>>
>> is an **.msi* version of your *Python 3.5.1 (32 bit)* in the pipeline
>> soon?
>>
>> thanks for your time
>>
>
> msi files are not being made available for 3.5.
Correction
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
On Sat, Dec 26, 2015 at 10:59 PM, brian.moreira
wrote:
> I trying to run a simple code that opens a Tkinter window with text in it, on
> my windows 8 machine using Python 3.4.3
Hi Brian,
Details are important, and there are several missing from your
question that make any advice just guesswork
On Jan 1, 2016 1:47 PM, "Chris Angelico" wrote:
>
> On Sat, Jan 2, 2016 at 6:39 AM, Mark Lawrence
wrote:
> > Please see
> > https://mail.python.org/pipermail/core-workflow/2016-January/000345.html
> >
> > This should encourage developers at all levels to help out, such that
the
> > list of open i
On Jan 1, 2016 2:35 PM, "Paul Rubin" wrote:
>
> Zachary Ware writes:
> > ... the canonical CPython repository will be moving to GitHub in the
> > near future. Note that we will *not* be using the GitHub issue
> > tracker or wiki, just the hosting and re
On Fri, Jan 1, 2016 at 2:03 PM, wrote:
> Is there a summary document that discusses the options examined and why
> others did not meet the requirements? I am -NOT- trying to dredge up
> arguments about the choice. I am guessing that there have been some.
Easiest would be to look through the arch
On Thu, Jan 14, 2016 at 2:22 PM, Adriaan Renting wrote:
> Any suggestions?
Instead of trying to make diff behave through subprocess, have a look
at Python's difflib: https://docs.python.org/3/library/difflib.html
In particular, I think `difflib.ndiff(first_list_of_strings,
second_list_of_strings
On Thu, Jan 21, 2016 at 1:18 AM, Frank Millman wrote:
> Hi all
>
> Fedora 22 comes standard with Python 3.4.2. I want to install 3.5.1.
>
> It is easy enough to download the source and run ./configure;make;make
> altinstall. But then I find that I cannot import gzip because zlib-devel is
> missing
Hi Ryan,
On Mon, Feb 1, 2016 at 1:30 PM, Ryan Young wrote:
> I am new to Python but have known Java for a few years now. With python, so
> far, so good! I created a simple calculator to calculate the total cost of
> a meal. My variables were tip tax total and order. I am confused about how
> to p
On Fri, Feb 5, 2016 at 9:16 AM, Matt wrote:
> How do I do the equivalent of this in Python?
>
> snmpset -v 2c -c $community $ip .1.3.1.1.4.1.1.1.1.1.1.1.0 s test
>
> and
>
> snmpset -v 2c -c $community $ip .1.3.1.1.4.1.1.1.1.1.1.1.0 i 123
>
> and
>
> snmpbulkget -v2c -c $community -m ALL $ip .1.3.
On Fri, Feb 5, 2016 at 11:12 AM, Joel Goldstick
wrote:
> On Fri, Feb 5, 2016 at 11:10 AM, Zachary Ware > wrote:
>> I have had success with pysnmp (http://pysnmp.sourceforge.net/). It
>
> That page 404s for me
Hmm, it works for me (just tried again). Even Gmail's automat
On Fri, Feb 5, 2016 at 11:14 AM, Joel Goldstick
wrote:
> On Fri, Feb 5, 2016 at 12:12 PM, Joel Goldstick
> wrote:
>> That page 404s for me.
>>
>
> Pardon me, looks like sourceforge is down
Ah, I guess caching fooled me when I rechecked.
--
Zach
--
https://mail.python.org/mailman/listinfo/pyth
On Thu, Mar 17, 2016 at 6:02 PM, Michael Felt wrote:
> I have been packaging python for AIX - and wanting minimal dependancies I
> have been ignoring the final messages from make.
>
> Personally, I do not see any real harm in the missing *audio "bits", but how
> terrible are the other missing "bit
On Thu, Mar 24, 2016 at 11:21 AM, Niyoo *Unkown*
wrote:
> The reason I uninstalled Python was because it was 32 bit not 64 bit and I
> couldn't find the 64 bit version.
Have a look at this page: https://www.python.org/downloads/windows/
The 64 bit versions are the "x86_64" ones.
--
Zach
--
ht
On Fri, Mar 25, 2016 at 12:10 AM, Wildman via Python-list
wrote:
> I have a program that I have been trying to rewrite so it will
> run on Python 2.7 and 3.4. It has been a pain to say the least.
> Thank $DIETY for aliases. Anyway, I got it all working except
> for one thing. The program has an
On Fri, Mar 25, 2016 at 3:24 PM, Ray Cote
wrote:
> Hello:
>
> I’m trying to perform an synchronous task while using asyncio.
> I understand the solution is to use run_in_executor.
> I’m not clear on how to add this into an already running event loop.
>
> I’ve found lots of examples showing how to
On Fri, Mar 25, 2016 at 3:56 PM, Marko Rauhamaa wrote:
> Ray Cote :
>
>> I’m trying to perform an synchronous task while using asyncio.
>
> You seem to want to do something you shouldn't be doing. Asyncio does
> not tolerate synchronous/blocking calls. You will need to move those in
> separate thr
On Tue, Oct 28, 2014 at 10:22 PM, Rustom Mody wrote:
> How to see that list and range are both sequences?
> Or more generally how to to introspectively discover (ie not by reading
> docs!!)
> the abstract base classes -- eg sequence, iterable etc -- for an arbitrary
> object?
# Python 2/3 compat
On Tue, Oct 28, 2014 at 11:16 PM, Zachary Ware
wrote:
> def get_abc_map(cls):
>return {n: issubclass(cls, getattr(abc, n)) for n in dir(abc) if
> n[0].isupper()}
Of course, Gmail decided to wrap my long line for me. In case it's
not obvious, that should be a single line.
--
On Tue, Oct 28, 2014 at 11:40 PM, Rustom Mody wrote:
> On Wednesday, October 29, 2014 9:53:46 AM UTC+5:30, Zachary Ware wrote:
>> On Tue, Oct 28, 2014 at 11:16 PM, Zachary Ware wrote:
>> > def get_abc_map(cls):
>> >return {n: issubclass(cls, getattr(abc, n)) fo
On Wed, Oct 29, 2014 at 12:15 AM, Rustom Mody wrote:
> Maybe nicer to filter out the false's with a filter-false thus??
>
> def ff(d): return [n for n in d if d[n]]
Sure. Or, combining things:
try:
from collections import abc
except ImportError:
import collections as abc
from abc import
On Wed, Oct 29, 2014 at 12:27 AM, Ben Finney wrote:
> Zachary Ware writes:
>
>> Of course, Gmail decided to wrap my long line for me. In case it's not
>> obvious, that should be a single line.
>
> Right, GMail is a poor choice for composing messages. You might get
On Wed, Oct 29, 2014 at 1:11 AM, Rustom Mody wrote:
> On Wednesday, October 29, 2014 11:10:06 AM UTC+5:30, Zachary Ware wrote:
>> Of course, that's 3 (progressively shorter) loops to get the names of
>> the ABCs of a class compared to 1 (fairly short in the first place)
On Thursday, October 30, 2014, Artur Bercik wrote:
> Dear Dave Angel
>
> Thanks for your answer.
>
> I am using Python 2.7
>
> I want to set it permanently.
> I have to set several variables so it would be easier if I could set them
> from Python.
>
Depending on how "permanently" you mean, about
On Thu, Oct 30, 2014 at 9:40 PM, Artur Bercik wrote:
> could you please elaborate 'setx <...>'?
>From a Command Prompt, do 'help setx' for details on how to use setx.
Rustom's suggestion of using regedit is going to be far easier than
using _winreg (which probably shouldn't even be considered as
On Fri, Oct 31, 2014 at 12:31 PM, Seymore4Head
wrote:
> I run across this page frequently. To me, this is examples. While
> examples can be quite useful, I don't call this a tutorial. I have
> found the answer to my question by searching this page several times,
> but the biggest problem with t
On Fri, Oct 31, 2014 at 1:11 PM, Dennis Lee Bieber
wrote:
> On Thu, 30 Oct 2014 22:00:33 -0500, Zachary Ware
> declaimed the following:
> >From a Command Prompt, do 'help setx' for details on how to use setx.
>
> Really?
>
> C:\Users\Wulfraed\Documen
On Fri, Nov 21, 2014 at 12:37 PM, Ian Kelly wrote:
> Here's a nice crash. I thought this might similarly produce a
> recursion depth error, but no, it's a seg fault!
>
> $ cat test.py
> import itertools
>
> l = []
> it = itertools.chain.from_iterable(l)
> l.append(it)
> next(it)
> $ python3 test.p
On Tue, Dec 2, 2014 at 11:18 AM, Roy Smith wrote:
> Wouldn’t it be neat to write:
>
>foo == 42 or else
>
> and have that be an synonym for:
>
> assert foo == 42
>
> :-)
Never going to happen, but I like it! Perhaps raise IntimidationError
instead of AssertionError when it fails?
--
Zac
On Mon, Dec 8, 2014 at 12:52 AM, Ganesh Pal wrote:
> Hi Folks ,
>
> This might seem to be very trivial question but iam breaking my head over
> it for a while .
>
> My understanding is that re.search should search for the match anywhere in
> the string .
>
>
> why is re.search failing in the bel
On Sat, Dec 13, 2014 at 9:51 AM, Grant Edwards wrote:
> On 2014-12-10, Bruno Cauet wrote:
>
>> Nathaniel, I'm not sure about that: even if the code is 2- and 3-compatible
>> you'll pick one runtime.
>
> Why do you say that?
>
> I have both installed. I use both. Sometimes it depends on which
>
On Sun, Dec 14, 2014 at 11:38 PM, Michael Torrie wrote:
> Guess the future import is only to make not having parens and error.
Python 2.7.8+ (default, Nov 2 2014, 00:32:19) [MSC v.1500 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print(1, 2)
On Mon, Dec 15, 2014 at 1:29 AM, Ben Finney wrote:
> How can I get that ‘__import__’ call, complete with its ‘fromlist’
> parameter, working correctly under both Python 2 and Python 3, keeping
> the ‘unicode_literals’ setting?
How about "str('bar')"?
> If some kind of kludge is needed to make it
1 - 100 of 210 matches
Mail list logo