[issue45435] delete misleading faq entry about atomic operations

2021-10-12 Thread Jeff Allen
Jeff Allen added the comment: Thomas wrote: > it's as part of this discussion in > https://mail.python.org/archives/list/python-...@python.org/thread/ABR2L6BENNA6UPSPKV474HCS4LWT26GY/#IAOCDDCJ653NBED3G2J2YBWD7HHPFHT6 > and others in #python-dev That's where I noticed it, but

[issue45435] delete misleading faq entry about atomic operations

2021-10-12 Thread Jeff Allen
Jeff Allen added the comment: I'm interested in Thomas' reasons, but here are some of mine (as far as I understand things): 1. It is specific to one interpreter implemented in C, equipped with a GIL, and on certain assumptions about the byte code interpreter and the implementation of built

[issue28708] Low FD_SETSIZE limit on Windows

2021-05-11 Thread Nicole Allen
Nicole Allen added the comment: Thanks for putting that all together. Besides for amazing digital marketing plans visit us now https://www.seobrisk.com/locations/seo-detroit/ -- nosy: +nicoleallen ___ Python tracker <https://bugs.python.

[issue43724] macOS cannot compute sizeof (long double)

2021-04-03 Thread Allen
Change by Allen : -- title: cannot compute sizeof (long double) -> macOS cannot compute sizeof (long double) ___ Python tracker <https://bugs.python.org/issu

[issue43724] cannot compute sizeof (long double)

2021-04-03 Thread Allen
Change by Allen : -- files: config.log nosy: allenlili priority: normal severity: normal status: open title: cannot compute sizeof (long double) type: compile error versions: Python 3.9 Added file: https://bugs.python.org/file49933/config.log

[issue25478] Consider adding a normalize() method to collections.Counter()

2020-12-20 Thread Allen Downey
Allen Downey added the comment: This API would work well for my use cases. And looking back at previous comments in this thread, I think this proposal avoids the most objectionable pitfalls. -- nosy: +AllenDowney ___ Python tracker <ht

[issue34079] Multiprocessing module fails to build on Solaris 11.3

2020-11-30 Thread Clint Allen
Clint Allen added the comment: I don't see anything further needed with this issue. Closing it is fine with me. -- status: pending -> open ___ Python tracker <https://bugs.python.org/issu

[issue39639] Remove Suite node from AST

2020-02-22 Thread Jeff Allen
Jeff Allen added the comment: Jython uses the reference grammar and ASDL as a way to ensure it is Python we approximate, not some subtly different language. The presence of Suite here gives rise to a class (https://github.com/jythontools/jython/blob/v2.7.2b3/src/org/python/antlr/ast

Python stopped installing packages

2019-01-29 Thread Hamish Allen
Hi, Recently I’ve been trying to code a Discord bot in Python 3.6.2, then I realised that some features of discord.py were only available in Python 3.7+ (as seen here on the right near the top https://docs.python.org/3/library/asyncio.html), so I downloaded 3.7.2. After correctly changing the

[issue34079] Multiprocessing module fails to build on Solaris 11.3

2018-12-09 Thread Clint Allen
Clint Allen added the comment: Agreed, that is a better approach. I have tested your patch successfully with gcc on Solaris 11.3. -- ___ Python tracker <https://bugs.python.org/issue34

[issue34079] Multiprocessing module fails to build on Solaris 11.3

2018-07-10 Thread Clint Allen
Change by Clint Allen : -- keywords: +patch Added file: https://bugs.python.org/file47680/Python-2.7.15-Modules_multiprocessing_h.patch ___ Python tracker <https://bugs.python.org/issue34

[issue34079] Multiprocessing module fails to build on Solaris 11.3

2018-07-10 Thread Clint Allen
New submission from Clint Allen : The build of this module fails with this error: In file included from /usr/include/limits.h:12:0, from /usr/gcc/5/lib/gcc/sparcv9-sun-solaris2.11/5.4.0/include-fixed/limits.h:168, from /usr/gcc/5/lib/gcc/sparcv9-sun

[issue25478] Consider adding a normalize() method to collections.Counter()

2018-05-17 Thread Allen Downey
Allen Downey <allendow...@gmail.com> added the comment: I'd like to second Raymond's suggestion. With just a few additional methods, you could support a useful set of operations. One possible API: def scaled(self, factor) """Returns a new Counter with all values multipli

[issue33061] NoReturn missing from __all__ in typing.py

2018-03-12 Thread Allen Tracht
Change by Allen Tracht <aetra...@gmail.com>: -- components: Library (Lib) nosy: Allen Tracht priority: normal severity: normal status: open title: NoReturn missing from __all__ in typing.py type: behavior versions: Python 3.4, Python 3.5, Python 3.6, Python 3.7, Pyth

[issue32704] Tracking

2018-01-28 Thread Allen
New submission from Allen <londonowl1...@gmail.com>: Could someone help me use python to track the tArget phones location and i would like to intercepts all text and emaIl. .. -- messages: 311059 nosy: BIGAL priority: normal severity: normal status: open title: Tr

[issue32700] The replys additional (Re.) is ok.

2018-01-28 Thread Allen
New submission from Allen <londonowl1...@gmail.com>: .. -- messages: 310995 nosy: BIGAL priority: normal severity: normal status: open title: The replys additional (Re.) is ok. ___ Python tracker <rep...@bugs.python.org> <https://

[issue32299] unittest.mock.patch.dict.__enter__ should return the dict

2017-12-12 Thread Allen Li
Change by Allen Li <vianchielfa...@gmail.com>: -- type: -> enhancement ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32299> ___ _

[issue32299] unittest.mock.patch.dict.__enter__ should return the dict

2017-12-12 Thread Allen Li
New submission from Allen Li <vianchielfa...@gmail.com>: mock.patch.dict.__enter__ should return the patched dict/mapping object. Currently it returns nothing (None). This would make setting up fixtures more convenient: with mock.patch.dict(some.thing): some.thing['foo']

[issue9924] sqlite3 SELECT does not BEGIN a transaction, but should according to spec

2017-12-02 Thread Allen Li
Change by Allen Li <vianchielfa...@gmail.com>: -- nosy: +Allen Li ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue9924> ___ __

[issue31843] sqlite3.connect() should accept PathLike objects

2017-10-22 Thread Allen Li
New submission from Allen Li <vianchielfa...@gmail.com>: sqlite3.connect() should accept PathLike objects (objects that implement __fspath__) -- messages: 304773 nosy: Allen Li priority: normal severity: normal status: open title: sqlite3.connect() should accept PathLike o

[issue31843] sqlite3.connect() should accept PathLike objects

2017-10-22 Thread Allen Li
Change by Allen Li <vianchielfa...@gmail.com>: -- type: -> enhancement ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31843> ___ _

[issue31822] Document that urllib.parse.{Defrag, Split, Parse}Result are namedtuples

2017-10-19 Thread Allen Li
New submission from Allen Li <vianchielfa...@gmail.com>: It would be useful to document that urllib.parse.{Defrag,Split,Parse}Result are namedtuples, and make that API officially public if it was not otherwise. These classes are implemented as namedtuples in Python 2 and 3, and I am not

[issue31630] math.tan has poor accuracy near pi/2 on OpenBSD

2017-10-17 Thread Jeff Allen
Change by Jeff Allen <ja...@farowl.co.uk>: -- nosy: +jeff.allen ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31630> ___ __

[issue31749] Request: Human readable byte amounts in the standard library

2017-10-10 Thread Timothy Allen
Timothy Allen <t...@pyphilly.org> added the comment: This would be a benefit to my team, for sure. I can't even tell you how many different solutions we currently use to make file sizes human readable - at least three. -- nosy: +Fli

[issue31689] random.choices does not work with negative weights

2017-10-04 Thread Allen Riddell
Allen Riddell <a...@ariddell.org> added the comment: Upon some reflection, I think raising a ValueError is the right thing to do. Negative weights don't have an obvious interpretation. -- ___ Python tracker <rep...@bugs.python.or

[issue31689] random.choices does not work with negative weights

2017-10-04 Thread Allen Riddell
New submission from Allen Riddell <a...@ariddell.org>: Code to reproduce problem: population = list(range(10)) weights = list(-1 * w for w in range(10)) [random.choices(population, weights) for _ in range(1000)] will raise IndexError: 358 bisect = _bisect.bisect

portable python

2017-04-28 Thread allen wade
is there a way to install python on a thumb drive that does not require an administrator's password? I have to use public computers and store all my applications to the thumb drive, using the Portable Apps Platform to manage the applications. --

[issue29463] Add `docstring` attribute to AST nodes

2017-02-11 Thread Jeff Allen
Jeff Allen added the comment: Just terminology ... strictly speaking what you've done here is "add a *field* to the nodes Module, FunctionDef and ClassDef", rather than add an *attribute* -- that is, when one is consistent with the terms used in the ast module (https://docs.py

[issue28826] Programming with Python 3.6

2016-11-28 Thread Allen David Frankel
New submission from Allen David Frankel: On the Python Tutorial for beginners, the Python 3.6 gives me a syntax error with strings and does not respond to print and/or nothing comes up. -- components: Demos and Tools messages: 281921 nosy: ADFGUR priority: normal severity: normal

[issue26040] Improve coverage and rigour of test.test_math

2016-08-29 Thread Jeff Allen
Jeff Allen added the comment: Ah, cunning: I can make sense of it in hex. >>> hex(to_ulps(expected)) '0x3ff0' >>> hex(to_ulps(got)) '0x3fec' >>> hex( to_ulps(got) - to_ulps(expected) ) '-0x4' ... and what you've done with ulp then follows.

[issue26040] Improve coverage and rigour of test.test_math

2016-08-29 Thread Jeff Allen
Jeff Allen added the comment: Mark: Thanks for doing my homework. Points 1 and 3 I can readily agree with. I must take another look at to_ulps() with your patch on locally. I used the approach I did because I thought it was incorrect in exactly those corners where you prefer it. I'll take

[issue26040] Improve coverage and rigour of test.test_math

2016-08-27 Thread Jeff Allen
Jeff Allen added the comment: Mark: Thanks for validating the additional cases so carefully. If you still want to apply it in stages then I suppose the change to the comparison logic could go first (untested idea), although that's also where I could most easily have made a mistake

[issue27427] Add new math module tests

2016-07-10 Thread Jeff Allen
Jeff Allen added the comment: It would be nice to see this considered alongside #26040. -- nosy: +jeff.allen ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26040] Improve coverage and rigour of test.test_math

2016-03-19 Thread Jeff Allen
Changes by Jeff Allen <ja...@farowl.co.uk>: Added file: http://bugs.python.org/file42191/extra_cmath_testcases.py ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue26040] Improve coverage and rigour of test.test_math

2016-03-19 Thread Jeff Allen
Changes by Jeff Allen <ja...@farowl.co.uk>: Removed file: http://bugs.python.org/file42190/stat_math.py ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue26040] Improve coverage and rigour of test.test_math

2016-03-19 Thread Jeff Allen
Changes by Jeff Allen <ja...@farowl.co.uk>: Added file: http://bugs.python.org/file42192/stat_math.py ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue26040] Improve coverage and rigour of test.test_math

2016-03-19 Thread Jeff Allen
Changes by Jeff Allen <ja...@farowl.co.uk>: Removed file: http://bugs.python.org/file41526/stat_math.py ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue26040] Improve coverage and rigour of test.test_math

2016-03-19 Thread Jeff Allen
Jeff Allen added the comment: Thanks for the prompt acknowledgement and for accepting this to review. I have updated the coverage & tolerance demo program. Usage in the comments (in v3). I have also added the program I used to generate the extra test cases (needs mpmath -- easier to

[issue26040] Improve coverage and rigour of test.test_math

2016-03-18 Thread Jeff Allen
Changes by Jeff Allen <ja...@farowl.co.uk>: Added file: http://bugs.python.org/file42190/stat_math.py ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue26040] Improve coverage and rigour of test.test_math

2016-03-14 Thread Jeff Allen
Jeff Allen added the comment: Here is a patch that improves coverage and addresses the uneven accuracy. Required accuracy is now specified in ulps. Mostly, I have choses 1 ulp, since this passed for me on an x86 architecture (and also ARM), but this may be too ambitious. I have also

[issue22121] IDLE should start with HOME as the initial working directory

2016-01-31 Thread Jeff Allen
Jeff Allen added the comment: I'm also interested in a smooth experience for beginners. I have a factual observation with respect to Terry's comment: '''Windows icons have a Shortcut tab with a Start-in field. We should like to put %USERPROFILE% there, but this does not work -- msg253393

[issue25872] multithreading traceback KeyError when modifying file

2015-12-15 Thread Michael Allen
New submission from Michael Allen: Modifying a file while getting a stacktrace across multiple threads causes linecache's cache to bust and del to be called on the global cache variable. This is not thread safe and raises a KeyError. Reproducible with, import threading import traceback def

Procedure for downloading and Installing Python 2.7 Modules

2015-07-20 Thread W. D. Allen
Would like to locate and install numpy, scipy and matplotlib with Wing 101 for Python 2.7 Just beginning to use Python 2.7 for engineering work. Any guidance would be appreciated. Thanks, WDA balle...@gmail.com end -- https://mail.python.org/mailman/listinfo/python-list

[issue20155] Regression test test_httpservers fails, hangs on Windows

2014-06-29 Thread Jeff Allen
Jeff Allen added the comment: Disabling the AV/firewall did not stop the symptoms when I was investigating originally. In order to get the unmodified test to pass, I had to stop the BFE (base filtering engine), which I think may have been given new rules or behaviours as a result

[issue21700] Missing mention of DatagramProtocol having connection_made and connection_lost methods

2014-06-09 Thread Allen Riddell
New submission from Allen Riddell: The following important information from PEP 3156 does not appear in the asyncio library documentation: Datagram protocols have connection_made() and connection_lost() methods with the same signatures as stream protocols. Indeed, reading the docs it looks

[issue21701] create_datagram_endpoint does not receive when both local_addr and remote_addr provided

2014-06-09 Thread Allen Riddell
New submission from Allen Riddell: Creating a UDP connection through ``create_datagram_endpoint`` when specifying both remote_addr and local_addr does not work; messages are not received. If remote_addr is removed, messages are received. Easy to reproduce: works: python3 client_good.py

[issue21701] create_datagram_endpoint does not receive when both local_addr and remote_addr provided

2014-06-09 Thread Allen Riddell
Allen Riddell added the comment: (couldn't figure out how to attach multiple files) -- client_good.py -- Send and receive a messages using DatagramProtocol import asyncio import time class Helloer(asyncio.DatagramProtocol): def connection_made(self, transport): print('(helloer

[issue21701] create_datagram_endpoint does not receive when both local_addr and remote_addr provided

2014-06-09 Thread Allen Riddell
Allen Riddell added the comment: I gather this is the desired behavior. If one specifies remote_addr then one only accepts packets from that address and port. Whereas if no remote_addr is given then one accepts packets from any address and any port. Sorry for the noise

[issue20155] Regression test test_httpservers fails, hangs on Windows

2014-03-04 Thread Jeff Allen
Jeff Allen added the comment: I worked out that the essence of the test is to insert an extra \n at the end of a GET request line. The request is syntactically invalid for HTTP. The \n\r\n appears like two blank lines, implying no headers, but the headers then follow where no data should

[issue20155] Regression test test_httpservers fails, hangs on Windows

2014-02-23 Thread Jeff Allen
Jeff Allen added the comment: Thanks for adding to the evidence here. As discussed above, disabling the security product (which is Bitdefender) on my PC didn't stop the problem for me, and I'm reluctant to uninstall. I narrowed it to the Windows Base Filtering Engine, but perhaps

[issue20155] Regression test test_httpservers fails, hangs on Windows

2014-02-23 Thread Jeff Allen
Jeff Allen added the comment: Actual patch for your convenience. I'm not set up to build CPython from source, so I've tested this with my installed CPython 2.7.6, and it's clean. [As for keeping the tests in sync, yes that's our aim. Jython's Lib contains only the customised versions

Re: random.sample with large weighted sample-sets?

2014-02-16 Thread Charles Allen
How efficient does this thing need to be? You can always just turn it into a two-dimensional sampling problem by thinking of the data as a function f(x=item), generating a random x=xr in [0,x], then generating a random y in [0,max(f(x))]. The xr is accepted if 0 y = max(f(xr)), or rejected (and

[issue20155] Regression test test_httpservers fails, hangs on Windows

2014-01-06 Thread Jeff Allen
New submission from Jeff Allen: When I run: start python -m test.test_httpservers test_request_line_trimming reports ERROR, and the test hangs at test_version_none. If I run a copy of the test in which the latter test is skipped with @unittest.skipIf(sys.platform == win32, ...), the error

[issue17697] Incorrect stacktrace from pdb

2013-04-11 Thread Don Allen
New submission from Don Allen: Give the attached file execute permission and run it. At the first breakpoint, the backtrace will be correct. Continue. At the second breakpoint, a backtrace will show the foo('first call') on the stack when, in fact, the call came from foo('second call

PyTexas: last day for $25 registration, talk proposal

2012-09-01 Thread Brad Allen
Just wanted to send out this quick reminder--today is the last day for PyTexas $25 registration; starting tomorrow it will cost $50. http://www.pytexas.org/chance/1/register/ Today is also your last day to post your talk proposals. http://www.pytexas.org/chance/1/talks/add/ Btw, there

Re: PyTexas: last day for $25 registration, talk proposal

2012-09-01 Thread Brad Allen
Whoops, false alarm. Tomorrow, August 31 is actually the last day to register and pay at the $25 rate for PyTexas. Likewise for talk proposals. On Thu, Aug 30, 2012 at 3:36 PM, Brad Allen bradallen...@gmail.com wrote: Just wanted to send out this quick reminder--today is the last day

[issue13273] HTMLParser improperly handling open tags when strict is False

2011-10-27 Thread Christopher Allen-Poole
New submission from Christopher Allen-Poole christoph...@allen-poole.com: This is is encountered when extending html.parser.HTMLParser and running with strict mode False. Expected behavior: When '''div style=bThe a href=some_urlrain/a br / in spanSpain/span/b/div''' is passed to the feed

10 Reasons You Should Attend PyTexas 2011...Register Now!

2011-08-11 Thread Brad Allen
If you're in the Texas area, please check out this post explaining registration and the 10 reasons you should consider attending PyTexas 2011: http://pytexas.blogspot.com/2011/08/10-reasons-you-should-attend-pytexas.html We opened registration on Monday morning with this post to the local user

PyTexas 2011 Call for Proposals

2011-06-13 Thread Brad Allen
PyTexas 2011, the fourth annual Python programming conference for Texas and the surrounding region, will take place Saturday September 10 and Sunday September 11, 2011 at Texas AM University in College Station, Texas. Last year with 94 attendees, PyTexas 2010 reached critical mass to achieve an

Re: Abandoning Python

2011-05-21 Thread Bill Allen
You have ideas, a text editor, and a computer - best get to coding. What's stopping you? You largely want Python, with modifications. Join the development team and help implement those changes, or fork your own flavor and do what you wish. Right? You imagine it's an easy task, so get after

Re: PyPad 2.7.1 (Update 2)

2011-05-14 Thread Bill Allen
this little Python app. Been wanting something like this for a long time. I installed this on my iPhone running iOS 4.3.3 (8J2). Congrats on a great app! Bill Allen http://www.python.org http://www.catb.org/%7Eesr/faqs/hacker-howto.htmlhttp://taarc.rebelwolf.com On Thu, May 12, 2011 at 02:06

Python SIG for Healthcare IT

2011-03-11 Thread Brad Allen
For those seeking to work with Python-based tools in the healthcare IT industry, this SIG (special interest group) can provide a forum to discuss challenges and hopefully foster knowledge sharing and tools development. Relevant topics include tools for working with healthcare standard data

Re: I'm happy with Python 2.5

2011-02-27 Thread Bill Allen
On Sun, Feb 27, 2011 at 07:34, n00m n...@narod.ru wrote: Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win32 and Idon't move neither up nor down from it (the best the fastest version) -- http://mail.python.org/mailman/listinfo/python-list Trolls should also

Re: Which is the best book to learn python

2011-02-14 Thread Bill Allen
Alan Gauld has written a very good online book called Learning to Program. I would definitely recommend it. http://www.alan-g.me.uk/l2p/index.htm -Bill On Mon, Jan 24, 2011 at 11:09, santosh hs santosh.tron...@gmail.com wrote: Hi All, i am beginner to python please tell me which is the

Re: Python on wikipedia

2010-12-12 Thread Bill Allen
Yeah, I noticed that a while back too. Kinda cool. --Bill On Sun, Dec 12, 2010 at 3:21 PM, DevPlayer devpla...@gmail.com wrote: Snapshot in time, hey look at that; someone used Python as THE example of what a programming language is on Wikipedia.

Re: Python's equivalent to Main calling program and subprograms

2010-12-01 Thread Bill Allen
Thanks for the explanation of main. Some tutorials mention it, some don't. I have written some not trial Python programs and have never had a real need to use that convention, but at least I understand it now. --Bill On Wed, Dec 1, 2010 at 1:13 PM, Tim Harig user...@ilthio.net wrote: On

Re: convert time to UTC seconds since epoch

2010-07-21 Thread Steve Allen
On Jul 20, 6:57 pm, Chris Rebert c...@rebertia.com wrote: [regarding trust of POSIX vis a vis leap seconds] I'm not saying they necessarily should, but they're standardized and the `time` module is based on POSIX/Unix-ish assumptions; not following POSIX would be inconsistent and problematic.

PyTexas 2010 Call for Proposals

2010-06-14 Thread Brad Allen
PyTexas 2010, the fourth annual Python programming conference for Texas and the surrounding region, will take place Saturday August 28, 2010 at the Baylor University in Waco, Texas. A variety of activities are under consideration, including tutorials, scheduled talks, Lightning Talks, Open Spaces,

PyTexas survey

2010-05-27 Thread Brad Allen
Hello Python Community, If you live in the Texas region, please help with PyTexas 2010 planning by filling out the new survey. This will tell us things like whether the planned Aug 28 date works for you, whether you have a user group in your area, and more importantly your t-shirt size :-).

Access class from staticmethod

2010-04-30 Thread Thomas Allen
Is that possible? class A(object): @staticmethod def set_b(x): # A.b = x, without knowing A is A pass Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: Access class from staticmethod

2010-04-30 Thread Thomas Allen
Ah ha, @classmethod. On Apr 30, 3:47 pm, Thomas Allen thomasmal...@gmail.com wrote: Is that possible? class A(object):   @staticmethod   def set_b(x):     # A.b = x, without knowing A is A     pass Thomas -- http://mail.python.org/mailman/listinfo/python-list

[issue7978] SocketServer doesn't handle syscall interruption

2010-04-28 Thread Bryce Allen
Bryce Allen o...@bda.ath.cx added the comment: I encountered this issue when trying to exit cleanly on SIGTERM, which I use to terminate background daemons running serve_forever. In BaseServer, a threading.Event is used in shutdown, so it can block until server_forever is finished (after

[Python-list] The distutils.sysconfig.set_python_config() function

2010-04-09 Thread Ray Allen
/sysconfig.py. Thanks. -- Ray Allen Best wishes! -- http://mail.python.org/mailman/listinfo/python-list

Re: Good Intermediate Tutorials

2010-04-01 Thread Ray Allen
programs. If you want to know more you can read the cpython source itself. Its not too difficult. -- Ray Allen Best wishes! -- http://mail.python.org/mailman/listinfo/python-list

Re: Have you embraced Python 3.x yet?

2010-03-28 Thread Ray Allen
In our company, we still use python-2.5.4, and will be updated to python-2.5.5. I hope we can go to 2.6.x or 3.x, but I'm not sure when. -- http://mail.python.org/mailman/listinfo/python-list

[issue7901] Add Vista/7 symlink support

2010-02-10 Thread Robert Paul Allen
New submission from Robert Paul Allen ipatrol6...@yahoo.com: I would like to see support for NTFS symbolic links to be added to the os module. As simple Popen('mklink') implementation could be used. Any other ideas? -- components: Library (Lib), Windows messages: 99170 nosy: ipatrol

Re: method to intercept string formatting % operations

2010-02-05 Thread Brad Allen
On Fri, Feb 5, 2010 at 9:49 AM, Jean-Michel Pichavant jeanmic...@sequans.com wrote: Anyway why would you want to use the tuple form ? it's beaten in every aspect by the dictionary form. I'm subclassing a namedtuple, and adding some additional functionality such as __getitem__, __setitem__, so

SimpleXMLRPCServer daemon

2010-01-29 Thread Thomas Allen
reliably. Thomas Allen -- http://mail.python.org/mailman/listinfo/python-list

Re: [Twisted-Python] ANN: Twisted 9.0.0

2009-12-02 Thread Tim Allen
exar...@twistedmatrix.com wrote: A message with some ticket links from a thread on the twisted-python mailing list: http://bit.ly/8csFSa Some of those tickets seem out of date; a better plan would be to query for tickets with the py3k keyword:

unicode-to-ascii: replace with space, not ?

2009-10-14 Thread Allen Fowler
Hello, I've been using data.encode('ascii','replace') to force an ASCII string out of Unicode data, with ? in the place of non-ASCII letters. However, now I want to use a blank space (or maybe a dash) instead of a question mark. How do I do this? Thank you, :) --

multiproccess: What is the Dameon flag?

2009-09-15 Thread Allen Fowler
Hello, What is the Daemon flag and when/why would I want to use it? Thank you, AF -- http://mail.python.org/mailman/listinfo/python-list

Re: multiproccess: What is the Dameon flag?

2009-09-15 Thread Allen Fowler
What is the Daemon flag and when/why would I want to use it? From the documentation: When a process exits, it attempts to terminate all of its daemonic child processes.. Sometimes you want the main process to wait for its worker processes to terminate before terminating itself so

Scheduling algorithm: Suggestions?

2009-09-07 Thread Allen Fowler
Hello, I have a batch of rpc style calls that I must make to an external server via HTTP in a multi threaded fashion. (Return vales must be saved.) Problem is, I need to throttle the rate at which I do this. Each HTTP call takes between 0.2 and several seconds to complete. I need to

Re: what is it, that I don't understand about python and lazy evaluation?

2009-08-13 Thread Brian Allen Vanderburg II
Erik Bernoth wrote: Hi List, look at the following code: def evens(): # iterator returning even numbers i = 0 while True: yield i i += 2 # now get all the even numbers up to 15 L = [n for n in evens() if n 15] Isn't it strange, that this code runs (in a lazy

How to do relpath implementation on 2.5

2009-08-08 Thread Brian Allen Vanderburg II
I've coded my own 'relpath' implementation for 2.5 (shown below) and I want to make sure it follows as closely as it should to 2.6 and later. I've got a question regarding that. When attempting to convert to a relative path and it is not possible for some reason (different drive or UNC

XML(JSON?)-over-HTTP: How to define API?

2009-07-02 Thread Allen Fowler
I have an (in-development) python system that needs to shuttle events / requests around over the network to other parts of itself. It will also need to cooperate with a .net application running on yet a different machine. So, naturally I figured some sort of HTTP event / RPC type of would be

Re: XML(JSON?)-over-HTTP: How to define API?

2009-07-02 Thread Allen Fowler
I have an (in-development) python system that needs to shuttle events / requests around over the network to other parts of itself. It will also need to cooperate with a .net application running on yet a different machine. So, naturally I figured some sort of HTTP event / RPC type

Re: Python simple web development

2009-06-26 Thread Thomas Allen
On Jun 25, 3:29 am, Private Private mail...@gmail.com wrote: Hi, I am looking for a python library which will allow me to do a simple web development. I need to use some forms (but nice looking :-) ), creating images based on input from those forms, etc. I have read a bit about Django and

Re: Project source code layout?

2009-06-04 Thread Allen Fowler
in your lib directory? 3) How do you reference your configuration directives from within your modules and CGI/daemon scripts? Thank you, Allen -- http://mail.python.org/mailman/listinfo/python-list

Re: Copying objects and multiple inheritance

2009-06-03 Thread Brian Allen Vanderburg II
Gabriel Genellina wrote: En Tue, 02 Jun 2009 19:02:47 -0300, Brian Allen Vanderburg II brianvanderbu...@aim.com escribió: What is the best way to copy an object that has multiple inheritance with the copy module. Particularly, some of the instances in the hierarchy (...some of the classes

Project source code layout?

2009-06-03 Thread Allen Fowler
the various config settings to both the web app and scripts. Any suggestions? ideas? fwiw, I am planing on keeping the whole thing in a Mercurial repository. Thank you, Allen :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Project source code layout?

2009-06-03 Thread Allen Fowler
I'm new to Python, and am looking for some suggestions as to the source code layout for a new project. Is this the development layout or the deployment layout? The two need not bear any resemblance. Looking for suggestions on both. I was hoping to keep the dev layout as close to

Copying objects and multiple inheritance

2009-06-02 Thread Brian Allen Vanderburg II
What is the best way to copy an object that has multiple inheritance with the copy module. Particularly, some of the instances in the hierarchy use the __copy__ method to create a copy (because even for shallow copies they need some information updated a little differently), so how can I

Re: Beazley on Generators

2009-04-01 Thread Craig Allen
this is great, thanks... we have used generators to create something akin to a cooperative tasking environment... not to implement multitasking, but to be able to control low level data processing scripts. These scripts, written as generators, yield control to a control loop which then can pause,

Re: packaging

2009-03-18 Thread Craig Allen
andrew thanks andrew, good advice, I should probably use that throughout our code. btw, hope the world is treating you well, long time no see... -craig -- http://mail.python.org/mailman/listinfo/python-list

[issue5511] zipfile - add __exit__ attribute to make ZipFile object compatible with with_statement

2009-03-18 Thread J.R. Allen
New submission from J.R. Allen pyt...@petruchio.org: Currently the zipfile.ZipFile class has no __exit__ atribute, so it does not work with a with statement as other file objects do. Can this be implemented? -- components: Library (Lib) messages: 83768 nosy: petruchio severity

packaging

2009-03-17 Thread Craig Allen
we have software we are putting into package form. So far, all the code was in local py files and we imported between the modules as you'd think. Now with the package (ourpackage) we are addressing how import affects the importing module. if ourpackage __init__.py itself does regular imports of

Re: Ban Xah Lee

2009-03-11 Thread Craig Allen
There you go: a 30-second psychological diagnosis by an electrical engineer based entirely on Usenet postings.  It doesn't get much more worthless than that... -- Grant rolf but interesting post nonetheless. I have been really somewhat fascinated by AS since I heard of it about a decade

Re: Why is lambda allowed as a key in a dict?

2009-03-11 Thread Craig Allen
On Mar 10, 1:39 pm, Paul Rubin http://phr...@nospam.invalid wrote: Craig Allen callen...@gmail.com writes: it raises an interesting question about why doesn't it.  I can think of practical answers to that, obviously, but in principle, if a function compiles to exactly the same byte code

Re: Why is lambda allowed as a key in a dict?

2009-03-10 Thread Craig Allen
I think the point is that function objects compare by object identity, so the two lambdas you use above are not equal even though they have the same code. it raises an interesting question about why doesn't it. I can think of practical answers to that, obviously, but in principle, if a

  1   2   3   >