confusing installation on windows? was: Re:

2016-02-13 Thread Irmen de Jong
On 13-2-2016 2:43, Joel Goldstick wrote: > On Fri, Feb 12, 2016 at 3:16 PM, Manas Soni wrote: > >> >> I have downloaded python and when I click on it, it asks me to repair >> which I do, it then says successful however when I click on it again it >> won’t let me on it >>

Re: Python Not Working as expected on Win 8 and above.

2016-02-13 Thread MWS
On Saturday 13 February 2016 07:13 AM, Joel Goldstick wrote: On Fri, Feb 12, 2016 at 3:16 PM, Manas Soni wrote: I have downloaded python and when I click on it, it asks me to repair which I do, it then says successful however when I click on it again it won’t let me

made a simple rhythm sample mixer for fun (think Roland TR-909)

2016-02-13 Thread Irmen de Jong
Hi, For fun and to learn a bit from messing around a little with audio samples, I've created a rhythm sample mixer inspired by the Roland TR-909 drum machine. Basically you write rhythm sample patterns and it then sequences and mixes them into a output wav file or streams it to your speakers.

Re: (unknown)

2016-02-13 Thread Oscar Benjamin
On 12 February 2016 at 21:39, Mark Lawrence wrote: > On 12/02/2016 20:16, Manas Soni wrote: >> >> >> I have downloaded python and when I click on it, it asks me to repair >> which I do, it then says successful however when I click on it again it >> won’t let me on it >>

Re: Python Not Working as expected on Win 8 and above.

2016-02-13 Thread eryk sun
On Sat, Feb 13, 2016 at 7:35 AM, MWS wrote: > couldn't find the default install python directory (maybe i didn't pay > attention earlier), later, after some scratching my head and other > intelligent thoughts and experiments i found it got installed in the users >

problem with dateutil

2016-02-13 Thread Tom P
I am writing a program that has to deal with various date/time formats and convert these into timestamps. It looks as if dateutil.parser.parse should be able to handle about any format, but what I get is: datetimestr = '2012-10-22 11:22:33' print(dateutil.parser.parse(datetimestr)) result:

Re: problem with dateutil

2016-02-13 Thread Gary Herron
On 02/13/2016 09:58 AM, Tom P wrote: I am writing a program that has to deal with various date/time formats and convert these into timestamps. It looks as if dateutil.parser.parse should be able to handle about any format, but what I get is: datetimestr = '2012-10-22 11:22:33'

Re: Python Not Working as expected on Win 8 and above.

2016-02-13 Thread Christopher Reimer
On 2/13/2016 5:35 AM, MWS wrote: Just to add to the above discussion, i find that when my workplace updated from win 7 to win 8.1 with fresh install, i downloaded the official python 3.5 and installed it. Everything went well during installation, but, i couldn't find the default install python

What is heating the memory here? hashlib?

2016-02-13 Thread Paulo da Silva
Hello all. I'm running in a very strange (for me at least) problem. def getHash(self): bfsz=File.blksz h=hashlib.sha256() hu=h.update with open(self.getPath(),'rb') as f: f.seek(File.hdrsz) #

Re: Storing a big amount of path names

2016-02-13 Thread mkondrashin
In my application I have used two approaches: 1. To store paths as a tree (as directories for a tree. 2. For long list of similar paths, to store difference of strings. Though this was c++/obj-c project, I can share a diff code with you if you drip me a line (mkondrashin & gmail , com) --

Re: problem with dateutil

2016-02-13 Thread Tom P
On 02/13/2016 07:13 PM, Gary Herron wrote: On 02/13/2016 09:58 AM, Tom P wrote: I am writing a program that has to deal with various date/time formats and convert these into timestamps. It looks as if dateutil.parser.parse should be able to handle about any format, but what I get is:

Re: problem with dateutil

2016-02-13 Thread Gary Herron
On 02/13/2016 12:27 PM, Tom P wrote: On 02/13/2016 07:13 PM, Gary Herron wrote: On 02/13/2016 09:58 AM, Tom P wrote: I am writing a program that has to deal with various date/time formats and convert these into timestamps. It looks as if dateutil.parser.parse should be able to handle about any

Eventlet 0.18.3 released

2016-02-13 Thread Sergey Shepelev
Eventlet is a concurrent networking library for Python that allows you to change how you run your code, not how you write it. https://pypi.python.org/pypi/eventlet/0.18.3 The most scandal Eventlet release so far: https://pypi.python.org/pypi/eventlet/0.18.3 *Important note*: do not use

[issue26355] Emit major version based canonical URLs for docs

2016-02-13 Thread Nick Coghlan
New submission from Nick Coghlan: Based on a recent comment on one of the mailing lists, I spent a bit of time looking into canonical URLs and their implications for how search engines treat versioned documentation. The most relevant resource for that in relation to the CPython docs appears

Re: working

2016-02-13 Thread Bob Martin
in 753638 20160212 185728 sohcahto...@gmail.com wrote: >On Friday, February 12, 2016 at 1:47:24 AM UTC-8, Mohammed Zakria wrote: >> hello >> i want to know the company that ican work as freelance python devloper > >There are some recruiters that read this mailing list and will send >unsolicited

[issue25833] pyvenv: venvs cannot be moved because activate scripts hard-code paths

2016-02-13 Thread Vinay Sajip
Vinay Sajip added the comment: Indeed, and in fact *all* scripts written to a venv's bin directory hard-code the path to that venv's interpreter. This confers the benefit that such scripts never need the venv to be explicitly activated - you can e.g. point crontab entries to them directly.

[issue11361] suggestion for os.kill(pid,CTRL_C_EVENT) in tests

2016-02-13 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___

[issue26355] Emit major version based canonical URLs for docs

2016-02-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-02-13 Thread Stefan Krah
Stefan Krah added the comment: I like the feature for literals, but I'm not sure about conversions from string. It slows down the conversion for (IMO) a very small benefit. Other languages allow it, but I've never attempted to use the feature: $ ocaml OCaml version 4.02.1 #

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-02-13 Thread Georg Brandl
Georg Brandl added the comment: It's mostly for consistency. For example, ``int(x, 0)`` is defined by the docs as "interpret x as in a literal". Other bases have special cases as well, e.g. "0x" is accepted by base 16. In the current version of the conversions, the string is scanned for "_"

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-02-13 Thread Stefan Krah
Stefan Krah added the comment: If the string conversions stay, may I suggest two functions: 1) PyUnicode_NumericAsAscii() 2) PyUnicode_NumericAsAsciiWS() The first one eliminates only underscores, the second one both underscores and leading/trailing whitespace. Decimal must support both:

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-02-13 Thread Stefan Krah
Stefan Krah added the comment: Correction: The explanation of the functions should be reversed. -- ___ Python tracker ___

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-02-13 Thread Georg Brandl
Georg Brandl added the comment: Thanks, I hadn't looked at cdecimal yet - I was planning to ask you to do the necessary changes there :) But there are a few versions of this (e.g. converting unicode digits to ASCII) scattered throughout the codebase, it would make sense to consolidate on this

[issue25726] sys.setprofile / sys.getprofile asymetry

2016-02-13 Thread Georg Brandl
Georg Brandl added the comment: Ok, this is because internally, sys.setprofile (or to be exact, PyEval_SetProfile) sets two things: a C function, and a "profileobj", which is the argument to setprofile(). sys.setprofile sets the C function to the "profile_trampoline", which supports calling

[issue5150] IDLE to support reindent.py

2016-02-13 Thread irdb
Changes by irdb : -- nosy: +irdb ___ Python tracker ___ ___ Python-bugs-list mailing

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2016-02-13 Thread irdb
Changes by irdb : -- nosy: +irdb ___ Python tracker ___ ___ Python-bugs-list mailing

[issue694339] IDLE: Dedenting with Shift+Tab

2016-02-13 Thread irdb
Changes by irdb : -- nosy: +irdb ___ Python tracker ___ ___ Python-bugs-list mailing

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-02-13 Thread Stefan Krah
Stefan Krah added the comment: > Georg Brandl added the comment: > > Thanks, I hadn't looked at cdecimal yet - I was planning to ask you to do the > necessary changes there :) Oh, well. :) > But there are a few versions of this (e.g. converting unicode digits to > ASCII) scattered

[issue13504] Meta-issue for "Invent with Python" IDLE feedback

2016-02-13 Thread irdb
Changes by irdb : -- nosy: +irdb ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11620] winsound.PlaySound() with SND_MEMORY should accept bytes instead of strings

2016-02-13 Thread Irmen de Jong
Irmen de Jong added the comment: Ran into this today when trying to provide a fallback sound output on windows when the user hasn't got pyaudio installed. It seems that this module has been forgotten and didn't get fixed when the str/bytes change happened in Python 3.0? -- nosy:

[issue11620] winsound.PlaySound() with SND_MEMORY should accept bytes instead of strings

2016-02-13 Thread Irmen de Jong
Changes by Irmen de Jong : -- versions: +Python 3.5 ___ Python tracker ___ ___

[issue26355] Emit major version based canonical URLs for docs

2016-02-13 Thread Georg Brandl
Georg Brandl added the comment: So we'd have to add a tag? Should be easy. -- ___ Python tracker ___ ___

[issue26351] Occasionally check for Ctrl-C in long-running operations like sum

2016-02-13 Thread Nick Coghlan
Nick Coghlan added the comment: At least list() and potentially other container constructors are also affected. While it's mentioned in the thread, I'll explicitly note here that the problem is specifically with iterators implemented in C, like itertools.count(). Iterators implemented in

[issue26351] Occasionally check for Ctrl-C in long-running operations like sum

2016-02-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +rhettinger ___ Python tracker ___ ___

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-02-13 Thread Stefan Krah
Stefan Krah added the comment: I still wonder about the complexity of all this for decimal. We now have two grammars on top of each other, this being the actual one for decimal: http://speleotrove.com/decimal/daconvs.html For string conversions I'd prefer a lax way (similar to OCaml) that

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-02-13 Thread Georg Brandl
Georg Brandl added the comment: Hm. On the one hand there is a spec, so it can be argued that underscores don't belong to Decimal. On the other hand, if we get Decimal literals at one point, there will be a strong argument for allowing underscores in them as in all other number literals.

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-02-13 Thread Georg Brandl
Georg Brandl added the comment: Raymond, you've also worked on Decimal - do you have an opinion on allowing underscores in Decimal(string) conversions? -- nosy: +rhettinger ___ Python tracker

[issue25924] investigate if getaddrinfo(3) on OSX is thread-safe

2016-02-13 Thread A. Jesse Jiryu Davis
A. Jesse Jiryu Davis added the comment: I think we have consensus for "try 2". I'm not a core dev, would one of you please merge 25924-getaddrinfo-is-thread-safe-2.patch? Thanks! -- ___ Python tracker

[issue26348] activate.fish sets VENV prompt incorrectly

2016-02-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset cfc66e37eb8e by Vinay Sajip in branch '3.5': Fixes #26348: Corrected typos in activate.fish script. https://hg.python.org/cpython/rev/cfc66e37eb8e New changeset 0f1ac94d2f98 by Vinay Sajip in branch 'default': Fixes #26348: Merged fix from 3.5.

[issue26348] activate.fish sets VENV prompt incorrectly

2016-02-13 Thread Vinay Sajip
Changes by Vinay Sajip : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue23102] distutils: isinstance checks fail with setuptools-monkeypatched Extension/Distribution

2016-02-13 Thread Ralf Gommers
Changes by Ralf Gommers : -- nosy: +ralf.gommers ___ Python tracker ___ ___

[issue23114] "dist must be a Distribution instance" check fails with setuptools

2016-02-13 Thread Ralf Gommers
Changes by Ralf Gommers : -- nosy: +ralf.gommers ___ Python tracker ___ ___

[issue23102] distutils: isinstance checks fail with setuptools-monkeypatched Extension/Distribution

2016-02-13 Thread Ralf Gommers
Ralf Gommers added the comment: Any chance to get this merged? -- versions: +Python 3.6 ___ Python tracker ___

[issue26209] TypeError in smtpd module with string arguments

2016-02-13 Thread Anish Shah
Changes by Anish Shah : -- nosy: -anish.shah ___ Python tracker ___ ___

[issue26349] Ship python35.lib with the embedded distribution, please

2016-02-13 Thread Steve Dower
Steve Dower added the comment: It shouldn't make any difference as the lib file is not needed at runtime. While developing your app, you should use a regular installation to make sure you have all the header files you need. The embeddable distro is for runtime. --

[issue26340] modal dialog with transient method; parent window fails to iconify

2016-02-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: How do I run it? "tcl is not recognized ..." -- ___ Python tracker ___ ___

[issue26340] modal dialog with transient method; parent window fails to iconify

2016-02-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: As near as I can tell, the Windows installer installs tcl/tk libraries but no executable. Perhaps your example could be converted to root.tk.call(? ? ?) form, but I do not know how to do do. Passing the entire tcl program as one python string argument does

[issue25887] awaiting on coroutine more than once should be an error

2016-02-13 Thread André Caron
André Caron added the comment: > I believe you're not using the asyncio.task() function correctly. I assume you meant asyncio.wait(). I just updated my gist with a variant of my example that uses the (done, pending) pair returned by asyncio.wait() as you suggested. The set of done futures

[issue26356] Registration

2016-02-13 Thread Haroun Rauni
New submission from Haroun Rauni: Yes -- messages: 260249 nosy: harounrauni priority: normal severity: normal status: open title: Registration ___ Python tracker

[issue26340] modal dialog with transient method; parent window fails to iconify

2016-02-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is an equivalent code on Tcl. It behaves as expected on Linux with Tk 8.6 and 8.4. The parent window responds to minimize, maximize, and close events. The modal dialog window iconifies and closes together with the parent window. Could you test it on

[issue26355] Emit major version based canonical URLs for docs

2016-02-13 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker ___

Re: problem with dateutil

2016-02-13 Thread Mark Lawrence
On 13/02/2016 17:58, Tom P wrote: I am writing a program that has to deal with various date/time formats and convert these into timestamps. It looks as if dateutil.parser.parse should be able to handle about any format, but what I get is: datetimestr = '2012-10-22 11:22:33'

[issue26357] asyncio.wait loses coroutine return value

2016-02-13 Thread André Caron
New submission from André Caron: When the asyncio.wait() function with coroutine objects as inputs, it is impossbible to extract the results reliably. This issue arises because asyncio.wait() returns an unordered set of futures against which membership tests of coroutine objects always fail.

[issue26349] Ship python35.lib with the embedded distribution, please

2016-02-13 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___

[issue26349] Ship python35.lib with the embedded distribution, please

2016-02-13 Thread Steve Dower
Changes by Steve Dower : -- resolution: not a bug -> rejected ___ Python tracker ___

[issue25887] awaiting on coroutine more than once should be an error

2016-02-13 Thread André Caron
André Caron added the comment: After thinking about this some more, I think my problem with asyncio.wait() is a bit bigger than the simple fact that coroutine objects cannot be awaited multiple times. It seems to me like asyncio.wait() is completely broken for coroutine objects as inputs and

[issue26356] Registration

2016-02-13 Thread SilentGhost
Changes by SilentGhost : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

Re: What is heating the memory here? hashlib?

2016-02-13 Thread Paulo da Silva
I meant eating! :-) -- https://mail.python.org/mailman/listinfo/python-list

[issue26340] modal dialog with transient method; parent window fails to iconify

2016-02-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You need to install Tcl/Tk separately (e.g. ActiveTcl) and use the "wish" command. -- ___ Python tracker ___

Re: What is heating the memory here? hashlib?

2016-02-13 Thread Chris Angelico
On Sun, Feb 14, 2016 at 9:26 AM, Paulo da Silva wrote: > I meant eating! :-) Heh, "heating" works too - the more you use memory, the more it heats up :) I'm assuming this is inside "class File:" and you have class members for your constants like header size?

[issue25887] awaiting on coroutine more than once should be an error

2016-02-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset c2a2685ab89b by Yury Selivanov in branch '3.5': Issue #25887: Raise a RuntimeError when a coroutine is awaited more than once. https://hg.python.org/cpython/rev/c2a2685ab89b New changeset 23297d5bbd29 by Yury Selivanov in branch 'default': Merge

[issue26351] Occasionally check for Ctrl-C in long-running operations like sum

2016-02-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, this doesn't seem to be solving any real life problems, only contrived examples. If any changes are made, they should be very restricted in scope, taking care to not wreck the performance of tools designed for speed and not to add useless crud to

[issue5150] IDLE to support reindent.py

2016-02-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: One other thought, it would be nice if there were an option (on by default) to automatically strip trailing whitespace when a file is saved. That would be much nicer than making the user remember to do periodic clean-ups as they edit. --

Changing A Subscription Option

2016-02-13 Thread Heaven Hodges
Hello. Is there a way to change my subscription option from digest to individual e-mails? I couldn't find any information on the list web page: https://mail.python.org/mailman/listinfo/python-list. I've tried filling out the subscription form again, but the result was an automated e-mail

Re: Changing A Subscription Option

2016-02-13 Thread Tim Golden
On 13/02/2016 23:15, Heaven Hodges wrote: Hello. Is there a way to change my subscription option from digest to individual e-mails? I couldn't find any information on the list web page: https://mail.python.org/mailman/listinfo/python-list. At the bottom of that page is a button to "Unsubscribe

[issue26357] asyncio.wait loses coroutine return value

2016-02-13 Thread Guido van Rossum
Guido van Rossum added the comment: I wonder if the right solution isn't to insist that the arguments to await() are Futures, not coroutines. While in many cases (e.g. gather(), wait_for()) it's a useful convention to support either coroutines or Futures, for wait() it does seem pretty

Re: What is heating the memory here? hashlib?

2016-02-13 Thread Paulo da Silva
Às 22:45 de 13-02-2016, Chris Angelico escreveu: > On Sun, Feb 14, 2016 at 9:26 AM, Paulo da Silva > wrote: >> I meant eating! :-) > > Heh, "heating" works too - the more you use memory, the more it heats up :) :-) It is heating my head! ... > > What happens

Re: What is heating the memory here? hashlib?

2016-02-13 Thread Chris Angelico
On Sun, Feb 14, 2016 at 12:44 PM, Paulo da Silva wrote: >> What happens if, after hashing each file (and returning from this >> function), you call gc.collect()? If that reduces your RAM usage, you >> have reference cycles somewhere. >> > I have used gc and del.

Re: What is heating the memory here? hashlib?

2016-02-13 Thread Steven D'Aprano
On Sun, 14 Feb 2016 06:29 am, Paulo da Silva wrote: > Hello all. > > I'm running in a very strange (for me at least) problem. > > def getHash(self): > bfsz=File.blksz > h=hashlib.sha256() > hu=h.update > with open(self.getPath(),'rb') as f: > f.seek(File.hdrsz)# Skip header > b=f.read(bfsz)

[issue26316] Probable typo in Arg Clinic's linear_format()

2016-02-13 Thread Martin Panter
Martin Panter added the comment: I did look into testing, but I gave up. :) The test file doesn’t even import. I got the following error (without exception or traceback), cause by the line that reads “c = clinic.Clinic(language='C')”: $ (cd Tools/clinic/ && ../../python clinic_test.py) Error:

[issue26316] Probable typo in Arg Clinic's linear_format()

2016-02-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset aec2eae8933e by Martin Panter in branch '3.5': Issue #26316: Fix variable name typo in Argument Clinic https://hg.python.org/cpython/rev/aec2eae8933e New changeset 6c122e4e1cb2 by Martin Panter in branch 'default': Issue #26316: Merge Arg Clinic

How do i instantiate a class_name passed via cmd line

2016-02-13 Thread Veek. M
I'm writing a price parser. I need to do the equivalent of perl's $$var to instantiate a class where $car is the class_name. I'm passing 'Ebay' or 'Newegg' or 'Amazon' via cmd-line. I have a module named ebay.py and a class called Ebay (price parser). I do something like: \> main.py ebay

Re: How do i instantiate a class_name passed via cmd line

2016-02-13 Thread Rick Johnson
On Saturday, February 13, 2016 at 10:41:20 PM UTC-6, Veek. M wrote: > how do i replace the 'Ebay' bit with a variable so that I > can load any class via cmd line. Is this what you're trying to do? (Python2.x code) >>> import Tkinter as tk >>> classNames = ["Button", "Label"] >>> root = tk.Tk()

Re: How do i instantiate a class_name passed via cmd line

2016-02-13 Thread Veek. M
Gregory Ewing wrote: > Veek. M wrote: >> I'm writing a price parser. I need to do the equivalent of perl's >> $$var to instantiate a class where $car is the class_name. >> >> I'm passing 'Ebay' or 'Newegg' or 'Amazon' via cmd-line. I have a >> module named ebay.py and a class called Ebay (price

Re: How do i instantiate a class_name passed via cmd line

2016-02-13 Thread Cameron Simpson
On 14Feb2016 10:10, Veek. M wrote: I'm writing a price parser. I need to do the equivalent of perl's $$var to instantiate a class where $car is the class_name. I'm passing 'Ebay' or 'Newegg' or 'Amazon' via cmd-line. I have a module named ebay.py and a class called Ebay

[issue21042] ctypes.util.find_library() should return full pathname instead of filename in linux

2016-02-13 Thread Martin Panter
Martin Panter added the comment: I think the new regular expression will still find the wrong library in my libm example above. In 32-bit mode, it will be only looking to match \(libc6.*\). Since my example has the 64-bit line first, that one will match first. (I haven’t actually tested this,

[issue26358] mmap.mmap.__iter__ is broken (yields bytes instead of ints)

2016-02-13 Thread Antti Haapala
New submission from Antti Haapala: Just noticed when answering a question on StackOverflow (http://stackoverflow.com/q/35387843/918959) that on Python 3 iterating over a mmap object yields individual bytes as bytes objects, even though iterating over slices, indexing and so on gives ints

[issue12806] argparse: Hybrid help text formatter

2016-02-13 Thread Stephan Sokolow
Stephan Sokolow added the comment: @GraylinKim: In the interest of people like myself who wander in here via Google, would you mind stating, for the record, what license argparse_formatter.py is under? -- nosy: +ssokolow ___ Python tracker

[issue5824] SocketServer.DatagramRequestHandler Broken under Linux

2016-02-13 Thread Martin Panter
Martin Panter added the comment: Also see the three commented-out tests in test_socketserver. I presume the code needs to ensure the client binds to a name, and then the tests will be able to receive something back from the server. -- stage: -> needs patch

[issue26309] socketserver.BaseServer._handle_request_noblock() don't shutdwon request if verify_request is False

2016-02-13 Thread Martin Panter
Martin Panter added the comment: Thanks for the test, but it is a bit confusing to have the shutdown_request() method call finish_request() and actually do normal request handling. Maybe it would be better to not handle the request (and not test that a response is received), and just check

Re: How do i instantiate a class_name passed via cmd line

2016-02-13 Thread Veek. M
Rick Johnson wrote: > On Saturday, February 13, 2016 at 10:41:20 PM UTC-6, Veek. M wrote: >> how do i replace the 'Ebay' bit with a variable so that I >> can load any class via cmd line. > > Is this what you're trying to do? > > (Python2.x code) import Tkinter as tk classNames =

Re: How do i instantiate a class_name passed via cmd line

2016-02-13 Thread Rick Johnson
On Saturday, February 13, 2016 at 11:39:56 PM UTC-6, Veek. M wrote: > Nope - this is what i'm doing: > > class Foo(): > pass > > x = 'Foo' > > How do i use 'x' to create an instance of class Foo? Use the builtin function `getattr` on the module that contains the class named "Foo". For

[issue20598] argparse docs: '7'.split() is confusing magic

2016-02-13 Thread Martin Panter
Martin Panter added the comment: Here is a more conservative patch. What do you think Paul? * Keep all the changes to single-item and empty lists * Revert many of the other changes, except where there are only a few arguments and I feel it would make the section or piece of code too

[issue26351] Occasionally check for Ctrl-C in long-running operations like sum

2016-02-13 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- Removed message: http://bugs.python.org/msg260255 ___ Python tracker ___

Re: I cannot open IDLE

2016-02-13 Thread Rick Johnson
On Friday, February 12, 2016 at 7:06:45 AM UTC-6, anthony averett wrote: > I have downloaded python but I cannot open up idle. I really need this > issue resolved for I have work do for one of my computer science class. Sorry, but you failed to provide enough information. Here are a few

Re: How do i instantiate a class_name passed via cmd line

2016-02-13 Thread Gregory Ewing
Veek. M wrote: I'm writing a price parser. I need to do the equivalent of perl's $$var to instantiate a class where $car is the class_name. I'm passing 'Ebay' or 'Newegg' or 'Amazon' via cmd-line. I have a module named ebay.py and a class called Ebay (price parser). I do something like: \>

Re: What is heating the memory here? hashlib?

2016-02-13 Thread Paulo da Silva
I was unable to reproduce the situation using a simple program just walking through all files>4K, with or without the seek, and computing their shasums. Only some fluctuations of about 500MB in memory consumption. I'll look at this when I get more time, taking in consideration the suggestions